/* ============================================================================
   LUXLINE - very dark, premium, minimal.
   Design system: "orbital mission-control". Near-black ink, one signal blue,
   mode colours for data only, glass surfaces, mono telemetry type.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Ink ---------------------------------------------------------------- */
  --ink-950: #04070b;
  --ink-900: #05080d;
  --ink-850: #070b12;
  --ink-800: #0a1018;
  --ink-700: #0e1520;
  --ink-600: #131c28;

  /* Lines / borders ---------------------------------------------------- */
  --line: rgba(150, 178, 210, 0.10);
  --line-soft: rgba(150, 178, 210, 0.06);
  --line-strong: rgba(170, 200, 235, 0.18);

  /* Text --------------------------------------------------------------- */
  --text: #e9eff6;
  --text-dim: #9db0c1;
  --text-faint: #8b99a9;
  --text-ghost: #74818f;

  /* Signal (the one accent) ------------------------------------------- */
  --signal: #6ea6ff;
  --signal-bright: #aecbff;
  --signal-deep: #2f5ed0;
  --signal-glow: rgba(110, 166, 255, 0.55);
  --signal-haze: rgba(86, 132, 224, 0.16);

  /* Mode colours (data only) ------------------------------------------ */
  --bus: #1ab2c0;
  --tram: #c46fb4;
  --train: #ef5f64;
  --funicular: #5aa0e6;

  /* Glass -------------------------------------------------------------- */
  --glass: rgba(13, 20, 30, 0.62);
  --glass-hi: rgba(20, 30, 44, 0.72);
  --glass-border: rgba(170, 200, 235, 0.14);
  --glass-blur: blur(22px) saturate(125%);

  /* Type --------------------------------------------------------------- */
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Metrics ------------------------------------------------------------ */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --nav-h: 68px;
  --shadow-lift: 0 24px 60px -28px rgba(0, 0, 0, 0.9), 0 4px 18px -8px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--ink-950);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page atmosphere: a slow radial wash + grain over the ink. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(36, 60, 110, 0.30), transparent 55%),
    radial-gradient(90% 60% at 85% 110%, rgba(20, 80, 92, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900) 40%, var(--ink-950));
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(110, 166, 255, 0.28); color: #fff; }

/* Scrollbar ----------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(150, 178, 210, 0.14); border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(150, 178, 210, 0.26); background-clip: padding-box; }

/* Shared layout ------------------------------------------------------- */
.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--signal); opacity: 0.85;
}

/* ============================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 13, 0.66);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
}
.nav__inner { width: min(1180px, 100% - 44px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__word {
  font-weight: 600; font-size: 0.96rem;
  letter-spacing: 0.42em; text-indent: 0.42em;
  text-transform: uppercase; color: var(--text);
}
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-size: 0.85rem; color: var(--text-dim);
  padding: 9px 14px; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav__link:hover { color: var(--text); background: rgba(150, 178, 210, 0.07); }
.nav__cta {
  font-size: 0.85rem; color: var(--text);
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(150, 178, 210, 0.04);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.nav__cta:hover { border-color: var(--signal); background: var(--signal-haze); transform: translateY(-1px); }
.nav__burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after { content: ""; display: block; width: 17px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.3s var(--ease), top 0.3s var(--ease), background 0.2s; }
.nav__burger span::before { position: absolute; top: -5px; }
.nav__burger span::after { position: absolute; top: 5px; }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  body.nav-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: calc(var(--nav-h) - 6px); right: 16px; left: 16px;
    padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: rgba(5, 8, 13, 0.94);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lift);
  }
  body.nav-open .nav__links .nav__link, body.nav-open .nav__links .nav__cta { text-align: center; padding: 13px; }
  body.nav-open .nav__burger span { background: transparent; }
  body.nav-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
  body.nav-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }
}

/* ============================================================================
   HERO  (sticky canvas earth -> map)
   ========================================================================== */
.hero { position: relative; height: 220vh; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow: hidden;
  display: grid; place-items: center;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
/* horizon atmosphere glow that the canvas fakes is reinforced here */
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(5,8,13,0.0) 30%, rgba(5,8,13,0.55) 78%, var(--ink-950) 100%);
}

