/* ---------- Tokens ---------- */
:root {
  --paper: #F5F6F2;
  --panel: #FFFFFF;
  --ink: #17212B;
  --muted: #56616B;
  --line: #D6DAD3;
  --cobalt: #2446D6;
  --cobalt-ink: #FFFFFF;
  --highlight: #FFE066;
  --on-highlight: #17212B;
  --fix: #9A5B00;
  --ok: #1D7A45;
  --band: #17212B;
  --band-ink: #F5F6F2;
  --band-muted: #B7C0C8;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 10px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11161C;
    --panel: #19212A;
    --ink: #E6EAEE;
    --muted: #9AA5AF;
    --line: #2B343E;
    --cobalt: #8EA2FF;
    --cobalt-ink: #0E1530;
    --highlight: #F2CF3D;
    --on-highlight: #17212B;
    --fix: #F0B35A;
    --ok: #6FD39A;
    --band: #19212A;
    --band-ink: #E6EAEE;
    --band-muted: #9AA5AF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11161C;
  --panel: #19212A;
  --ink: #E6EAEE;
  --muted: #9AA5AF;
  --line: #2B343E;
  --cobalt: #8EA2FF;
  --cobalt-ink: #0E1530;
  --highlight: #F2CF3D;
  --on-highlight: #17212B;
  --fix: #F0B35A;
  --ok: #6FD39A;
  --band: #19212A;
  --band-ink: #E6EAEE;
  --band-muted: #9AA5AF;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.35rem); font-weight: 750; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--cobalt); }

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

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 1120px; }
.narrow p, .narrow-col p { max-width: 75ch; }
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

.aside { color: var(--muted); font-size: 0.95rem; }
.section-lede { color: var(--muted); margin-top: 0; max-width: 75ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--cobalt); color: var(--cobalt-ink);
  font: 700 1.05rem/1 var(--font);
  text-decoration: none; border: 0; border-radius: 8px; cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 0.95rem; white-space: nowrap; flex: none; }
.btn-block { width: 100%; }
.link { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { color: var(--ink); font-weight: 800; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 64px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 {
  font-size: clamp(2.1rem, 8.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 18ch;
  text-wrap: balance;
}
.lede { font-size: 1.1rem; color: var(--muted); margin: 18px 0 20px; max-width: 58ch; }
.hero-push { list-style: none; margin: 0 0 28px; padding: 0; max-width: 52ch; display: grid; gap: 10px; }
.hero-push li {
  position: relative; padding-left: 18px;
  font-weight: 600; line-height: 1.45; color: var(--ink);
}
.hero-push li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em;
  width: 4px; border-radius: 2px; background: var(--cobalt);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-actions .btn { width: 100%; }

@media (min-width: 560px) {
  .hero-actions .btn { width: auto; }
}
@media (min-width: 920px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
}

/* ---------- Demo ---------- */
.demo { margin: 0; position: relative; }

.demo-ask {
  background: var(--ink); color: var(--paper);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 16px; margin: 0 0 14px; max-width: 34ch;
}
.demo-ask p { margin: 0; font-weight: 600; }
.demo-who { display: block; font-size: 0.8rem; opacity: 0.75; margin-bottom: 2px; }

.demo-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px 18px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(23, 33, 43, 0.45);
}
.demo-site {
  margin: 0 -18px 16px; padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted);
}
.demo-title { font-weight: 700; margin-bottom: 12px; }

.field { margin-bottom: 12px; }
.field-label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.field-box {
  display: block; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background:
    linear-gradient(var(--highlight), var(--highlight)) no-repeat left / 0% 100%,
    var(--paper);
  transition: background-size 0.45s ease, border-color 0.2s;
}
.field-val { display: block; min-height: 1.6em; color: var(--ink); font-weight: 500; }
.field.is-active .field-box {
  background-size: 100% 100%, auto;
  border-color: var(--on-highlight);
}
.field.is-active .field-val { color: var(--on-highlight); }

.demo-confirm {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 0.95rem; font-weight: 600; color: var(--ok);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.demo-confirm.is-active, .demo-confirm.is-done { opacity: 1; transform: none; }
.check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--ok); position: relative; flex: none;
}
.check::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border: solid var(--panel); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.demo-views {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.view-btn {
  border: 0; border-radius: 999px; padding: 8px 14px; min-height: 38px;
  background: transparent; color: var(--muted); cursor: pointer;
  font: 600 0.9rem/1 var(--font);
  white-space: nowrap;
}
.view-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.view-btn:not([aria-pressed="true"]):hover { color: var(--ink); }

/* Both panes sit in the same cell; the stage keeps the taller one's height. */
.demo-stage { display: grid; }
.demo-stage > * { grid-area: 1 / 1; }
.demo-stage > .is-off { visibility: hidden; }

.demo-code {
  display: flex; align-items: center;
  background: var(--band); border-radius: var(--radius); overflow: hidden;
}
.demo-code pre {
  margin: 0; padding: 18px; width: 100%; overflow-x: auto;
  color: var(--band-ink); font: 0.85rem/1.75 var(--mono);
}
.demo-code mark { background: var(--highlight); color: var(--on-highlight); padding: 0 2px; border-radius: 2px; }

.demo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }
.replay.is-off { visibility: hidden; }
.replay {
  margin-top: 8px; background: none; border: 0; padding: 4px 0;
  font: 600 0.9rem var(--font); color: var(--cobalt); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .field-box, .demo-confirm { transition: none; }
}

