/* ProvenExit. One brand accent (violet, --accent) carries the page: labels, links, lines, icons, focus
   and tinted grounds. Green and red are evidence: those tokens are used only in the last block of this
   file, under html[data-state="verified"] or html[data-state="refused"], which app.js sets from the
   current status response. The accent never stands for a verdict. */

@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("fonts/overpass-mono.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FCFCFF;
  --card: #FFFFFF;
  --tint: #F3F1FF;
  --tint-2: #E7E3FF;
  --unlit: #E6E5EE;
  --ink: #14132B;
  --ink-2: #4D4B66;
  --rule: #DCDAEA;
  --accent: #5034E6;
  --accent-hover: #3F24CC;
  --accent-soft: #B9AFFF;
  --accent-glow: rgb(80 52 230 / .22);
  --code: #17153A;
  --code-ink: #EDEBFF;
  --go: #3DDC84;
  --go-ink: #0E7A40;
  --go-tint: #E4F7EC;
  --stop: #FF6B57;
  --stop-ink: #B4231A;
  --stop-tint: #FFE9E5;

  --face: var(--unlit);
  --side: 16px;
  --nav-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (min-width: 480px) { :root { --side: 20px; } }
@media (min-width: 720px) { :root { --side: 48px; } }
@media (min-width: 1320px) { :root { --side: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, dt, pre, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.no-js-only { display: none; }
svg { overflow: visible; }

.wrap { max-width: calc(1200px + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }
.mono { font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; }
.quiet { color: var(--ink-2); font-size: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 30; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Links: accent and underlined; the underline thickens on hover. */
.link, .sec a:not(.btn):not(.pip), .foot a, .under-plate a, .plate a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: text-decoration-color 150ms ease-out, color 150ms ease-out;
}
.link:hover, .sec a:not(.btn):not(.pip):hover, .foot a:hover, .under-plate a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
.plate a { color: inherit; }
.plate a:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px;
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 8px 20px -8px var(--accent-glow);
  transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
}
.btn::after { content: "→"; transition: transform 150ms ease-out; }
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 14px 28px -10px rgb(80 52 230 / .55); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(1px); transition-duration: 90ms; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ghost-btn {
  height: 42px; padding: 0 16px; background: var(--card); color: var(--accent); border: 1.5px solid var(--accent-soft);
  border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, transform 150ms ease-out;
}
.ghost-btn:hover { border-color: var(--accent); background: var(--tint); transform: translateY(-1px); }

/* ---- nav ---- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h); border-bottom: 1px solid var(--rule); }
/* The blur sits on a pseudo-element: a backdrop-filter on .nav itself would make the nav the containing
   block of the fixed phone menu and clip it to the 64 px bar. */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(252 252 255 / .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 28px; fill: none; stroke-width: 44; stroke-linecap: round; stroke-linejoin: round; }
.brand-arc { stroke: var(--ink); }
.brand-tick { stroke: var(--accent); transition: stroke 300ms ease-out; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 22px; }
.menu a { font-size: 16px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 150ms ease-out, color 150ms ease-out; }
.menu a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip-dot { width: 10px; height: 10px; border: 2px solid var(--ink-2); border-radius: 50%; flex: none; }
.chip-sample { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: #fff; }
html[data-state="error"] .chip-dot, html[data-state="stale"] .chip-dot { height: 2px; border-width: 1px; border-radius: 0; background: var(--ink-2); }
html[data-state="refused"][data-lit] .chip-dot { border-radius: 0; }
.menu-btn { display: none; height: 34px; padding: 0 12px; background: none; border: 1px solid var(--ink); border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }

@media (max-width: 1180px) {
  .menu-btn { display: inline-block; }
  .chip { margin-left: auto; }
  .nav-in { gap: 12px; }
  .menu { display: none; position: fixed; inset: var(--nav-h) 0 0 0; margin: 0; background: var(--paper); overflow-y: auto; padding: 16px var(--side) 48px; }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li { border-bottom: 1px solid var(--rule); }
  .menu a { display: block; font-size: 22px; font-weight: 600; padding: 14px 0; border: 0; }
}
@media (max-width: 480px) { .chip-time { display: none; } }
@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .chip { font-size: 14px; padding: 0 9px; gap: 6px; }
  .menu-btn { padding: 0 9px; }
}
@media (max-width: 380px) { .brand-name { display: none; } }

/* ---- hero ---- */
.hero {
  position: relative; padding: calc(var(--nav-h) + 48px) 0 88px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 88% 18%, rgb(80 52 230 / .13), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgb(80 52 230 / .08), transparent 70%),
    var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(80 52 230 / .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero > .wrap { position: relative; }
.hero-grid { display: grid; gap: 40px 24px; }
.notice { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 22px; padding: 5px 12px 4px; border-radius: 999px; background: var(--card); color: var(--accent); border: 1px solid var(--accent-soft); }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(36px, 3.9vw, 58px); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; }
.h1-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h1-line > span { display: block; }
.h1-line:nth-child(2) > span { color: var(--accent); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); margin-top: 26px; max-width: 34em; }
.hero .actions { margin-top: 34px; }

.plate {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  min-height: 420px; padding: 44px 40px 36px; border-radius: 18px;
  background: var(--face); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(20 19 43 / .35), 0 2px 0 rgb(255 255 255 / .6) inset;
}
.plate::before {
  content: ""; position: absolute; inset: 10px; border: 2px solid color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: 10px; pointer-events: none;
}
.plate[data-face="go"], .plate[data-face="stop"] { animation: plate-on 1100ms ease-out; }
@keyframes plate-on {
  from { box-shadow: 0 30px 60px -30px rgb(20 19 43 / .35), 0 0 0 0 rgb(20 19 43 / .28); }
  to { box-shadow: 0 30px 60px -30px rgb(20 19 43 / .35), 0 0 0 26px rgb(20 19 43 / 0); }
}
.plate-badge {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  margin: -14px 0 -18px; padding: 5px 12px 4px 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .01em;
}
.plate-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plate-word { font-size: clamp(52px, 8vw, 120px); font-weight: 800; line-height: .95; letter-spacing: -.035em; }
.plate-word.long { font-size: clamp(40px, 5.6vw, 84px); }
.plate-line { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; margin-top: 20px; max-width: 30em; }
.plate-link { margin-top: 12px; font-weight: 600; font-size: 17px; }
.plate-text, .plate-foot { position: relative; }
.pips { display: flex; flex-wrap: wrap; gap: 6px; }
.pip { display: block; position: relative; width: clamp(16px, 1.6vw, 22px); height: 30px; border: 2px solid var(--ink); border-radius: 3px; transition: background-color 120ms ease-out, opacity 120ms ease-out; }
.pip[data-ok="pass"] { background: var(--ink); }
.pip[data-ok="fail"] { background: var(--ink); }
.pip[data-ok="fail"]::before, .pip[data-ok="fail"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 82%; height: 2.5px; background: var(--face); transform: translate(-50%, -50%) rotate(52deg); }
.pip[data-ok="fail"]::after { transform: translate(-50%, -50%) rotate(-52deg); }
.pip[data-ok="skip"] { opacity: .45; }
.pip[data-ok="none"] { border-color: transparent; opacity: .55; }
.pip[data-ok="none"]::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); }
.pips.lighting .pip:not(.lit) { background: transparent; opacity: .45; }
.pips.lighting .pip:not(.lit)::before, .pips.lighting .pip:not(.lit)::after { display: none; }
.platform { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 18px; font-size: 16px; font-weight: 600; }
.under-plate { margin-top: 16px; font-size: 16px; color: var(--ink-2); min-height: 3em; }

