/* Routewell: a transit map for RPC traffic. Every provider key runs on its own coloured line
   (harbour blue, orchid, lagoon, saffron, rose...), and signal aspects carry their own colours:
   green clear, sun-yellow slow, orange rate-limited, red failing. Canvas: deep pine shading into
   petrol, with a light map-paper section. Archivo (wide cuts) + Azeret Mono for readouts. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url("/fonts/azeret-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --board: #101a14;
  --board-2: #13211d;
  --deep: #0a1311;
  --petrol: #0e2229;
  --petrol-2: #143039;
  --plate: #182a26;
  --plate-2: #1e3530;
  --rule: #24403a;
  --rule-2: #355a51;
  --track: #2b4a40;
  --paper: #e8f5ec;
  --paper-2: #f5fbf7;
  --ink: #0f1a15;
  --ink-2: #b6cdc4;
  --ink-3: #87a59c;
  --ink-p2: #3d5a4d;
  /* signal aspects */
  --clear: #4ade80;
  --clear-deep: #1f8a4c;
  --caution: #ffd23f;
  --limit: #ff8a3d;
  --stop: #ff5a6e;
  /* line colours (one per provider / route) */
  --l-blue: #5aa9ff;
  --l-orchid: #d27cf2;
  --l-lagoon: #3fd0c0;
  --l-saffron: #f2b84b;
  --l-rose: #ff8fa3;
  --l-leaf: #8be07a;
  --l-sky: #a8dcff;
  --l-lilac: #b3a8ff;
  --radius: 10px;
  --wrap: 1160px;
  --mono: "Azeret Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Archivo", system-ui, "Segoe UI", sans-serif;
  color-scheme: dark;
}
.c0 { --line: var(--l-blue); } .c1 { --line: var(--l-orchid); } .c2 { --line: var(--l-lagoon); } .c3 { --line: var(--l-saffron); }
.c4 { --line: var(--l-rose); } .c5 { --line: var(--l-leaf); } .c6 { --line: var(--l-sky); } .c7 { --line: var(--l-lilac); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--board);
  color: var(--paper);
  font: 400 16px/1.6 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--l-blue); color: var(--ink); }
:focus-visible { outline: 2px solid var(--l-sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--clear); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }

/* Network-map texture: a tiled transit/circuit drawing, faint, behind dark sections. */
.netbg { position: relative; isolation: isolate; }
.netbg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/net.svg") 0 0 / 480px 480px;
  opacity: 0.085;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

/* Route stripe: the line colours side by side, used as a rule. */
.stripe {
  height: 6px;
  background: linear-gradient(90deg,
    var(--l-blue) 0 16%, var(--l-orchid) 16% 30%, var(--l-lagoon) 30% 47%, var(--clear) 47% 60%,
    var(--l-saffron) 60% 74%, var(--l-rose) 74% 86%, var(--l-lilac) 86% 100%);
}