/* ---------- Why ---------- */
.why h2 { margin-bottom: 20px; }

/* ---------- Actions list ---------- */
.action-list { margin: 32px 0 0; }
.action-list > div {
  display: grid; gap: 2px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.action-list > div:last-child { border-bottom: 1px solid var(--line); }
.action-list dt { font-weight: 700; }
.action-list dd { margin: 0; color: var(--muted); }
@media (min-width: 720px) {
  .action-list > div { grid-template-columns: 22rem 1fr; gap: 24px; align-items: baseline; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--cobalt); color: var(--cobalt);
  font-weight: 800;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
}

/* ---------- Report ---------- */
.report-grid { display: grid; gap: 28px; }
.report-grid > div:first-child p { color: var(--muted); margin-top: 0; max-width: 60ch; }
.report-sheet {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 18px 14px;
}
.report-head, .report-row { display: grid; gap: 4px; padding: 12px 0; }
.report-head {
  font-size: 0.85rem; color: var(--muted); font-weight: 600;
  border-bottom: 2px solid var(--ink);
}
.report-head span:last-child { display: none; }
.report-row { border-bottom: 1px solid var(--line); }
.report-row span:first-child { font-weight: 600; }
.status { font-size: 0.92rem; padding-left: 18px; position: relative; }
.status::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px;
}
.status-fix { color: var(--fix); }
.status-fix::before { background: var(--fix); transform: rotate(45deg); width: 9px; height: 9px; }
.status-new { color: var(--cobalt); }
.status-new::before { border: 2px solid var(--cobalt); border-radius: 50%; }
.status-ok { color: var(--ok); }
.status-ok::before { background: var(--ok); border-radius: 50%; }
.report-note { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }

@media (min-width: 720px) {
  .report-head, .report-row { grid-template-columns: 1fr 1.2fr; gap: 16px; }
  .report-head span:last-child { display: block; }
}
@media (min-width: 920px) {
  .report-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
}

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--cobalt);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 24px; }

/* ---------- Contact ---------- */
.contact { background: var(--band); color: var(--band-ink); border-top: 0; }
.contact .aside { color: var(--band-muted); }
.contact-grid { display: grid; gap: 32px; }
.contact-intro p { color: var(--band-muted); margin-top: 16px; max-width: 60ch; }
.contact-intro h2 { color: var(--band-ink); }
@media (min-width: 920px) {
  .contact { padding: 88px 0; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
}

.contact-form, .form-done {
  background: var(--panel); color: var(--ink);
  border-radius: var(--radius); padding: 22px 18px;
}
@media (min-width: 560px) { .contact-form, .form-done { padding: 28px; } }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%; min-height: 48px; padding: 11px 12px;
  font: 1rem/1.4 var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
[aria-invalid="true"] { border-color: #C2362B !important; outline-color: #C2362B !important; }

.form-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.form-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--cobalt); }
.form-check label { font-weight: 500; margin: 0; }