@media (max-width: 979px) {
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero-sign { order: 2; margin-top: 36px; }
  .hero .actions { order: 3; margin-top: 28px; }
}
@media (min-width: 980px) {
  .hero { padding-top: calc(var(--nav-h) + 64px); }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .plate { min-height: 470px; padding: 52px 48px 40px; }
}
@media (max-width: 520px) {
  .plate { min-height: 340px; padding: 34px 26px 28px; gap: 26px; }
  .pip { width: 16px; height: 26px; }
  .hero { padding-bottom: 64px; }
}

/* ---- sections ---- */
.sec { position: relative; padding: 64px 0; }
.sec-unlit { background: var(--tint); }
.sec-unlit::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-soft), transparent); }
#near { padding-top: 0; }
#traffic { padding-top: 0; }
#limits { border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .sec { padding: 84px 0; } }
h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; max-width: 22em; }
h3 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.sec-head { margin-bottom: 44px; }
.sec-head[data-label]::before {
  content: attr(data-label); display: inline-block; white-space: pre; margin-bottom: 14px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  padding-left: 26px; background: linear-gradient(var(--accent), var(--accent)) left center / 18px 2px no-repeat;
}
.sec-lead { color: var(--ink-2); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; margin-top: 16px; max-width: 36em; }
.note-line { max-width: 40em; margin-bottom: 24px; }
.note-line + .note-line { margin-top: -8px; }
.label-recorded { display: inline-block; font-weight: 600; margin-bottom: 20px; max-width: 44em; padding: 8px 14px; border-radius: 10px; background: var(--unlit); }

