/* ============================================================
   SignalParser — field-file aesthetic.
   Declassified-briefing system: warm black paper, one amber
   signal color, monospace data chrome, serif editorial voice.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: local("Fraunces");
}

:root {
  --black: #0d0c09;
  --black-2: #131209;
  --paper: #f3ede0;
  --paper-dim: #d9d0ba;
  --ink: #17150f;
  --amber: #ff7a1a;
  --amber-bright: #ffb703;
  --redact: #c73b2c;
  --line: rgba(243, 237, 224, 0.14);
  --line-strong: rgba(243, 237, 224, 0.28);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255, 122, 26, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- chrome: case-file header bar ---------- */

.filebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(13, 12, 9, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.filebar strong {
  color: var(--paper);
  font-weight: 700;
}

.filebar .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 8px;
  box-shadow: 0 0 8px 1px rgba(255, 122, 26, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- section scaffolding ---------- */

section {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* ---------- HERO ---------- */

.hero {
  padding-top: 76px;
}

.stamp {
  position: absolute;
  top: 64px;
  right: 28px;
  border: 2px solid var(--amber);
  color: var(--amber-bright);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  transform: rotate(6deg);
  opacity: 0.9;
  text-transform: uppercase;
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 15ch;
  margin-top: 18px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber-bright);
}

.hero .lede {
  margin-top: 26px;
  max-width: 62ch;
  font-size: 1.18rem;
  color: var(--paper-dim);
}

.selector {
  margin-top: 46px;
}

.selector-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  position: relative;
}

.tab:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.tab.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--black);
  font-weight: 700;
}

.tab-other-input {
  display: none;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--black-2);
  border: 1px dashed var(--line-strong);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 2px;
  min-width: 220px;
}

.tab-other-input.show {
  display: inline-block;
}

.tab-live-badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-bright);
  margin-left: 7px;
  vertical-align: middle;
}
.tab.active .tab-live-badge {
  background: var(--black);
}

.live-strip {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper-dim);
  border-top: 1px dashed var(--line-strong);
  padding-top: 22px;
}

.live-chip {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--amber-bright);
  color: var(--black);
  line-height: 1.2;
  position: relative;
  top: 1px;
}

.live-chip.soon {
  background: transparent;
  color: var(--amber-bright);
  border: 1px solid var(--amber);
  padding: 3px 7px;
}

#live-strip-text {
  flex: 1;
  min-width: 240px;
  color: var(--paper);
  line-height: 1.5;
}

.live-strip-link {
  font-family: var(--mono);
  color: var(--amber-bright);
  text-decoration: none;
  white-space: nowrap;
}
.live-strip-link:hover { text-decoration: underline; }

/* ---------- PROBLEM ---------- */

.problem blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.4;
  max-width: 44ch;
  color: var(--paper);
  border-left: 2px solid var(--amber);
  padding-left: 28px;
}

.problem blockquote + blockquote {
  margin-top: 28px;
  color: var(--amber-bright);
  font-style: normal;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-left-color: var(--redact);
}

/* ---------- SIGNAL CARDS ---------- */

.cards-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.cards-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.vertical-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--black);
  background: var(--amber-bright);
  padding: 5px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: 26px 24px 22px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  opacity: 0.55;
}
.card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.card::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.card-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--redact);
  margin-bottom: 10px;
}

.card-kicker.expansion { color: #a5720f; }
.card-kicker.stuck { color: var(--redact); }
.card-kicker.commitment { color: #1c6e4a; }
.card-kicker.coming { color: var(--amber-bright); }

.card .cta-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}

/* Stub cards are dark, so the ink-colored link would vanish — brighten it. */
.card.stub .cta-link {
  color: var(--amber-bright);
  text-decoration-color: var(--amber);
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.card p {
  font-size: 0.96rem;
  color: #423d31;
  margin: 0 0 14px;
}

.card .data-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 7px 0;
  border-top: 1px dotted rgba(23,21,15,0.25);
}

.card .data-row span:first-child { color: #6b6353; }
.card .data-row span:last-child { font-weight: 700; text-align: right; }

.card .source {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #6b6353;
}

.card .source a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}

.card.loading {
  opacity: 0.5;
}

.card.stub {
  background: var(--black-2);
  color: var(--paper);
  border: 1px dashed var(--line-strong);
  box-shadow: none;
}
.card.stub p { color: var(--paper-dim); }
.card.stub::before, .card.stub::after { border-color: var(--paper-dim); }

/* ---------- WHAT YOU GET ---------- */

#what-you-get h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.sub-lede {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--paper-dim);
  font-size: 1.05rem;
}