.form-error {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 6px;
  background: color-mix(in srgb, #C2362B 12%, var(--panel)); color: #A3281F; font-weight: 600; font-size: 0.95rem;
}
:root[data-theme="dark"] .form-error { color: #FF9C93; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-error { color: #FF9C93; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-done p { margin: 0; color: var(--muted); }
.form-done strong { color: var(--ink); }
.form-done:focus { outline: none; }

/* ---------- Footer ---------- */
.foot { padding: 28px 0 40px; font-size: 0.88rem; color: var(--muted); }
.foot-inner { display: grid; gap: 6px; }
@media (min-width: 720px) {
  .foot-inner { grid-template-columns: auto 1fr; gap: 24px; }
  .foot-inner span:last-child { text-align: right; }
}

/* ---------- Diagrams ---------- */
.narrow-col { max-width: none; }
.why .aside { margin-top: 28px; }

.compare {
  margin: 36px 0 0;
  display: grid; gap: 20px;
}
.compare-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 12px 12px;
}
.compare-panel:last-of-type { border-color: var(--cobalt); box-shadow: inset 0 3px 0 var(--cobalt); }
.compare-title { font-size: 1.05rem; margin: 0 8px 12px; }
.compare figcaption, .edge-fig figcaption {
  font-size: 0.92rem; color: var(--muted); max-width: 62ch;
}
@media (min-width: 820px) {
  .compare { grid-template-columns: 1fr 1fr; gap: 24px; }
  .compare figcaption { grid-column: 1 / -1; }
}

.dia {
  display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto;
  color: var(--ink);
  font-family: var(--font);
}
.dia text { fill: var(--ink); font-size: 14px; }
.dia .d-lbl { fill: var(--muted); font-size: 12.5px; }
.dia .d-t { font-weight: 600; }
.dia .d-strong { font-weight: 700; font-size: 14.5px; }
.dia .d-sub { fill: var(--muted); font-size: 12.5px; }
.dia .d-mono { font-family: var(--mono); font-size: 12.5px; }
.dia .d-muted { fill: var(--muted); }

.d-edge { stroke: currentColor; stroke-width: 1.6; }
.d-dash { stroke-dasharray: 5 4; }
.d-node { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.d-tool { stroke: var(--cobalt); stroke-width: 2; }
.d-warn { stroke: var(--fix); stroke-dasharray: 5 4; }
.dia .d-warn-s { stroke: var(--fix); color: var(--fix); }
.dia .d-warn-f { fill: var(--fix); }
.d-end-bad { stroke: var(--fix); stroke-width: 2; }
.d-end-ok { stroke: var(--ok); stroke-width: 2; }
.dia .d-ok-f { fill: var(--ok); }
.d-hi { fill: var(--highlight); }
.d-hi-node { fill: var(--highlight); stroke: var(--on-highlight); }
.dia .d-on-hi { fill: var(--on-highlight); }
.d-agent { fill: var(--ink); }
.dia .d-agent-t { fill: var(--paper); font-weight: 700; }
.dia .d-agent-sub { fill: var(--paper); opacity: 0.8; font-size: 12.5px; }

/* ---------- Three ways ---------- */
.ways-grid { display: grid; gap: 36px; }
.ways-list { margin: 28px 0 0; }
.ways-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.ways-list > div:last-child { border-bottom: 1px solid var(--line); }
.ways-list dt { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.ways-list dd { margin: 0; color: var(--muted); max-width: 58ch; }
.edge-fig { margin: 0; }
.edge-fig figcaption { margin-top: 12px; }
@media (min-width: 920px) {
  .ways-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
}

/* ---------- Found ---------- */
.found h2 { margin-bottom: 20px; }

/* ---------- Collapsible sections ---------- */
section { scroll-margin-top: 64px; }
.sec-head h2 { margin: 0; max-width: none; text-wrap: wrap; }
.sec-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit;
}
.sec-toggle:focus-visible { outline-offset: 6px; }
.chev {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--line); position: relative;
  transition: border-color 0.2s, transform 0.35s ease;
}
.chev::before {
  content: ""; position: absolute; left: 50%; top: 45%;
  width: 10px; height: 10px;
  border: solid var(--cobalt); border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.sec-toggle:hover .chev { border-color: var(--cobalt); }
.collapsible.is-collapsed .chev { transform: rotate(-90deg); }

.sec-body {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s ease, margin-top 0.45s ease;
  margin-top: 24px;
}
.sec-inner { min-height: 0; overflow: hidden; padding: 6px 0; margin: -6px 0; }
.collapsible { transition: padding 0.45s ease; }
.collapsible.is-collapsed { padding: 28px 0; }
.collapsible.is-collapsed .sec-body { grid-template-rows: 0fr; margin-top: 0; }
.sec-inner { visibility: visible; transition: visibility 0s; }
.collapsible.is-collapsed .sec-inner { visibility: hidden; transition: visibility 0s 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .sec-body, .collapsible, .chev { transition: none; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cobalt); color: var(--cobalt-ink);
  border: 3px solid var(--paper);
  box-shadow: 0 10px 24px -8px rgba(23, 33, 43, 0.55);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.to-top svg { width: 28px; height: 28px; }
.to-top:hover { transform: translateY(-2px); filter: brightness(1.08); }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (min-width: 920px) {
  .to-top { right: 28px; bottom: 28px; width: 68px; height: 68px; }
  .to-top svg { width: 32px; height: 32px; }
}
.foot { padding-bottom: 96px; }

/* ---------- Support list ---------- */
.support-grid { display: grid; gap: 32px; margin-top: 28px; }
.support-group h3 { font-size: 1.05rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.support-list { list-style: none; margin: 0; padding: 0; }
.support-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.sup-name { font-weight: 700; }
.sup-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; }
.sup-tag {
  align-self: start; white-space: nowrap;
  font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  border: 1.5px solid currentColor;
}
.tag-live { color: var(--ok); }
.tag-trial { color: var(--cobalt); }
.tag-coming { color: var(--muted); border-style: dashed; }
.tag-no { color: var(--fix); }
.support-date { margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 920px) {
  .support-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
}

/* ---------- Get ahead ---------- */
.ahead { background: var(--panel); }
.ahead-inner { border-left: 4px solid var(--cobalt); padding-left: 20px; }
.ahead-inner h2 { margin-bottom: 16px; text-wrap: wrap; }
.ahead-lede { max-width: 75ch; font-size: 1.15rem; }
.ahead-timeline { margin: 28px 0; max-width: 900px; }
.ahead-timeline > div {
  display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line);
}
.ahead-timeline > div:last-child { border-bottom: 1px solid var(--line); }
.ahead-timeline dt { font-weight: 700; color: var(--cobalt); }
.ahead-timeline dd { margin: 0; color: var(--muted); }
.ahead-timeline > div:last-child dd { color: var(--ink); font-weight: 600; }
.ahead-close { font-size: 1.15rem; font-weight: 700; max-width: 75ch; }
.ahead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
@media (min-width: 720px) {
  .ahead-inner { padding-left: 32px; }
  .ahead-timeline > div { grid-template-columns: 11rem 1fr; gap: 24px; align-items: baseline; }
}
@media (max-width: 559px) { .ahead-actions .btn { width: 100%; padding: 12px 16px; line-height: 1.25; text-align: center; } }

/* ---------- More help (contact band) ---------- */
.more-help { margin: 24px 0; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--band-ink) 25%, transparent); border-radius: var(--radius); }
.more-help h3 { color: var(--band-ink); font-size: 1.15rem; margin-bottom: 8px; }
.contact-intro .more-help p { margin: 0 0 8px; }
.more-help ul { margin: 0; padding-left: 20px; color: var(--band-ink); }
.more-help li { margin: 6px 0; }

