/* Backstop product site. Palette comes from the repo's existing UI (race.css):
   paper #f4f2eb, white #fffefa, ink #262821, muted #67695e, rule #d0d0c4,
   accent #a3432c. Only neutral shades are added. One light theme for the whole
   page: every section sits on the same paper and one dot field (ui/dots.js). */
:root {
  --paper: #f4f2eb;
  --white: #fffefa;
  --ink: #262821;
  --muted: #67695e;
  --rule: #d0d0c4;
  --accent: #a3432c;
  --accent-light: #e8aa8b;
  /* Added neutrals */
  --paper-2: #ebe8de;
  --card-line: #e1dfd4;
  --soft: #f7f6f1;
  --cream: #fffefa;
  --on-accent: #fffefa;
  --accent-deep: #8a3622;
  --accent-wash: rgba(163, 67, 44, 0.08);
  --accent-glow: rgba(163, 67, 44, 0.16);
  --accent-line: rgba(163, 67, 44, 0.45);
  --chip-line: #c9cabe;
  --connector: #a9ac9e;
  --faint: #a3a598;
  --ink-hover: #3a3d33;
  --bar: #b9bbaf;
  /* The page-wide dot field (ui/dots.js reads these) */
  --dot-base: rgba(38, 40, 33, 0.17);
  --dot-accent: #a3432c;
  /* Type and shape */
  --sans: Inter, "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-lg: 16px;
  --gutter: clamp(20px, 4vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.mono, code, pre { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.wrap { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* One background for the whole page: the dot field stays fixed behind every
   section, and no section paints its own fill or divider over it. */
.page-dots { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }
main > section, main > .race-section { background: transparent; border-top: 0; }

/* Shared type */
.label { font: 600 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
h1 { font-weight: 650; font-size: clamp(50px, min(8.6vw, 13vh), 156px); line-height: 0.92; letter-spacing: -0.055em; }
h2 { font-weight: 650; font-size: clamp(40px, 5.6vw, 100px); line-height: 0.95; letter-spacing: -0.05em; margin-top: 16px; text-wrap: balance; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: end; }
.section-intro { font-size: clamp(16px, 1.2vw, 19px); color: var(--muted); max-width: 46ch; }
section { position: relative; padding-block: clamp(80px, 9vw, 150px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: rgba(255, 254, 250, 0.6); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); border: 0; padding: 13px 22px; }
.btn-dark:hover { background: var(--ink-hover); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(244, 242, 235, 0.86); color: var(--ink); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 22px; height: 22px; color: var(--accent); }
.nav-links { display: flex; gap: 24px; margin-left: 20px; font-size: 15px; color: var(--muted); }
.nav-links a, .nav-github { text-decoration: none; }
.nav-links a:hover, .nav-github:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; color: var(--muted); }

/* Hero */
.hero { min-height: min(calc(100svh - 64px), 980px); display: flex; align-items: center; padding-block: clamp(56px, 9vh, 110px) clamp(64px, 10vh, 120px); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 12ch; margin-top: 26px; }
.h1-line { display: block; }
.hero-sub { margin-top: 34px; max-width: 40ch; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.45; color: #45473e; }
.hero-proof { margin-top: 30px; }
.proof-list { display: flex; flex-wrap: wrap; row-gap: 10px; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.3; }
.proof-list > div { display: flex; align-items: baseline; gap: 7px; padding: 0 20px; border-left: 1px solid var(--rule); }
.proof-list > div:first-child { padding-left: 0; border-left: 0; }
.proof-list dt { color: var(--ink); }
.proof-list dd { order: -1; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof-note { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 72ch; }
.proof-note a { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero-engines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; font: 13px/1 var(--mono); color: var(--muted); }
.hero-engines li { padding: 8px 12px; border: 1px solid var(--card-line); border-radius: 999px; background: rgba(255, 254, 250, 0.75); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

/* Shared chips */
.engine-tag { font: 12px/1 var(--mono); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--soft); color: var(--ink); }

/* Verdict chips: the word first, color as the second cue. One accent for the approving verdict. */
.verdict { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--chip-line); color: var(--ink); background: var(--white); white-space: nowrap; }
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.verdict-hit { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.verdict-hit::before { background: currentColor; }
.verdict-not-found { border-color: var(--accent); color: var(--accent); }
.verdict-wrong-entity, .verdict-stale, .verdict-shallow, .verdict-dead { background: var(--paper-2); border-color: var(--paper-2); }
.verdict-wrong-entity::before { border-radius: 2px; transform: rotate(45deg); }
.verdict-dead::before { border-style: dotted; }
.verdict-stale::before { border-radius: 2px; }

/* How it works: one search, left to right */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4.5vw, 84px); margin-top: clamp(40px, 5vw, 72px); padding-top: 56px; padding-bottom: 24px; align-items: start; }
.flow-lines { position: absolute; top: 0; left: 0; width: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.col-label { font: 600 11.5px/1.4 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fcard { position: relative; background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 0 rgba(38, 40, 33, 0.03), 0 10px 30px rgba(38, 40, 33, 0.05); font-size: 15px; }
.fcard p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.fcard .fcard-lead { margin: 0 0 12px; color: var(--ink); font-size: 14.5px; font-weight: 550; }
.fcode { display: inline-block; font-size: 14px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cascade { display: grid; gap: 10px; counter-reset: cascade; }
.cascade li { display: grid; gap: 2px; padding-left: 30px; position: relative; font-size: 14px; color: var(--muted); counter-increment: cascade; }
.cascade li::before { content: counter(cascade); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink); color: var(--ink); font: 650 11px/1 var(--sans); }
.cascade strong { color: var(--ink); font-weight: 650; }
.verdict-row { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--card-line); }
.rescue-list { display: grid; gap: 12px; }
.rescue-list > li { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.rescue-list strong { color: var(--ink); font-weight: 650; }
.chain { align-items: center; margin-top: 6px; }
.rescue-cap { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--card-line); font-size: 14px; color: var(--ink); font-weight: 550; }
.chain-then, .chain-after { font-size: 12px; color: var(--muted); }
.chain-break { flex-basis: 100%; height: 0; }
.outcome { display: grid; gap: 4px; }
.outcome span:last-child { font-size: 14px; color: var(--muted); }
.outcome-title { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.outcome-ok { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-wash); }
.outcome-ok .outcome-title::before { content: "\2713"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.outcome-nf .outcome-title::before { content: "\2205"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 12px; }
.conn { fill: none; stroke: var(--connector); stroke-width: 1.3; }
.conn-hit { stroke: var(--accent); stroke-width: 1.5; }
.conn-arrow { fill: var(--connector); }
.conn-arrow-hit { fill: var(--accent); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 72px; }
.strip-card { background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 22px 22px 24px; }
.strip-card .label { color: var(--ink); }
.strip-card p:last-child { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Results */
.results-status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--card-line); }
.results-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.results-status.is-pending::before { background: transparent; border: 1.5px solid var(--muted); }
.results-intro { display: grid; gap: 18px; justify-items: start; }
.headline-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.headline-tile { background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 24px 24px 22px; }
.tile-value { font-size: clamp(34px, 3.2vw, 56px); font-weight: 650; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.headline-tile.is-pending .tile-value { color: var(--faint); font-size: clamp(26px, 2.4vw, 40px); }
.tile-label { margin-top: 14px; font-weight: 600; }
.tile-detail { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Benchmark: one row per setup, one zero-based bar per metric. */
.bench { margin-top: 18px; background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 24px 28px 22px; }
.bench-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.bench-title { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.bench-scale { font-size: 13px; color: var(--muted); }
.bench-table { width: 100%; margin-top: 18px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.bench-table th, .bench-table td { text-align: left; padding: 16px 14px; border-top: 1px solid var(--card-line); vertical-align: middle; }
.bench-table thead th { border-top: 0; padding-block: 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); vertical-align: bottom; }
.bench-table thead th span { display: block; font-weight: 400; color: var(--muted); }
.bench-table .col-setup { width: 21%; }
.bench-table tbody th { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.bench-table tbody th span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.bench-table tr.is-ours > * { background: var(--accent-wash); }
.bench-table tr.is-ours th { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.metric { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); align-items: center; gap: 12px; }
.metric-value { font-size: 17px; font-weight: 600; white-space: nowrap; }
.is-ours .metric-value { color: var(--accent); }
.metric-bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.metric-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--bar); }
.is-ours .metric-bar > span { background: var(--accent); }
.bench-foot { margin-top: 14px; font-size: 13px; color: var(--muted); max-width: 110ch; }

/* Findings: an editorial list with hairline rules, not cards. */
.findings { margin-top: clamp(56px, 6vw, 96px); }
.finding-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 4vw, 72px); }
.finding { border-top: 1px solid var(--ink); padding-top: 16px; }
.finding-label { font-size: 15px; font-weight: 650; color: var(--accent); }
.finding-text { margin-top: 10px; font-size: 17px; line-height: 1.6; max-width: 62ch; }
.findings-note { margin-top: 28px; font-size: 13px; color: var(--muted); max-width: 90ch; }
.pending-box { padding: 40px 20px; text-align: center; color: var(--faint); font-weight: 600; border: 1px dashed var(--rule); border-radius: var(--radius); }

/* Developers */
.code-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 56px; }
.code-card { background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; }
.code-card-wide { grid-column: 1 / -1; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--card-line); font: 600 12px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.copy { border: 1px solid var(--card-line); background: transparent; color: var(--ink); border-radius: 999px; padding: 5px 12px; font: 600 12px/1.2 var(--sans); letter-spacing: 0.04em; text-transform: none; }
.copy:hover { border-color: var(--ink); }
.code-card pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-size: 14px; line-height: 1.65; color: var(--ink); }
.line { display: inline-block; width: 100%; }
.line.del { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--accent-line); }
.line.del::before { content: "- "; color: var(--faint); }
.line.add { color: var(--accent); }
.line.add::before { content: "+ "; }
.dev-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 32px; font-size: 16px; }
.dev-links a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.dev-links a:hover { border-color: var(--accent); }

/* Footer */
.footer { padding-block: 56px 64px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; color: var(--muted); font-size: 15px; }
.footer-mark { font-weight: 700; font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.05em; color: var(--ink); }
.footer-note { margin-top: 4px; font-size: 14px; color: var(--muted); }
.footer a { text-decoration: none; color: var(--ink); }

/* Live race (the race view, now a section). No background or divider of its own: the page shows through. */
.race-section { --r-bg: var(--paper); --r-card: var(--white); --r-ink: var(--ink); --r-muted: var(--muted); --r-line: var(--card-line); --r-chip: var(--soft); --r-accent: var(--accent); --r-input: var(--white);
  --r-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2367695e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color: var(--r-ink); }
.race-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 48px; }
.race-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mode-toggle { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; border: 1px solid var(--r-line); background: var(--r-card); }
.mode-toggle button { border: 0; background: transparent; color: var(--r-muted); padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.mode-toggle button[aria-pressed="true"] { background: var(--r-ink); color: var(--r-bg); }
.mode-toggle button:disabled:not([aria-pressed="true"]) { opacity: 0.45; }
.race-badge.is-live { color: var(--r-accent); background: var(--accent-wash); }
.race-badge.is-live::before { animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.3; } }
#replay-controls { margin-top: 18px; }
.race-input { display: flex; flex: 1 1 420px; gap: 10px; align-items: flex-end; min-width: 0; }
.race-error { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--r-accent); }
.example-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.example-chip { border: 1px solid var(--r-line); background: var(--r-card); color: var(--r-ink); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; text-align: left; }
.example-chip:hover:not(:disabled) { border-color: var(--r-accent); color: var(--r-accent); }
.versus { font-size: 13px; line-height: 1; color: var(--r-muted); }
.grade-note { margin-top: 8px; font-size: 12px; color: var(--r-muted); }
.watch-recorded { margin-top: 10px; }
.race-recording { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 14px; color: var(--r-muted); }
.race-recording label { font-weight: 600; color: var(--r-ink); }
/* Native arrows sit at the far edge of a select sized to its longest option; draw one 12px in and size to the choice. */
.race-section select { appearance: none; -webkit-appearance: none; field-sizing: content; font: inherit; font-size: 14px; line-height: 1.3; color: var(--r-ink); background: var(--r-input) var(--r-chevron) no-repeat right 13px center / 10px 6px; border: 1px solid var(--r-line); border-radius: 999px; padding: 8px 32px 8px 14px; max-width: 100%; min-width: 0; cursor: pointer; }
.race-section select:hover:not(:disabled) { border-color: var(--r-muted); }
.race-section select:disabled { opacity: 0.6; cursor: default; }
.race-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 650; font-size: 13px; color: var(--r-accent); border: 1px solid currentColor; white-space: nowrap; }
.race-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.race-badge.is-sample { color: var(--r-muted); }
.race-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-button { border: 1px solid var(--r-line); background: var(--r-card); color: var(--r-ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 550; }
.chip-button:hover:not(:disabled) { border-color: var(--r-muted); }
.chip-button-strong { background: var(--r-ink); color: var(--r-bg); border-color: var(--r-ink); }
.race-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; padding: 10px; border: 1px solid var(--r-line); border-radius: var(--radius-lg); background: var(--r-card); }
/* The question wraps and grows to its full length (race.js sets the height); Enter still runs the race. */
.race-form textarea { flex: 1 1 auto; min-width: 0; display: block; border: 0; background: transparent; font: inherit; color: var(--r-ink); font-size: clamp(17px, 1.4vw, 21px); font-weight: 550; line-height: 1.35; padding: 10px 12px; resize: none; overflow: hidden; overflow-wrap: anywhere; }
.race-form textarea:focus-visible { outline-offset: 0; }
@media (max-width: 680px) {
  .race-input { flex-wrap: wrap; }
  .race-input textarea { flex-basis: 100%; }
  .race-input .btn { margin-left: auto; }
}
.setup-pickers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; line-height: 1; color: var(--r-muted); }
.setup-pickers label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.race-note, .race-message { margin-top: 12px; font-size: 14px; color: var(--r-muted); }
.race-honest { margin-top: 16px; font-size: 14px; color: var(--r-muted); max-width: 72ch; }
.live-off { color: var(--r-ink); }
.replay-meta { margin-top: 8px; font-size: 13px; color: var(--r-muted); }
.race-summary { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--r-accent); background: var(--r-card); border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; font-weight: 550; line-height: 1.5; max-width: 80ch; font-variant-numeric: tabular-nums; }
.race-credentials { margin-top: 14px; display: grid; gap: 6px; max-width: 520px; font-size: 14px; }
.race-credentials input { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--r-line); background: var(--r-input); color: var(--r-ink); }
.race-credentials p { color: var(--r-muted); font-size: 13px; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.race-column { min-width: 0; background: var(--r-card); border: 1px solid var(--r-line); border-top: 3px solid var(--r-line); border-radius: var(--radius-lg); padding: 20px 22px 16px; }
.race-column.ours { border-top-color: var(--r-accent); }
.column-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.column-tag { font: 600 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-muted); }
.column-name { margin-top: 4px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 650; letter-spacing: -0.03em; }
.ours .column-name, .ours .counters dd { color: var(--r-accent); }
.run-status { font: 12px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--r-line); color: var(--r-muted); white-space: nowrap; }
.counters { display: grid; grid-template-columns: 0.8fr 1.1fr 1.1fr 0.9fr; gap: 10px; margin-top: 16px; padding: 14px 0; border-block: 1px solid var(--r-line); }
.counters div { display: flex; flex-direction: column-reverse; }
.counters dd { font-size: clamp(22px, 2.2vw, 36px); font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; }
.counters dd span { font-size: 0.5em; margin-left: 2px; letter-spacing: 0; }
.counters dt { font-size: 12.5px; color: var(--r-muted); }
.steps { height: 260px; overflow-y: auto; scrollbar-width: thin; }
.steps li { padding: 12px 0; border-bottom: 1px solid var(--r-line); font-size: 14px; }
.steps .empty { border: 0; color: var(--r-muted); padding-top: 24px; }
.step-query { display: flex; gap: 10px; font-weight: 550; overflow-wrap: anywhere; }
.step-num { flex: none; font: 11px/1.9 var(--mono); color: var(--r-muted); }
.engine-choice, .rescue-action, .step-note { margin: 6px 0 0 28px; font-size: 13px; color: var(--r-muted); }
.query-rewrite { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 0 28px; font: 12.5px/1.45 var(--mono); }
.query-rewrite dt { color: var(--r-muted); }
.query-rewrite dd:first-of-type { text-decoration: line-through; text-decoration-color: var(--r-accent); color: var(--r-muted); }
.step-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 28px; }
.chip { font: 12px/1 var(--mono); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--r-line); background: var(--r-chip); }
.checker-evidence { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 0 28px; font-size: 13px; }
.evidence-label { color: var(--r-ink); }
.evidence-link { font-family: var(--mono); font-size: 12px; color: var(--r-accent); overflow-wrap: anywhere; }
.evidence-unavailable { color: var(--r-muted); }
.answer { margin-top: 4px; padding-top: 14px; min-height: 120px; }
.answer-label { font: 600 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-muted); }
.answer-text { margin-top: 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.sources { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 13px; }
.citation { display: inline-flex; align-items: center; gap: 6px; }
.citation a { color: var(--r-accent); }
.verified-citation { font-size: 11px; font-weight: 650; padding: 3px 7px; border-radius: 999px; background: var(--accent-wash); color: var(--r-accent); }
.answer-details { margin-top: 10px; font-size: 13px; color: var(--r-muted); }
.answer-details summary { cursor: pointer; }
.answer-full { margin-top: 8px; color: var(--r-ink); line-height: 1.5; overflow-wrap: anywhere; }
.session { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--r-line); font: 11px/1.5 var(--mono); color: var(--r-muted); overflow-wrap: anywhere; }

