/* Layout: one narrow institutional column, wide bands separated by hairlines; a registry "record" is the hero object. */
:root {
  --bg: #F4F6F7;
  --surface: #FFFFFF;
  --ink: #0D1B26;
  --muted: #586773;
  --line: #DAE1E5;
  --accent: #0F5A6B;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3EEF0;
  --signal: #B42318;
  --ok: #1F7A4D;

  --font-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 2px;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.375rem, 5.4vw, 3.75rem);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1218; --surface: #101B23; --ink: #E6ECEF; --muted: #93A2AC; --line: #213039;
    --accent: #62B4C6; --accent-ink: #052129; --accent-soft: #132B33; --signal: #F07A6E; --ok: #5CC28F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1218; --surface: #101B23; --ink: #E6ECEF; --muted: #93A2AC; --line: #213039;
  --accent: #62B4C6; --accent-ink: #052129; --accent-soft: #132B33; --signal: #F07A6E; --ok: #5CC28F;
  color-scheme: dark;
}

:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
input, select, button, textarea { font-family: inherit; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; }
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); line-height: 1.1; }
h3 { font-family: var(--font-body); font-size: var(--step-1); line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 34em; line-height: 1.55; }
.eyebrow {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-body); font-size: 0.75rem;
  color: var(--muted); font-weight: 400; letter-spacing: 0.01em;
}
.eyebrow b { font-weight: 500; color: var(--accent); }
.eyebrow::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--line); align-self: center; }
.mono { font-family: var(--font-body); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.005em; }
.brand-logo, .brand-logo img { display: block; }
.brand-logo img { height: 30px; width: auto; }
@media (max-width: 380px) { .brand-logo img { height: 24px; } }
.brand-desc {
  margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line);
  font-family: var(--font-body); font-size: 0.6875rem; line-height: 1.3; font-weight: 500;
 letter-spacing: 0.01em; color: var(--muted);
}
@media (max-width: 520px) { .brand-desc { display: none; } }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.9375rem/1 var(--font-body); text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 12px 18px; cursor: pointer; transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); filter: none; }
.nav .btn { color: var(--accent-ink); padding: 10px 14px; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Sections */
section { border-bottom: 1px solid var(--line); }
section > .wrap { padding-block: 96px; }
@media (max-width: 640px) { section > .wrap { padding-block: 64px; } }
.section-head { display: grid; gap: 14px; max-width: 40rem; margin-bottom: 48px; }

/* Hero: bold type on the left; on the right the record sits inside the flow it travels through, over slow accent waves */
.hero { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 85% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--bg); }
.hero-waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 78%; z-index: -1; pointer-events: none; }
.hero-waves .wave { animation: wave-drift 38s linear infinite; }
.hero-waves .wave-2 { animation-duration: 54s; animation-direction: reverse; }
.hero-waves .wave-3 { animation-duration: 70s; }
@keyframes wave-drift { to { transform: translateX(-1440px); } }
@media (max-width: 960px) { .hero-waves { height: 34%; } }
.hero > .wrap { padding-block: 88px 80px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
@media (max-width: 960px) { .hero > .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-block: 56px 64px; } }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 {
  font-family: var(--font-body); font-weight: 800;
  font-size: clamp(2.375rem, 5vw, 3.875rem); line-height: 0.98; letter-spacing: -0.035em;
}
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .ln > span { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { color: var(--ink); opacity: .82; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.status-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.75rem; color: var(--ink);
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: block; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero .btn { padding: 15px 22px; font-size: 1rem; }
.hero .btn-ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.hero-note { font-size: var(--step--1); color: var(--muted); max-width: 36rem; padding-left: 14px; border-left: 2px solid var(--accent); }

/* Flow diagram */
.flow { display: grid; justify-items: center; min-width: 0; --dash: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.node {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px;
  --sh: 0 1px 0 var(--line), 0 10px 24px -18px color-mix(in srgb, var(--ink) 45%, transparent); box-shadow: var(--sh);
}
.node b { display: block; font-weight: 700; font-size: 0.9375rem; line-height: 1.25; }
.node span:not(.node-ico):not(.node-step) { display: block; font-family: var(--font-body); font-size: 0.6875rem; color: var(--muted); line-height: 1.4; }
.node-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.node-step { position: absolute; top: -9px; right: 12px; font-family: var(--font-body); font-size: 0.625rem; background: var(--ink); color: var(--bg); padding: 2px 6px; border-radius: 3px; }
.node code { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--signal); }
.node-op { flex-wrap: wrap; }
.node-op > code { flex-basis: 100%; margin-top: 0; padding-left: 44px; }

/* Motion. On load everything plays once, in order, then rests as designed (static under reduced motion).
   Left: headline lines rise out of a mask, the rest follows. Right: each card arrives as the flow reaches it,
   light streaks travel the dashed links, the record's rows settle in and a sheen passes over it,
   and "excluded: true" types out on the operator. All reveals use one expo-out curve. */
.hero { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mask-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes ring { 0%, 100% { box-shadow: var(--sh); }
  30% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 16%, transparent), 0 0 32px -6px color-mix(in srgb, var(--c) 45%, transparent), var(--sh); } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes stream-y { 0% { transform: translateY(-100%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(var(--len, 34px)); opacity: 0; } }
@keyframes stream-x { 0% { transform: translateX(-100%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(var(--len, 56px)); opacity: 0; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > .status-pill { animation-delay: .05s; }
.hero-copy > h1 { animation: none; }
.hero h1 .ln > span { animation: mask-up 1.1s var(--ease) both; }
.hero h1 .ln:nth-child(1) > span { animation-delay: .12s; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .24s; }
.hero-copy > .lede { animation-delay: .45s; }
.hero-copy > .hero-actions { animation-delay: .56s; }
.hero-copy > .hero-note { animation-delay: .66s; }

/* Connectors */
.link { position: relative; overflow: hidden; }
.link-v { width: 2px; height: 34px; background: repeating-linear-gradient(to bottom, var(--dash) 0 4px, transparent 4px 9px); }
.link-split { width: 72%; height: 34px; overflow: visible; }
.link-split::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 50%; background: repeating-linear-gradient(to bottom, var(--dash) 0 4px, transparent 4px 9px); }
.link-split::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; bottom: 0; border: 2px dashed var(--dash); border-bottom: 0; border-radius: 6px 6px 0 0; }
.flow-ends { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; }
.link-h { height: 2px; overflow: visible; background: repeating-linear-gradient(to right, var(--dash) 0 4px, transparent 4px 9px); }
.link-h em { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-style: normal; font-family: var(--font-body); font-size: 0.5625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Light streaks: a short gradient comet runs the length of each link once */
.link i { position: absolute; opacity: 0; pointer-events: none; }
.link-v i { left: -1px; top: 0; width: 4px; height: 22px; border-radius: 4px; background: linear-gradient(to bottom, transparent, var(--accent)); filter: drop-shadow(0 0 6px var(--accent)); }
.link-h i { top: -1px; left: 0; width: 22px; height: 4px; border-radius: 4px; background: linear-gradient(to right, transparent, var(--accent)); filter: drop-shadow(0 0 6px var(--accent)); }
.link-split i { top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 14px var(--accent); left: calc(50% - 2px); }

/* Sequence (seconds after the diagram comes into view) */
.node-you { animation: card-in .9s var(--ease) .55s both, ring 1.4s var(--ease) 1s; --c: var(--accent); }
.link-v { transform-origin: top; animation: draw-y .5s var(--ease) 1.05s both; }
.link-v i { animation: stream-y .7s cubic-bezier(.55, 0, .45, 1) 1.25s both; }
.record { position: relative; --c: var(--accent); animation: card-in 1s var(--ease) 1.5s both, ring 1.6s var(--ease) 2.1s; }
.record::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 14%, transparent), transparent); transform: translateX(-120%); animation: sheen 1.3s cubic-bezier(.45, 0, .2, 1) 2.15s both; }
.record .row { animation: row-in .6s var(--ease) both; }
.record .row:nth-child(1) { animation-delay: 1.75s; } .record .row:nth-child(2) { animation-delay: 1.82s; }
.record .row:nth-child(3) { animation-delay: 1.89s; } .record .row:nth-child(4) { animation-delay: 1.96s; }
.record .row:nth-child(5) { animation-delay: 2.03s; } .record .row:nth-child(6) { animation-delay: 2.10s; }
.record .chip-block { display: inline-flex; animation: pop .55s var(--spring) 2.55s both; }
.link-split { animation: rise .6s var(--ease) 2.85s both; }
.link-split i:first-child { animation: split-l 1s cubic-bezier(.55, 0, .3, 1) 3s both; }
.link-split i:last-child { animation: split-r 1s cubic-bezier(.55, 0, .3, 1) 3s both; }
@keyframes split-l { 0% { opacity: 0; } 12% { opacity: 1; } 60% { left: -2px; top: calc(50% - 3px); } 90% { opacity: 1; } 100% { left: -2px; top: calc(100% - 3px); opacity: 0; } }
@keyframes split-r { 0% { opacity: 0; } 12% { opacity: 1; } 60% { left: calc(100% - 4px); top: calc(50% - 3px); } 90% { opacity: 1; } 100% { left: calc(100% - 4px); top: calc(100% - 3px); opacity: 0; } }
.flow-ends > .node:first-child { --c: var(--accent); animation: card-in .9s var(--ease) 3.75s both, ring 1.4s var(--ease) 3.9s; }
.node-op { --c: var(--signal); animation: card-in .9s var(--ease) 3.85s both, ring 2.2s var(--ease) 4.75s; }
.link-h { transform-origin: left; animation: draw-x .5s var(--ease) 4.2s both; }
.link-h em { animation: fade .6s var(--ease) 4.3s both; }
.link-h i { --len: 56px; animation: stream-x .6s cubic-bezier(.55, 0, .45, 1) 4.35s both; }
.node-op > code { position: relative; animation: type .7s steps(16, end) 4.85s both; }
.node-op > code::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: currentColor; opacity: 0; animation: caret .5s steps(1) 4.85s 4 both; }

@media (max-width: 520px) {
  .flow-ends { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .link-h { width: 2px; height: 30px; justify-self: center; transform-origin: top; animation-name: draw-y; background: repeating-linear-gradient(to bottom, var(--dash) 0 4px, transparent 4px 9px); }
  .link-h em { left: 12px; top: 50%; transform: translateY(-50%); }
  .link-h i { left: -1px; top: 0; width: 4px; height: 22px; background: linear-gradient(to bottom, transparent, var(--accent)); --len: 30px; animation-name: stream-y; }
  .link-split { width: 2px; overflow: hidden; }
  .link-split::after, .link-split i:last-child { display: none; }
  .link-split::before { left: 0; height: 100%; }
  .link-split i:first-child { left: -1px; top: 0; width: 4px; height: 22px; border-radius: 4px; box-shadow: none; background: linear-gradient(to bottom, transparent, var(--accent)); animation: stream-y .7s cubic-bezier(.55, 0, .45, 1) 3s both; }
}

/* Hold the diagram until it is on screen (more specific than every animation shorthand above) */
html.js-motion .flow:not(.play), html.js-motion .flow:not(.play) *, html.js-motion .flow:not(.play) *::before, html.js-motion .flow:not(.play) *::after { animation-play-state: paused; }

/* Record card */
.record {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; font-stretch: 87.5%; min-width: 0;
  border-top: 3px solid var(--accent); overflow: hidden;
  --sh: 0 24px 48px -28px color-mix(in srgb, var(--ink) 55%, transparent); box-shadow: var(--sh);
}
.record-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.record-top span:first-child { text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.record dl { margin: 0; padding: 4px 20px 0; display: grid; }
.record .row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.record .row:last-child { border-bottom: 0; }
.record dt { color: var(--muted); }
.record dd { margin: 0; overflow-wrap: anywhere; }
.record-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-size: var(--step--1); line-height: 1.5; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; padding: 2px 8px; font-size: 0.75rem; font-family: var(--font-mono); }
.chip-block { background: color-mix(in srgb, var(--signal) 12%, transparent); color: var(--signal); }
.chip-pending { background: var(--accent-soft); color: var(--accent); }

/* Figures */
.figures { border-bottom: 1px solid var(--line); background: var(--surface); }
.figures .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure { padding: 32px 24px 32px 0; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.figure + .figure { padding-left: 24px; }
.figure:last-child { border-right: 0; }
.figure b { font-family: var(--font-display); font-size: calc(var(--step-3) * 1.15); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.figure span { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.figure sup { font-size: 0.6em; color: var(--muted); font-weight: 500; margin-left: 2px; }
@media (max-width: 820px) {
  .figures .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure, .figure + .figure { padding: 24px 16px 24px 0; }
  .figure:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .figure:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Problem diagram */
.gap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .gap-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.prose { display: grid; gap: 18px; max-width: 34rem; color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.compare { display: grid; gap: 12px; min-width: 0; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.compare-row .who { display: grid; gap: 2px; min-width: 0; }
.compare-row .who b { font-weight: 600; font-size: 0.9375rem; }
.compare-row .who span { font-size: var(--step--1); color: var(--muted); font-family: var(--font-body); }
.compare-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; padding: 0 18px; font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.compare-head span:not(:first-child), .compare-row .cell { width: 6.5rem; text-align: center; }
.cell { font-family: var(--font-body); font-size: 0.75rem; }
.cell.yes { color: var(--ok); }
.cell.no { color: var(--signal); }
@media (max-width: 480px) {
  .compare-head span:not(:first-child), .compare-row .cell { width: 4.5rem; }
  .compare-row, .compare-head { gap: 8px; padding-left: 14px; padding-right: 14px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.step { padding: 28px 28px 0 0; display: grid; gap: 12px; align-content: start; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--font-body); font-size: var(--step--1); color: var(--accent); }
.step p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.api { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (max-width: 820px) { .api { grid-template-columns: minmax(0, 1fr); } }
.api-pane { min-width: 0; }
.api-pane + .api-pane { border-left: 1px solid var(--line); }
@media (max-width: 820px) { .api-pane + .api-pane { border-left: 0; border-top: 1px solid var(--line); } }
.api-label { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.api pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.75rem; font-stretch: 87.5%; line-height: 1.8; }
.api .k { color: var(--accent); }
.api .s { color: var(--ink); }
.api .c { color: var(--muted); }
.api .t { color: var(--signal); }
.api-caption { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }

/* Data */
.data-band { background: var(--surface); }
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
@media (max-width: 900px) { .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pledges { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.pledge { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.pledge p { color: var(--muted); font-size: 0.9375rem; }
.ledger { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) { .ledger { grid-template-columns: minmax(0, 1fr); } }
.ledger > div { padding: 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ledger > div + div { border-left: 1px solid var(--line); background: var(--bg); }
@media (max-width: 720px) { .ledger > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.ledger h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ledger li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; }
.ledger li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border-radius: 2px; }
.keep li::before { background: var(--accent); }
.never li::before { border: 1.5px solid var(--muted); }
.ledger li span { color: var(--muted); }

/* Jurisdictions */
.j-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { font: 500 0.875rem/1 var(--font-body); padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab .ct { font-family: var(--font-body); font-size: 0.75rem; margin-left: 6px; opacity: .7; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 640px; }
th { text-align: left; font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; }
td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.juris { font-weight: 600; white-space: nowrap; }
td.auth { color: var(--muted); }
td.reg { font-family: var(--font-body); font-size: 0.8125rem; white-space: nowrap; }
td.reg.none { color: var(--muted); }
.tag { font-family: var(--font-body); font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.tag.offshore { border-color: color-mix(in srgb, var(--signal) 45%, transparent); color: var(--signal); }
.table-wrap { max-height: 560px; overflow-y: auto; }
.footnote { margin-top: 16px; font-size: var(--step--1); color: var(--muted); max-width: 48rem; }

/* Enrol */
.enrol-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .enrol-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.enrol-copy { display: grid; gap: 20px; }
.enrol-copy ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); }
.enrol-copy li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.enrol-copy li b { font-family: var(--font-body); font-weight: 500; color: var(--accent); font-size: var(--step--1); padding-top: 2px; }
form, .done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; min-width: 0; }
@media (max-width: 480px) { form, .done { padding: 22px; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label, legend { font-size: 0.875rem; font-weight: 600; }
.hint { font-size: var(--step--1); color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], select {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--signal); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .periods { grid-template-columns: minmax(0, 1fr); } }
.period { position: relative; }
.period input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.period span { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: 0.9375rem; font-weight: 600; }
.period span small { font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.period input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.period input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 0.875rem; color: var(--muted); font-weight: 400; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.error { color: var(--signal); font-size: var(--step--1); }
form .btn { width: 100%; padding: 15px 18px; font-size: 1rem; }
.form-foot { font-size: var(--step--1); color: var(--muted); text-align: center; }
.done { gap: 16px; }
.done .ref { font-family: var(--font-mono); font-size: 0.875rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; overflow-wrap: anywhere; }

/* Help + footer */
.help > .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.help p { color: var(--muted); max-width: 40rem; }
.help p strong { color: var(--ink); }
.help-links { display: flex; flex-wrap: wrap; gap: 10px; }
footer .wrap { padding-block: 40px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: var(--step--1); color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages: contents rail beside a single reading column */
.legal > .wrap { padding-block: 72px 96px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .legal > .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px 72px; } }
.legal-head { grid-column: 1 / -1; display: grid; gap: 16px; max-width: 44rem; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 2px; font-size: 0.875rem; border-top: 1px solid var(--ink); padding-top: 14px; }
.toc a { text-decoration: none; color: var(--muted); padding: 5px 0; display: grid; grid-template-columns: 2.25em minmax(0, 1fr); }
.toc a span { font-family: var(--font-body); font-size: 0.75rem; color: var(--accent); padding-top: 2px; }
.toc a:hover { color: var(--ink); }
@media (max-width: 900px) { .toc { position: static; } }
.policy { display: grid; gap: 48px; max-width: 42rem; min-width: 0; }
.policy section { border: 0; display: grid; gap: 14px; scroll-margin-top: 96px; }
.policy h2 { font-size: var(--step-2); display: flex; gap: 14px; align-items: baseline; }
.policy h2 span { font-family: var(--font-body); font-size: 0.75rem; color: var(--accent); letter-spacing: 0; }
.policy p, .policy li { color: var(--muted); }
.policy strong { color: var(--ink); font-weight: 600; }
.policy ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.policy a { color: var(--accent); text-underline-offset: 3px; }
.policy .table-scroll table { min-width: 560px; font-size: 0.875rem; }
.policy td { color: var(--muted); }
.policy td:first-child { color: var(--ink); font-weight: 600; }
.summary { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.summary ul { list-style: none; padding: 0; }
.summary li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink); }
.summary li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; background: var(--accent); }
.todo { background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal); font-family: var(--font-body); font-size: 0.8125em; padding: 1px 6px; border-radius: var(--radius); }
