/* ============================================================
   The Task Cost Index — cool light instrument
   One sans (Hanken Grotesk) + mono accents (Spline Sans Mono).
   Color encodes meaning: indigo = interactive, green→red = cost heat.
   ============================================================ */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --sunk: #eceef2;
  --ink: #16181d;
  --ink-2: #4c515b;
  --ink-3: #697079;
  --line: #e4e7ec;
  --line-2: #d3d8e0;

  --accent: #3b5bdb;
  --accent-ink: #2b46b0;
  --accent-wash: #eaeefb;

  /* vivid heat for graphic elements (bars): 3:1 is enough */
  --good: #12915a;   /* cheap / high quality */
  --mid: #b5820a;    /* middling */
  --bad: #c8442f;    /* expensive / low quality */
  /* darker heat for small text: meets 4.5:1 on white */
  --good-t: #107a4a;
  --mid-t: #8a6309;
  --bad-t: #c8442f;

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;

  --z-sticky: 100;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--accent); color: #fff; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

main, .masthead, .toc, .colophon {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------------- masthead ---------------- */
.masthead { padding-top: clamp(40px, 7vw, 72px); }
.mast-rule-top, .mast-rule-bottom { display: none; }

.mast-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.mast-title {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  margin-bottom: 16px;
}
.mast-sub {
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 400;
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.45;
  text-wrap: pretty;
}
.mast-sub em { color: var(--ink); font-style: normal; font-weight: 600; }
.mast-sub br { display: none; }

.mast-dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mast-dateline .dot { display: none; }
.mast-dateline span:not(.dot) { display: inline-flex; align-items: center; }
.mast-dateline span:not(.dot)::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

/* ---------------- toc (sticky, quiet) ---------------- */
.toc {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 14px;
  margin-top: 40px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.toc a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.toc a:hover { background: var(--accent-wash); color: var(--accent-ink); }

/* primary action: pull to the right and fill with accent */
.toc a.cta {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 6px 15px;
  box-shadow: 0 1px 3px rgba(43, 70, 176, 0.3);
}
.toc a.cta::after {
  content: "→";
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.toc a.cta:hover { background: var(--accent-ink); color: #fff; }
.toc a.cta:hover::after { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .toc a.cta::after { transition: none; }
}

/* ---------------- sections ---------------- */
.section { padding: clamp(48px, 7vw, 84px) 0 0; scroll-margin-top: 22px; }

.section-head { margin-bottom: 28px; }
.section-no { display: none; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-wrap: balance;
}
.section-note {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 68ch;
  text-wrap: pretty;
}

/* ---------------- controls ---------------- */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.basis-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sunk);
  border-radius: 9px;
  padding: 3px;
}
.basis-label { display: none; }
.basis-btn {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s, box-shadow 0.18s;
}
.basis-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 24, 33, 0.08), 0 0 0 1px var(--line);
}
.basis-btn:not(.active):hover { color: var(--ink); }

.domain-filter { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.dom-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--ink-3);
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.dom-btn.active { color: var(--accent-ink); background: var(--accent-wash); }
.dom-btn:not(.active):hover { color: var(--ink); background: var(--sunk); }

.table-explainer {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 74ch;
  line-height: 1.5;
}
.table-explainer strong { color: var(--ink); font-weight: 600; }
.shift-legend { color: var(--ink-3); }
.shift-chip { font-size: 10px; font-weight: 700; }
.shift-chip.up { color: var(--good); }
.shift-chip.down { color: var(--bad); }

/* ---------------- ledger: shared grid ---------------- */
:root {
  --ledger-grid: 30px minmax(140px, 1.3fr) minmax(90px, 2.6fr) 78px 60px 52px;
  --ledger-gap: 14px;
}