/* marks: a glyph plus hidden text, ink unless the page state colours them */
.mk { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; flex: none; }
.mk svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mk[data-ok="skip"] { color: var(--ink-2); }

/* rows on open ground */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.row > dt, .row > .row-k { font-weight: 600; }
.row > .row-note { color: var(--ink-2); }
@media (min-width: 860px) {
  .row { grid-template-columns: 3fr 5fr 4fr; align-items: baseline; padding: 16px 0; }
}

/* ---- cards ---- */
.cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards-4, .cards-2, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 22px 22px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(20 19 43 / .04);
  transition: transform 200ms var(--ease), box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: 0 18px 36px -22px rgb(80 52 230 / .5); }
.card-hl { background: linear-gradient(160deg, var(--tint) 0%, var(--card) 70%); border-color: var(--accent-soft); }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--accent); }
.card-hl .card-icon, .sec-unlit .card-icon { background: var(--tint-2); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-k { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink-2); }
.card-big { margin-top: 18px; font-size: clamp(32px, 3.2vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--accent); overflow-wrap: anywhere; }
.card-big .mono { font-size: .62em; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.card-big.sm { font-size: clamp(22px, 2vw, 26px); color: var(--ink); }
.card-big .big-num { font-size: clamp(56px, 6vw, 80px); line-height: .95; }
.card-unit { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.card-body { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.card-body > * + * { margin-top: 10px; }
.card-who { color: var(--ink); font-weight: 700; font-size: 17px; }
.card-body ul { display: grid; gap: 6px; }
.card-body li { display: flex; gap: 8px; align-items: baseline; }
.card-body li .mk { transform: translateY(.12em); }
[data-count] { display: inline-block; }
@media (max-width: 639px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cards-4 > .card-hl, .cards-4 > :last-child { grid-column: 1 / -1; }
  .cards-4 .card { padding: 18px 16px; }
  .cards-4 .card-big { font-size: 30px; margin-top: 14px; }
  .cards-4 .card-big.sm { font-size: 21px; }
}

.raw { margin-top: 20px; display: grid; gap: 14px; }
.card .raw { margin-top: 16px; }
.raw-row { min-width: 0; }
.raw-k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.raw-v { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--rule); border-radius: 10px; background: #F7F6FD; overflow: hidden; }
.raw-v code { flex: 1 1 auto; min-width: 0; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; word-break: break-all; }
.raw-note { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.copy-sm { min-width: 96px; padding: 0 14px; font-size: 14px; border-radius: 0; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.facts > div { padding: 16px 18px; border-bottom: 1px solid var(--rule); min-width: 0; }
.facts > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin-top: 4px; font-size: 16px; font-weight: 600; }
@media (min-width: 1000px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts > div { border-bottom: 0; border-right: 1px solid var(--rule); }
  .facts > div:last-child { border-right: 0; }
}
@media (max-width: 999px) { .facts > div:nth-last-child(-n+2) { border-bottom: 0; } }

/* ---- the chain ---- */
.chain { display: flex; align-items: stretch; }
.tile {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--card); border: 2px solid var(--rule); border-radius: var(--radius); padding: 18px 16px 16px; cursor: pointer;
  transition: border-color 250ms ease-out, transform 200ms var(--ease), box-shadow 200ms ease-out;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgb(80 52 230 / .5); }
.tile:active { transform: translateY(1px); transition-duration: 90ms; }
.tile[aria-expanded="true"] { border-color: var(--ink); }
.tile-icon { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-title { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; margin-top: 12px; min-height: 2.4em; }
.tile-count { display: flex; align-items: center; gap: 8px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; }
.tile-count .mk { font-size: 24px; }
.tile-line { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 8px; }
.tile-code { display: block; font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.tile-more { display: block; margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .18em; }
.tile[data-s="skip"] { background: transparent; border: 2px dashed var(--rule); }
.tile[data-s="skip"] .tile-count, .tile[data-s="part"] .tile-count { color: var(--ink-2); }
.tile[data-s="skip"][aria-expanded="true"] { border-color: var(--ink); border-style: solid; }
.joint { flex: 0 0 24px; align-self: center; height: 4px; background: var(--rule); border-radius: 2px; position: relative; overflow: hidden; }
.joint i { position: absolute; inset: 0; background: var(--joint, var(--rule)); transform-origin: left top; transition: transform 150ms linear; }
.joint[data-s="ink"] { --joint: var(--ink); }
.chain.lighting .tile:not(.lit) { opacity: .35; }
.chain.lighting .joint:not(.lit) i { transform: scaleX(0); }

.stage-rows { margin-top: 24px; border-top: 1px solid var(--rule); }
.stage-rows h4 { font-size: 17px; font-weight: 800; margin: 18px 0 8px; }
.check-row { display: grid; grid-template-columns: 2.2em 1.4em 1fr; gap: 0 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.check-row .n { color: var(--ink-2); text-align: right; }
.check-row .d { display: block; color: var(--ink-2); }
.check-row[data-ok="skip"] { color: var(--ink-2); }

.recorded { margin-top: 40px; background: var(--unlit); border-radius: 0; padding: 32px var(--side); margin-left: calc(-1 * var(--side)); margin-right: calc(-1 * var(--side)); }
.recorded h3 { margin-bottom: 10px; }
.recorded > p { max-width: 44em; }
.recorded .chain { margin-top: 28px; }
.recorded .cmd { margin-top: 14px; }
@media (min-width: 720px) { .recorded { padding: 48px; margin-left: 0; margin-right: 0; border-radius: 20px; } }

@media (max-width: 859px) {
  .chain { flex-direction: column; }
  .joint { flex: 0 0 20px; width: 4px; height: 20px; }
  .chain.lighting .joint:not(.lit) i { transform: scaleY(0); }
  .tile { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 2px 14px; padding: 14px 16px; }
  .tile-icon { grid-row: 1 / span 2; }
  .tile-title { margin: 0; min-height: 0; }
  .tile-count { grid-column: 3; grid-row: 1 / span 2; font-size: 26px; margin: 0; }
  .tile-count .mk { font-size: 20px; }
  .tile-line { grid-column: 2; margin: 0; }
  .tile-code { grid-column: 1 / -1; }
  .tile-more { display: none; }
}

/* ---- route ---- */
.route { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 32px 8px 36px; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; }
.route-registry { grid-column: 2; justify-self: center; text-align: center; padding: 12px 18px 10px; border-radius: 14px; border: 2px solid var(--accent-soft); background: var(--tint); max-width: 100%; }
.route-registry .station-sub { overflow-wrap: anywhere; }
.route-drop { grid-column: 2; justify-self: center; width: 2px; height: 44px; margin: 0; background: repeating-linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px 12px); transform-origin: center bottom; }
.route-line { grid-column: 1 / -1; height: 4px; margin: 7px calc(100% / 6) -11px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.route-line i { display: block; height: 100%; background: var(--accent); transform-origin: left center; }
.stations { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.station { text-align: center; padding: 0 8px; }
.station-dot { display: block; width: 20px; height: 20px; margin: 0 auto 14px; border-radius: 50%; background: var(--card); border: 5px solid var(--accent); position: relative; }
.station-name { font-weight: 800; font-size: 20px; line-height: 1.2; }
.station-sub { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 28px; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 20px; font-size: 17px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 17px;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) {
  .route { padding: 24px 0 28px; }
  .station-name { font-size: 15px; }
  .station-sub { font-size: 12.5px; }
  .station { padding: 0 4px; }
  .route-registry { grid-column: 1 / -1; padding: 10px 14px 8px; }
}

/* route, stepped (JS and motion on): motion.js marks the lit parts (.lit) and the cards (.done, .now) */
.route-count { display: none; }
.route[data-anim] .station, .route[data-anim] .route-registry { transition: opacity .3s; }
.route[data-anim] .station:not(.lit), .route[data-anim] .route-registry:not(.lit) { opacity: .35; }
.route[data-anim] .station.lit .station-dot { background: var(--accent); }
.route[data-anim] .route-registry.lit { border-color: var(--accent); }
.steps[data-anim] li { transition: opacity .3s, translate .3s, border-color .3s, box-shadow .3s; }
.steps[data-anim] li:not(.done):not(.now) { opacity: .35; color: var(--ink-2); }
.steps[data-anim] li:not(.done):not(.now)::before { background: var(--tint-2); color: var(--accent); }
.steps[data-anim] li.done { color: var(--ink-2); }
.steps[data-anim] li.now { border-color: var(--accent); box-shadow: 0 18px 34px -22px rgb(80 52 230 / .65); translate: 0 -6px; }

/* The pinned scene. The section is a tall track; its stage sticks under the nav, so the page seems to
   stop while scrolling plays the steps, then it moves on. Only with motion on; motion.js sets
   data-nopin when the stage does not fit the viewport, and the scene falls back to the plain layout. */
.motion #route:not([data-nopin]) { padding: 0; }
.motion #route:not([data-nopin]) .route-pin { height: 280vh; }
.motion #route:not([data-nopin]) .route-stage {
  position: sticky; top: var(--nav-h); display: flex; flex-direction: column; justify-content: center;
  height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); padding: 20px 0;
}
.motion #route:not([data-nopin]) .sec-head { margin-bottom: 28px; }
.motion #route:not([data-nopin]) .route-count { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.route-count-n b { color: var(--accent); }
.route-count-bar { flex: 0 1 160px; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.route-count-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 1)); }
@media (max-width: 859px) {
  /* Narrow: the diagram on top and one card at a time below it, all four kept in the DOM in order. */
  .motion #route:not([data-nopin]) .route-pin { height: 260vh; }
  .motion #route:not([data-nopin]) .sec-head { margin-bottom: 16px; }
  .motion #route:not([data-nopin]) .sec-head h2 { font-size: 26px; }
  .motion #route:not([data-nopin]) .steps { margin-top: 16px; }
  .motion #route:not([data-nopin]) .steps li { grid-area: 1 / 1; padding: 14px 16px 16px; font-size: 16px; }
  .motion #route:not([data-nopin]) .steps li::before { float: left; width: 28px; height: 28px; margin: 0 10px 0 0; font-size: 15px; }
  .motion #route:not([data-nopin]) .steps[data-anim] li:not(.now) { opacity: 0; translate: 0 10px; }
  .motion #route:not([data-nopin]) .steps[data-anim] li.now { translate: none; }
  .motion #route:not([data-nopin]) .route-count { margin-top: 14px; }
}

/* ---- NEAR ---- */
.gas { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.35; font-weight: 600; max-width: 30em; margin-bottom: 32px; }

/* ---- history: a timeline ---- */
.events { position: relative; border-top: 0; padding-left: 34px; }
.events::before {
  content: ""; position: absolute; left: 9px; top: 22px; bottom: 22px; width: 2px; border-radius: 1px;
  background: linear-gradient(var(--accent), var(--accent-soft)); transform-origin: top center; transform: scaleY(var(--draw, 1));
}
.events .row { position: relative; align-items: baseline; border-bottom: 1px solid var(--rule); }
.events .row::before {
  content: ""; position: absolute; left: -30px; top: 19px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--accent);
}
.events .row:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px rgb(80 52 230 / .18); }
.motion #history-body[data-anim] .events > li { opacity: var(--p, 1); translate: calc((1 - var(--p, 1)) * -10px) 0; }
.history-more { display: flex; gap: 12px; align-items: center; }
@media (min-width: 860px) {
  .events .row { grid-template-columns: 3fr 4fr 3fr 2fr; }
  .anchors .row { grid-template-columns: 3fr 4fr 3fr 2fr; }
}
.events time, .anchors time { color: var(--ink-2); }
.row-what { font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.row-what .mk { transform: translateY(.12em); }
.more-btn { margin-top: 20px; height: 44px; padding: 0 18px; background: var(--card); color: var(--accent); border: 1.5px solid var(--accent-soft); border-radius: 10px; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out; }
.more-btn:hover { background: var(--tint); border-color: var(--accent); transform: translateY(-1px); }
.more-btn:active { transform: translateY(1px); }
.receipts { margin-top: 64px; padding: 28px; background: var(--tint); border-radius: 20px; }
.receipts h3 { margin-bottom: 10px; }
.receipts > p { color: var(--ink-2); max-width: 40em; margin-bottom: 20px; }
.receipts .rows { border-top-color: var(--accent-soft); }
.receipts .row { border-bottom-color: var(--accent-soft); }
@media (max-width: 620px) { .receipts { padding: 22px 18px; margin-left: calc(-1 * var(--side) + 4px); margin-right: calc(-1 * var(--side) + 4px); } }

/* ---- traffic ---- */
.pair { display: grid; gap: 12px; align-items: stretch; }
.pair-card { padding: 22px 22px 26px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0; transition: transform 200ms var(--ease), box-shadow 200ms ease-out; }
.pair-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgb(80 52 230 / .5); }
.pair-exit { background: linear-gradient(160deg, var(--tint) 0%, var(--card) 75%); border-color: var(--accent-soft); }
.pair-label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.pair-value { font-family: var(--mono); font-weight: 600; font-size: clamp(24px, 3.4vw, 42px); line-height: 1.15; margin-top: 16px; overflow-wrap: anywhere; }
.pair-exit .pair-value { color: var(--accent); }
.pair-value.word { font-family: var(--sans); font-weight: 800; }
.pair-why { color: var(--ink-2); font-size: 16px; margin-top: 8px; max-width: 26em; }
.pair-arrow { display: grid; place-items: center; color: var(--accent); }
.pair-arrow svg { width: 48px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
@media (min-width: 720px) {
  .pair { grid-template-columns: 1fr auto 1fr; gap: 16px; }
  .pair-arrow svg { transform: none; }
}
.traffic-line { margin-top: 24px; max-width: 40em; }
.disclosure { margin-top: 16px; max-width: 44em; }

/* ---- commands ---- */
.cmd-block + .cmd-block { margin-top: 44px; }
.cmd-block h3 { margin-bottom: 14px; }
.cmd-block p { margin-top: 14px; max-width: 44em; font-size: 17px; }
.cmd { display: flex; align-items: stretch; border-radius: 12px; background: var(--code); color: var(--code-ink); max-width: 940px; overflow: hidden; box-shadow: 0 18px 36px -24px rgb(23 21 58 / .6); }
.cmd pre { flex: 1 1 auto; min-width: 0; padding: 16px 18px; font-family: var(--mono); font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd pre::before { content: "$ "; color: #A99CFF; }
#cmd-desktop { display: inline; }
.cmd pre code { font: inherit; }
.copy { flex: none; align-self: stretch; min-width: 132px; padding: 0 16px; background: var(--accent); color: #fff; border: 0; border-radius: 0; font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color 150ms ease-out; }
.copy:hover { background: var(--accent-hover); }
.copy:active { transform: translateY(1px); }
.copy:focus-visible { outline-offset: -4px; outline-color: #fff; }
.raw .copy:focus-visible { outline-color: var(--ink); }
.cmd-note { font-weight: 600; }
.clone { margin-bottom: 44px; }
.video { margin-top: 48px; }
@media (max-width: 620px) {
  .cmd { flex-direction: column; }
  .cmd .copy { min-height: 44px; }
  .raw-v .copy-sm { min-width: 64px; }
}

/* ---- agents line (in Run it) ---- */
.agents-live { display: flex; gap: 10px; align-items: baseline; font-weight: 600; font-size: 18px; line-height: 1.4; max-width: 36em; margin-top: 14px; }
.agents-live .mk { transform: translateY(.14em); }
/* ---- proof: build, NEAR, keys in one section ---- */
.proof-part + .proof-part { margin-top: 72px; }
.proof-part > h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 20px; }
.proof-lead { color: var(--ink-2); font-size: 17px; margin: -8px 0 20px; max-width: 40em; }

/* ---- limits ---- */
.limits { counter-reset: limit; display: grid; gap: 12px; }
.limits > li { counter-increment: limit; position: relative; display: grid; gap: 6px 24px; padding: 22px 22px 22px 70px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.limits > li::before {
  content: counter(limit); position: absolute; left: 20px; top: 21px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; background: var(--tint); color: var(--accent); font-weight: 800; font-size: 16px;
}
.limits h3 { font-size: 21px; }
.limits p { max-width: 40em; }
@media (min-width: 860px) { .limits > li { grid-template-columns: 5fr 7fr; align-items: baseline; padding: 26px 28px 26px 76px; } .limits > li::before { top: 24px; left: 24px; } }
.also-h { margin: 56px 0 16px; font-size: 20px; }
.limits-small { counter-reset: limit 5; gap: 0; border-top: 1px solid var(--rule); }
.limits-small > li { display: block; padding: 14px 0 14px 48px; background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.limits-small > li::before { left: 0; top: 13px; width: 30px; height: 26px; font-size: 14px; border-radius: 8px; }
.limits-small p { font-size: 16px; color: var(--ink-2); max-width: 46em; }
.limits-more { margin-top: 32px; font-weight: 600; }
.limits-small h4 { font-size: 17px; line-height: 1.35; }
.limits-small p { margin-top: 6px; }
.more-btn + .limits-small { margin-top: 16px; }

/* ---- "show more": folded explanations (more.js) ---- */
.more-title {
  all: unset; box-sizing: border-box; display: inline; cursor: pointer; font: inherit; color: inherit;
  border-radius: 6px; text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; text-underline-offset: .2em;
}
.more-title::after {
  content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; vertical-align: .15em;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 150ms ease-out;
}
.more-title[aria-expanded="true"]::after { transform: translateY(.15em) rotate(-135deg); }
.more-title:hover { text-decoration-color: var(--accent); }
.more-title:focus-visible, .more-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.more-link:not(.more-btn) {
  display: inline-flex; align-items: center; min-height: 32px; margin-top: 6px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--accent); font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: .2em;
}
.more-link + [data-more] { margin-top: 4px; }

/* ---- close, footer ---- */
.close { background: var(--accent); color: #fff; overflow: hidden; }
.close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 90% 10%, rgb(255 255 255 / .16), transparent 70%), radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1.4px) 0 0 / 22px 22px;
}
.close .wrap { position: relative; }
.close .sec-lead { color: #E9E5FF; }
.close-line { font-size: clamp(34px, 5vw, 64px); max-width: 14em; line-height: 1.05; letter-spacing: -.025em; }
.close .actions { margin-top: 36px; }
.close .btn { background: #fff; color: var(--accent); box-shadow: 0 14px 30px -14px rgb(0 0 0 / .4); }
.close .btn:hover { background: var(--tint); }
.close :focus-visible { outline-color: #fff; }
.foot { padding: 32px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: 6px 28px; }

/* ---- local sample switch (localhost only) ---- */
.sample-tag { position: fixed; right: 12px; bottom: 12px; z-index: 25; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100vw - 24px); padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; font-size: 13px; }
.sample-tag a { color: inherit; }
.sample-tag a[aria-current="true"] { font-weight: 800; text-decoration: none; }
.sample-tag :focus-visible { outline-color: #fff; }

/* ---- motion ---- */
/* Scrubbed by scroll: motion.js writes --p (0..1) from each element's scroll position; it fades and
   rises in as it enters the viewport and reverses on the way back. Without the "motion" class (reduced
   motion, no JS) or before motion.js measures, --p is unset and everything shows its final state. */
.motion .reveal,
.motion .stagger > :not(.cards):not(.rows),
.motion .stagger > .cards > *,
.motion .stagger > .rows > * { opacity: var(--p, 1); translate: 0 calc((1 - var(--p, 1)) * 18px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==== state colour ==== Every use of the green and red tokens is below, and every selector starts
   with the page state. The plate, chip and logo tick follow the verdict; marks inside .live follow
   their own row of the current response. Recorded blocks are never inside .live. */
html[data-state="verified"] .plate[data-face="go"] { --face: var(--go); }
html[data-state="refused"] .plate[data-face="stop"] { --face: var(--stop); }
html[data-state="verified"][data-lit] .brand-tick { stroke: var(--go-ink); }
html[data-state="refused"][data-lit] .brand-tick { stroke: var(--stop-ink); }
html[data-state="verified"][data-lit] .chip-dot { border-color: var(--go-ink); background: var(--go-ink); }
html[data-state="refused"][data-lit] .chip-dot { border-color: var(--stop-ink); background: var(--stop-ink); }

html[data-state="verified"] .live .mk[data-ok="pass"],
html[data-state="refused"] .live .mk[data-ok="pass"] { color: var(--go-ink); }
html[data-state="verified"] .live .mk[data-ok="fail"],
html[data-state="refused"] .live .mk[data-ok="fail"] { color: var(--stop-ink); }
html[data-state="verified"] .live .check-row[data-ok="fail"],
html[data-state="refused"] .live .check-row[data-ok="fail"],
html[data-state="refused"] .live .check-row[data-ok="fail"] .d { color: var(--stop-ink); }

html[data-state="verified"] .live .tile[data-s="pass"],
html[data-state="refused"] .live .tile[data-s="pass"] { background: var(--go-tint); border-color: var(--go-ink); }
html[data-state="verified"] .live .tile[data-s="pass"] .tile-icon,
html[data-state="refused"] .live .tile[data-s="pass"] .tile-icon { stroke: var(--go-ink); }
html[data-state="verified"] .live .tile[data-s="pass"] .tile-count,
html[data-state="refused"] .live .tile[data-s="pass"] .tile-count { color: var(--go-ink); }
html[data-state="verified"] .live .joint[data-s="pass"],
html[data-state="refused"] .live .joint[data-s="pass"] { --joint: var(--go-ink); }
html[data-state="verified"] .live .tile[data-s="fail"],
html[data-state="refused"] .live .tile[data-s="fail"] { background: var(--stop-tint); border-color: var(--stop-ink); }
html[data-state="verified"] .live .tile[data-s="fail"] .tile-icon,
html[data-state="refused"] .live .tile[data-s="fail"] .tile-icon { stroke: var(--stop-ink); }
html[data-state="verified"] .live .tile[data-s="fail"] .tile-count,
html[data-state="refused"] .live .tile[data-s="fail"] .tile-count,
html[data-state="refused"] .live .tile[data-s="fail"] .tile-code { color: var(--stop-ink); }
html[data-state="refused"] .live .joint[data-s="fail"] { --joint: var(--stop-ink); }
html[data-state="refused"] .agents-live[data-ok="fail"] { color: var(--stop-ink); }
