/* CoachLayer landing: static, framework-free, no external requests.
   Dark-only, premium fintech register (deep navy surfaces, periwinkle-indigo
   accent); system fonts; CSS-driven tabs/accordions so the whole page works from
   file:// with JavaScript needed only for pricing render and the calculator.
   Accent + token colors are contrast/CVD-validated as a set; change them
   together with the pins in test/brand-guard.test.ts. */

/* miroir.co dark reskin (Tom's dispatch 3605064b, 2026-09-17): neutral deep
   charcoal, crisp white, muted grey, emphasis by brightness instead of hue.
   The only remaining color is semantic (status green, warning amber) plus
   faint tints in code samples. */
:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --terminal: #0e0e10;
  --border: #242428;
  --border-strong: #38383e;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  /* #7d7d84 cleared AA on the base ground but landed at 4.25 against
     --surface-2, where the eyebrow sits at 12px bold. Lifted to the smallest
     value that clears 4.5 on every surface while staying visibly dimmer than
     --ink-2 (a 1.4x gap), so the hierarchy is unchanged. */
  --ink-3: #85858c;
  --accent: #f5f5f7;
  --accent-strong: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.08);
  --accent-ink: #0a0a0b;
  --teal: #30d158;
  --amber: #d9a441;
  --blue: #a8c7e8;
  --sand: #d6bb90;
  /* --font-inter is published by next/font in app/layout.tsx and self-hosted,
     so no request leaves the origin.

     The fallback INSIDE var() is not optional. site/docs.html loads this sheet
     as a static artifact, with no Next bundle and therefore no --font-inter. A
     bare var(--font-inter) is invalid at computed-value time when the variable
     is missing, and that kills the WHOLE declaration rather than skipping to
     the next family: the docs page fell back to the browser default serif.
     Substituting a name here keeps the declaration valid so the stack below
     can do its job. */
  --sans: var(--font-inter, "Inter"), ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  /* Vertical rhythm. One knob per movement size so sections stay in step. */
  --rhythm: 136px;
  --rhythm-tight: 88px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* The hero alone runs wider, so the opening image has room to breathe. */
.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

section { padding: var(--rhythm) 0; }
/* The nav is sticky at 72px, so an anchor jump used to park the section heading
   underneath it. Every linkable section keeps clear of the bar. */
section[id] { scroll-margin-top: 96px; }

/* Display type carries the page. Inter tightens as it grows, the way a
   large-format hardware brand sets a headline: the tracking gets visibly
   negative past ~3rem so the line reads as one object, not as words. */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.6vw, 4.35rem); font-weight: 700; letter-spacing: -0.042em; line-height: 1.03; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 700; letter-spacing: -0.034em; line-height: 1.06; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.018em; }
p { margin: 0 0 1em; }