.ledger-head {
  display: grid;
  grid-template-columns: var(--ledger-grid);
  gap: var(--ledger-gap);
  align-items: end;
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--line-2);
}
.lh {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lh-cost { grid-column: 3 / 5; }        /* spans bar + price */
.lh-num { text-align: right; }

.ledger { display: flex; flex-direction: column; }

.ledger-row {
  display: grid;
  grid-template-columns: var(--ledger-grid);
  gap: var(--ledger-gap);
  align-items: center;
  padding: 11px 12px;
  border-radius: 9px;
  position: relative;
}
.ledger-row:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row:hover + .ledger-row, .ledger-row:hover { border-top-color: transparent; }

.lr-rank {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  text-align: right;
}
.ledger-row.top3 .lr-rank { color: var(--accent); font-weight: 600; }

.lr-model { min-width: 0; }
.lr-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lr-provider {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 1px;
}

/* magnitude bar — length AND color encode cost */
.lr-bar {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}
.lr-bar-fill {
  height: 9px;
  border-radius: 5px;
  min-width: 3px;
  transition: width 0.5s var(--ease), background 0.3s;
}
.lr-bar-ci {
  position: absolute;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(22, 24, 33, 0.28);
}
.lr-bar-ci::before, .lr-bar-ci::after {
  content: "";
  position: absolute; top: -3px;
  width: 1px; height: 7px;
  background: rgba(22, 24, 33, 0.28);
}
.lr-bar-ci::before { left: 0; }
.lr-bar-ci::after { right: 0; }

.lr-price {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.lr-price .unit {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-top: 1px;
}

.lr-quality {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}
.lr-quality.q-good { color: var(--good-t); }
.lr-quality.q-mid { color: var(--mid-t); }
.lr-quality.q-bad { color: var(--bad-t); }

.lr-shift {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: var(--ink-3);
}
.lr-shift.up { color: var(--good-t); }
.lr-shift.down { color: var(--bad-t); }

.fineprint {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 18px;
  max-width: 74ch;
  line-height: 1.55;
}

/* ---------------- method ---------------- */
/* shared sub-heading for the parts of this section */
.method-head {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

/* domains: airy, non-containerized columns (the four kinds of work) */
.domains-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px 30px;
  margin: 4px 0 56px;
}
.domain-cell h4 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.domain-cell .d-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 9px;
}
.domain-cell p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* pipeline: a de-boxed process rail with circular icon nodes */
.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.pipe-step {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pipe-step strong { font-size: 15px; font-weight: 600; }
.pipe-step.accent strong { color: var(--accent-ink); }
.pipe-step span:last-child { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.pipe-arrow { align-self: flex-start; margin-top: 14px; color: var(--line-2); font-size: 16px; }

.specimen-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-left: 10px;
}

.specimens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}
.specimen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
}
.specimen .s-top { justify-content: space-between; width: 100%; margin-bottom: 10px; }
.s-tags { display: inline-flex; align-items: center; gap: 8px; }
.s-diff {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
}
.d-easy { color: var(--good-t); background: color-mix(in srgb, var(--good) 12%, transparent); }
.d-medium { color: var(--mid-t); background: color-mix(in srgb, var(--mid) 15%, transparent); }
.d-hard { color: var(--bad-t); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.d-unrated { color: var(--ink-3); background: var(--sunk); }
.s-wu { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.specimen h5 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 11px; }

/* the quoted task — visually its own block, with code + math rendered */
.s-prompt {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  background: var(--sunk);
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 12px;
}
.s-prompt code,
.bk-prompt code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.5px 4px;
}
.s-prompt sup,
.bk-prompt sup { font-size: 0.72em; }

.specimen .s-grader {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: auto;
}
.s-grader-icon { width: 13px; height: 13px; color: var(--accent-ink); flex: none; }

/* ---------------- simulator ---------------- */
.commission { margin-bottom: 28px; }
.commission-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.commission textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 16px 18px;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.commission textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.commission textarea::placeholder { color: var(--ink-3); }

.commission-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.commission-note { font-size: 13px; color: var(--ink-3); max-width: 48ch; line-height: 1.4; }
.commission-btn {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.commission-btn:hover { background: var(--accent-ink); }
.commission-btn:active { transform: translateY(1px); }
.commission-btn:disabled { background: var(--ink-3); cursor: default; }

.run-stage { border-top: 1px solid var(--line-2); padding-top: 24px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- progress bar ---- */
.run-progress { margin-bottom: 26px; }
.rp-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rp-phase { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.rp-pct { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.rp-track {
  height: 8px;
  border-radius: 5px;
  background: var(--sunk);
  overflow: hidden;
}
.rp-fill {
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #6f8bef));
  transition: width 0.6s var(--ease);
}
.rp-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.rp-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-3);
  transition: color 0.3s;
}
.rp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
  transition: background 0.3s, box-shadow 0.3s;
}
.rp-step.active { color: var(--accent-ink); font-weight: 500; }
.rp-step.active .rp-dot { background: var(--accent); animation: pulse 1.4s var(--ease) infinite; }
.rp-step.done { color: var(--ink-2); }
.rp-step.done .rp-dot { background: var(--good); }
.rp-async {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--accent-wash);
  border-radius: 9px;
  padding: 10px 13px;
}
.rp-async b { color: var(--ink); font-weight: 600; }
.rp-async[hidden] { display: none; }