/* ---------- Interest checkboxes ---------- */
fieldset.interests { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.interests legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.form-row .check-row {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; margin: 0 0 8px; cursor: pointer;
}
.check-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--cobalt); flex: none; }

/* ---------- Industry voices ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.voices-grid { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.voice {
  margin: 0; padding: 24px 0 24px 20px; position: relative;
  border-bottom: 1px solid var(--line);
}
.voice::before {
  content: "\201C"; position: absolute; left: -4px; top: 10px;
  font: 800 2.6rem/1 var(--font); color: var(--cobalt);
}
.voice blockquote { margin: 0 0 14px; }
.voice blockquote p { margin: 0; font-size: 1.12rem; font-weight: 500; line-height: 1.5; max-width: 60ch; }
.voice figcaption { display: grid; gap: 2px; font-size: 0.92rem; }
.voice-who { font-weight: 700; }
.voice-org { color: var(--muted); }
.voice-link { margin-top: 6px; font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.voices-note { margin-top: 20px; font-size: 0.85rem; color: var(--muted); max-width: 75ch; }
@media (min-width: 820px) {
  .voices-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .voice { padding-left: 28px; }
}

/* ---------- What WebMCP can do ---------- */
.cando-grid { display: grid; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.cando-grid > div { padding: 18px 0 18px 18px; border-bottom: 1px solid var(--line); position: relative; }
.cando-grid > div::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--highlight); outline: 1.5px solid var(--on-highlight);
}
.cando-grid dt { font-weight: 700; font-size: 1.08rem; margin-bottom: 4px; }
.cando-grid dd { margin: 0; color: var(--muted); }
.cando-close { margin-top: 20px; font-weight: 600; max-width: 75ch; }
@media (min-width: 720px) { .cando-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1020px) { .cando-grid { grid-template-columns: 1fr 1fr 1fr; } }

