/* ============================================================
   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; }
}
