/* Marketing site. Fonts already on the visitor's device, no external
   requests. The palette is the operator console's, so the site and the
   product look like one thing; the stage colours (held, trial, live,
   blocked) mean the same here as there and are the only accents. */

:root {
  --paper: #121722;
  --sheet: #1a2030;
  --raise: #222a3c;
  --ink: #e8eaf0;
  --ink-2: #b4bac8;
  --ink-3: #8e96a8;
  --rule: #2a3243;
  --rule-strong: #414b62;
  --held: #a898ff;
  --trial: #f2c230;
  --live: #5cc08a;
  --blocked: #f07167;
  --focus: #7aa2ff;
  --wash-live: #1b2c27;
  --wash-trial: #2c2a1f;
  --on-ink: #121722;
  /* Chart series: validated categorical pair (dataviz palette slots 1-2). */
  --series-a: #3987e5;
  --series-b: #d95926;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 48px -24px rgba(0, 0, 0, 0.6);

  --serif: "Sitka Display", "Sitka Heading", Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --serif-text: "Sitka Text", Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --measure: 66ch;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --space-section: clamp(64px, 9vw, 116px);
  --radius: 10px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --paper: #f3f5f0;
  --sheet: #ffffff;
  --raise: #f7f8f5;
  --ink: #1c2333;
  --ink-2: #485166;
  --ink-3: #5d6578;
  --rule: #d9ddd3;
  --rule-strong: #b9bfb2;
  --held: #5848b5;
  --trial: #8a6a00;
  --live: #2c7a4b;
  --blocked: #b3261e;
  --focus: #2a5bd7;
  --wash-live: #e6f3eb;
  --wash-trial: #fbf3d9;
  --on-ink: #ffffff;
  --series-a: #2a78d6;
  --series-b: #eb6834;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 24px 48px -28px rgba(28, 35, 51, 0.25);
  color-scheme: light;
}

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.012em; }
h1 { font-size: clamp(2.5rem, 1.55rem + 3.9vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.8rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.35; font-family: var(--sans); letter-spacing: -0.005em; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ------------------------------------------------------------ header */

.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font: 600 1.3rem/1 var(--serif); letter-spacing: -0.01em; }
.mark { width: 44px; height: auto; }
.mark-line { stroke: var(--ink-3); stroke-width: 1.6; }
.mark-node { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.6; }
.mark-live { fill: var(--live); }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 0.97rem; padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  background: none; border: 1px solid var(--rule-strong); color: var(--ink-2);
  border-radius: 999px; min-height: 38px; padding: 0 14px; font: 500 0.88rem/1 var(--sans); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .js .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; min-height: 40px; padding: 0 16px;
    background: none; color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 999px;
    font: 600 0.92rem/1 var(--sans); cursor: pointer;
  }
  .header-row { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 20px; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--ink); font-weight: 600; }
  .nav-actions { justify-content: space-between; }
}

/* ------------------------------------------------------------ sections */

.section { padding-block: var(--space-section); }
.section + .section, .hero + .section { border-top: 1px solid var(--rule); }
h2 + p, h2 + .lede { margin-top: 20px; }
h2 + ul { margin-top: 24px; }
.lede + p { margin-top: 18px; }
.lede + ul, p + .checks { margin-top: 24px; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 18px; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 24px; }

/* ------------------------------------------------------------ home hero */

.hero { padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: 0.92rem; color: var(--ink-3); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero h1 { max-width: 16ch; } }