.exhibits {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 880px) {
  .exhibits { grid-template-columns: 1fr; }
}

.exhibit-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.1em;
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
  margin-bottom: 16px;
}

.exhibit h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.exhibit p {
  color: var(--paper-dim);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- LIVE SAMPLE / FORM ---------- */

.panel {
  background: var(--black-2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 40px;
}

@media (max-width: 640px) {
  .panel { padding: 26px; }
}

.panel h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 30ch;
}

.panel .sub {
  color: var(--paper-dim);
  margin-top: 10px;
  max-width: 56ch;
}

.skip-line {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(255, 122, 26, 0.07);
  border: 1px solid var(--amber);
  border-radius: 3px;
  padding: 14px 18px;
}

.skip-line span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
}

.mini-divider {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

form {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  padding: 12px 14px;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 15px;
}

.field textarea { min-height: 80px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder {
  color: var(--paper-dim);
  opacity: 0.55;
  font-style: italic;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--amber);
}

.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-row label {
  font-family: var(--mono);
  font-size: 12.5px;
  border: 1px solid var(--line-strong);
  padding: 9px 14px;
  border-radius: 2px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper);
}

.radio-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-row label:has(input:checked) {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--black);
  font-weight: 700;
}

.btn {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--black);
  border: none;
  padding: 15px 22px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 700;
  justify-self: start;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn:hover { background: var(--amber-bright); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--paper);
}
.btn.ghost:hover { border-color: var(--amber); background: transparent; }

.form-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--paper-dim);
}

.form-error {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--redact);
  display: none;
}
.form-error.show { display: block; }

/* ---------- confirmation / price test ---------- */

.confirm {
  display: none;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px dashed var(--line-strong);
}
.confirm.show { display: block; }

.price-quote {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--paper);
  background: var(--black);
  border: 1px solid var(--line-strong);
  padding: 20px;
  border-radius: 3px;
  margin: 18px 0 22px;
}

.price-quote strong { color: var(--amber-bright); }

.vote-options {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.vote-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  border: 1px solid var(--line-strong);
  padding: 13px 16px;
  border-radius: 2px;
  cursor: pointer;
}

.vote-options label:has(input:checked) {
  border-color: var(--amber);
  background: rgba(255, 122, 26, 0.08);
}

.founding-box {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 122, 26, 0.06);
  border: 1px solid var(--amber);
  border-radius: 3px;
}
.founding-box.show { display: block; }

.founding-box .row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.founding-box input {
  flex: 1;
  min-width: 220px;
  background: var(--black);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  padding: 12px 14px;
  border-radius: 2px;
  font-family: var(--serif);
}

.done-msg {
  display: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber-bright);
  margin-top: 16px;
}
.done-msg.show { display: block; }

/* ---------- FOUNDER ---------- */

.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 640px) {
  .founder { grid-template-columns: 1fr; }
}

.founder-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--black-2);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--paper-dim);
  font-size: 11px;
  text-align: center;
  flex-shrink: 0;
}

.founder blockquote {
  margin: 0 0 18px;
  font-size: 1.1rem;
  max-width: 56ch;
  font-style: italic;
}

.founder-name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--paper-dim);
  margin-bottom: 16px;
}

/* ---------- footer ---------- */

footer {
  padding: 40px 0 60px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--paper-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer a { text-decoration: underline; text-decoration-color: var(--amber); }

.tick {
  color: var(--amber);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