/* Projector-sized windows */
@media (min-width: 1800px) {
  body { font-size: 18px; }
}

/* Laptops and tablets */
@media (max-width: 1240px) {
  .nav-links { gap: 18px; margin-left: 8px; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .flow { grid-template-columns: 1fr; padding-top: 0; padding-bottom: 0; gap: 22px; margin-top: 32px; }
  .flow-lines { display: none; }
  .flow-col { padding-left: 22px; border-left: 1px dashed var(--rule); }
  .headline-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: 1fr; }
  .code-grid, .finding-list, .columns { grid-template-columns: 1fr; }
  .bench-table .col-setup { width: 24%; }
  .metric { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-github { display: none; }
  .nav-actions .btn { padding: 9px 14px; font-size: 14px; }
  .hero { padding-block: 80px 90px; }
  .strip, .headline-numbers { grid-template-columns: 1fr; }
  .proof-list { flex-direction: column; }
  .proof-list > div { padding: 0; border-left: 0; }
  .bench { padding: 20px 18px 18px; }
  .bench-table, .bench-table tbody, .bench-table tr, .bench-table th, .bench-table td { display: block; width: 100%; }
  .bench-table thead { display: none; }
  .bench-table tbody tr { border-top: 1px solid var(--card-line); padding: 14px 12px; }
  .bench-table tbody th, .bench-table tbody td { border-top: 0; padding: 0; }
  .bench-table tbody td { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 10px; }
  .bench-table tbody td::before { content: attr(data-label); font-size: 13px; color: var(--muted); }
  .bench-table tr.is-ours th { box-shadow: none; }
  .bench-table tr.is-ours { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-wash); }
  .bench-table tr.is-ours > * { background: transparent; }
  .metric { grid-template-columns: 4.4em minmax(0, 1fr); gap: 10px; }
  .metric-value { font-size: 15px; }
}

/* ?still=1 freezes motion for screenshots */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