@media (max-width: 419px) {
  .demo-views { display: flex; width: 100%; }
  .view-btn { flex: 1 1 auto; padding: 8px 10px; font-size: 0.84rem; }
}
.hero-grid > * { min-width: 0; }
.hero h1 { overflow-wrap: break-word; }
@media (max-width: 359px) { .view-btn { white-space: normal; line-height: 1.2; } .demo-views { border-radius: 14px; } .view-btn { border-radius: 10px; } }

/* ---------- Icons (Lucide, inline sprite) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 16px; height: 16px; }
.ic-box {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--cobalt) 12%, transparent);
  color: var(--cobalt);
}
.ic-inline {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 32px; height: 32px; border-radius: 8px; margin-right: 12px;
  background: color-mix(in srgb, var(--cobalt) 10%, transparent);
  color: var(--cobalt);
}
.ic-inline .ic { width: 18px; height: 18px; }
.ic-h { width: 20px; height: 20px; color: var(--cobalt); margin-right: 8px; vertical-align: -4px; }

/* demo toggle */
.view-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* can-do grid: icon replaces the small marker */
.cando-grid > div { padding-left: 0; }
.cando-grid > div::before { display: none; }

/* found paragraph */
.with-ic { display: flex; gap: 16px; align-items: flex-start; }
.with-ic .ic-box { margin: 2px 0 0; }

/* contact band */
.more-help ul { list-style: none; padding-left: 0; }
.more-help li { display: flex; gap: 10px; align-items: flex-start; }
.more-help .ic-li { width: 20px; height: 20px; margin-top: 3px; color: var(--highlight); }
.with-ic-sm { display: flex; gap: 8px; align-items: flex-start; }
.with-ic-sm .ic { margin-top: 3px; color: var(--highlight); }
.action-list dt { display: flex; align-items: center; }
@media (max-width: 399px) { .view-btn .ic { display: none; } }