@media (max-width: 860px) {
  section { padding: var(--rhythm-tight) 0; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

code, pre { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Set in Inter, not mono: a tracked-out monospace kicker reads as a terminal
   label, and the brand this page is aiming at is premium hardware, not a
   dev tool. Same job, quieter voice. */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.section-lead { color: var(--ink-2); max-width: 46rem; }

.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }

/* ---------- Banner + nav ---------- */

.preview-banner {
  background: var(--accent-dim);
  border-bottom: 1px solid var(--border);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-align: center;
  padding: 7px 16px;
}
.preview-banner a { color: inherit; text-decoration: underline; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
/* gap:0 is load-bearing. The brand is the text node "Coach" plus a <span>
   holding "Layer", which flex treats as two items, so any gap here printed the
   name as "Coach Layer". The byline gets its own margin instead. */
.wordmark { display: flex; align-items: baseline; gap: 0; color: var(--ink); font-weight: 750; font-size: 1.2rem; letter-spacing: -0.028em; }
.wordmark small { margin-left: 9px; }
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark .dot { color: var(--accent); }
.wordmark small { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 24px; margin: 0 auto; }
.nav-links a, .nav-links .is-soon { color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.is-soon { cursor: default; }
.is-soon .tag {
  font-family: var(--mono); font-size: 0.625rem; color: var(--ink-3);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.9875rem;
  font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn-primary { background: var(--accent-strong); color: var(--accent-ink); }
.btn-primary:hover { background: #e8e8ed; color: var(--accent-ink); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* Secondary CTA: a plain text link with a small icon (miroir.co style). */
.cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 6px;
  color: var(--ink); font-size: 0.9875rem; font-weight: 550;
}
.cta-link:hover { color: var(--accent-strong); text-decoration: none; }
.cta-link .cta-link-icon { font-size: 0.8em; transition: transform 140ms ease; }
.cta-link:hover .cta-link-icon { transform: translateX(2px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { transform: none; }
.cta-note { font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.875rem; font-family: var(--mono); }

/* ---------- Hero ---------- */

.hero { padding: 132px 0 148px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto;
  height: 90%;
  background:
    radial-gradient(42% 55% at 68% 38%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(38% 48% at 22% 18%, rgba(255, 255, 255, 0.03), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5.6fr); gap: 72px; align-items: center; position: relative; }
.hero-copy .sub { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; }
.hero-copy .sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; margin-top: 1.75rem; flex-wrap: wrap; }

/* ---------- Terminal card + tabs ---------- */

.terminal {
  background: var(--terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-size: 0.8125rem;
}
.terminal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.terminal pre {
  margin: 0; padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.6;
  color: var(--ink-2);
  /* Scrolling code used to be clipped flat against the card edge, which reads
     as broken rather than as scrollable. The mask fades the last 28px instead. */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.terminal .resp { border-top: 1px solid var(--border); }
/* The response is mostly prose (the coach's brief), so it wraps rather than
   scrolls: a sentence cut in half mid-word is the one thing the hero cannot do. */
.terminal .resp pre {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-x: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
/* Hanging indent, so a wrapped line sits inside its own key instead of falling
   back to column zero and breaking the shape of the JSON. */
.terminal .resp pre code { display: block; padding-left: 2.5ch; text-indent: -2.5ch; }
.resp-label {
  display: block; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); padding: 10px 20px 0;
}
.tok-key { color: var(--blue); }
.tok-str { color: var(--sand); }
.tok-num { color: var(--teal); }
.tok-cmd { color: var(--ink); }
.tok-dim { color: var(--ink-3); }
.terminal-caption { font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.875rem; }

/* ---------- The call band ---------- */
/* Sits directly under the hero, so it takes no top padding of its own: the
   hero's own bottom padding is the gap. The terminal runs the full container
   here, which is the point of moving it out of the hero column. */
.call-band { padding-top: 0; }
.call-head { max-width: 44rem; margin-bottom: 44px; }
.call-head h2 { margin-bottom: 0.45em; }

.tabs { position: relative; }
.tabs > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tab-bar { display: flex; gap: 2px; }
.tab-bar label {
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3);
  padding: 5px 12px; border-radius: 6px; cursor: pointer;
}
.tab-bar label:hover { color: var(--ink-2); }
.tabs .panel { display: none; }

#ht-curl:checked ~ .terminal [data-panel="curl"],
#ht-ts:checked ~ .terminal [data-panel="ts"],
#ht-swift:checked ~ .terminal [data-panel="swift"] { display: block; }
#ht-curl:checked ~ .terminal label[for="ht-curl"],
#ht-ts:checked ~ .terminal label[for="ht-ts"],
#ht-swift:checked ~ .terminal label[for="ht-swift"] { color: var(--accent); background: var(--accent-dim); }

#dd-brief:checked ~ .dd-body [data-panel="brief"],
#dd-chat:checked ~ .dd-body [data-panel="chat"],
#dd-import:checked ~ .dd-body [data-panel="import"] { display: block; }
#dd-brief:checked ~ .dd-bar label[for="dd-brief"],
#dd-chat:checked ~ .dd-bar label[for="dd-chat"],
#dd-import:checked ~ .dd-bar label[for="dd-import"] { color: var(--accent); background: var(--accent-dim); border-color: var(--accent); }

/* ---------- Credibility strip ---------- */

.strip { padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip-lead { font-size: 1.05rem; margin-bottom: 2rem; }
.strip-lead strong { color: var(--ink); }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.stat-tile .value { font-size: 1.9rem; font-weight: 650; color: var(--ink); line-height: 1.2; }
.stat-tile .label { font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; }

/* ---------- Cards / grids ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 20px;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-2); font-size: 0.9675rem; margin-bottom: 0; }
.card p em { color: var(--ink); font-style: italic; }

.endpoint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2.5rem; }
.endpoint-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 140ms ease, transform 140ms ease;
}
.endpoint-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.endpoint-card h3 { font-size: 1.02rem; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.endpoint-card p { font-size: 0.885rem; color: var(--ink-2); margin: 0; }
.chip {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; white-space: nowrap;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 2px 9px;
}
.grid-footnote { margin-top: 1.5rem; color: var(--ink-3); font-size: 0.9rem; }

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.5rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: 14px;
  background: var(--accent-dim); color: var(--accent); font-family: var(--mono); font-weight: 700;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-2); font-size: 0.935rem; margin: 0; }
.how-foot { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); margin-top: 1.75rem; }

/* ---------- Deep dives ---------- */

.dd-bar { display: flex; gap: 10px; margin: 2rem 0 1.5rem; flex-wrap: wrap; }
.dd-bar label {
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px;
  font-size: 0.875rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.dd-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.dd-panel > p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.dd-panel > p strong { color: var(--ink); }
.dd-panel.single { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }

/* ---------- Pillars & anti-positioning ---------- */

.not-rows { margin-top: 2.5rem; display: grid; gap: 0; border-top: 1px solid var(--border); }
.not-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--border); }
.not-row h3 { font-size: 1rem; margin: 0; }
.not-row p { color: var(--ink-2); font-size: 0.935rem; margin: 0; }

/* ---------- Pricing ---------- */

.tier-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 2.5rem; }
.tier-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 3px; font-size: 0.8125rem;
}
.tier-card.is-recommended { border-color: rgba(255, 255, 255, 0.4); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), var(--surface) 45%); }
.tier-card .t-badge { font-family: var(--mono); font-size: 0.625rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; min-height: 0.9em; }
.tier-card .t-name { font-weight: 700; font-size: 1rem; }
.tier-card .t-price { font-size: 1.55rem; font-weight: 650; margin: 6px 0 2px; }
.tier-card .t-price small { font-size: 0.75rem; color: var(--ink-3); font-weight: 500; }
.tier-card .t-price-eur { font-size: 0.8rem; color: var(--ink-3); margin-bottom: 2px; }
.tier-card .t-row { color: var(--ink-2); }
.tier-card .t-row strong { color: var(--ink); font-weight: 600; }
.tier-card .t-includes { color: var(--ink-3); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }

.credit-schedule { margin-top: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.credit-schedule summary {
  cursor: pointer; padding: 16px 22px; font-weight: 650; font-size: 0.9675rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.credit-schedule summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); font-size: 1.1rem; }
.credit-schedule[open] summary::after { content: "\2212"; }
.credit-schedule table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.credit-schedule td, .credit-schedule th { padding: 10px 22px; border-top: 1px solid var(--border); text-align: left; }
.credit-schedule th { color: var(--ink-3); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.credit-schedule td:last-child { font-family: var(--mono); color: var(--ink); text-align: right; white-space: nowrap; }
.credit-schedule .surcharge { color: var(--ink-3); font-size: 0.8125rem; }

.mini-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.75rem; }
.mini-case { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; font-size: 0.925rem; color: var(--ink-2); }
.mini-case strong { color: var(--ink); }
.mini-case .figure { color: var(--accent-strong); font-weight: 650; }
.pricing-smallprint { color: var(--ink-3); font-size: 0.8125rem; margin-top: 1.75rem; }

/* ---------- Calculator ---------- */

.calc {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0;
  margin-top: 2.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.calc-inputs { padding: 28px; border-right: 1px solid var(--border); }
.calc-personas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.calc-personas button {
  font-family: var(--sans); font-size: 0.8425rem; font-weight: 600; cursor: pointer;
  color: var(--ink-2); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
}
.calc-personas button.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.calc-field { margin-bottom: 18px; }
.calc-field > label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.calc-pop { display: flex; gap: 14px; align-items: center; }
.calc-pop input[type="range"] { flex: 1; accent-color: var(--accent); }
.calc-pop input[type="number"] {
  width: 110px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 8px 10px; font-family: var(--mono); font-size: 0.875rem;
}
.calc-endpoints { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.calc-endpoint { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.845rem; }
.calc-endpoint input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.calc-endpoint .ep-label { flex: 1; color: var(--ink-2); min-width: 0; }
.calc-endpoint .ep-unit { color: var(--ink-3); font-size: 0.71rem; display: block; }
.calc-endpoint input[type="number"] {
  width: 64px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 5px 8px; font-family: var(--mono); font-size: 0.8125rem;
}
.calc-endpoint.is-off .ep-label, .calc-endpoint.is-off input[type="number"] { opacity: 0.4; }

.calc-result { padding: 28px; background: var(--surface-2); display: flex; flex-direction: column; }
.calc-label { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 0.25rem; }
.calc-hero { font-size: 3.4rem; font-weight: 650; letter-spacing: -0.02em; color: var(--accent-strong); margin: 0 0 1.25rem; line-height: 1.1; }
.calc-rows { display: grid; gap: 9px; font-size: 0.9rem; margin-bottom: 1.25rem; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--border); padding-bottom: 9px; }
.calc-rows dt { color: var(--ink-2); }
.calc-rows dd { margin: 0; font-family: var(--mono); color: var(--ink); }
.calc-compare { font-size: 0.845rem; color: var(--ink-3); font-style: italic; }
.calc-notes { font-size: 0.8125rem; color: var(--amber); }
.calc-notes:empty { display: none; }
.calc-share { font-size: 0.78rem; color: var(--ink-3); margin-top: auto; font-family: var(--mono); }
[data-calc-enterprise] { font-size: 1.05rem; color: var(--ink); }
[data-calc-enterprise] strong { color: var(--accent-strong); }

/* ---------- Partners ---------- */

.partners-card {
  margin-top: 2.5rem; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--surface) 55%);
  padding: 40px;
}
.partners-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 1.5rem 0; }
.partners-cols h3 { font-size: 0.9675rem; }
.partners-cols p { color: var(--ink-2); font-size: 0.935rem; }
.commitments { border-left: 3px solid var(--border-strong); padding: 4px 0 4px 18px; color: var(--ink-2); font-size: 0.935rem; margin: 1.5rem 0; }
.commitments strong { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 2rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 4px; font-weight: 650; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .answer { padding: 0 4px 20px; color: var(--ink-2); font-size: 0.95rem; max-width: 52rem; }
.faq-item .answer code { font-size: 0.85em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

/* ---------- Final CTA / footer ---------- */

.cta-band { text-align: center; border-top: 1px solid var(--border); background: radial-gradient(50% 80% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%); }
.cta-band .sub { color: var(--ink-2); font-size: 1.1rem; }
.cta-band .hero-ctas { justify-content: center; }

footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 2.5rem; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a, .footer-grid .is-soon { color: var(--ink-2); }
.footer-line { color: var(--ink-3); border-top: 1px solid var(--border); padding-top: 24px; }
.footer-line strong { color: var(--ink-2); }

/* ---------- Preview watermark (remove at P3 go-live) ---------- */

.preview-badge {
  position: fixed; bottom: 14px; left: 14px; z-index: 60;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em;
  color: var(--amber); background: rgba(217, 164, 65, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.35); border-radius: 6px; padding: 4px 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .endpoint-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .tier-cards { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
  .dd-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  /* .hero sets its own padding, and a class beats the bare element selector
     above, so the opening screen needs its own mobile step or it keeps the
     132px desktop lead-in. */
  .hero { padding: 48px 0 72px; }
  .nav-links { display: none; }
  .cards-3, .steps, .endpoint-grid, .mini-cases, .partners-cols { grid-template-columns: 1fr; }
  .tier-cards { grid-template-columns: 1fr 1fr; }
  .not-row { grid-template-columns: 1fr; gap: 6px; }
  .calc-endpoints { grid-template-columns: 1fr; }
  .calc-hero { font-size: 2.6rem; }
}

/* ---------- Auth-aware nav (nav-auth.js sets html.is-authed) ---------- */

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-signin {
  color: var(--ink-2); font-size: 0.9375rem; font-weight: 500;
  transition: color 140ms ease; white-space: nowrap;
}
.nav-signin:hover { color: var(--ink); text-decoration: none; }
.nav-signin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html:not(.is-authed) .authed-only { display: none !important; }
html.is-authed .anon-only { display: none !important; }
.authed-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--teal); margin-right: 7px; vertical-align: 1px;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18);
}

/* ---------- Polish pass: depth + micro-interactions ---------- */

.btn { transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
.btn-primary { box-shadow: 0 8px 24px -14px rgba(255, 255, 255, 0.3); }
.btn-primary:hover { box-shadow: 0 12px 32px -14px rgba(255, 255, 255, 0.4); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:focus-visible, .nav-links a:focus-visible, .snippet-copy:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.card, .stat-tile, .step, .endpoint-card {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 42%);
}
.card, .stat-tile {
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.card:hover, .stat-tile:hover {
  border-color: var(--border-strong); transform: translateY(-2px);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.9);
}
.endpoint-card { transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
.endpoint-card:hover { box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* ===== Benchmark + comparison pages (2026-09-13) ===== */
.bench-table-wrap {
  margin-top: 2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-x: auto;
}
.bench-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.bench-table th, .bench-table td { padding: 12px 18px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.bench-table thead th { border-top: none; color: var(--ink-3); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.bench-table tbody tr { transition: background 120ms ease; }
.bench-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.bench-table tr.is-planned td { color: var(--ink-3); }
.bench-score { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--mono);
  font-size: 0.6875rem; letter-spacing: 0.06em; white-space: nowrap;
  border: 1px solid var(--border-strong); color: var(--ink-2);
}
.pill-production { border-color: rgba(48, 209, 88, 0.45); color: var(--teal); }
.pill-replay { border-color: rgba(168, 199, 232, 0.45); color: var(--blue); }
.pill-authored { border-color: rgba(214, 187, 144, 0.45); color: var(--sand); }
.pill-planned { border-color: var(--border); color: var(--ink-3); }
.bench-results { display: grid; gap: 20px; margin-top: 2rem; }
.bench-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bench-card h3 { margin: 0; }
.bench-headline { display: flex; align-items: center; gap: 12px; }
.bench-score-big { font-family: var(--mono); font-size: 1.6rem; font-weight: 650; color: var(--accent-strong); }
.bench-weak { margin-top: 1rem; border-left: 2px solid rgba(217, 164, 65, 0.5); padding-left: 16px; }
.bench-weak h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.bench-weak ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.bench-caveats { margin: 1rem 0 0; padding-left: 18px; color: var(--ink-3); font-size: 0.875rem; display: grid; gap: 6px; }
.verdict {
  margin-top: 2rem; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 24px 28px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%);
}
.verdict .eyebrow { margin-bottom: 8px; }
.verdict p { margin: 0; }
.verdict p + p { margin-top: 0.75rem; }

/* ===== Footer pages: legal / contact / status / changelog (2026-09-17) ===== */

.prose-page { padding: 72px 0 96px; }
.prose-page .updated { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); margin: 0 0 3rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; font-weight: 650; margin: 2.75rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: 0.98rem; }
.prose li { margin-bottom: 0.5rem; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }

.status-list { display: grid; gap: 0; margin-top: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
.status-row:first-child { border-top: none; }
.status-row .name { font-size: 0.95rem; color: var(--ink); }
.status-row .path { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); }
.status-ok { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.75rem; color: var(--teal); white-space: nowrap; }
.status-ok::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18); }

.log-entry { border-left: 2px solid var(--border-strong); padding: 2px 0 6px 24px; margin-top: 2.5rem; position: relative; }
.log-entry::before { content: ''; position: absolute; left: -5px; top: 8px; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.log-entry:first-of-type { margin-top: 2rem; }
.log-entry .date { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); letter-spacing: 0.04em; }
.log-entry h2 { font-size: 1.15rem; font-weight: 650; margin: 6px 0 8px; }
.log-entry p, .log-entry li { color: var(--ink-2); font-size: 0.94rem; }
.log-entry ul { padding-left: 18px; margin: 0.5em 0 0; }
.log-entry li { margin-bottom: 0.35rem; }

/* ---------- Narrow viewports: nothing scrolls the page sideways ---------- */
/* Measured at 390px: the page had a 33px horizontal scroll. Grid items default
   to min-width:auto, so a long unbreakable label pushed the stat tiles wider
   than their track, and the wide tables had no scroll container of their own. */
.stat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  /* A table scrolls inside itself rather than dragging the body with it. */
  .credit-table, .cmp-table, table { display: block; max-width: 100%; overflow-x: auto; }
  /* The nav still has to fit the brand, the Sign in link and the key CTA.
     The byline is the one thing here a phone can spare. */
  .nav-inner { gap: 12px; }
  .wordmark small { display: none; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-sm { padding: 7px 13px; font-size: 0.8125rem; }
  .nav-signin { font-size: 0.875rem; }
}

/* Same grid blowout as the stat tiles: a single-column grid still gives its
   items min-width:auto, so one long unbreakable score string in a benchmark
   card widened the whole track past the viewport. */
.bench-results { grid-template-columns: minmax(0, 1fr); }
.bench-card { min-width: 0; }
/* The headline pairs a score with a basis pill; on a narrow card the pill label
   is long enough to push the row past the viewport, so the row wraps. */
.bench-headline { flex-wrap: wrap; min-width: 0; }
.bench-headline .pill { white-space: normal; }