.hero__content {
  position: relative; z-index: 3; text-align: center;
  padding: 0 22px; max-width: 760px;
  transform: translateY(-4vh);
  will-change: opacity, transform;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
  opacity: 0; animation: rise 1s var(--ease) 0.15s forwards;
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal-glow); animation: blip 2.6s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(2.9rem, 8.2vw, 6.6rem);
  font-weight: 300; line-height: 0.98;
  letter-spacing: -0.035em; color: #fff;
}
.hero h1 .alt { display: block; color: transparent; background: linear-gradient(180deg, #cfe0ff, #6f93d6 70%); -webkit-background-clip: text; background-clip: text; font-style: italic; font-weight: 400; }
.hero h1 .l1 { opacity: 0; animation: rise 1.1s var(--ease) 0.28s forwards; }
.hero h1 .l2 { opacity: 0; animation: rise 1.1s var(--ease) 0.42s forwards; }
.hero__sub {
  margin: 26px auto 0; max-width: 30ch;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--text-dim); font-weight: 350;
  opacity: 0; animation: rise 1.1s var(--ease) 0.6s forwards;
}
.hero__actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: rise 1.1s var(--ease) 0.74s forwards; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn--primary {
  color: #061018;
  background: linear-gradient(180deg, #d7e6ff, var(--signal));
  box-shadow: 0 10px 40px -12px var(--signal-glow), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -14px var(--signal-glow), inset 0 1px 0 rgba(255,255,255,0.7); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); background: rgba(150,178,210,0.04); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--signal); background: var(--signal-haze); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0; animation: rise 1s var(--ease) 1s forwards;
}
.hero__scroll .line { width: 1px; height: 26px; background: linear-gradient(var(--signal), transparent); animation: scrolldrop 2s ease-in-out infinite; transform-origin: top; }

/* Telemetry strip that floats over the hero (mission-control flavour) */
.telemetry {
  position: absolute; z-index: 3; bottom: 26px; right: 26px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--text-faint); text-align: right;
  opacity: 0; animation: rise 1s var(--ease) 1.1s forwards;
}
.telemetry b { color: var(--signal); font-weight: 500; }
@media (max-width: 720px) { .telemetry { display: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes scrolldrop { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(26px); opacity: 0; } }

/* ============================================================================
   LIVE MAP SECTION
   ========================================================================== */
.map-sec { position: relative; height: 100vh; height: 100dvh; min-height: 620px; background: var(--ink-950); }
.map-sec__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
#map { position: absolute; inset: 0; }
/* keep the canvas/map cohesive: a slight blue tint + vignette over MapKit dark */
.map-sec__tint { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 52%, rgba(4,7,11,0.55) 100%),
    linear-gradient(180deg, rgba(4,7,11,0.5), transparent 18%, transparent 78%, rgba(4,7,11,0.6));
  mix-blend-mode: normal;
}
/* Map fallback (origin-locked token won't authorize off luxline.lu) */
.map-fallback {
  position: absolute; inset: 0; z-index: 4; display: none;
  place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(80% 60% at 50% 40%, rgba(20,40,80,0.25), transparent), var(--ink-900);
}
.map-fallback.show { display: grid; }
.map-fallback .inner { max-width: 420px; }
.map-fallback h3 { font-weight: 400; font-size: 1.4rem; margin-bottom: 10px; }
.map-fallback p { color: var(--text-dim); font-size: 0.95rem; }