/* The journey: one correction's path through the gates. */
.journey {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px;
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow);
}
.journey-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.journey-head h2 { font: 600 0.95rem/1.3 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.journey-replay {
  background: none; border: 0; color: var(--ink-3); font: 500 0.88rem var(--sans); cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.18em; padding: 4px 0;
}
.journey-replay:hover { color: var(--ink); }
.journey-replay[hidden] { display: none; }
.journey-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.journey-item:first-of-type { border-top: 0; padding-top: 0; }
.journey-label { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 6px; }
.journey-quote { font: 400 1.08rem/1.5 var(--serif-text); color: var(--ink); }
.journey-rule { font-size: 0.98rem; line-height: 1.55; color: var(--ink); }
.journey-rule b { font-weight: 600; color: var(--ink-2); }
.journey-status { margin-top: 18px; min-height: 3.3em; font-size: 0.96rem; line-height: 1.55; color: var(--ink-2); }
.journey-status strong { color: var(--ink); font-weight: 600; }

/* The gate track (shared with the console). */
.track { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 22px; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.track li::before {
  content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px;
  background: var(--rule-strong); z-index: 0;
}
.track li:first-child::before { display: none; }
.track .node {
  position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sheet); border: 2px solid var(--rule-strong);
  transition: background-color 300ms ease, border-color 300ms ease, transform 300ms ease;
}
.track .label { font-size: 0.82rem; line-height: 1.25; color: var(--ink-3); transition: color 300ms ease; }
.track li.done::before { background: var(--ink-3); }
.track li.done .node { background: var(--ink-3); border-color: var(--ink-3); }
.track li.done .label { color: var(--ink-2); }
.track li.current .node { border-color: var(--ink); background: var(--sheet); transform: scale(1.15); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 14%, transparent); }
.track li.current .label { color: var(--ink); font-weight: 600; }
.track li.current.trial .node { border-color: var(--trial); box-shadow: 0 0 0 5px color-mix(in srgb, var(--trial) 22%, transparent); }
.track li.current.live .node { border-color: var(--live); background: var(--live); box-shadow: 0 0 0 5px color-mix(in srgb, var(--live) 22%, transparent); }
.track li.current.live::before, .track li.done.live::before { background: var(--ink-3); }

/* ------------------------------------------------------------ the five gates (stage list) */

.gates { list-style: none; counter-reset: gate; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.gates > li { position: relative; padding: 46px 22px 0 0; }
.gates > li::before {
  content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--rule-strong);
}
.gates > li:last-child::before { right: auto; width: 20px; }
.gates > li::after {
  content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-3);
}
.gates > li.gate-trial::after { border-color: var(--trial); }
.gates > li.gate-live::after { border-color: var(--live); background: var(--live); }
.gates h3 { font-size: 1.12rem; }
.gates p { margin-top: 10px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; }
@media (max-width: 960px) {
  .gates { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gates > li { padding: 0 0 0 44px; }
  .gates > li::before { top: 24px; bottom: -32px; left: 9px; right: auto; width: 2px; height: auto; }
  .gates > li:last-child::before { display: none; }
}

/* ------------------------------------------------------------ comparison table */

.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare caption { text-align: left; color: var(--ink-3); font-size: 0.9rem; padding-bottom: 12px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; font-size: 0.9rem; color: var(--ink-3); font-weight: 600; padding-top: 0; }
.compare tbody th { font-weight: 600; width: 28%; color: var(--ink); }
.compare td { color: var(--ink-2); }
.compare td.with { color: var(--ink); }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: block; border-top: 1px solid var(--rule); padding-block: 12px; }
  .compare th, .compare td { display: block; border: 0; padding: 4px 0; width: auto; }
  .compare tbody th { width: auto; }
  .compare td::before { content: attr(data-col) ": "; color: var(--ink-3); }
}

/* ------------------------------------------------------------ facts, lists */

.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 64px); }
.facts h3 { margin-bottom: 8px; }
.facts p { color: var(--ink-2); }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }

.checks { list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--ink-3);
}
.checks li strong { color: var(--ink); font-weight: 600; }

