/* ============================================================
   STRATA V2 — "Compose the feature. Keep the code."
   Layered on top of styles.css — same tokens, new sections.
   ============================================================ */

/* ---------- HERO STATS STRIP ---------- */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 26px; margin-top: 52px; flex-wrap: wrap;
}
.hs { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hs b {
  font-family: var(--font-head); font-size: 30px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text); line-height: 1;
}
.hs span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.hs-div { width: 1px; height: 30px; background: var(--border); }
@media (max-width: 720px) { .hs-div { display: none; } .hero-stats { gap: 20px 30px; } }

/* ---------- THE VERIFIER TERMINAL ---------- */
.verify { padding: 110px 0 100px; }
.verify-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.term {
  max-width: 820px; margin: 0 auto;
  background: #0E1620; border: 1px solid #1E2C3C;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(10, 22, 36, 0.4);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: #0A1119; border-bottom: 1px solid #1E2C3C;
}
.td { width: 10px; height: 10px; border-radius: 50%; }
.td.red { background: #E05B49; } .td.amber { background: #D9A036; } .td.green { background: #4DAE6E; }
.term-title { margin-left: 10px; font-size: 11.5px; color: #6E8298; letter-spacing: 0.03em; }
.term-replay {
  margin-left: auto; background: none; border: 1px solid #1E2C3C; color: #6E8298;
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer;
  font-size: 13px; line-height: 1; transition: all 0.2s var(--ease);
}
.term-replay:hover { color: #B9CBDC; border-color: #33475C; }
.term-body { padding: 22px 24px 26px; min-height: 410px; font-size: 13px; line-height: 1.85; color: #B9CBDC; }
.t-line { display: block; opacity: 0; transform: translateY(3px); }
.t-line.in { animation: t-in 0.26s var(--ease) forwards; }
.t-line.shown { opacity: 1; transform: none; }   /* reduced motion — no animation to wait on */
@keyframes t-in { to { opacity: 1; transform: none; } }
.t-ok { color: #4DAE6E; font-weight: 500; }
.t-dim { color: #55697E; }
.t-head { color: #6FA8CC; }
.t-final {
  color: #FFF; font-weight: 500; display: block; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid #1E2C3C;
}
.t-final b { color: #4DAE6E; }
.t-cursor {
  display: inline-block; width: 7px; height: 14px; background: #4DAE6E;
  vertical-align: -2px; animation: t-blink 1s step-end infinite;
}
@keyframes t-blink { 50% { opacity: 0; } }

/* ---------- HOW IT WORKS ---------- */
.how {
  padding: 100px 0; background: var(--surface-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.how-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; }
.how-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px 24px;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(28, 85, 128, 0.22);
  border-color: var(--accent-line);
}
.how-step.accent { border-color: var(--amber-line); background: linear-gradient(180deg, #FEFCF8 0%, #FDF7EE 100%); }
.hs-num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 14px; }
.how-step.accent .hs-num { color: var(--amber); }
.how-step h4 { font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.how-step p { font-size: 14.5px; line-height: 1.65; color: var(--muted); flex: 1; }
.how-step code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--text);
}
.hs-tag {
  margin-top: 18px; padding: 9px 11px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 10.5px; color: var(--muted); line-height: 1.5; word-break: break-word;
}
.hs-tag.accent { background: var(--amber-dim); border-color: var(--amber-line); color: #9A5A08; font-weight: 500; }

/* ---------- CHART FOOTNOTE ---------- */
.chart-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted); line-height: 1.6;
}
.chart-foot b { color: var(--text); }

/* ---------- COMPOSITION CHART ---------- */
.composition { padding: 110px 0; }
.comp-chart {
  max-width: 860px; margin: 40px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px 20px;
}
/* aspect-ratio MUST match the viewBox (720x320), or the chart letterboxes */
.comp-svg { width: 100%; aspect-ratio: 720 / 320; display: block; }
.cg-grid line { stroke: var(--grid-line); stroke-width: 1; }
.cg-grid .cg-zero { stroke: #C2C7D0; stroke-width: 1.5; }
.cg-ylab text { font-size: 10.5px; fill: var(--muted); letter-spacing: 0.04em; }
.cg-xlab text { font-size: 11px; fill: var(--text); font-weight: 500; }
.cg-zone { fill: rgba(77, 143, 110, 0.055); stroke: rgba(77, 143, 110, 0.22); stroke-dasharray: 4 4; }
.cg-zone-lab { font-size: 9.5px; fill: #4D8F6E; letter-spacing: 0.14em; font-weight: 500; }
.cb-rect.up { fill: #C97008; opacity: 0.85; }
.cb-rect.down { fill: #4D8F6E; opacity: 0.9; }
/* The value sits INSIDE its own bar. Outside, the negative labels dangled below the plot at three
   different heights and read as a rendering fault rather than as data. */
.cb-val { font-size: 12px; font-weight: 600; opacity: 0; transition: opacity 0.4s var(--ease) 0.6s; fill: #fff; }
.comp-chart.drawn .cb-val { opacity: 1; }
.comp-legend {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border);
}
.cl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cl b { color: var(--text); }
.cl-sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.cl-sw.up { background: #C97008; }
.cl-sw.down { background: #4D8F6E; }
.comp-note {
  max-width: 860px; margin: 28px auto 0; display: flex; gap: 16px;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 22px 24px;
}
.cn-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.comp-note h4 { font-family: var(--font-head); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.comp-note p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.comp-note p b { color: var(--text); }

/* ---------- COVERAGE ---------- */
.coverage { padding: 100px 0; background: var(--surface-2); border-top: 1px solid var(--border); }
.cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cov-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 20px 16px; cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cov-card:hover {
  transform: translateY(-3px); border-color: var(--accent-line);
  box-shadow: 0 16px 36px -20px rgba(28, 85, 128, 0.2);
}
.cov-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.cov-id { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.02em; }
.cov-gate {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  color: #3D7A5C; background: rgba(77, 143, 110, 0.1);
  border: 1px solid rgba(77, 143, 110, 0.22);
  padding: 2px 7px; border-radius: 20px; flex: none;
}
.cov-card h4 { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin-bottom: 7px; letter-spacing: -0.01em; }
.cov-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.cov-foot {
  display: flex; gap: 14px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.cov-foot b { color: var(--text); font-weight: 600; }
.cov-stacks { margin-top: 44px; text-align: center; }
.cov-stacks h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.stack-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.stack-chip {
  padding: 8px 16px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; color: var(--text);
  transition: all 0.25s var(--ease);
}
.stack-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.stack-note {
  margin-top: 20px; font-size: 13.5px; color: var(--muted);
  max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ---------- INSTALL ---------- */
.install { padding: 110px 0 100px; }
.install-card {
  max-width: 700px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.ic-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.ic-copy {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 4px 12px; border-radius: 6px; font-size: 11.5px; cursor: pointer;
  font-family: var(--font-body); transition: all 0.2s var(--ease);
}
.ic-copy:hover { border-color: var(--accent); color: var(--accent); }
.ic-copy.done { border-color: var(--accent-2); color: var(--accent-2); }
.ic-code { padding: 22px 24px; font-size: 13px; line-height: 1.75; overflow-x: auto; }
.tk-s { color: #2E7A9C; }
.tk-v { color: #C97008; }
.tk-p { color: var(--muted); }
.ic-foot {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; padding: 18px 24px; border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.icf-item { font-size: 13px; color: var(--muted); line-height: 1.55; }
.icf-item b { color: var(--text); }
.icf-item code { font-family: var(--font-mono); font-size: 0.9em; color: var(--accent); }
.install-then { max-width: 700px; margin: 40px auto 0; text-align: center; }
.it-lead { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.it-prompt {
  text-align: left; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; line-height: 1.65; color: var(--text);
}
.itp-caret { color: var(--accent); margin-right: 8px; font-weight: 600; }
.it-arrow { font-size: 20px; color: var(--muted); margin: 12px 0; }
.it-result {
  text-align: left; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(77, 143, 110, 0.05); border: 1px solid rgba(77, 143, 110, 0.22);
}
.itr-line { font-size: 13px; line-height: 2; color: var(--muted); }
.itr-line b { color: var(--text); font-weight: 600; }
.itr-ok { color: #4D8F6E; font-weight: 700; margin-right: 9px; }

@media (max-width: 640px) {
  .term-body { min-height: 340px; font-size: 11.5px; padding: 18px 16px; }
  .comp-chart { padding: 18px 12px 14px; }
  .comp-note { flex-direction: column; }
}

/* ── THE BOARD ──────────────────────────────────────────────────────────────
   One table carrying all 60 runs. Replaces four disconnected stat cards and a
   two-bar chart that between them showed a single task. The whole argument is
   comparative — five arms across four tasks — and a comparison needs one grid,
   not four cards you have to hold in your head at once. */
.board-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, rgba(255,255,255,0.09));
  border-radius: 12px;
  background: var(--surface, #121821);
  margin: 0 0 34px;
}
table.board {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.board caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim, #8892a0);
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.09));
}
table.board th, table.board td {
  padding: 13px 18px;
  text-align: right;
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.07));
  white-space: nowrap;
}
table.board thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dim, #8892a0);
}
table.board th.arm, table.board thead th:first-child {
  text-align: left;
  font-weight: 500;
}
table.board th.arm {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
  color: var(--text, #e6edf3);
}
table.board th.arm b { color: var(--accent, #5EE7FF); font-weight: 600; }
table.board td {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  color: var(--text, #e6edf3);
}
/* The percent sign is supporting information — the number is what gets scanned. */
table.board td i { font-style: normal; font-size: 11px; color: var(--dim, #8892a0); margin-left: 1px; }
table.board .sep { border-left: 1px solid var(--line, rgba(255,255,255,0.12)); }
table.board td.avg { font-size: 15px; font-weight: 600; }
table.board td.cost { color: var(--dim, #8892a0); }
table.board tbody tr:last-child th, table.board tbody tr:last-child td { border-bottom: none; }
table.board tr.hl { background: rgba(94,231,255,0.055); }
table.board tr.hl td.avg { color: var(--accent, #5EE7FF); }
table.board tr.ceiling th.arm, table.board tr.ceiling td { color: var(--dim, #8892a0); }
table.board tr.ceiling td.avg { color: var(--text, #e6edf3); }

/* ── THE THREE READS ─────────────────────────────────────────────────────── */
.board-reads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin: 0 0 30px;
}
.read-fig {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent, #5EE7FF);
  line-height: 1;
  margin-bottom: 10px;
}
.read-fig span { font-size: 17px; color: var(--dim, #8892a0); }
.board-reads .read p { font-size: 14.5px; line-height: 1.6; color: var(--dim, #8892a0); margin: 0; }
.board-reads .read p b { color: var(--text, #e6edf3); }

/* Stated on the page, not buried in a footnote — the losses are what make the
   wins above them believable. */
.board-honest {
  border-left: 2px solid var(--gold, #F5C96A);
  padding: 4px 0 4px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dim, #8892a0);
  max-width: 74ch;
}
.board-honest b { color: var(--text, #e6edf3); }

@media (max-width: 640px) {
  .read-fig { font-size: 28px; }
  table.board th, table.board td { padding: 11px 13px; }
}

/* ---------- MOBILE NAV MENU ----------
   The toggle button already existed and already toggled `.open` — but nothing styled `.nav-links.open`,
   so at <=720px the links stayed display:none and tapping the button did nothing at all. This is the
   missing half: open the links into a stacked panel under the bar. */
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-basis: 100%;          /* with flex-wrap on .nav, this drops it onto its own row */
    order: 3;
    margin-top: 14px;
    padding-top: 8px;
    border-top: 1px solid var(--panel-line);
  }
  .nav-links.open a { padding: 13px 2px; font-size: 16px; }
  .nav-links.open .nav-cta {
    align-self: flex-start;
    margin-top: 12px;
    padding: 10px 18px;
  }
}

/* ── THE SAVINGS FIGURES ────────────────────────────────────────────────────
   Three numbers, one row, before the reader has scrolled past the headline.
   These are the claim; everything under them is evidence for them. Kept as
   plain type rather than cards — a card border around a number competes with
   the number. */
.figrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 42px;
  text-align: center;
}
.fig { padding: 22px 10px; border-right: 1px solid var(--border); }
.fig:last-child { border-right: none; }
.fig b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(38px, 6.4vw, 62px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.fig span {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.fig i {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.75;
}
@media (max-width: 640px) {
  .figrow { grid-template-columns: 1fr; gap: 0; }
  .fig { border-right: none; border-bottom: 1px solid var(--border); padding: 18px 10px; }
  .fig:last-child { border-bottom: none; }
}

/* ── THE DEFECT DIFF ────────────────────────────────────────────────────────
   Two panels of real output side by side. The argument here is not a statistic
   and cannot be made by one — the reader has to SEE the stack trace. Both
   panels are dark: this is terminal output, and putting one on a light card
   would suggest one of them is a quote and the other is code. */
.diffgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 20px;
}
.dpane {
  border: 1px solid #1E2C3C;
  border-radius: 12px;
  background: #0E1620;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dpane-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #1E2C3C;
  background: #0A1119;
}
.dpane-head .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dpane.bad  .dpane-head { color: #E08268; }
.dpane.bad  .dpane-head .dot { background: #E05B49; }
.dpane.good .dpane-head { color: #7ECB9B; }
.dpane.good .dpane-head .dot { background: #4DAE6E; }
.dpane pre {
  margin: 0;
  padding: 18px 18px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #B9CBDC;
  overflow-x: auto;
  flex: 1;
}
.dpane pre .hl-bad { color: #E08268; }
.dpane pre .k { color: #7FB6D6; }
.dpane pre .v { color: #D9A036; }
.dpane-note {
  padding: 14px 18px 16px;
  border-top: 1px solid #1E2C3C;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8FA4B8;
}
.dpane-note b { color: #D6E3EE; font-weight: 600; }
@media (max-width: 820px) { .diffgrid { grid-template-columns: 1fr; } }

/* ── THE DEFECT LIST ────────────────────────────────────────────────────────
   The remaining failures, one line of evidence each. A request and its wrong
   response is the shortest form of proof that exists, so each card leads with
   one and explains after. */
.defects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 34px 0 0;
}
.defect {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px 22px 22px;
}
.defect h4 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.defect .ev {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 13px;
}
.defect .ev em { font-style: normal; color: #B4442F; font-weight: 500; }
.defect p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--muted); }
.defect p b { color: var(--text); font-weight: 600; }
.defect .tally {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── CHARTS ─────────────────────────────────────────────────────────────────
   Charts do NOT go in .board-wrap. That wrapper is sized for a table with a
   min-width, so a 760px chart floated in the middle of it with ~200px of dead
   surface on either side and the wrapper's own frame drawn around the chart's
   own background — two boxes where the reader sees one object.
   Here the SVG scales to the container instead, and the container IS the card. */
.chart {
  max-width: 900px;
  margin: 0 auto 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.chart img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .chart { border-radius: 9px; } }

/* ── FINE PRINT ─────────────────────────────────────────────────────────────
   Caveats and method belong on the page — they are what makes the board worth
   believing — but not at body size, where they read as more argument. Two
   columns of small print, below the fold of the claim. */
.fineprint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  max-width: 900px;
  margin: 44px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.fineprint h5 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.fineprint p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.fineprint p b { color: var(--text); font-weight: 600; }
.fineprint a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.fineprint a:hover { border-bottom-color: var(--accent); }
@media (max-width: 720px) { .fineprint { grid-template-columns: 1fr; gap: 22px; } }

.dim { color: var(--muted); opacity: 0.85; }