/* ---------- Hero circuit background ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  color: var(--cobalt);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.35) 35%, #000 70%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.35) 35%, #000 70%);
}
@media (min-width: 920px) {
  .hero-bg {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.3) 38%, #000 62%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.3) 38%, #000 62%);
  }
}
.hero-bg .cb { display: block; width: 100%; height: 100%; }
.cb-grid-dot { fill: currentColor; opacity: 0.16; }
.cb-trace { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.28; stroke-linejoin: round; }
.cb-pin { fill: none; stroke: currentColor; stroke-width: 3; opacity: 0.4; }
.cb-via { fill: var(--paper); stroke: currentColor; stroke-width: 1.6; opacity: 0.6; }
.cb-chip { fill: var(--paper); stroke: currentColor; stroke-width: 1.6; opacity: 0.55; }
.cb-chip-in { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.3; stroke-dasharray: 3 4; }
.cb-dot { fill: currentColor; opacity: 0.4; }
.cb-label { font: 600 20px var(--mono); fill: currentColor; opacity: 0.5; letter-spacing: 0.04em; }
.cb-pulse {
  fill: none; stroke: var(--highlight); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 26 2000; stroke-dashoffset: 2026;
  animation: cb-flow 7s linear infinite;
}
@keyframes cb-flow { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cb-pulse { display: none; } }
.demo figcaption, .demo .replay { position: relative; text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 10px var(--paper); }
@media (max-width: 919px) {
  .hero-bg .cb { position: absolute; width: 1080px; height: 570px; right: -45px; top: 280px; }
}

/* ---------- Larger icons ---------- */
.ic { width: 28px; height: 28px; }
.ic-box { width: 58px; height: 58px; border-radius: 14px; margin-bottom: 14px; }
.ic-box .ic { width: 30px; height: 30px; }
.ic-inline { width: 46px; height: 46px; border-radius: 12px; margin-right: 14px; }
.ic-inline .ic { width: 26px; height: 26px; }
.ic-h { width: 26px; height: 26px; margin-right: 10px; vertical-align: -6px; }
.view-btn .ic { width: 18px; height: 18px; }
.more-help .ic-li { width: 26px; height: 26px; margin-top: 0; }
.with-ic-sm .ic { width: 22px; height: 22px; margin-top: 1px; }
.with-ic { gap: 18px; }
.foot-inner a { color: inherit; text-underline-offset: 3px; }
.ic-inline, .ic-box { flex: none; }