.numbers { list-style: none; display: grid; gap: 22px; margin-top: 32px; }
.numbers-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
@media (max-width: 860px) { .numbers-row { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.numbers li { padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.numbers strong { display: block; font: 600 1.6rem/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }

/* ------------------------------------------------------------ chart */

.chart { margin: 8px 0 0; max-width: 940px; }
.chart figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--ink-3); max-width: 70ch; }
.chart-box { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart .axis text, .chart .tick { fill: var(--ink-3); font: 12px var(--sans); }
.chart .series-a { fill: none; stroke: var(--series-a); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-b { fill: none; stroke: var(--series-b); stroke-width: 2; stroke-dasharray: 6 5; stroke-linejoin: round; }
.chart .dot-a { fill: var(--series-a); stroke: var(--sheet); stroke-width: 2; }
.chart .dot-b { fill: var(--series-b); stroke: var(--sheet); stroke-width: 2; }
.chart .event line { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .event text { fill: var(--ink-3); font: 11.5px var(--sans); }
.chart .direct { font: 600 12.5px var(--sans); fill: var(--ink); }
.chart .crosshair { stroke: var(--ink-3); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin-bottom: 14px; font-size: 0.9rem; color: var(--ink-2); }
.chart-legend li { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend .swatch { width: 22px; height: 0; border-top: 2.5px solid var(--series-a); }
.chart-legend .swatch.b { border-top: 2px dashed var(--series-b); }
.chart-tip {
  position: absolute; pointer-events: none; min-width: 168px; padding: 10px 12px;
  background: var(--raise); border: 1px solid var(--rule-strong); border-radius: 8px;
  font-size: 0.86rem; line-height: 1.45; color: var(--ink); box-shadow: var(--shadow);
}
.chart-tip[hidden] { display: none; }
.chart-tip b { display: block; margin-bottom: 4px; }
.chart-tip .row { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.chart-tip .row span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.data-table { margin-top: 18px; }
.data-table summary { cursor: pointer; color: var(--ink-2); font-size: 0.92rem; }
.data-table table { margin-top: 12px; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 6px 18px 6px 0; border-top: 1px solid var(--rule); text-align: left; }

/* ------------------------------------------------------------ code */

.code {
  position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius);
  margin: 0;
}
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 0.88rem; line-height: 1.65; color: var(--ink); }
.code .code-label { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 22px; border-bottom: 1px solid var(--rule); font-size: 0.85rem; color: var(--ink-3); }
.copy-btn { background: none; border: 1px solid var(--rule-strong); color: var(--ink-2); border-radius: 6px; padding: 4px 10px; font: 500 0.8rem var(--sans); cursor: pointer; }
.copy-btn:hover { color: var(--ink); }
.code .c { color: var(--ink-3); }
.code .h { color: var(--live); }

/* ------------------------------------------------------------ console mock-ups */

.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.panel-title { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 14px; }
.panel .rule-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); padding-block: 16px; border-top: 1px solid var(--rule); }
.panel .rule-row:first-of-type { border-top: 0; padding-top: 0; }
.rule-text { font: 400 1.02rem/1.5 var(--serif-text); }
.rule-meta { font-size: 0.88rem; color: var(--ink-3); }
.status { display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-2); }
.status.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 50%, transparent); background: var(--wash-live); }
.status.trial { color: var(--trial); border-color: color-mix(in srgb, var(--trial) 50%, transparent); background: var(--wash-trial); }
.status.held { color: var(--held); border-color: color-mix(in srgb, var(--held) 50%, transparent); }
.status.blocked { color: var(--blocked); border-color: color-mix(in srgb, var(--blocked) 50%, transparent); }
.versions { list-style: none; }
.versions li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--rule); font-size: 0.93rem; }
.versions li:first-child { border-top: 0; padding-top: 0; }
.versions .vid { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); }
.versions .what { color: var(--ink-2); }
.versions .act { font-size: 0.85rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.18em; }

/* ------------------------------------------------------------ prose (notes, legal) */

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem); margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--rule-strong); color: var(--ink-2); font-family: var(--serif-text); font-size: 1.08rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--rule); }
.prose th { font-weight: 600; }
.article { padding-block: clamp(56px, 8vw, 104px) var(--space-section); }
.article-head { max-width: var(--measure); margin-bottom: 48px; }
.article-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); margin-top: 12px; }
.article-head .lede { margin-top: 20px; }
.article-head .muted { margin-top: 16px; font-size: 0.92rem; }
.article-back a { color: var(--ink-3); font-size: 0.92rem; }
.draft-note { display: inline-block; margin-bottom: 28px; padding: 6px 12px; border-radius: 6px; background: var(--wash-trial); color: var(--trial); font-size: 0.88rem; font-weight: 600; }
.legal { padding-bottom: var(--space-section); }

