/* Spurline — site styles. One family (Overpass), white + graphite + signal amber. */

:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.968 0 0);
  --surface-2: oklch(0.94 0.003 60);
  --rule: oklch(0.885 0.004 60);
  --ink: oklch(0.19 0.012 60);
  --ink-2: oklch(0.42 0.012 60);
  --signal: oklch(0.77 0.155 64);
  --signal-soft: oklch(0.93 0.06 72);
  --signal-deep: oklch(0.52 0.13 55);
  --night: oklch(0.17 0.01 60);
  --night-2: oklch(0.23 0.01 60);
  --night-ink: oklch(0.96 0.004 60);
  --night-ink-2: oklch(0.76 0.008 60);
  --clear: oklch(0.5 0.12 155);
  --clear-soft: oklch(0.94 0.04 155);
  --stop: oklch(0.55 0.2 27);
  --stop-soft: oklch(0.95 0.03 27);

  --font: 'Overpass', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --band: clamp(4.5rem, 9vw, 8rem);

  --z-sticky: 20;
  --z-dropdown: 30;
  --z-menu: 40;
  --z-toast: 60;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--signal); }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { overflow-wrap: break-word; margin: 0; line-height: 1.05; text-wrap: balance; font-weight: 800; letter-spacing: -0.02em; }
strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .tnum { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.on-signal :focus-visible, .hero :focus-visible, .cta-band :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r); z-index: var(--z-toast); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band--surface { background: var(--surface); }
.band--night { background: var(--night); color: var(--night-ink); }
.band--signal { background: var(--signal); color: var(--ink); }
.band--night a { color: var(--night-ink); }

/* ---------- Type scale ---------- */
.display { font-size: clamp(2.6rem, 6.2vw, 5.6rem); font-weight: 900; line-height: 0.96; letter-spacing: -0.03em; }
.h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.028em; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.024em; }
.h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 40ch; }
.prose { max-width: 68ch; }
.prose p { font-size: 1.0625rem; }
.muted { color: var(--ink-2); }
.band--night .muted { color: var(--night-ink-2); }
.small { font-size: 0.9375rem; }
.tiny { font-size: 0.8125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.85em 1.4em 0.75em;
  border-radius: var(--r); border: 2px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font-weight: 700; font-size: 1.0625rem; line-height: 1; letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: oklch(0.28 0.012 60); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--signal:hover { background: oklch(0.82 0.14 66); }
.band--night .btn--ghost { color: var(--night-ink); border-color: var(--night-ink); }
.band--night .btn--ghost:hover { background: var(--night-ink); color: var(--night); }
.btn--sm { min-height: 42px; padding: 0.7em 1.05em 0.6em; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.4em; align-items: baseline; }
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--signal); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); flex: none; }
.brand svg { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; color: var(--ink);
}
.nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--surface); }
.nav-trigger svg { transition: transform 0.2s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-item { position: static; }
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--rule);
  box-shadow: 0 6px 8px -6px oklch(0.19 0.012 60 / 0.12);
  padding-block: 28px 36px; z-index: var(--z-dropdown);
}
.nav-panel[hidden] { display: none; }
.nav-panel .wrap { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; align-items: start; min-height: 0; }
.nav-panel__intro p { color: var(--ink-2); margin-top: 10px; max-width: 30ch; }
.nav-panel__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; list-style: none; }
.nav-panel__links a { display: block; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.nav-panel__links a:hover { background: var(--surface); }
.nav-panel__links b { display: block; font-weight: 700; }
.nav-panel__links span { display: block; color: var(--ink-2); font-size: 0.9rem; line-height: 1.35; margin-top: 2px; }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; min-width: 44px; border: 2px solid var(--ink); border-radius: var(--r); background: none; cursor: pointer; font-weight: 700; padding: 0 14px; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
}