/* ---- header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 22, 19, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-stretch: 112%; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { position: relative; text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 10px; border-radius: 8px; transition: color 0.15s, background-color 0.15s; }
.nav a:not(.btn):hover { color: var(--paper); background: var(--plate); }
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--l-blue); }
.x-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--ink-2); border: 1px solid var(--rule); transition: color 0.15s, border-color 0.15s; }
.x-btn:hover { color: var(--paper); border-color: var(--rule-2); }
.x-btn svg { width: 15px; height: 15px; }
.x-btn[hidden] { display: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-go { background: var(--clear); color: #08130d; box-shadow: inset 0 -3px 0 rgba(8, 40, 22, 0.35); }
.btn-go:hover { background: #6be898; }
.btn-line { border-color: var(--rule-2); color: var(--paper); background: rgba(14, 34, 41, 0.6); }
.btn-line:hover { border-color: var(--l-blue); }
.btn-quiet { background: var(--plate); color: var(--paper); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--rule-2); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.4); }
.btn-ink:hover { background: #1b2c24; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-danger { border-color: rgba(255, 90, 110, 0.45); color: var(--stop); background: transparent; }
.btn-danger:hover { border-color: var(--stop); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- type ---- */
.label { font: 700 11.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--clear); }
.label.muted { color: var(--ink-3); }
/* Label with a line roundel in front, like a station sign. */
.label.line-label { display: inline-flex; align-items: center; gap: 9px; color: var(--line, var(--clear)); }
.label.line-label::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: var(--line, var(--clear)); }
h1, h2, h3 { margin: 0; font-weight: 760; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(38px, 7.4vw, 76px); font-stretch: 116%; }
h2 { font-size: clamp(28px, 4.4vw, 44px); font-stretch: 112%; }
h3 { font-size: 19px; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.25; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); max-width: 36em; margin: 18px 0 0; text-wrap: pretty; }
p { text-wrap: pretty; }
/* "healthiest": green word riding on three parallel route lines. */
.lit {
  color: var(--clear);
  padding-bottom: 0.14em;
  background:
    linear-gradient(var(--l-blue), var(--l-blue)) 0 calc(100% - 0.1em) / 100% 0.05em no-repeat,
    linear-gradient(var(--l-orchid), var(--l-orchid)) 0 calc(100% - 0.02em) / 100% 0.05em no-repeat,
    linear-gradient(var(--clear), var(--clear)) 0 calc(100% - 0.18em) / 100% 0.05em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- hero ---- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.hero-meta li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--clear); margin-right: 8px; vertical-align: 0; }
.hero-meta li:nth-child(2)::before { border-color: var(--l-blue); }
.hero-meta li:nth-child(3)::before { border-color: var(--l-orchid); }


