/* Wayline Studio website
   Palette from the editor (teal #2DD4BF / mint #5EEAD4 on slate #111B24), with British street accents:
   bus-blind amber, double-yellow-line yellow and bell-push red. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  --night: #070E14;
  --bg: #0B141C;
  --bg-2: #111B24;
  --panel: #16222D;
  --panel-2: #1B2935;
  --panel-3: #23323F;
  --hover: #2A3B4B;
  --border: #2B3846;
  --border-soft: #1F2B37;
  --text: #F2F4F7;
  --text-2: #AEB8C5;
  --text-3: #7E8A99;
  --teal: #2DD4BF;
  --mint: #5EEAD4;
  --teal-deep: #0F766E;
  --teal-ink: #042F2B;
  --amber: #FFB020;
  --amber-glow: rgba(255, 176, 32, .55);
  --yellow: #F5C518;
  --red: #E0323F;
  --red-soft: #FF6B6B;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .65);
  --max: 1200px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #9FF5E6; }
.prose a, .answer a, p a, .warning-sign a, .results-empty a { text-decoration: underline; text-decoration-color: rgba(94, 234, 212, .35); text-underline-offset: 3px; }
.prose a:hover, .answer a:hover, p a:hover, .warning-sign a:hover { text-decoration-color: var(--mint); }
.prose h2 a.anchor { text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
::selection { background: rgba(45, 212, 191, .35); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
kbd {
  display: inline-block; min-width: 1.7em; padding: .05em .45em; text-align: center;
  font: 600 .8em/1.6 Inter, sans-serif; color: var(--text);
  background: linear-gradient(#2A3948, #1E2A36); border: 1px solid #3A4A5B; border-bottom-width: 3px; border-radius: 6px;
}
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; background: rgba(45, 212, 191, .08); border: 1px solid rgba(45, 212, 191, .16); padding: .1em .4em; border-radius: 6px; color: #C6FBF2; word-break: break-word; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--teal); color: var(--teal-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.muted { color: var(--text-2); }
.tiny { font-size: .82rem; color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 28, .72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border-soft); background: rgba(11, 20, 28, .9); }
.site-header .bar { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; letter-spacing: -.02em; font-size: 1.08rem; flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: auto; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand small { display: block; font-weight: 400; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-top: -2px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .94rem; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--teal); border-radius: 2px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-trigger {
  display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 8px 10px 8px 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 11px; color: var(--text-3);
  font: inherit; font-size: .9rem; cursor: pointer; transition: border-color .2s, background .2s;
}
.search-trigger:hover { border-color: #3D5063; background: var(--panel-2); color: var(--text-2); }
.search-trigger svg { width: 17px; height: 17px; flex-shrink: 0; }
.search-trigger kbd { margin-left: auto; font-size: .7rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--teal); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 1rem/1 Inter, sans-serif; letter-spacing: -.01em; text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, color .2s;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: linear-gradient(135deg, var(--mint), var(--teal) 55%, #14B8A6); color: var(--teal-ink); box-shadow: 0 10px 30px -10px rgba(45, 212, 191, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary:hover { color: var(--teal-ink); transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(45, 212, 191, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .08); border-color: #3D5063; transform: translateY(-2px); }
.btn-small { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; filter: grayscale(.6); }

/* ---------- Ticket pill ---------- */
.ticket-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 176, 32, .08); border: 1px dashed rgba(255, 176, 32, .45); color: #FFD27A; font-weight: 600; font-size: .86rem;
}
.ticket-pill b { white-space: nowrap; background: var(--amber); color: #2B1A00; padding: 3px 10px; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% 30%; z-index: -2;
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(45, 212, 191, .18), transparent 60%),
    radial-gradient(40% 40% at 10% 10%, rgba(255, 176, 32, .08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 .grad { background: linear-gradient(100deg, var(--mint), var(--teal) 40%, #A7F3D0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 1.2rem; color: var(--text-2); max-width: 36em; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--text-3); font-size: .88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--teal); }

/* Destination blind */
.blind {
  position: relative; border-radius: 18px; padding: 16px; background: linear-gradient(#1D1F22, #0D0E10);
  border: 1px solid #2F3338; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.blind::before, .blind::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #3A3F46; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .7); }
.blind::before { left: 5px; } .blind::after { right: 5px; }
.blind canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: #050505; }
.blind-caption { display: flex; justify-content: space-between; margin-top: 10px; color: #6E747C; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.blind-wrap { position: relative; }
.blind-wrap .bell { position: absolute; right: -14px; bottom: -26px; }

/* Bell push */
.bell {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer;
  background: #FCD535; color: #241B00; border: 0; font: 700 .78rem/1.1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 0 8px 20px -8px rgba(252, 213, 53, .6);
  transition: transform .15s;
}
.bell .push { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FF7A7A, var(--red) 55%, #8E1018); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3), 0 0 0 3px #fff; display: grid; place-items: center; color: #fff; font-size: .6rem; }
.bell:active { transform: scale(.95); }
.bell.rung .push { animation: bellflash .6s 2; }
@keyframes bellflash { 50% { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3), 0 0 0 3px #fff, 0 0 26px 8px rgba(255, 80, 80, .8); } }
.stopping { position: fixed; left: 50%; top: 86px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; z-index: 60; transition: .35s var(--ease);
  background: #0A0A0A; border: 1px solid #2E2E2E; border-radius: 10px; padding: 10px 18px; color: var(--amber); font: 700 .95rem/1 ui-monospace, Consolas, monospace; letter-spacing: .2em; text-shadow: 0 0 8px var(--amber-glow); }
.stopping.show { opacity: 1; transform: translate(-50%, 0); }

/* Street scene */
.street { position: relative; margin-top: 64px; height: 300px; }
.street svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.street .layer-far { animation: drift 90s linear infinite; }
.street .layer-near { animation: drift 45s linear infinite; }
@keyframes drift { to { transform: translateX(-1200px); } }
.road-dash { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -80; } }
.bus-run { animation: busrun 16s var(--ease) infinite; }
@keyframes busrun {
  0% { transform: translateX(-520px); }
  30% { transform: translateX(var(--stop-x, 560px)); }
  58% { transform: translateX(var(--stop-x, 560px)); }
  100% { transform: translateX(calc(100vw + 520px)); }
}
.bus-bob { animation: bob .45s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(1.4px); } }
.wheel { transform-box: fill-box; transform-origin: center; animation: wheelspin 16s var(--ease) infinite; }
@keyframes wheelspin { 0% { transform: rotate(0deg); } 30% { transform: rotate(1800deg); } 58% { transform: rotate(1800deg); } 100% { transform: rotate(3600deg); } }
.waiting { animation: boarding 16s linear infinite; }
@keyframes boarding { 0%, 38% { opacity: 1; } 46%, 94% { opacity: 0; } 100% { opacity: 1; } }
.bus-run.paused .wheel, .bus-run.paused .bus-bob { animation-play-state: paused; }
.window-lit { animation: flicker 7s steps(1) infinite; }
.window-lit:nth-child(3n) { animation-delay: -2s; } .window-lit:nth-child(4n) { animation-delay: -4.5s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 48% { opacity: .25; } 52% { opacity: 1; } }
.lamp-glow { animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; } to { opacity: .9; } }
.stop-flag { transform-box: fill-box; transform-origin: left center; animation: sway 5s ease-in-out infinite alternate; }
@keyframes sway { to { transform: rotate(1.4deg); } }

/* ---------- Ticker ---------- */
.ticker { background: #050505; border-block: 1px solid #222; overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; }
.ticker::before { left: 0; background: linear-gradient(90deg, #050505, transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, #050505, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 50s linear infinite; padding: 14px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { color: var(--amber); font: 700 1rem/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 0 10px var(--amber-glow); padding-right: 64px; white-space: nowrap;
  background-image: radial-gradient(circle, transparent 0 50%, rgba(0, 0, 0, .55) 51%); background-size: 3px 3px; -webkit-background-clip: text; }
.ticker span i { font-style: normal; color: #6B4A10; padding: 0 18px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 14px); }
.section-head p { color: var(--text-2); font-size: 1.12rem; }

/* Road divider (double yellow + kerb) */
.road-divider { height: 46px; position: relative; background: #1A1F25; border-block: 6px solid #3B434C; }
.road-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, #E8ECEF 0 46px, transparent 46px 80px); opacity: .85; }
.road-divider::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; border-block: 3px solid var(--yellow); opacity: .9; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  color: var(--text); position: relative; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--border-soft);
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 212, 191, .12), transparent 45%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { color: var(--text); transform: translateY(-6px); border-color: rgba(45, 212, 191, .35); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .25); color: var(--mint); }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); margin: 0; font-size: .97rem; }
.card .tag { position: absolute; top: 22px; right: 22px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .3); padding: 3px 9px; border-radius: 999px; }
.card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 600; font-size: .92rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }

/* Roundabout demo */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.demo-stage { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 50% 50%, #1F3A2A, #13261C 70%); border: 1px solid #24402F; box-shadow: var(--shadow); touch-action: none; }
.demo-stage svg { width: 100%; height: 100%; display: block; cursor: crosshair; user-select: none; }
.demo-stage .handle { cursor: grab; }
.demo-stage .handle:active { cursor: grabbing; }
.demo-hud { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.demo-hud span { background: rgba(5, 10, 14, .78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .08); padding: 6px 11px; border-radius: 9px; font-size: .78rem; color: var(--text-2); }
.demo-hud b { color: var(--mint); }
.demo-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.demo-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.demo-list li b { color: var(--text); }
.demo-list .num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--teal-ink); font-weight: 800; font-size: .85rem; }
.demo-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

/* Route strip (how it works) */
.route-strip { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-top: 70px; }
.route-strip svg.line { position: absolute; top: 0; left: 0; width: 100%; height: 90px; overflow: visible; }
.route-strip .stop { position: relative; text-align: center; padding: 0 6px; }
.route-strip .stop::before { content: ""; position: absolute; top: -48px; left: 50%; width: 26px; height: 26px; transform: translateX(-50%) scale(.4); border-radius: 50%; background: var(--bg); border: 5px solid var(--teal); transition: transform .5s var(--ease) var(--d, 0s); }
.route-strip.in .stop::before { transform: translateX(-50%) scale(1); }
.route-strip .stop:first-child::before, .route-strip .stop:last-child::before { background: var(--teal); box-shadow: 0 0 0 5px rgba(45, 212, 191, .2); }
.route-strip .stop b { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.route-strip .stop p { color: var(--text-3); font-size: .88rem; margin: 0; }
.route-strip .stop .when { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--amber); margin-bottom: 8px; font-family: ui-monospace, Consolas, monospace; }

/* Tickets (stats) */
.tickets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ticket {
  --c: var(--teal);
  position: relative; padding: 22px 22px 20px; border-radius: 14px; color: #1B1206;
  background: linear-gradient(180deg, #FFF7E6, #F7E8C8);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .8);
  transform: rotate(var(--r, 0deg)); transition: transform .4s var(--ease);
  -webkit-mask: radial-gradient(circle 9px at 0 62%, transparent 98%, #000) , radial-gradient(circle 9px at 100% 62%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ticket:hover { transform: rotate(0deg) translateY(-6px); }
.ticket::after { content: ""; position: absolute; left: 14px; right: 14px; top: 62%; border-top: 2px dashed rgba(60, 40, 10, .25); }
.ticket .t-head { display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #8A6A33; }
.ticket .t-big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 14px; color: #13241F; }
.ticket .t-big small { font-size: 1rem; letter-spacing: 0; }
.ticket .t-foot { font-size: .86rem; color: #5B4A2E; padding-top: 14px; font-weight: 600; }
.ticket .t-stripe { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); border-radius: 14px 14px 0 0; }

/* Team Create teaser */
.team { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.team-board { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(45, 212, 191, .06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(45, 212, 191, .06) 1px, transparent 1px) 0 0 / 40px 40px,
    #0E1A22; }
.team-board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.presence { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: left 2.4s var(--ease), top 2.4s var(--ease); }
.presence .ball { width: 26px; height: 26px; border-radius: 50%; background: var(--c); opacity: .85; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent), 0 0 24px var(--c); }
.presence .name { font-size: .72rem; font-weight: 700; background: rgba(5, 10, 14, .85); color: var(--c); padding: 3px 8px; border-radius: 6px; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.risk { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 176, 32, .07); border: 1px solid rgba(255, 176, 32, .28); color: #FFE2A8; font-size: .94rem; margin-top: 22px; }
.risk svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--amber); margin-top: 2px; }

/* Help CTA */
.help-cta { position: relative; border-radius: 30px; padding: 64px; overflow: hidden; background: linear-gradient(135deg, #0F2A2A, #122231 60%); border: 1px solid #1E3B40; }
.help-cta::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 340px; height: 340px; border-radius: 50%; border: 34px solid rgba(45, 212, 191, .08); }
.help-cta .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--text-2); font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: .2s; font-family: inherit; }
.chip:hover, .chip.active { color: var(--teal-ink); background: var(--teal); border-color: var(--teal); }

/* Big search box */
.bigsearch { position: relative; max-width: 680px; }
.bigsearch .box { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 16px; background: #F7F9FA; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7), 0 0 0 6px rgba(45, 212, 191, .12); }
.bigsearch .box svg { width: 22px; height: 22px; color: #51606E; flex-shrink: 0; }
.bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.1rem Inter, sans-serif; color: #0B141C; padding: 12px 0; }
.bigsearch input::placeholder { color: #7A8794; }
.bigsearch .box .btn { padding: 12px 18px; }
.bigsearch .results { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 20; }

/* Departure board (download CTA) */
.board { border-radius: 24px; overflow: hidden; border: 1px solid #262626; background: #090909; box-shadow: var(--shadow); }
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: linear-gradient(#1A1A1A, #0F0F0F); border-bottom: 1px solid #222; }
.board-head .title { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.board-head .clock { color: var(--amber); font: 700 1.05rem ui-monospace, Consolas, monospace; letter-spacing: .1em; text-shadow: 0 0 8px var(--amber-glow); }
.board-row { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 20px; align-items: center; padding: 18px 24px; border-bottom: 1px solid #1A1A1A; color: var(--amber); font: 700 1.02rem ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .08em; text-shadow: 0 0 8px rgba(255, 176, 32, .4); }
.board-row:last-child { border-bottom: 0; }
.board-row .route { background: var(--amber); color: #1A1000; text-shadow: none; text-align: center; border-radius: 6px; padding: 6px 0; }
.board-row .dim { color: #7A5A1E; text-shadow: none; }
.board-row .due { color: #FFD27A; }
.board-row .blink { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.board-row .btn { font-family: Inter, sans-serif; letter-spacing: 0; text-shadow: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 64px 0 46px; overflow: hidden; border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(70% 120% at 85% 0%, rgba(45, 212, 191, .14), transparent 60%), linear-gradient(180deg, #0E1922, var(--bg)); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.page-hero p.lede { color: var(--text-2); font-size: 1.15rem; max-width: 42em; }
.page-hero .deco { position: absolute; right: max(20px, calc((100vw - var(--max)) / 2)); top: 50%; transform: translateY(-50%); height: 76%; width: auto; max-width: 300px; opacity: .9; pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; color: var(--text-3); margin-bottom: 16px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--mint); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* Route badge (dot-matrix number) */
.route-badge { display: inline-grid; place-items: center; min-width: 56px; height: 44px; padding: 0 10px; border-radius: 9px; background: #070707; border: 1px solid #2A2A2A;
  color: var(--amber); font: 800 1.45rem/1 ui-monospace, "Cascadia Code", Consolas, monospace; text-shadow: 0 0 10px var(--amber-glow); letter-spacing: .04em; position: relative; overflow: hidden; }
.route-badge::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 0 55%, rgba(0, 0, 0, .35) 56%) 0 0 / 3px 3px; pointer-events: none; }
.route-badge.sm { min-width: 38px; height: 30px; font-size: 1rem; border-radius: 7px; }

/* Help hub */
.routes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--border-soft); color: var(--text); text-decoration: none !important; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; position: relative; overflow: hidden; }
.route-card:hover { color: var(--text); transform: translateY(-5px); border-color: rgba(45, 212, 191, .4); box-shadow: var(--shadow); }
.route-card .top { display: flex; align-items: center; gap: 14px; }
.route-card h3 { margin: 0; font-size: 1.15rem; }
.route-card p { margin: 0; color: var(--text-2); font-size: .94rem; }
.route-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.route-card li { position: relative; padding-left: 20px; color: var(--text-3); font-size: .88rem; }
.route-card li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal); }
.route-card li::after { content: ""; position: absolute; left: 7px; top: calc(.55em + 10px); width: 2px; height: calc(100% - 4px); background: rgba(45, 212, 191, .35); }
.route-card li:last-child::after { display: none; }
.route-card .count { margin-top: auto; font-size: .82rem; color: var(--mint); font-weight: 600; }
.popular { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.popular a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border-soft); color: var(--text); text-decoration: none !important; transition: .25s; }
.popular a:hover { border-color: rgba(45, 212, 191, .4); background: var(--panel-2); transform: translateX(4px); color: var(--text); }
.popular a span { color: var(--text-3); font-size: .86rem; display: block; }
.popular svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }

/* Article layout */
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 48px; padding: 48px 0 100px; }
.doc-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.doc-side details { border-bottom: 1px solid var(--border-soft); padding: 6px 0; }
.doc-side summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; font-weight: 700; font-size: .92rem; color: var(--text); }
.doc-side summary::-webkit-details-marker { display: none; }
.doc-side summary:hover { background: rgba(255, 255, 255, .04); }
.doc-side summary .chev { margin-left: auto; width: 16px; height: 16px; color: var(--text-3); transition: transform .25s; }
.doc-side details[open] summary .chev { transform: rotate(90deg); }
.doc-side ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 18px; border-left: 2px solid var(--border-soft); margin-left: 24px; }
.doc-side li a { display: block; padding: 5px 10px; color: var(--text-3); font-size: .88rem; border-radius: 7px; margin-left: -2px; border-left: 2px solid transparent; }
.doc-side li a:hover { color: var(--text); }
.doc-side li a[aria-current="page"] { color: var(--mint); border-left-color: var(--teal); background: rgba(45, 212, 191, .07); font-weight: 600; }
.doc-toc { position: sticky; top: 96px; align-self: start; font-size: .86rem; }
.doc-toc h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border-soft); }
.doc-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-3); }
.doc-toc a:hover { color: var(--text); }
.doc-toc a.active { color: var(--mint); border-left-color: var(--teal); }

.prose { max-width: 760px; font-size: 1.04rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 .7em; padding-top: .2em; position: relative; }
.prose h2 .anchor { position: absolute; left: -1.1em; opacity: 0; color: var(--text-3); text-decoration: none; transition: opacity .2s; }
.prose h2:hover .anchor { opacity: 1; }
.prose h3 { margin: 1.8em 0 .6em; }
.prose p, .prose li { color: #D3DAE2; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose ol { counter-reset: s; list-style: none; padding-left: 0; }
.prose ol > li { counter-increment: s; position: relative; padding-left: 44px; margin: .8em 0; }
.prose ol > li::before { content: counter(s); position: absolute; left: 0; top: -.1em; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: rgba(45, 212, 191, .12); color: var(--mint); border: 1px solid rgba(45, 212, 191, .3); }
.prose ul > li::marker { color: var(--teal); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border-radius: 14px; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.prose th { background: var(--panel-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: rgba(255, 255, 255, .02); }
.prose pre { background: #070D12; border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.admonition { position: relative; margin: 1.6em 0; padding: 16px 18px 16px 58px; border-radius: 14px; border: 1px solid; }
.admonition::before { content: ""; position: absolute; left: 18px; top: 17px; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.admonition p { margin: 0 0 .4em; }
.admonition p:last-child { margin: 0; }
.admonition .admonition-title { font-weight: 800; color: var(--text); }
.admonition.tip { background: rgba(45, 212, 191, .07); border-color: rgba(45, 212, 191, .3); color: var(--mint); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.admonition.note { background: rgba(120, 160, 255, .07); border-color: rgba(120, 160, 255, .3); color: #A9C1FF; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.admonition.warning { background: rgba(255, 176, 32, .07); border-color: rgba(255, 176, 32, .35); color: var(--amber); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3z'/%3E%3Cpath d='M12 10v5M12 18h.01' stroke-linecap='round'/%3E%3C/svg%3E"); }
.admonition.tip .admonition-title, .admonition.note .admonition-title, .admonition.warning .admonition-title { color: currentColor; }
.admonition > p:not(.admonition-title) { color: #D3DAE2; }
.article-head .summary { font-size: 1.15rem; color: var(--text-2); }
.article-meta { display: flex; gap: 14px; align-items: center; margin: 6px 0 30px; color: var(--text-3); font-size: .86rem; flex-wrap: wrap; }
.next-stops { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 60px; max-width: 760px; }
.next-stops a { display: block; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); color: var(--text); text-decoration: none !important; transition: .25s; }
.next-stops a:hover { border-color: rgba(45, 212, 191, .45); transform: translateY(-3px); color: var(--text); }
.next-stops small { display: block; color: var(--text-3); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.next-stops .nx { text-align: right; }
.help-footer-card { max-width: 760px; margin-top: 30px; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px dashed var(--border); color: var(--text-2); font-size: .94rem; }
.help-footer-card svg { width: 26px; height: 26px; color: var(--teal); flex-shrink: 0; }

/* FAQ */
.faq-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 34px; }
.faq-filter { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); }
.faq-filter:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .15); }
.faq-filter svg { width: 20px; height: 20px; color: var(--text-3); }
.faq-filter input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: 500 1rem Inter, sans-serif; }
.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 12px; }
.faq-item { border: 1px solid var(--border-soft); border-radius: 16px; background: var(--panel); margin-bottom: 10px; overflow: hidden; transition: border-color .25s, background .25s; }
.faq-item[open] { border-color: rgba(45, 212, 191, .35); background: var(--panel-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; gap: 16px; align-items: center; font-weight: 600; font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { margin-left: auto; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(45, 212, 191, .1); color: var(--mint); transition: transform .35s var(--ease), background .25s; }
.faq-item summary .plus svg { width: 16px; height: 16px; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--teal); color: var(--teal-ink); }
.faq-item .answer { padding: 0 22px 20px; color: #D3DAE2; }
.faq-item .answer p:last-child { margin: 0; }
.faq-item.hidden, .faq-group.hidden { display: none; }
.faq-empty { display: none; text-align: center; padding: 50px 20px; color: var(--text-2); }
.faq-empty.show { display: block; }
mark { background: rgba(255, 176, 32, .3); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Legal */
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.legal-card { display: flex; gap: 18px; padding: 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--border-soft); color: var(--text); text-decoration: none !important; transition: .3s var(--ease); }
.legal-card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, .4); color: var(--text); }
.legal-card .ico { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: rgba(45, 212, 191, .1); color: var(--mint); }
.legal-card .ico svg { width: 26px; height: 26px; }
.legal-card h3 { margin-bottom: 6px; }
.legal-card p { margin: 0; color: var(--text-2); font-size: .95rem; }
.updated { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--text-3); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); }

/* Download page */
.dl-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; padding: 56px 0 30px; }
.big-ticket { position: relative; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #FFF8E8, #F4E3BF); color: #18120A; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  -webkit-mask: radial-gradient(circle 16px at 0 64%, transparent 98%, #000), radial-gradient(circle 16px at 100% 64%, transparent 98%, #000); -webkit-mask-composite: source-in; mask-composite: intersect; }
.big-ticket .stub-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 30px; background: linear-gradient(135deg, #0F766E, #14B8A6); color: #ECFFFB; }
.big-ticket .stub-top b { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.big-ticket .stub-top img { width: 46px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.big-ticket .body { padding: 28px 30px 26px; }
.big-ticket h2 { color: #0E201C; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 4px; }
.big-ticket .ver { font: 700 1rem ui-monospace, Consolas, monospace; color: #0F766E; letter-spacing: .06em; }
.big-ticket dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 0; }
.big-ticket dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #8A6A33; font-weight: 700; }
.big-ticket dd { margin: 3px 0 0; font-weight: 700; color: #241A0B; }
.big-ticket .perf { border-top: 2px dashed rgba(70, 50, 15, .28); margin: 0 26px; }
.big-ticket .lower { padding: 24px 30px 30px; }
.big-ticket .hash { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.big-ticket .hash code { flex: 1; min-width: 0; background: rgba(15, 118, 110, .08); border-color: rgba(15, 118, 110, .25); color: #0E3F39; font-size: .78rem; padding: 8px 10px; word-break: break-all; }
.copy-btn { flex-shrink: 0; border: 1px solid rgba(15, 118, 110, .35); background: #fff; color: #0F766E; font: 700 .8rem Inter, sans-serif; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.copy-btn:hover { background: #E6FBF7; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 18px; padding: 14px 16px; border-radius: 14px; background: rgba(224, 50, 63, .07); border: 1px solid rgba(224, 50, 63, .25); cursor: pointer; font-size: .95rem; color: #3D1A12; }
.agree input { width: 22px; height: 22px; accent-color: #0F766E; margin: 1px 0 0; flex-shrink: 0; cursor: pointer; }
.big-ticket .btn-primary { width: 100%; padding: 18px; font-size: 1.1rem; }
.big-ticket .barcode { height: 34px; margin-top: 18px; background: repeating-linear-gradient(90deg, #1B140A 0 2px, transparent 2px 4px, #1B140A 4px 7px, transparent 7px 8px, #1B140A 8px 9px, transparent 9px 13px); opacity: .75; border-radius: 3px; }

.warning-sign { position: relative; padding: 28px 28px 26px; border-radius: 22px; background: linear-gradient(180deg, #1C1414, #160F10); border: 1px solid #4A2124; box-shadow: var(--shadow); }
.warning-sign .tri { width: 82px; height: 72px; margin-bottom: 14px; }
.warning-sign h2 { font-size: 1.45rem; color: #FFE1E1; }
.warning-sign p, .warning-sign li { color: #E8C9C9; }
.warning-sign ul { padding-left: 1.2em; margin: 0; }
.warning-sign li { margin: .45em 0; }
.warning-sign li::marker { color: var(--red-soft); }
.steps-after { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { padding: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--border-soft); }
.step-card .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--amber); color: #2A1800; font-weight: 800; margin-bottom: 14px; }
.step-card p { color: var(--text-2); margin: 0; font-size: .95rem; }
.reqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.req { padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border-soft); }
.req svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 10px; }
.req b { display: block; }
.req span { color: var(--text-3); font-size: .88rem; }

/* Releases */
.timeline { position: relative; padding-left: 64px; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 6px; border-radius: 6px; background: linear-gradient(var(--teal), rgba(45, 212, 191, .15)); }
.release { position: relative; margin-bottom: 40px; padding: 26px 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--border-soft); }
.release::before { content: ""; position: absolute; left: -53px; top: 30px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 5px solid var(--teal); }
.release.latest { border-color: rgba(45, 212, 191, .45); background: linear-gradient(180deg, #14302E, var(--panel)); }
.release.latest::before { background: var(--teal); box-shadow: 0 0 0 7px rgba(45, 212, 191, .2); }
.release .rh { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.release h2 { font-size: 1.35rem; margin: 0; }
.release ul { margin: 0; padding-left: 1.2em; color: #D3DAE2; }
.release li { margin: .4em 0; }
.release li::marker { color: var(--teal); }
.badge-latest { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); background: var(--teal); padding: 4px 10px; border-radius: 999px; }

/* 404 */
.notfound { text-align: center; padding: 90px 0 120px; }
.notfound .blind { max-width: 640px; margin: 0 auto 36px; }

/* ---------- Search modal ---------- */
.search-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(3, 7, 10, .7); backdrop-filter: blur(6px); }
.search-modal.open { display: flex; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.search-panel { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); animation: pop .25s var(--ease); }
@keyframes pop { from { transform: translateY(-14px) scale(.98); opacity: 0; } }
.search-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.search-input svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }
.search-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 1.12rem Inter, sans-serif; }
.search-input button { background: var(--panel-2); border: 1px solid var(--border); color: var(--text-3); border-radius: 8px; font: 600 .74rem Inter, sans-serif; padding: 5px 8px; cursor: pointer; }
.results-list { overflow-y: auto; padding: 8px; }
.results { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); overflow: hidden; max-height: 420px; overflow-y: auto; padding: 6px; }
.results[hidden] { display: none; }
.result { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none !important; }
.result:hover, .result.sel { background: var(--panel-2); color: var(--text); }
.result.sel { box-shadow: inset 3px 0 0 var(--teal); }
.result .r-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(45, 212, 191, .1); color: var(--mint); margin-top: 2px; }
.result .r-ico svg { width: 18px; height: 18px; }
.result .r-title { font-weight: 700; display: block; }
.result .r-sec { font-size: .76rem; color: var(--teal); font-weight: 600; letter-spacing: .02em; }
.result .r-text { display: block; color: var(--text-3); font-size: .88rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.results-empty { padding: 34px 20px; text-align: center; color: var(--text-3); }
.results-empty b { color: var(--text-2); display: block; margin-bottom: 4px; }
.search-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .76rem; }
.search-foot kbd { font-size: .68rem; }
.search-tips { padding: 14px 16px 6px; }
.search-tips h5 { margin: 0 0 10px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; background: #070D12; border-top: 1px solid var(--border-soft); }
.zebra { height: 34px; background: repeating-linear-gradient(90deg, #E9EDF0 0 34px, #1A1F25 34px 68px); opacity: .9; position: relative; }
.zebra::before, .zebra::after { content: ""; position: absolute; top: -26px; width: 18px; height: 60px; border-radius: 9px 9px 0 0; background: #2A2F35; }
.zebra::before { left: 8%; } .zebra::after { right: 8%; }
.beacon { position: absolute; top: -50px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFD27A, #FF9F1C 60%, #B45F00); box-shadow: 0 0 30px 6px rgba(255, 159, 28, .5); animation: beacon 1.6s steps(1) infinite; z-index: 1; }
.beacon.l { left: calc(8% - 6px); } .beacon.r { right: calc(8% - 6px); animation-delay: .8s; }
@keyframes beacon { 50% { opacity: .25; box-shadow: none; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding: 60px 0 40px; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-2); font-size: .94rem; }
.footer-grid a:hover { color: var(--mint); }
.footer-brand p { color: var(--text-3); font-size: .9rem; margin-top: 14px; max-width: 30em; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 36px; border-top: 1px solid var(--border-soft); color: var(--text-3); font-size: .82rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .doc-toc { display: none; }
  .search-trigger { min-width: 0; }
  .search-trigger .label, .search-trigger kbd { display: none; }
}
@media (max-width: 980px) {
  .hero-grid, .demo, .team, .dl-grid { grid-template-columns: 1fr; }
  .features, .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .tickets, .reqs { grid-template-columns: repeat(2, 1fr); }
  .route-strip { grid-template-columns: repeat(3, 1fr); row-gap: 70px; }
  .route-strip svg.line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero .deco { display: none; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 20px; background: rgba(11, 20, 28, .98); border-bottom: 1px solid var(--border); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .menu-toggle { display: grid; place-items: center; }
  .doc-layout { grid-template-columns: 1fr; gap: 26px; }
  .doc-side { position: static; max-height: none; border: 1px solid var(--border-soft); border-radius: 16px; padding: 8px 12px; order: 2; }
  .help-cta { padding: 40px 28px; }
  .board-row { grid-template-columns: 70px 1fr; }
  .board-row > :nth-child(3), .board-row > :nth-child(4) { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 76px 0; }
  .features, .routes-grid, .legal-grid, .popular, .steps-after, .next-stops { grid-template-columns: 1fr; }
  .route-strip { grid-template-columns: 1fr 1fr; }
  .tickets { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ticket .t-big { font-size: 1.8rem; }
  .street { height: 220px; margin-top: 40px; }
  .header-actions .btn { display: none; }
  .big-ticket dl { grid-template-columns: 1fr 1fr; }
  .blind-wrap .bell { right: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bigsearch .box .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .bus-run { animation: none; transform: translateX(var(--stop-x, 560px)); }
  .reveal { opacity: 1; transform: none; }
}
.demo-list .num svg { width: 16px; height: 16px; }

.board-head .title svg { width: 24px; height: 24px; color: var(--amber); }
.bus-front { position: relative; padding: 22px 22px 70px; border-radius: 52px 52px 0 0;
  background: linear-gradient(180deg, #34E0CA, #14B8A6 38%, #0E8378);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -60px 80px -40px rgba(0, 0, 0, .45);
  -webkit-mask-image: linear-gradient(#000 68%, transparent 100%); mask-image: linear-gradient(#000 68%, transparent 100%); }
.bus-front::before { content: ""; position: absolute; left: 50%; top: 8px; width: 90px; height: 6px; transform: translateX(-50%); border-radius: 6px; background: rgba(0, 0, 0, .18); }
.bus-front .blind { border-radius: 14px; }
.bf-glass { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; height: 170px; }
.bf-glass span { position: relative; overflow: hidden; border-radius: 16px 16px 6px 6px; background: linear-gradient(165deg, #3A6274 0%, #12242E 38%, #0B161D 62%, #1C3746 100%); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25); }
.bf-glass span::after { content: ""; position: absolute; top: -30%; left: -40%; width: 35%; height: 170%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent); transform: rotate(18deg); animation: shine 7s ease-in-out infinite; }
.bf-glass span:nth-child(2)::after { animation-delay: .25s; }
@keyframes shine { 0%, 62% { left: -45%; } 100% { left: 135%; } }
.bf-glass i { position: absolute; bottom: 0; width: 34px; height: 46px; border-radius: 17px 17px 4px 4px; background: #183846; }
.bf-glass i::before { content: ""; position: absolute; left: 50%; top: -24px; width: 22px; height: 22px; transform: translateX(-50%); border-radius: 50%; background: #183846; }
.blind-wrap .bell { right: 10px; bottom: 34px; }

@media (max-width: 640px) { .ticket-pill { font-size: .78rem; } }