.mobile-menu { position: fixed; inset: 0; background: var(--bg); z-index: var(--z-menu); overflow-y: auto; padding: 0 0 40px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.mobile-menu details { border-bottom: 1px solid var(--rule); }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 800; font-size: 1.35rem; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: '+'; font-weight: 400; font-size: 1.6rem; line-height: 1; }
.mobile-menu details[open] summary::after { content: '–'; }
.mobile-menu details ul { list-style: none; padding-bottom: 14px; }
.mobile-menu details a { display: block; padding: 9px 0; text-decoration: none; font-weight: 600; }
.mobile-menu .plain { display: block; padding: 18px 0; font-weight: 800; font-size: 1.35rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.mobile-menu .btn { width: 100%; margin-top: 24px; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--signal); color: var(--ink); overflow: hidden; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5.5rem); }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 26px; max-width: 46ch; }
.hero .btn-row { margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 0.95rem; font-weight: 600; }
.hero__diagram { position: relative; }
.hero__diagram svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__diagram { max-width: 560px; }
}

/* Track diagram */
.track { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.track--spur { stroke: var(--bg); }
.track--thin { stroke-width: 2; }
.track-label { font: 700 15px/1 var(--font); fill: var(--ink); }
.track-label--sm { font: 600 12.5px/1 var(--font); fill: var(--ink); opacity: 0.8; }
.track-node { fill: var(--ink); }
.track-node--you { fill: var(--bg); stroke: var(--ink); stroke-width: 4; }
.js .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 1.6s var(--ease-expo) forwards; animation-delay: var(--d, 0s); }
.js .pop { opacity: 0; animation: pop 0.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
.train { fill: var(--ink); }

/* ---------- Search query pill ---------- */
.query {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 20px 8px 16px; font-size: clamp(0.98rem, 1.4vw, 1.1rem); font-weight: 600; margin-bottom: 26px;
}
.query svg { flex: none; width: 20px; height: 20px; margin-top: -2px; }
.query span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.query .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); margin-left: 2px; vertical-align: -0.15em; }
@media (prefers-reduced-motion: no-preference) { .query .caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--signal); color: var(--ink); }
.page-hero--plain { background: var(--bg); border-bottom: 1px solid var(--rule); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.5rem); }
.page-hero h1 { max-width: 17ch; }
.page-hero .lede { margin-top: 22px; max-width: 50ch; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero__aside { font-size: 0.98rem; }
.page-hero__aside dl { margin: 0; display: grid; gap: 14px; }
.page-hero__aside dt { font-weight: 800; }
.page-hero__aside dd { margin: 2px 0 0; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.crumbs { font-size: 0.9rem; font-weight: 600; padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.55; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin: 0; max-width: 48ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Search board (home services) ---------- */
.board { border-top: 2px solid var(--ink); }
.board__row {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) auto; gap: 16px 40px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; position: relative;
}
.board__row::before { content: ''; position: absolute; inset: 0 -16px; border-radius: var(--r); background: var(--surface); opacity: 0; transition: opacity 0.25s var(--ease); z-index: -1; }
.board__row:hover::before { opacity: 1; }
.board__q { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 600; color: var(--ink-2); }
.board__q svg { flex: none; width: 18px; height: 18px; margin-top: 4px; }
.board__q q { quotes: '“' '”'; }
.board__what b { display: block; font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.board__what span { display: block; color: var(--ink-2); margin-top: 6px; max-width: 46ch; }
.board__go { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.board__row:hover .board__go { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) {
  .board__row { grid-template-columns: 1fr auto; }
  .board__q { grid-column: 1 / -1; font-size: 1rem; }
  .board__go { width: 40px; height: 40px; }
}

/* ---------- Ticket (calculator) ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc__form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-weight: 700; font-size: 0.98rem; }
.field .hint { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 14px 10px;
  border: 2px solid var(--ink); border-radius: var(--r); background: var(--bg);
  font-size: 1.05rem; font-weight: 500;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--ink-2); opacity: 1; }
.input:focus { outline: 3px solid var(--signal); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--stop); }
.input-money { position: relative; }
.input-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-46%); font-weight: 700; pointer-events: none; }
.input-money .input { padding-left: 30px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row output { min-width: 4ch; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; accent-color: var(--ink); height: 32px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg legend { font-weight: 700; font-size: 0.98rem; margin-bottom: 8px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }

.ticket {
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.ticket__head { background: var(--ink); color: var(--bg); padding: 16px 24px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.ticket__head svg { height: 22px; width: auto; color: var(--bg); }
.ticket__body { padding: 26px 24px 8px; }
.ticket__big { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 22px; border-bottom: 2px dashed var(--rule); }
.ticket__big dt { font-weight: 700; font-size: 0.92rem; color: var(--ink-2); }
.ticket__big dd { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket__big .is-good { color: var(--clear); }
.ticket__lines { list-style: none; padding: 14px 0 6px; }
.ticket__lines li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--surface-2); }
.ticket__lines li:last-child { border-bottom: 0; }
.ticket__lines b { font-weight: 700; }
.ticket__save { margin: 0 24px 24px; padding: 18px 20px; background: var(--signal); border-radius: var(--r); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ticket__save b { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ticket__foot { padding: 0 24px 24px; font-size: 0.85rem; color: var(--ink-2); }
.ticket::before, .ticket::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); top: 50%; }
.band--surface .ticket::before, .band--surface .ticket::after { background: var(--surface); }
.ticket::before { left: -13px; }
.ticket::after { right: -13px; }

/* ---------- Signal (freeze) ---------- */
.signal-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
@media (max-width: 760px) { .signal-wrap { grid-template-columns: minmax(0, 1fr); } }
.signal-head { display: grid; gap: 14px; justify-items: center; }
.signal-head__box { background: oklch(0.12 0.008 60); border: 2px solid var(--night-2); border-radius: 60px; padding: 18px 16px; display: grid; gap: 14px; }
.lamp { width: 74px; height: 74px; border-radius: 50%; background: oklch(0.28 0.01 60); display: grid; place-items: center; font-weight: 800; font-size: 0.72rem; color: oklch(0.5 0.01 60); transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.lamp.is-on[data-state="clear"] { background: oklch(0.72 0.17 150); color: var(--night); box-shadow: 0 0 28px 2px oklch(0.72 0.17 150 / 0.45); }
.lamp.is-on[data-state="caution"] { background: var(--signal); color: var(--night); box-shadow: 0 0 28px 2px oklch(0.77 0.155 64 / 0.5); }
.lamp.is-on[data-state="stop"] { background: oklch(0.62 0.21 27); color: var(--night-ink); box-shadow: 0 0 28px 2px oklch(0.62 0.21 27 / 0.45); }
.signal-head__mast { width: 10px; height: 80px; background: var(--night-2); border-radius: 2px; }
.signal-log { list-style: none; border-top: 1px solid var(--night-2); }
.signal-log li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px 20px; padding: 18px 0; border-bottom: 1px solid var(--night-2); align-items: baseline; transition: opacity 0.4s var(--ease); }
.signal-log .state { font-weight: 800; font-size: 0.85rem; display: inline-flex; gap: 8px; align-items: center; }
.signal-log .state::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
.signal-log .state--clear { color: oklch(0.78 0.15 150); }
.signal-log .state--caution { color: var(--signal); }
.signal-log .state--stop { color: oklch(0.72 0.17 27); }
.signal-log b { display: block; font-weight: 700; }
.signal-log span { color: var(--night-ink-2); font-size: 0.95rem; }
.signal-log .val { font-variant-numeric: tabular-nums; font-weight: 800; }
.signal-log li.is-dim { opacity: 0.45; }
@media (max-width: 560px) { .signal-log li { grid-template-columns: 1fr auto; } .signal-log li > div { grid-column: 1 / -1; order: 3; } }

/* ---------- Gateway table ---------- */
.gw-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.gw-table th, .gw-table td { text-align: left; padding: 18px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.gw-table thead th { font-size: 0.88rem; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); padding-top: 0; }
.gw-table tbody th { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.gw-table tbody th a { text-decoration: none; }
.gw-table tbody th a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.gw-table .ext { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.gw-table .ext svg { width: 13px; height: 13px; }
.gw-table td:last-child { padding-right: 0; text-align: right; }
@media (max-width: 860px) {
  .gw-table thead { display: none; }
  .gw-table, .gw-table tbody, .gw-table tr, .gw-table td, .gw-table th { display: block; width: 100%; }
  .gw-table tr { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
  .gw-table th, .gw-table td { border: 0; padding: 0; text-align: left !important; }
  .gw-table td[data-l]::before { content: attr(data-l) ': '; font-weight: 700; }
}

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 3px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: var(--ink); color: var(--bg); line-height: 1.3; white-space: nowrap; }
.tag--signal { background: var(--signal); color: var(--ink); }
.tag--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.tag--clear { background: var(--clear-soft); color: oklch(0.36 0.1 155); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags a { text-decoration: none; }
.tags a.tag:hover { background: var(--signal); color: var(--ink); }

/* ---------- API code ---------- */
.api { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .api { grid-template-columns: minmax(0, 1fr); } }
.code { background: oklch(0.12 0.008 60); border: 1px solid var(--night-2); border-radius: var(--r-lg); overflow: hidden; font-size: 0.9rem; }
.code__bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--night-2); color: var(--night-ink-2); font-size: 0.82rem; font-weight: 600; }
.code__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-2); }
.code pre { margin: 0; padding: 20px 22px 22px; overflow-x: auto; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; line-height: 1.65; color: var(--night-ink); }
.code .k { color: oklch(0.8 0.12 64); }
.code .s { color: oklch(0.82 0.1 150); }
.code .c { color: oklch(0.62 0.01 60); }
.code .n { color: oklch(0.8 0.09 230); }
.api-list { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.api-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.api-list svg { margin-top: 3px; }
.api-list b { display: block; }
.api-list span { color: var(--night-ink-2); }

/* ---------- Steps (real sequence) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 26px 24px 8px 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.steps li:nth-child(1)::before { background: var(--signal); color: var(--ink); }
.steps b { display: block; font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.steps span { color: var(--ink-2); display: block; max-width: 32ch; }

/* ---------- How (service) list ---------- */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.how__item h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.how__item h3::before { content: ''; flex: none; width: 14px; height: 4px; background: var(--signal); border-radius: 2px; transform: translateY(-4px); }
.how__item p { color: var(--ink-2); margin: 0; }

/* ---------- Split / prose ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: sticky; top: 100px; }
@media (max-width: 900px) { .sticky { position: static; } }

.points { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.points li { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 32px; }
.points b { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.points span { color: var(--ink-2); }
@media (max-width: 640px) { .points li { grid-template-columns: minmax(0, 1fr); } }

.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks svg { margin-top: 4px; }
.checks--x svg { color: var(--stop); }

/* ---------- Link directory ---------- */
.dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 40px; }
.dir h3 { font-size: 1rem; font-weight: 800; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 10px; }
.dir ul { list-style: none; display: grid; gap: 2px; }
.dir a { display: block; padding: 5px 0; text-decoration: none; font-weight: 500; }
.dir a:hover { text-decoration: underline; text-decoration-color: var(--signal); }

/* ---------- Gateway chips (inner) ---------- */
.gw-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.gw-strip a { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color 0.2s var(--ease); }
.gw-strip a:hover { background: var(--signal-soft); }
.gw-strip b { font-weight: 800; font-size: 1.1rem; }
.gw-strip span { font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }

/* ---------- Compare table ---------- */
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 18px 20px 16px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cmp thead th { font-size: 1.4rem; font-weight: 900; border-bottom: 2px solid var(--ink); letter-spacing: -0.015em; }
.cmp tbody th { font-weight: 700; width: 22%; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 720px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .cmp th, .cmp td { border: 0; padding: 4px 0; }
  .cmp td::before { content: attr(data-l); display: block; font-weight: 800; color: var(--ink); }
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 20px 0; font-weight: 700; font-size: 1.15rem; line-height: 1.35; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 22px; width: 24px; height: 24px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1915' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--ink-2); }
.faq .faq__a { padding: 0 0 22px; max-width: 70ch; color: var(--ink-2); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- CTA band + application ---------- */
.cta-band { background: var(--signal); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: minmax(0, 1fr); } }
.cta-band .lede { margin-top: 20px; }
.cta-band ul.checks { margin-top: 28px; }
.form-card { background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-legal { font-size: 0.85rem; color: var(--ink-2); margin: 14px 0 0; }
.err { color: var(--stop); font-size: 0.9rem; font-weight: 600; margin: 0; }
.err:empty { display: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.check-grid legend { font-weight: 700; font-size: 0.98rem; margin-bottom: 10px; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--rule); border-radius: var(--r); cursor: pointer; font-size: 0.95rem; font-weight: 600; line-height: 1.3; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.check:hover { border-color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check:has(input:checked) { border-color: var(--ink); background: var(--signal-soft); }
.form-status { margin-top: 16px; padding: 16px 18px; border-radius: var(--r); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--clear-soft); color: oklch(0.32 0.09 155); }
.form-status--warn { background: var(--signal-soft); }
.form-status--err { background: var(--stop-soft); color: oklch(0.4 0.16 27); }
.form-done { text-align: left; }
.form-done h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; }
.form-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.form-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); transition: background-color 0.3s var(--ease); }
.form-steps span.is-on { background: var(--ink); }
.form-pane[hidden] { display: none; }
.form-nav { display: flex; gap: 10px; margin-top: 22px; }
.form-nav .btn { width: auto; flex: 1; margin: 0; }

/* ---------- Figures ---------- */
.fig { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.fig figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 16px; }
.fig__title { font-weight: 800; font-size: 1.05rem; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fig__title .num { font-weight: 900; }
.bar { display: flex; height: 54px; border-radius: var(--r-sm); overflow: hidden; gap: 2px; }
.bar > i { display: block; height: 100%; }
.legend { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; font-variant-numeric: tabular-nums; }
.legend i { width: 14px; height: 14px; border-radius: 3px; }
.legend b { font-weight: 700; }
.wf { display: grid; gap: 8px; }
.wf__row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 14px; align-items: center; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.wf__row b { text-align: right; font-weight: 800; }
.wf__track { height: 30px; position: relative; }
.wf__track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.wf__row--total { border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 4px; font-weight: 800; }
@media (max-width: 520px) { .wf__row { grid-template-columns: 96px 1fr 76px; font-size: 0.85rem; gap: 8px; } }
.timeline { list-style: none; position: relative; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 74px 22px 1fr; gap: 14px; align-items: start; padding-bottom: 18px; position: relative; }
.timeline li::after { content: ''; position: absolute; left: 98px; top: 18px; bottom: -2px; width: 3px; background: var(--ink); border-radius: 2px; }
.timeline li:last-child::after { display: none; }
.timeline .t { font-weight: 800; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); position: relative; z-index: 1; }
.timeline .dot--on { background: var(--signal); }
.timeline .dot--ok { background: var(--clear); border-color: var(--clear); }
.timeline b { display: block; font-weight: 700; line-height: 1.3; }
.timeline span { color: var(--ink-2); font-size: 0.93rem; }
.meters { display: grid; gap: 16px; }
.meter__top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.meter__top b { font-weight: 800; }
.meter__bar { height: 14px; background: var(--bg); border-radius: 7px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--ink); }
.meter__bar i { display: block; height: 100%; background: var(--ink); border-radius: 7px; }
.meter__bar i.near { background: var(--signal); }
.meter__bar i.over { background: var(--stop); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink); padding-block: clamp(3.5rem, 7vw, 6rem) 32px; }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--night-2); }
@media (max-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.footer-brand svg { height: 34px; width: auto; color: var(--night-ink); }
.footer-brand p { color: var(--night-ink-2); margin-top: 18px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }
.footer-cols h2 { font-size: 0.95rem; font-weight: 800; margin-bottom: 12px; color: var(--signal); letter-spacing: 0; }
.footer-cols ul { list-style: none; display: grid; gap: 7px; font-size: 0.95rem; }
.footer-legal { padding-top: 28px; display: grid; gap: 14px; font-size: 0.85rem; color: var(--night-ink-2); }
.footer-legal p { margin: 0; max-width: 110ch; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Misc ---------- */
.ext-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ext-link svg { width: 14px; height: 14px; }
.notice { font-size: 0.9rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 32px; }
.kv { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.kv > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.kv dt { font-weight: 800; }
.kv dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .kv > div { grid-template-columns: 1fr; gap: 4px; } }
.glossary { columns: 2 340px; column-gap: 56px; }
.glossary > div { break-inside: avoid; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font-weight: 800; font-size: 1.15rem; }
.glossary dd { margin: 6px 0 0; color: var(--ink-2); }
.glossary dd .rel { display: block; margin-top: 6px; font-size: 0.88rem; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; list-style: none; }
.az a { display: grid; place-items: center; min-width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: var(--r-sm); text-decoration: none; font-weight: 800; }
.az a:hover { background: var(--ink); color: var(--bg); }
.not-found { min-height: 60vh; display: grid; align-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .draw { stroke-dashoffset: 0; }
  .js .pop { opacity: 1; }
}
@media print {
  .site-header, .site-footer, .cta-band, .mobile-menu { display: none; }
}

/* Hero yard routing */
.yard .route { stroke: transparent; stroke-width: 5; transition: stroke 0.4s var(--ease); }
.yard .branch.is-active .route { stroke: var(--bg); }
.yard .branch.is-active .track-label { fill: var(--ink); font-weight: 900; }
.yard .branch .track-label { transition: opacity 0.3s var(--ease); }
.yard .token { fill: var(--ink); stroke: var(--bg); stroke-width: 3; }
.no-js .yard .token { display: none; }
@media (max-width: 640px) {
  .yard .track-label { font-size: 21px; }
  .yard .track { stroke-width: 5; }
  .yard .track--thin { stroke-width: 2.6; }
}
.site-header .mobile-menu .wrap { display: block; min-height: 0; }
.mobile-menu__top .menu-toggle { margin-left: 0; }

/* ---------- "Not the official site" note ---------- */
.brand-note { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 0; max-width: 58ch; padding: 12px 14px; font-size: 0.92rem; line-height: 1.45; border: 1px solid color-mix(in oklch, var(--ink) 35%, transparent); border-radius: var(--r-sm); background: color-mix(in oklch, var(--bg) 22%, transparent); }
.brand-note svg { flex: none; margin-top: 1px; }
.brand-note a { font-weight: 700; }

/* ---------- On this page ---------- */
.toc { position: sticky; top: 73px; z-index: calc(var(--z-sticky) - 1); background: var(--bg); border-bottom: 1px solid var(--rule); }
.toc .wrap { display: flex; align-items: center; gap: 20px; }
.toc__label { flex: none; font-size: 0.85rem; font-weight: 800; color: var(--ink-2); }
.toc ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; white-space: nowrap; padding: 15px 0 12px; font-weight: 700; font-size: 0.95rem; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--signal); }
@media (max-width: 640px) {
  .toc__label { display: none; }
  .toc ul { gap: 18px; mask-image: linear-gradient(to right, #000 88%, transparent); }
}
html:has(.toc) { scroll-padding-top: 124px; }
body:has(.toc) .sticky { top: 140px; }

/* ---------- Sign up directly ---------- */
.signup { list-style: none; counter-reset: su; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.signup li { counter-increment: su; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.signup li::before { content: counter(su); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; font-variant-numeric: tabular-nums; }
.signup li:first-child::before { background: var(--signal); color: var(--ink); }
.signup b { font-weight: 800; font-size: 1.1rem; }
.signup span { color: var(--ink-2); }
.signup__alt { margin: 22px 0 0; color: var(--ink-2); max-width: 60ch; }
.signup__alt a { font-weight: 700; color: var(--ink); }

/* ---------- Contact / company ---------- */
.co-dl { display: grid; gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.co-dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.co-dl dt { font-weight: 800; }
.co-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .co-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.official-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.official-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.official-list b { font-weight: 800; }
.official-list a { font-weight: 600; font-size: 0.95rem; display: inline-flex; gap: 4px; align-items: center; margin-right: 12px; }
.footer-co { color: var(--night-ink); }
.footer-co a { color: inherit; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.legal__toc { position: sticky; top: 100px; }
.legal__toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 0.95rem; }
.legal__toc a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.legal__toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); }
.legal .prose h2 { margin-top: 2em; }
.legal .prose code { font-size: 0.9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal__toc { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--rule); } }