/* ---------- Where this is heading ---------- */
.future { margin-top: 40px; }
.future h3 { font-size: 1.2rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.future-list .sup-note { max-width: 80ch; }

/* ---------- How it works: animated checks ---------- */
.step-check {
  position: absolute; left: -2px; top: -6px; width: 40px; height: 40px;
  overflow: visible; pointer-events: none;
}
.sc-ring {
  fill: color-mix(in srgb, var(--ok) 0%, transparent);
  stroke: var(--ok); stroke-width: 2.5;
  stroke-dasharray: 107; stroke-dashoffset: 107;
  transform: rotate(-90deg); transform-origin: 20px 20px;
}
.sc-tick {
  fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24;
}
.steps li::before { transition: color 0.35s ease, border-color 0.35s ease; }

/* Only animate once JavaScript has armed the list; without it, the numbers stay. */
.steps.checks-armed .step-check { visibility: visible; }
.steps:not(.checks-armed) .step-check { visibility: hidden; }
.steps.is-checked li::before {
  color: transparent; border-color: transparent;
  transition-delay: calc(var(--i) * 0.9s + 0.35s);
}
.steps.is-checked .sc-ring {
  stroke-dashoffset: 0;
  fill: color-mix(in srgb, var(--ok) 14%, transparent);
  transition: stroke-dashoffset 0.8s ease-in-out calc(var(--i) * 0.9s),
              fill 0.5s ease calc(var(--i) * 0.9s + 0.7s);
}
.steps.is-checked .sc-tick {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s ease-out calc(var(--i) * 0.9s + 0.65s);
}
@media (prefers-reduced-motion: reduce) {
  .steps.is-checked li::before, .steps.is-checked .sc-ring, .steps.is-checked .sc-tick { transition: none; }
}

/* ---------- Glowing callout ("it's a candidate") ---------- */
.glow-callout {
  position: relative; margin-top: 28px; max-width: 820px;
  padding: 20px 24px; border-radius: 16px;
  background: var(--panel);
  border: 1.5px solid color-mix(in srgb, var(--cobalt) 55%, transparent);
  animation: glow-pulse 3.6s ease-in-out infinite;
}
.glow-callout .cando-close { margin: 0; position: relative; z-index: 1; font-size: 1.1rem; }
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--cobalt) 0%, transparent),
                0 0 12px 0 color-mix(in srgb, var(--cobalt) 18%, transparent);
  }
  50% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 14%, transparent),
                0 0 34px 6px color-mix(in srgb, var(--cobalt) 38%, transparent);
  }
}
.sparks { position: absolute; inset: 0; pointer-events: none; }
.spark {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, var(--spark) 0%, color-mix(in srgb, var(--spark) 60%, transparent) 45%, transparent 72%);
  box-shadow: 0 0 6px color-mix(in srgb, var(--spark) 70%, transparent);
  opacity: 0;
  animation: spark-float var(--t) ease-in-out var(--d) infinite;
}
@keyframes spark-float {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  25% { opacity: 0.95; }
  70% { opacity: 0.5; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .glow-callout { animation: none; box-shadow: 0 0 24px 2px color-mix(in srgb, var(--cobalt) 25%, transparent); }
  .sparks { display: none; }
}
.glow-callout { margin-bottom: 36px; }
.spark { box-shadow: 0 0 10px 2px color-mix(in srgb, var(--spark) 65%, transparent); }
/* Let the glow spill outside an open section; clip only while opening or closing. */
.collapsible:not(.is-collapsed):not(.is-animating) .sec-inner { overflow: visible; }

:root { --spark: #2446D6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --spark: #F2CF3D; } }
:root[data-theme="dark"] { --spark: #F2CF3D; }

/* ---------- "= For Your Success!" after the checks ---------- */
.steps-sum {
  margin: 40px 0 0; text-align: center;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em;
}
.sum-eq { color: var(--ok); margin-right: 6px; }
/* Hidden until the check marks finish, then it rises into place. */
.steps.checks-armed + .steps-sum { opacity: 0; transform: translateY(10px) scale(0.97); }
.steps.is-checked + .steps-sum {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease 3.9s, transform 0.7s cubic-bezier(.2,.8,.2,1) 3.9s;
}
@media (prefers-reduced-motion: reduce) {
  .steps.is-checked + .steps-sum { transition: none; }
}
.glow-callout { margin-left: auto; margin-right: auto; text-align: center; }
.glow-callout .cando-close { max-width: none; }

/* ---------- Footer with circuit-trace links ---------- */
.foot { background: var(--panel); border-top: 1px solid var(--line); padding: 56px 0 96px; color: var(--muted); }
.foot-top { display: grid; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.foot-brand .brand { font-size: 1.25rem; }
.foot-brand p { margin: 10px 0 18px; max-width: 34ch; }
.foot-nav { display: grid; gap: 32px; }
.foot-col h3 { font-size: 0.95rem; color: var(--ink); margin-bottom: 14px; }
@media (min-width: 640px) { .foot-nav { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 1020px) { .foot-top { grid-template-columns: 0.9fr 2.1fr; gap: 56px; } }

/* The list is a circuit rail; each link is a node (via) on it. */
.trace-list {
  list-style: none; margin: 0; padding: 0 0 0 4px; position: relative;
}
.trace-list::before {
  content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px;
  background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--cobalt) 45%, transparent) 0 6px, transparent 6px 10px);
}
.trace-list li { margin: 0; }
.trace-link {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 0; color: var(--ink); text-decoration: none; font-weight: 500;
}
.via {
  position: relative; z-index: 1; flex: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--cobalt);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.trace-text { position: relative; }
/* The trace that lights up under the text */
.trace-text::after {
  content: ""; position: absolute; left: -12px; right: 0; bottom: -3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--highlight) 50%, var(--cobalt));
  background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.trace-link:hover .via, .trace-link:focus-visible .via {
  background: var(--highlight); border-color: var(--highlight); transform: scale(1.25);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--highlight) 25%, transparent), 0 0 14px color-mix(in srgb, var(--highlight) 70%, transparent);
}
.trace-link:hover .trace-text::after, .trace-link:focus-visible .trace-text::after {
  transform: scaleX(1); animation: trace-flow 1.2s linear infinite;
}
.trace-link:hover, .trace-link:focus-visible { color: var(--cobalt); }
.trace-link:focus-visible { outline-offset: 4px; }
@keyframes trace-flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .via, .trace-text::after { transition: none; }
  .trace-link:hover .trace-text::after, .trace-link:focus-visible .trace-text::after { animation: none; }
}
.foot .foot-inner { font-size: 0.88rem; }