/* ---- parsed agent spec ---- */
.run-spec {
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 13px;
  padding: 18px 20px;
  margin-bottom: 22px;
  animation: risein 0.4s var(--ease);
}
.rs-label {
  font-size: 12px;
  color: var(--accent-ink);
  margin-bottom: 4px;
}
.rs-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 7px; }
.rs-summary { font-size: 14.5px; color: var(--ink); line-height: 1.5; margin-bottom: 6px; }
.rs-work { font-size: 13px; color: var(--ink-2); line-height: 1.5; max-width: 68ch; }

/* ---- email gate (phase 2) ---- */
.run-gate {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
  animation: risein 0.4s var(--ease);
}
.rg-head { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.rg-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; max-width: 62ch; margin-bottom: 16px; }
.rg-form { display: flex; gap: 8px; flex-wrap: wrap; }
.rg-form input {
  flex: 1 1 240px;
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
}
.rg-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.rg-form button {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 9px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.rg-form button:hover { background: var(--accent-ink); }
.rg-form button:disabled { background: var(--ink-3); cursor: default; }
.rg-status { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; line-height: 1.5; }
.rg-status:empty { display: none; }
.rg-ok { color: var(--good-t); font-weight: 600; }
.rg-status a { color: var(--accent-ink); font-weight: 600; }

/* ---- shareable result ---- */
.run-share { margin: 4px 0 24px; }
.rs-share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rs-share-url {
  flex: 1 1 260px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--sunk);
}
.rs-share-url:focus { outline: none; border-color: var(--accent); }
.rs-share-btn {
  flex: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 9px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rs-share-btn:hover { background: var(--accent); color: #fff; }
.rs-share-btn.copied { background: var(--good); color: #fff; border-color: transparent; }

/* ---- section head shared by book + plot ---- */
.rb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rb-head h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.rb-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---- generated task book ---- */
.run-book { margin-bottom: 26px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.bk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  animation: risein 0.45s var(--ease) both;
  animation-delay: calc(var(--i) * 55ms);
}
.bk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.bk-wu { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.bk-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
.bk-prompt {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes risein { from { opacity: 0; transform: translateY(6px); } }

/* ---- live price-list plot (reuses .ledger rows) ---- */
.run-plot { margin-bottom: 24px; }
.ledger-row.pending { opacity: 0.5; }
.ledger-row.pending .lr-rank { color: var(--ink-3); }
.ledger-row.settled { animation: settlein 0.5s var(--ease); }
.ledger-row.live .lr-name { color: var(--accent-ink); }
@keyframes settlein { from { opacity: 0.5; } to { opacity: 1; } }
.lr-wait {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  animation: pulse 1.4s var(--ease) infinite;
}
.lr-none { color: var(--ink-3); font-size: 12px; }

/* ---- run log (collapsed by default) ---- */
.run-log-wrap { margin-bottom: 22px; }
.run-log-wrap > summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 0;
  list-style: none;
  user-select: none;
}
.run-log-wrap > summary::-webkit-details-marker { display: none; }
.run-log-wrap > summary::before { content: "▸ "; color: var(--line-2); }
.run-log-wrap[open] > summary::before { content: "▾ "; }
.run-feed {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  margin-top: 10px;
}
.run-feed .feed-line { animation: feedin 0.25s var(--ease); }
.run-feed .fl-cost { color: var(--accent-ink); }
.run-feed .fl-score { color: var(--good-t); font-weight: 600; }
.run-feed .fl-err { color: var(--bad); font-weight: 600; }
@keyframes feedin { from { opacity: 0; transform: translateY(3px); } }

@media (prefers-reduced-motion: reduce) {
  .rp-fill, .bk-card, .run-spec, .ledger-row.settled { animation: none; transition: none; }
  .rp-step.active .rp-dot, .lr-wait { animation: none; }
}

.waitlist {
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.waitlist-head { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.waitlist-note { font-size: 14.5px; color: var(--ink-2); max-width: 52ch; margin: 0 auto 18px; line-height: 1.5; }
.waitlist-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.waitlist-form input {
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 15px;
  width: min(320px, 70vw);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.waitlist-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.waitlist-form button {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
}
.waitlist-form button:hover { background: var(--accent-ink); }
.waitlist-pos { font-family: var(--mono); font-size: 13px; color: var(--good); margin-top: 14px; }

/* ---------------- colophon ---------------- */
.colophon { padding: 72px clamp(16px, 4vw, 36px) 48px; }
.colophon .mast-rule-bottom { display: none; }
.colophon p { font-size: 13.5px; color: var(--ink-2); max-width: 62ch; margin-bottom: 8px; line-height: 1.55; }
.colophon-fine { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.colophon a { color: var(--accent-ink); text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

/* ---------------- hero: two comparable cost dials ---------------- */
.cluster {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.pb-lead { margin-bottom: 26px; }
.pb-punch {
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.pb-punch b { font-weight: 700; }

.pb-compare {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(20px, 6vw, 64px);
  flex-wrap: wrap;
}
.pb-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 1 240px;
}
.pb-mname {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pb-gauge { display: flex; flex-direction: column; align-items: center; }
.pg-svg { display: block; overflow: visible; }
.pb-gauge-lg .pg-svg { width: 190px; }
.pb-gauge-sm .pg-svg { width: 120px; }
.pg-needle {
  transform-box: view-box;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.pg-cap { display: flex; flex-direction: column; align-items: center; margin-top: 5px; }
.pg-val { font-family: var(--mono); font-weight: 600; color: var(--ink); line-height: 1.05; letter-spacing: -0.01em; }
.pb-gauge-lg .pg-val { font-size: 25px; }
.pb-gauge-sm .pg-val { font-size: 17px; }
.pg-key {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.pb-vsbig {
  align-self: center;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  color: var(--ink-3);
}
@media (max-width: 520px) {
  .pb-compare { flex-direction: column; gap: 22px; }
  .pb-vsbig { order: 0; }
}

/* ---------------- icons ---------------- */
.icon { width: 22px; height: 22px; display: block; }
.domain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--sunk);
  color: var(--ink);
  margin-bottom: 12px;
}
.s-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.s-icon { width: 16px; height: 16px; }
.s-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pipe-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
}
.pipe-step.accent .pipe-icon {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.pipe-icon svg { width: 20px; height: 20px; }

/* ---------------- legend ---------------- */
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch {
  width: 26px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--good), var(--mid), var(--bad));
}
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.q-good { background: var(--good); }
.legend-shift { font-family: var(--mono); font-size: 10px; letter-spacing: -1px; color: var(--ink-3); }

/* ---------------- leaderboard power-on ---------------- */
.ledger--entering .lr-bar-fill {
  transform-origin: left center;
  animation: barPowerOn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes barPowerOn {
  from { transform: scaleX(0.02); opacity: 0.35; }
  to { transform: scaleX(1); opacity: 1; }
}
.ledger--entering .lr-price,
.ledger--entering .lr-quality {
  animation: readoutIn 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 35ms + 120ms);
}
@keyframes readoutIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- responsive ---------------- */
@media (max-width: 720px) {
  :root { --ledger-grid: 24px 1fr 82px 56px; --ledger-gap: 10px; }
  .lr-bar, .lr-shift, .lh-shift { display: none; }
  .lh-cost { grid-column: 3 / 4; text-align: right; }
  .lh-model { display: none; }
}

/* pipeline becomes a vertical icon-left flow on narrow screens */
@media (max-width: 600px) {
  .pipeline { flex-direction: column; gap: 20px; }
  .pipe-arrow { display: none; }
  .pipe-step {
    flex: none;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    row-gap: 2px;
  }
  .pipe-icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .pipe-step strong { grid-column: 2; grid-row: 1; align-self: end; }
  .pipe-step span:last-child { grid-column: 2; grid-row: 2; align-self: start; }
}

/* ---------------- motion prefs ---------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ledger-row.flip { transition: none !important; }
}

.ledger-row.flip { transition: transform 0.5s var(--ease); }