/* Map heading chip (top-left) */
.map-head {
  position: absolute; z-index: 5; top: calc(var(--nav-h) + 16px); left: 22px;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.map-head .eyebrow { pointer-events: none; }
.map-head h2 { font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; max-width: 13ch; }

/* Glass control: the search + plan panel (bottom center, like the concept) */
.console {
  position: absolute; z-index: 6; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(640px, calc(100% - 36px));
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.console__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.console__field { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.console__field svg { flex: none; color: var(--text-faint); }
.console__input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 1rem; padding: 12px 0;
}
.console__input::placeholder { color: var(--text-faint); }
.console__loc {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #cfe0ff;
  background: linear-gradient(180deg, var(--signal), var(--signal-deep));
  box-shadow: 0 6px 18px -6px var(--signal-glow), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.2s, box-shadow 0.3s;
}
.console__loc:hover { transform: scale(1.06); }
.console__loc.busy { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.console__tabs { display: flex; padding: 0 12px 10px; gap: 4px; }
.console__tab {
  font-size: 0.78rem; color: var(--text-faint);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.console__tab[aria-pressed="true"] { color: var(--text); background: rgba(150,178,210,0.10); }

/* plan vs live/nearby field visibility */
.console:not([data-mode="plan"]) .plan-fields,
.console:not([data-mode="plan"]) .plan-actions { display: none; }
.console[data-mode="plan"] .console__bar { display: none; }
.console[data-mode="plan"] .plan-fields { display: grid; }
.console[data-mode="plan"] .plan-actions { display: flex; }
.plan-field .swap { background: none; }

/* Expandable drawer (results / nearby / plan) */
.console__drawer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease);
  border-top: 1px solid transparent;
}
.console__drawer.open { max-height: min(52vh, 460px); border-top-color: var(--line); }
.drawer__scroll { max-height: min(52vh, 460px); overflow-y: auto; padding: 6px; }

/* Plan endpoints (From/To) */
.plan-fields { display: grid; gap: 8px; padding: 10px 12px 4px; }
.plan-field { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(150,178,210,0.05); border: 1px solid var(--line-soft); }
.plan-field .pin { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.plan-field .pin.from { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.plan-field .pin.to { background: var(--signal); box-shadow: 0 0 10px var(--signal-glow); }
.plan-field input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 0.95rem; }
.plan-field input::placeholder { color: var(--text-faint); }
.plan-field .swap { color: var(--text-faint); width: 44px; height: 44px; flex: none; display: grid; place-items: center; margin: -7px -8px -7px 0; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.plan-field .swap:hover { color: var(--text); background: rgba(150, 178, 210, 0.08); }
.plan-actions { display: flex; gap: 10px; padding: 6px 12px 12px; }
.plan-actions .btn { flex: 1; justify-content: center; padding: 12px; font-size: 0.9rem; }

/* List rows (suggestions / departures / itineraries) */
.row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; border-radius: var(--r-md);
  transition: background 0.18s; cursor: pointer;
}
.row:hover { background: rgba(150,178,210,0.07); }
.row + .row { box-shadow: inset 0 1px 0 var(--line-soft); }
.row__lead { width: 38px; flex: none; display: grid; place-items: center; }
.row__body { flex: 1; min-width: 0; }
.row__title { font-size: 0.95rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub { font-size: 0.78rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { flex: none; text-align: right; }

.glyph { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #04141a; font-size: 0.9rem; }
.glyph svg { width: 17px; height: 17px; }
.dist { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); }

/* line badge */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 24px; padding: 0 8px; border-radius: 7px;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; color: #fff;
  letter-spacing: 0.02em;
}
.eta { font-family: var(--font-mono); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.eta small { font-size: 0.64rem; color: var(--text-faint); font-weight: 400; letter-spacing: 0.1em; }
.eta.soon { color: var(--signal-bright); }
.eta.rt::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: #46d39a; box-shadow: 0 0 8px rgba(70,211,154,0.8); animation: blip 1.6s infinite; }
.cancelled { text-decoration: line-through; color: var(--train); }

/* Itinerary card */
.itin { padding: 14px; border-radius: var(--r-md); }
.itin + .itin { box-shadow: inset 0 1px 0 var(--line-soft); }
.itin:hover { background: rgba(150,178,210,0.05); }
.itin__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.itin__time { font-family: var(--font-mono); font-size: 1.04rem; color: var(--text); }
.itin__dur { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }
.itin__legs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.leg-chip { display: inline-flex; align-items: center; gap: 6px; }
.leg-sep { color: var(--text-ghost); }
.leg-walk { display: inline-flex; align-items: center; gap: 5px; color: var(--text-faint); font-size: 0.8rem; font-family: var(--font-mono); }

.drawer__empty { padding: 26px 18px; text-align: center; color: var(--text-faint); font-size: 0.9rem; }
.drawer__hint { padding: 10px 16px 14px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-ghost); text-transform: uppercase; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(150,178,210,0.25); border-top-color: var(--signal); animation: spin 0.8s linear infinite; }

/* Floating zoom/locate controls */
.map-tools { position: absolute; z-index: 5; right: 22px; bottom: 30px; display: flex; flex-direction: column; gap: 8px; }
.map-tools button {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); color: var(--text-dim);
  display: grid; place-items: center; transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.map-tools button:hover { color: var(--text); border-color: var(--signal); transform: translateY(-1px); }
/* On phones keep a single recenter control (zoom is pinch); move it clear of the console. */
@media (max-width: 720px) {
  .map-tools { top: calc(var(--nav-h) + 12px); bottom: auto; right: 14px; }
  .map-tools #zoomIn, .map-tools #zoomOut { display: none; }
}

/* MapKit annotation glow pins (factory injects .stop-pin) */
.stop-pin { width: 14px; height: 14px; position: relative; }
.stop-pin i {
  position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 0 1.5px rgba(6,12,22,0.9), 0 0 10px 2px var(--signal-glow);
}
.stop-pin.m-tram i { background: #f0c2e6; box-shadow: 0 0 0 1.5px rgba(6,12,22,0.9), 0 0 10px 2px rgba(196,111,180,0.7); }
.stop-pin.m-train i { background: #ffc4c6; box-shadow: 0 0 0 1.5px rgba(6,12,22,0.9), 0 0 10px 2px rgba(239,95,100,0.7); }
.stop-pin.sel i { width: 11px; height: 11px; background: #fff; box-shadow: 0 0 0 2px rgba(6,12,22,0.95), 0 0 16px 4px var(--signal-glow); }
.stop-pin::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--signal-glow); opacity: 0; }
.stop-pin.sel::after { animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.place-pin { width: 16px; height: 22px; }
.place-pin svg { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)); }

/* ============================================================================
   FEATURES
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 12vh, 150px) 0; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2 { font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.04; margin-top: 16px; }
.section__head p { color: var(--text-dim); font-size: 1.08rem; margin-top: 18px; max-width: 52ch; font-weight: 350; }

.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feature {
  position: relative; border-radius: var(--r-lg); padding: 28px;
  background: linear-gradient(180deg, rgba(20,30,44,0.5), rgba(10,16,24,0.4));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(70% 60% at 20% 0%, var(--signal-haze), transparent 70%);
}
.feature:hover::before { opacity: 1; }
.feature__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line-strong); color: var(--signal); background: rgba(110,166,255,0.06); }
.feature h3 { font-weight: 500; font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--text-dim); font-size: 0.94rem; font-weight: 350; }
.feature.col-6 { grid-column: span 6; }
.feature.col-4 { grid-column: span 4; }
.feature.col-12 { grid-column: span 12; }

/* big stat / network band */
.feature--wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.statline { display: flex; gap: 34px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; letter-spacing: -0.02em; }
.stat span { font-size: 0.82rem; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .feature.col-6, .feature.col-4 { grid-column: span 12; }
  .feature--wide { grid-template-columns: 1fr; }
}

/* free-to-ride band */
.band {
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(40,70,130,0.4), transparent 55%),
    linear-gradient(180deg, rgba(18,28,42,0.7), rgba(8,13,20,0.7));
  border: 1px solid var(--line);
  text-align: center; position: relative; overflow: hidden;
}
.band h2 { font-weight: 300; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.band p { color: var(--text-dim); max-width: 46ch; margin: 18px auto 30px; font-weight: 350; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: var(--ink-950); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer__brand p { color: var(--text-faint); font-size: 0.88rem; margin-top: 16px; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-dim); font-size: 0.9rem; padding: 5px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__base { margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer__base p { color: var(--text-ghost); font-size: 0.8rem; font-family: var(--font-mono); }
.footer__legal { color: var(--text-faint); font-size: 0.78rem; max-width: 70ch; line-height: 1.6; margin-top: 14px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================================
   LEGAL PAGES (privacy / terms / support)
   ========================================================================== */
.doc { padding: calc(var(--nav-h) + 60px) 0 100px; }
.doc__wrap { width: min(760px, 100% - 44px); margin-inline: auto; }
.doc__back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-faint); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 30px; transition: color 0.2s; }
.doc__back:hover { color: var(--signal); }
.doc h1 { font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.03em; }
.doc .updated { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.78rem; margin-top: 10px; }
.doc h2 { font-weight: 500; font-size: 1.3rem; margin: 44px 0 12px; letter-spacing: -0.01em; color: var(--text); }
.doc p, .doc li { color: var(--text-dim); font-weight: 350; }
.doc p { margin: 12px 0; }
.doc ul { padding-left: 1.1rem; margin: 12px 0; }
.doc li { margin: 8px 0; }
.doc a.link { color: var(--signal); text-decoration: none; border-bottom: 1px solid rgba(110,166,255,0.3); }
.doc a.link:hover { border-color: var(--signal); }
.doc strong { color: var(--text); font-weight: 600; }
.doc .lead { font-size: 1.1rem; color: var(--text); font-weight: 350; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.doc .card { background: linear-gradient(180deg, rgba(20,30,44,0.5), rgba(10,16,24,0.4)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin: 20px 0; }
.doc .tldr { display: grid; gap: 10px; }
.doc .tldr div { display: flex; gap: 12px; align-items: flex-start; }
.doc .tldr svg { flex: none; color: var(--signal); margin-top: 3px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* skip link (keyboard) */
.skip {
  position: absolute; left: 50%; top: 10px; transform: translate(-50%, -160%);
  z-index: 100; padding: 10px 18px; border-radius: 999px;
  background: var(--signal); color: #061018; font-weight: 600; font-size: 0.9rem;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); outline: none; }

/* support FAQ question */
.doc h3.faq-q { font-size: 1.08rem; font-weight: 500; margin: 30px 0 6px; }