.notes-list { list-style: none; max-width: var(--measure); }
.notes-list li { padding-block: 26px; border-top: 1px solid var(--rule); }
.notes-list a { font: 600 1.45rem/1.3 var(--serif); text-decoration: none; }
.notes-list a:hover { text-decoration: underline; }
.notes-list time { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--ink-3); }
.notes-list p { margin-top: 10px; color: var(--ink-2); }

/* ------------------------------------------------------------ faq */

.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.5rem/1 var(--sans); color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 22px; color: var(--ink-2); max-width: 72ch; }

/* ------------------------------------------------------------ timeline (pilot) */

.timeline { list-style: none; display: grid; gap: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 24px; padding-block: 20px; border-top: 1px solid var(--rule); }
.timeline .when { color: var(--ink-3); font-size: 0.92rem; padding-top: 2px; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--ink-2); }
@media (max-width: 640px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ------------------------------------------------------------ forms */

.form { display: grid; gap: 22px; max-width: 680px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: 0.97rem; }
.field .hint { font-size: 0.88rem; color: var(--ink-3); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--ink-3);
  background: var(--sheet); color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.form .row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 640px) { .form .row-2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-2); font-size: 0.95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.form-status { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink-2); }
.form-status[hidden] { display: none; }
.form-status.error { border-color: color-mix(in srgb, var(--blocked) 60%, transparent); color: var(--ink); }
.field-error { color: var(--blocked); font-size: 0.88rem; }
.field-error[hidden] { display: none; }

/* ------------------------------------------------------------ cta band */

.cta-band { border-top: 1px solid var(--rule); background: var(--sheet); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 7vw, 88px); }
.cta-inner h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.cta-inner p { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--rule); padding-block: 56px 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--ink-3); max-width: 30ch; }
.site-footer h2 { font: 600 0.92rem/1.3 var(--sans); letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer nav a { color: var(--ink-3); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.88rem; }
.preview-flag { color: var(--trial); font-weight: 600; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ misc */

.scroll-x { overflow-x: auto; }
.outcomes tbody th { width: 40%; font-weight: 500; }
.steps { list-style: none; counter-reset: step; display: grid; gap: clamp(40px, 6vw, 64px); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.steps h3 { font-size: 1.3rem; }
.steps h3::before { content: counter(step) ". "; color: var(--ink-3); }
.steps p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 900px) { .steps > li { grid-template-columns: minmax(0, 1fr); } }
.api { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.api th, .api td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--rule); }
.api thead th { border-top: 0; color: var(--ink-3); font-size: 0.88rem; font-weight: 600; }
.api code { color: var(--ink); white-space: nowrap; }
.api td:nth-child(2) { color: var(--ink-3); white-space: nowrap; }
.api td:last-child { color: var(--ink-2); }

.kicker-link { display: inline-block; margin-top: 28px; font-weight: 600; }
.note-box { padding: 18px 20px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--rule); color: var(--ink-2); font-size: 0.95rem; }
.note-box strong { color: var(--ink); }
.not-found { padding-block: clamp(80px, 12vw, 160px); }
.not-found ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.brand-swatches { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.brand-swatches li { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; font-size: 0.85rem; }
.brand-swatches .chip { height: 64px; }
.brand-swatches .meta { padding: 10px 12px; color: var(--ink-2); }
.chip-paper { background: #121722; } .chip-sheet { background: #1a2030; } .chip-ink { background: #e8eaf0; }
.chip-held { background: #a898ff; } .chip-trial { background: #f2c230; } .chip-live { background: #5cc08a; } .chip-blocked { background: #f07167; }

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

@media print {
  .site-header, .site-footer, .cta-band, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}