/* the signal-box diagram, drawn as a small colour-coded network */
.yard { width: 100%; height: auto; margin-top: 6px; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.yard .grid-dot { fill: rgba(168, 220, 255, 0.12); }
.yard .ghost { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.22; }
.yard .ghost-stop { fill: #0c1816; stroke-width: 2; opacity: 0.4; }
.yard .g1 { stroke: var(--l-saffron); } .yard .g2 { stroke: var(--l-rose); } .yard .g3 { stroke: var(--l-lilac); }
.yard .casing { fill: none; stroke: #07100e; stroke-width: 15; stroke-linecap: round; }
.yard .l1 { --line: var(--l-blue); } .yard .l2 { --line: var(--l-orchid); } .yard .l3 { --line: var(--l-lagoon); }
.yard .rail { fill: none; stroke: var(--line, var(--paper)); stroke-width: 7; stroke-linecap: round; opacity: 0.3; transition: opacity 0.35s ease, stroke-width 0.35s ease; }
.yard .rail.trunk { stroke: var(--paper); opacity: 1; }
.yard .rail.on { opacity: 1; stroke-width: 8; }
.yard .rail.on.slow { stroke-dasharray: 12 9; }
.yard [data-state="held"] .rail { opacity: 0.12; }
.yard .stop-mark { stroke: var(--stop); stroke-width: 6; stroke-linecap: round; opacity: 0; transition: opacity 0.25s; }
.yard [data-state="held"] .stop-mark { opacity: 1; }
.yard .station { fill: #0c1816; stroke: var(--line); stroke-width: 3.5; transition: fill 0.3s; }
.yard .route.live .station { fill: var(--paper); }
.yard .chip { fill: var(--line); opacity: 0.3; transition: opacity 0.3s; }
.yard .route.live .chip { opacity: 1; }
.yard .tag { font: 700 10.5px var(--mono); fill: var(--paper); letter-spacing: 0.06em; transition: fill 0.3s; }
.yard .route.live .tag { fill: #08130d; }
.yard .hit { fill: none; stroke: transparent; stroke-width: 44; cursor: pointer; pointer-events: stroke; }
.yard .route { cursor: pointer; outline: none; }
.yard .route:focus-visible .ring { stroke: var(--paper); }
.yard .lamp-box { fill: #0f1d1a; stroke: var(--rule-2); stroke-width: 1.5; }
.yard .ring { fill: none; stroke: transparent; stroke-width: 2; transition: stroke 0.2s; }
.yard .lamp { transition: fill 0.25s ease; }
.yard .lamp-dim { fill: #22332e; }
.yard .glow { opacity: 0; transition: opacity 0.3s ease; }
.yard .glow-g { fill: var(--clear); } .yard .glow-a { fill: var(--caution); } .yard .glow-r { fill: var(--stop); }
.yard [data-state="clear"] .lamp-g { fill: var(--clear); }
.yard [data-state="clear"] .glow-g { opacity: 0.4; }
.yard [data-state="slow"] .lamp-a { fill: var(--caution); }
.yard [data-state="slow"] .glow-a { opacity: 0.4; }
.yard [data-state="held"] .lamp-r { fill: var(--stop); }
.yard [data-state="held"] .glow-r { opacity: 0.4; }
.yard .tag-sm { font: 400 11.5px var(--mono); fill: var(--ink-3); letter-spacing: 0.04em; }
.yard [data-state="clear"] [data-word] { fill: var(--clear); }
.yard [data-state="slow"] [data-word] { fill: var(--caution); }
.yard [data-state="held"] [data-word] { fill: var(--stop); }
.yard .app-shadow { fill: var(--l-blue); }
.yard .app-box { fill: var(--paper); }
.yard .app-tag { font: 700 12px var(--mono); fill: var(--ink); letter-spacing: 0.08em; }
.yard .blade { stroke: var(--paper); stroke-width: 7; stroke-linecap: round; transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); transform-box: view-box; }
.yard .pivot { fill: var(--paper); stroke: #07100e; stroke-width: 3; }
.yard .pkt { fill: var(--paper); stroke: #07100e; stroke-width: 1.5; }
.yard .pkt.pk0 { fill: #d6ebff; } .yard .pkt.pk1 { fill: #f6dcff; } .yard .pkt.pk2 { fill: #d4fbf5; }
.yard .hold-bar { stroke: var(--stop); stroke-width: 6; stroke-linecap: round; opacity: 0; transition: opacity 0.25s; }
.yard.all-held .hold-bar { opacity: 1; }
.yard-hint { color: var(--ink-3); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font: 400 11.5px var(--mono); color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.legend span.g::before { background: var(--clear); }
.legend span.a::before { background: var(--caution); }
.legend span.r::before { background: var(--stop); }

/* ---- sections ---- */
.section { padding: 72px 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* map paper: the light section */
.paper { background: var(--paper); color: var(--ink); }
.paper .section-head p { color: var(--ink-p2); }
.paper::before { opacity: 0.16; filter: saturate(1.4) brightness(0.7); }
.paper .label { color: #1d6a3e; }


.code {
  position: relative;
  margin: 28px 0 0;
  border-radius: 12px;
  background: #0c1715;
  overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(16, 26, 20, 0.7);
}
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--rule); }
.code-head .label { display: inline-flex; align-items: center; gap: 8px; }
.code-head .label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--l-saffron); box-shadow: 14px 0 0 var(--l-rose), 28px 0 0 var(--l-lagoon); margin-right: 30px; }
.code pre { margin: 0; padding: 16px 14px; overflow-x: auto; font: 400 13.5px/1.7 var(--mono); color: var(--paper); }
.code .c { color: #7f9a91; font-style: italic; }
.code .s { color: var(--l-saffron); }
.code .k { color: var(--l-orchid); font-weight: 700; }
.code .v { color: var(--l-sky); }

/* aspects: each signal aspect in its own colour */
.mast { width: 34px; height: 54px; border-radius: 8px; background: #0b1513; border: 1px solid var(--rule-2); display: grid; align-content: center; justify-items: center; gap: 4px; padding: 5px 0; }
.mast i { width: 11px; height: 11px; border-radius: 50%; background: #22332e; }
.mast.g i:nth-child(3) { background: var(--clear); box-shadow: 0 0 10px rgba(74, 222, 128, 0.6); }
.mast.y i:nth-child(2) { background: var(--caution); box-shadow: 0 0 10px rgba(255, 210, 63, 0.55); }
.mast.o i:nth-child(1), .mast.o i:nth-child(2) { background: var(--limit); box-shadow: 0 0 10px rgba(255, 138, 61, 0.55); }
.mast.r i:nth-child(1) { background: var(--stop); box-shadow: 0 0 10px rgba(255, 90, 110, 0.55); }

/* board of supported providers: one coloured line per provider */


.plan-price { font-size: 36px; font-weight: 760; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--ink-3); font-stretch: 100%; letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 14px; height: 3px; border-radius: 2px; background: var(--clear); margin-top: 11px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.note { font: 400 12.5px/1.5 var(--mono); color: var(--ink-3); }

.faq-sec { background: var(--board); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 26px; position: relative; font-weight: 620; font-size: 17px; }
.faq summary::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 3px solid var(--line); box-sizing: border-box; transition: background-color 0.2s; }
.faq details[open] summary::before { background: var(--line); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 18px 26px; color: var(--ink-2); max-width: 44em; }


/* ==== page structure (2026-11-06): the map is the hero, then a line that runs down the page ==== */

/* hero: headline over the map, the signal box running edge to edge, the pitch underneath */
.hero {
  padding: 40px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 80% 55%, rgba(90, 169, 255, 0.12), transparent 70%),
    radial-gradient(45% 55% at 6% 80%, rgba(210, 124, 242, 0.1), transparent 70%),
    linear-gradient(180deg, var(--board) 0%, #0f1f1d 55%, var(--petrol) 100%);
}
.hero-head h1 { margin-top: 14px; max-width: 15em; }
.stage { margin: 18px 0 0; position: relative; }
.stage .yard { width: 100%; margin: 0; }
.stage-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 6px; padding: 10px 0; border-block: 1px dashed var(--rule-2);
  font: 400 13px/1.45 var(--mono); color: var(--ink-2);
}
.readout { flex: 1 1 260px; min-width: 0; color: var(--paper); }
.readout::before { content: "›"; color: var(--clear); margin-right: 8px; font-weight: 700; }
.readout b { color: var(--l-sky); font-weight: 700; }
.hero-foot { display: grid; gap: 4px; margin-top: 22px; }
.hero-foot .lead { margin: 0; }

.yard .ghost { stroke-width: 3.5; }
.yard .g4 { stroke: var(--l-sky); } .yard .g5 { stroke: var(--l-leaf); }
.yard .feed { fill: none; stroke: var(--paper); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; opacity: 0.35; }
.yard .cont { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; opacity: 0.12; transition: opacity 0.35s; pointer-events: none; }
.yard .route.live .cont { opacity: 0.55; }
.yard [data-state="held"] .cont { opacity: 0.05; }
.yard .badge circle { fill: var(--paper); stroke: var(--line); stroke-width: 3.5; }
.yard .badge text { font: 700 11px var(--mono); fill: var(--ink); }

/* how it works: the map-paper section, one line running down through three stops */
.how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.how > *, .live > * { min-width: 0; }
.how .section-head { margin-bottom: 0; }
.how .code { margin-top: 26px; }
.flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.flow::before {
  content: ""; position: absolute; left: 20px; top: 18px; bottom: 18px; width: 8px; border-radius: 4px; margin-left: -4px;
  background: linear-gradient(180deg, var(--l-blue) 0 33%, var(--l-orchid) 33% 66%, var(--clear-deep) 66% 100%);
}
.stop { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.stop .step-num {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper-2); border: 5px solid var(--line); font: 700 12px var(--mono); color: var(--ink);
}
.stop-where { margin: 2px 0 6px; font: 700 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--line) 60%, var(--ink)); }
.stop h3 { color: var(--ink); font-size: 21px; }
.stop p:not(.stop-where) { margin: 8px 0 0; color: var(--ink-p2); font-size: 15.5px; max-width: 34em; }
.stop b { color: var(--ink); }

/* signal aspects: one board, read like a timetable */
.aspects-sec { background: linear-gradient(180deg, var(--petrol) 0%, var(--board) 100%); }
.timetable { border: 1px solid var(--rule-2); border-radius: 14px; background: rgba(8, 16, 14, 0.82); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9); }
.timetable ul { list-style: none; margin: 0; padding: 0; }
.tt-head { display: none; }
.tt-row {
  --tone: var(--clear); position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 6px 14px; padding: 18px 16px 18px 20px;
  border-top: 1px solid var(--rule); background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 9%, transparent), transparent 45%);
}
.tt-row:first-child { border-top: 0; }
.tt-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
.tt-row.t-y { --tone: var(--caution); } .tt-row.t-o { --tone: var(--limit); } .tt-row.t-r { --tone: var(--stop); }
.tt-row .mast { grid-row: span 3; }
.tt-row h3 { font-size: 18px; color: var(--tone); align-self: center; }
.tt-row p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tt-row code { font: 400 13px var(--mono); color: var(--paper); background: var(--plate); padding: 1px 6px; border-radius: 4px; }
.tt-fig { justify-self: start; font: 700 11.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); border-radius: 999px; padding: 5px 10px; margin-top: 4px; }

/* measured numbers, with the provider line index beside them */
.live-sec { background: radial-gradient(70% 80% at 100% 0%, rgba(63, 208, 192, 0.12), transparent 70%), linear-gradient(180deg, var(--board), var(--petrol)); }
.live { display: grid; gap: 44px; }
.live-card { border: 1px solid var(--rule-2); border-radius: 14px; background: rgba(10, 19, 17, 0.8); padding: 18px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.8); }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.live-link { font: 600 14px var(--sans); color: var(--l-lagoon); text-decoration: none; padding: 6px 0; }
.live-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.live-card .empty { color: var(--ink-2); margin: 10px 0 0; }
.live-card .lines { margin: 12px 0 0; }
.live-card .line { grid-template-columns: 1fr; padding-block: 13px; }
.live-card .line-state { color: var(--ink-2); font-weight: 400; letter-spacing: 0.02em; text-transform: none; }
.line-index h2 { font-size: 22px; font-stretch: 106%; margin: 12px 0 16px; line-height: 1.2; }
.board { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 0; padding: 0; list-style: none; }
.board li { position: relative; list-style: none; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule); }
.board li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--line); background: var(--paper); box-sizing: border-box; }
.board b { font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.board span { font: 400 11.5px var(--mono); color: var(--ink-3); letter-spacing: 0.04em; }

/* plans: one ticket with a perforated stub */
.plans-sec { background: linear-gradient(180deg, var(--petrol) 0%, var(--board) 70%); }
.ticket { display: grid; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); }
.plan { position: relative; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.plan.main { color: var(--ink); border-radius: 16px 16px 0 0; background: radial-gradient(80% 80% at 100% 0%, rgba(90, 169, 255, 0.35), transparent 60%), var(--clear); }
.plan.main .label { color: #0d4a26; }
.plan.main ul { color: #12301f; }
.plan.main li::before { background: var(--ink); }
.plan.team {
  border-radius: 0 0 16px 16px; border-top: 2px dashed rgba(210, 124, 242, 0.6);
  background: repeating-linear-gradient(135deg, rgba(210, 124, 242, 0.07) 0 12px, transparent 12px 24px), #172723;
}
.plan.team li::before { background: var(--l-orchid); }

/* questions: a narrower column, line roundels as markers */
.faq-wrap { max-width: 800px; }

/* footer: the line ends here */
.foot { padding: 28px 0 40px; color: var(--ink-3); font-size: 14px; background: var(--deep); }
.terminus { display: flex; align-items: center; margin-bottom: 22px; }
.term-lines { flex: 1; height: 30px; min-width: 0; }
.term-lines path { fill: none; stroke-width: 5; vector-effect: non-scaling-stroke; }
.term-lines .tl1 { stroke: var(--l-blue); } .term-lines .tl2 { stroke: var(--clear); } .term-lines .tl3 { stroke: var(--l-orchid); }
.term-stop { flex: none; width: 10px; height: 34px; border-radius: 3px; background: var(--paper); margin-left: -2px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.foot a:hover { color: var(--paper); }

@media (min-width: 640px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ticket { grid-template-columns: 1.55fr 1fr; }
  .plan { padding: 30px 28px; }
  .plan.main { border-radius: 16px 0 0 16px; }
  .plan.team { border-radius: 0 16px 16px 0; border-top: 0; border-left: 2px dashed rgba(210, 124, 242, 0.6); }
  .tt-row { grid-template-columns: 34px 150px 1fr; padding: 20px 22px 20px 24px; }
  .tt-row .mast { grid-row: span 2; }
  .tt-row h3 { align-self: start; padding-top: 4px; }
  .tt-row p { grid-column: 3; grid-row: 1; }
  .tt-fig { grid-column: 3; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 64px; }
  .hero-head h1 { font-size: clamp(48px, 5.2vw, 72px); max-width: 17em; }
  .stage { margin-top: 8px; }
  .hero-foot { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 30px; }
  .hero-foot .hero-cta { margin-top: 2px; }
  .section { padding: 104px 0; }
  .how { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
  .how-side { position: sticky; top: 96px; }
  .flow { gap: 0; padding-top: 6px; }
  .flow .stop { padding-bottom: 64px; }
  .flow .stop:last-child { padding-bottom: 0; }
  .tt-head { display: grid; grid-template-columns: 34px 150px 1fr 230px; gap: 14px; padding: 12px 22px 12px 24px; border-bottom: 1px solid var(--rule-2); font: 700 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); background: rgba(24, 42, 38, 0.6); }
  .tt-head span:first-child { grid-column: 2; }
  .tt-row { grid-template-columns: 34px 150px 1fr 230px; align-items: start; }
  .tt-row .mast { grid-row: auto; }
  .tt-row p { grid-column: 3; }
  .tt-fig { grid-column: 4; grid-row: 1; margin-top: 2px; }
  .live { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 64px; align-items: start; }
  .live-main { position: sticky; top: 96px; }
  .line-index { position: relative; padding-left: 28px; border-left: 1px solid var(--rule-2); }
  .board { grid-template-columns: 1fr; }
  .live-card .line { grid-template-columns: 1fr; }
  .plans-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 48px; align-items: center; }
  .plans-wrap .section-head { margin-bottom: 0; }
}
@media (min-width: 1200px) {
  .faq-wrap { margin-left: calc((100% - var(--wrap)) / 2 + 300px); margin-right: auto; }
}

/* ---- reveal ---- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
/* route lines draw in as their section scrolls into view */
.draw { transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(0.6, 0, 0.2, 1); }
.draw.in { transform: none; }
.no-js .draw { transform: none; }

/* ---- status page ---- */
.page-head { padding: 44px 0 32px; background: radial-gradient(45% 70% at 92% 0%, rgba(90, 169, 255, 0.13), transparent 100%), radial-gradient(35% 60% at 0% 0%, rgba(210, 124, 242, 0.09), transparent 100%); }
.page-head h1 { font-size: clamp(34px, 6vw, 58px); margin-top: 12px; }
.page-head .lead { margin-top: 14px; }
.status-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font: 400 13px var(--mono); color: var(--ink-3); }
.lines { display: grid; gap: 10px; margin: 0 0 64px; padding: 0; list-style: none; }
.line { position: relative; border: 1px solid var(--rule); border-radius: var(--radius); background: linear-gradient(90deg, color-mix(in srgb, var(--line, var(--rule)) 10%, transparent), transparent 40%), var(--board-2); padding: 16px 16px 16px 22px; display: grid; gap: 14px; overflow: hidden; }
.line::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--line, var(--rule-2)); }
.line-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.line-name { font-weight: 680; font-size: 17px; min-width: 0; }
.line-sub { font: 400 12px var(--mono); color: var(--ink-3); }
.line-state { margin-left: auto; font: 700 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #2a3c30; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.dot.g { background: var(--clear); box-shadow: 0 0 10px rgba(74, 222, 128, 0.5); }
.dot.a { background: var(--caution); box-shadow: 0 0 10px rgba(255, 210, 63, 0.45); }
.dot.r { background: var(--stop); box-shadow: 0 0 10px rgba(255, 90, 110, 0.45); }
.line-state.g { color: var(--clear); }
.line-state.a { color: var(--caution); }
.line-state.r { color: var(--stop); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin: 0; }
.figs div { min-width: 0; }
.figs dt { font: 400 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.figs dd { margin: 3px 0 0; font: 700 17px var(--mono); color: var(--paper); font-variant-numeric: tabular-nums; }
.figs dd small { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.spark { width: 100%; height: 40px; }
.spark rect { fill: var(--line, var(--clear-deep)); opacity: 0.75; }
.spark rect.bad { fill: var(--caution); opacity: 1; }
.spark rect.worse { fill: var(--stop); opacity: 1; }
.spark .base { stroke: var(--rule); stroke-width: 1; }
.line-empty { color: var(--ink-3); font-size: 14px; margin: 0; }
.status-empty { background: rgba(10, 19, 17, 0.6); border: 1px dashed var(--rule-2); border-radius: var(--radius); padding: 22px; color: var(--ink-2); margin-bottom: 18px; }

/* ---- console ---- */
.console { padding: 36px 0 72px; background: radial-gradient(50% 50% at 100% 0%, rgba(63, 208, 192, 0.1), transparent 70%); }
.console h1 { font-size: clamp(30px, 5vw, 46px); margin-top: 10px; }
.cards { display: grid; gap: 14px; margin-top: 28px; }
.card { position: relative; border: 1px solid var(--rule); border-radius: 12px; background: linear-gradient(180deg, #152824, var(--board-2)); padding: 20px; min-width: 0; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line, var(--l-blue)); opacity: 0.85; }
.card h2 { font-size: 22px; font-stretch: 106%; }
.card > p { color: var(--ink-2); margin: 8px 0 0; font-size: 15px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label, .field .label { font: 700 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--rule-2);
  background: #0c140f;
  font: 400 15px var(--mono);
  color: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #5d7867; }
.input:focus { outline: none; border-color: var(--l-blue); box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.2); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row .input { flex: 1 1 220px; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 9px; padding: 3px; gap: 3px; background: #0c140f; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); min-height: 38px; transition: background-color 0.15s, color 0.15s; }
.seg button[aria-pressed="true"] { background: var(--plate-2); color: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-2); }
.msg { margin: 10px 0 0; font-size: 14px; min-height: 1.4em; }
.msg.err { color: var(--stop); }
.msg.ok { color: var(--clear); }
.urlbox { display: flex; align-items: stretch; gap: 0; border: 1px solid rgba(90, 169, 255, 0.5); border-radius: 9px; overflow: hidden; background: #0c140f; margin-top: 12px; }
.urlbox code { flex: 1; min-width: 0; padding: 12px; font: 400 13.5px/1.4 var(--mono); color: var(--l-sky); overflow-wrap: anywhere; }
.urlbox button { border: 0; border-left: 1px solid rgba(90, 169, 255, 0.5); background: rgba(90, 169, 255, 0.1); color: var(--paper); padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 14px; min-width: 76px; }
.urlbox button:hover { background: rgba(90, 169, 255, 0.2); }
.keybox { border: 1px solid var(--l-saffron); background: rgba(242, 184, 75, 0.07); border-radius: 12px; padding: 18px; margin-top: 18px; }
.keybox p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.keybox .urlbox { border-color: rgba(240, 185, 75, 0.5); }
.keybox .urlbox code { color: var(--paper); }
.keybox .urlbox button { border-left-color: rgba(240, 185, 75, 0.5); background: rgba(240, 185, 75, 0.08); }
.ups { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.up { position: relative; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 12px 12px 18px; background: var(--board); display: grid; gap: 10px; transition: opacity 0.2s; overflow: hidden; }
.up::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line, var(--rule-2)); }
.up.off { opacity: 0.55; }
.up-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.up-pos { font: 700 12px var(--mono); color: var(--ink-3); width: 22px; flex: none; }
.up-name { font-weight: 650; min-width: 0; }
.up-url { font: 400 12px var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.up-figs { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 400 12.5px var(--mono); color: var(--ink-2); }
.up-figs b { color: var(--paper); font-weight: 700; }
.up-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--rule); background: var(--plate); cursor: pointer; color: var(--ink-2); font-size: 13px; font-weight: 600; transition: border-color 0.15s, color 0.15s; }
.icon-btn:hover { color: var(--paper); border-color: var(--rule-2); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; border: 1px solid var(--rule-2); background: #0c140f; cursor: pointer; flex: none; margin-left: auto; transition: background-color 0.2s, border-color 0.2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); transition: transform 0.2s ease, background-color 0.2s; }
.switch[aria-checked="true"] { background: rgba(74, 222, 128, 0.18); border-color: var(--clear-deep); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--clear); }
.meter { height: 8px; border-radius: 4px; background: #0c140f; border: 1px solid var(--rule); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--clear), var(--l-lagoon) 60%, var(--l-blue)); transform-origin: left; transition: width 0.4s ease; }
.days { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin-top: 14px; }
.days i { flex: 1; background: linear-gradient(180deg, var(--l-lagoon), var(--l-blue)); border-radius: 2px 2px 0 0; min-height: 2px; }
.days i.zero { background: var(--rule); }
.kv { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font: 400 13px var(--mono); color: var(--ink-2); }
.kv b { color: var(--paper); }
.empty-box { border: 1px dashed var(--rule-2); border-radius: 10px; padding: 16px; color: var(--ink-2); font-size: 14.5px; margin-top: 14px; }
.grid-2 { display: grid; gap: 14px; }
.console-grid { display: grid; gap: 14px; }
.lines-off { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 64px; padding: 0; list-style: none; }
.lines-off li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-left: 4px solid var(--line, var(--rule)); border-radius: 8px; padding: 10px 12px; font-size: 14.5px; color: var(--ink-2); min-width: 0; }
.off-head { margin: 8px 0 12px; }
.off-head p { margin: 6px 0 0; color: var(--ink-3); font-size: 14px; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
table.admin th, table.admin td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); }
table.admin th { font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.table-scroll { overflow-x: auto; }

/* ---- 404 ---- */
.lost { padding: 90px 0; text-align: left; }

/* ---- breakpoints ---- */
@media (min-width: 640px) {
  .figs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .section { padding: 104px 0; }
  .line { grid-template-columns: minmax(200px, 1.1fr) 2.6fr 1.2fr; align-items: center; }
  .cards.split { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .console-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
}
@media (max-width: 520px) {
  .legend { gap: 8px; font-size: 10.5px; }
  .legend span::before { margin-right: 4px; }
  .nav .hide-sm { display: none; }
  .brand { font-size: 17px; }
  .top .wrap { gap: 6px; }
  .nav a:not(.btn) { padding: 8px 8px; }
}
@media (max-width: 359px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .nav .btn { padding: 0 12px; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rv, .draw { opacity: 1; transform: none; }
}
[data-d="1"] { --d: 1; } [data-d="2"] { --d: 2; } [data-d="3"] { --d: 3; } [data-d="4"] { --d: 4; }
.cards > .card:nth-child(2) { --line: var(--l-orchid); }
.cards > .card:nth-child(3) { --line: var(--l-lagoon); }
.cards > .card:nth-child(4) { --line: var(--l-saffron); }
