/* Shared by the site (/) and the app (/app/). System fonts only: nothing to download on mobile data.
   Grab's white-and-green world. #00b14f is a field and shape color (2.8:1 on white, so never small text);
   green text and icons use the deeper tokens below so they stay readable in direct sun. */
/* Inter, the family Grab ships (OFL; see /fonts/OFL.txt). Self-hosted and subset to Latin + ñ + ₱. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-display: swap; src: url("/fonts/inter-display-extrabold.woff2") format("woff2"); }
:root {
  --green: #00b14f;        /* fields, large shapes, the header band */
  --green-ui: #009a45;     /* icons, borders, selected marks (3.7:1 on white) */
  --green-deep: #0a7a3a;   /* buttons with white text, green text on white (5.4:1) */
  --green-ink: #06301a;    /* text sitting on the green field (5.2:1) */
  --green-tint: #e6f7ed;   /* chosen chips, service tiles */
  --green-tint-2: #c9efd8;
  --amber: #ffb703;        /* reserved: your bus and your stop, nothing else */
  --ink: #1f2937;
  --muted: #5b6573;
  --line: #e6e8eb;
  --bg: #f5f6f7;
  --card: #ffffff;
  --bad: #c62828;
  --warn-bg: #fff4d6;
  --radius: 16px;
  --radius-sheet: 24px;
  --shadow-1: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 14px rgb(16 24 40 / 7%);
  --shadow-up: 0 -1px 0 rgb(16 24 40 / 6%), 0 -6px 20px rgb(16 24 40 / 8%);
  --bar-h: 56px;
  --tabs-h: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green-ui: #2fbf6f;
    --green-deep: #0a7a3a;
    --green-tint: #123524;
    --green-tint-2: #184a31;
    --ink: #eef2ef;
    --muted: #a9b3ad;
    --line: #27302b;
    --bg: #0e1311;
    --card: #161c19;
    --bad: #ff8a80;
    --warn-bg: #3a2f10;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 14px rgb(0 0 0 / 35%);
    --shadow-up: 0 -1px 0 rgb(255 255 255 / 5%), 0 -6px 20px rgb(0 0 0 / 40%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--green-ui) transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-feature-settings: "cv11";
  caret-color: var(--green-deep);
}
::selection { background: var(--green-tint-2); color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
p { margin: 0 0 12px; }
a { color: var(--green-deep); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--green-ui); } }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-ui); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.wordmark { height: 12px; width: auto; vertical-align: -1px; margin-left: 4px; }
@media (prefers-color-scheme: dark) { .wordmark { filter: brightness(0) invert(1); opacity: .92; } }
svg { flex: none; }

/* Buttons: one primary per screen (deep green, white label), the rest soft or quiet. 52px for thumbs on a moving bus. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px; border: 0;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .15s ease, transform .1s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--green-deep); color: #fff; }
.btn.primary:hover { background: #086a32; }
.btn.soft { background: var(--green-tint); color: var(--green-deep); }
@media (prefers-color-scheme: dark) { .btn.soft { color: var(--green-ui); } }
.btn.secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.quiet, .btn.link { background: none; min-height: 44px; padding: 0 12px; color: var(--green-deep); font-size: 16px; }
@media (prefers-color-scheme: dark) { .btn.quiet, .btn.link { color: var(--green-ui); } }
.btn.danger { background: none; color: var(--bad); box-shadow: inset 0 0 0 1.5px currentColor; min-height: 48px; font-size: 16px; }
.btn.block { width: 100%; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* Chips: Grab's pill selectors. Chosen = green tint, green edge, green label. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.chips button[aria-pressed="true"] { background: var(--green-tint); box-shadow: inset 0 0 0 2px var(--green-ui); color: var(--green-deep); font-weight: 700; }
@media (prefers-color-scheme: dark) { .chips button[aria-pressed="true"] { color: var(--ink); } }

/* ---------- App ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }

/* The green band. Brand row on every tab; the stop finder only on Home. */
.top { position: relative; z-index: 5; background: var(--green); color: var(--green-ink); padding: 0 16px; }
/* The map fills the screen under the band, so that tab never scrolls. */
body[data-tab="map"] { overflow: hidden; }
body[data-tab="map"] main { padding: 0; }
.brand-row { display: flex; align-items: center; gap: 10px; height: var(--bar-h); max-width: 560px; margin: 0 auto; }
.mark { width: 30px; height: 30px; }
.top h1 { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.top .pill { background: rgb(255 255 255 / 55%); color: var(--green-ink); }
.status { margin: 0 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: rgb(255 255 255 / 55%); padding: 4px 10px 4px 8px; border-radius: 999px; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status[data-s="live"] i { background: var(--green-deep); }
.status[data-s="off"] i { background: var(--bad); }
.finder { max-width: 560px; margin: 0 auto; padding: 4px 0 40px; display: grid; gap: 12px; }
body:not([data-tab="board"]) .finder { display: none; }
@media (prefers-color-scheme: dark) {
  .top { background: #0d5c33; color: #eafff2; }
  .top .pill, .status { background: rgb(0 0 0 / 25%); color: #eafff2; }
}

.stop-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px 10px 12px;
  background: var(--card); color: var(--ink); border: 0; border-radius: 16px; box-shadow: 0 2px 10px rgb(6 48 26 / 18%);
  text-align: left; cursor: pointer;
}
.stop-pick .pin { width: 28px; height: 28px; }
.pick-text { display: grid; min-width: 0; }
.stop-pick b { font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-pick small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-pick .chev { width: 22px; height: 22px; margin-left: auto; color: var(--muted); }

.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgb(6 48 26 / 16%); border-radius: 999px; padding: 4px; }
.dirs button { min-height: 42px; border: 0; border-radius: 999px; background: none; color: var(--green-ink); font-weight: 700; cursor: pointer; }
.dirs button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgb(6 48 26 / 20%); }
@media (prefers-color-scheme: dark) {
  .dirs { background: rgb(0 0 0 / 25%); }
  .dirs button { color: #eafff2; }
}

/* The white sheet that overlaps the green band, Grab's home shape. */
.app main {
  flex: 1; position: relative; z-index: 6; width: 100%; max-width: 560px; margin: -24px auto 0;
  padding: 20px 16px calc(176px + env(safe-area-inset-bottom));
  background: var(--card); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
}
body:not([data-tab="board"]) main { margin-top: 0; border-radius: 0; background: var(--bg); }
@media (min-width: 600px) { .app main { box-shadow: var(--shadow-1); } }
.view { display: grid; gap: 16px; }
.view h3 { font-size: 17px; font-weight: 800; }

.usual { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--bg); font-size: 15px; margin: 0; }
.usual .btn { margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 15px; box-shadow: none; background: var(--green-tint); color: var(--green-deep); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: grid; justify-items: start; align-content: start; gap: 2px; min-height: 136px; padding: 12px 14px 14px;
  border: 0; border-radius: var(--radius); background: var(--green-tint); color: var(--ink); text-align: left; cursor: pointer;
  transition: transform .12s ease;
}
.tile:active { transform: scale(.98); }
.tile svg { width: 56px; height: 56px; margin-bottom: 6px; }
.tile b { font-size: 16px; font-weight: 800; line-height: 1.25; }
.tile small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.banner { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 14px; background: var(--green-tint); margin: 0; font-size: 15px; }
.banner > svg { width: 22px; height: 22px; color: var(--green-deep); }
.banner.warn { background: var(--warn-bg); padding-right: 14px; }
.banner .btn { margin-left: auto; min-height: 40px; }
@media (prefers-color-scheme: dark) { .banner > svg { color: var(--green-ui); } }

/* The live card: the one answer the commuter came for. */
.live { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: grid; gap: 4px; }
.live-head { display: flex; align-items: center; gap: 14px; }
.live-bus { width: 30px; height: 75px; object-fit: contain; filter: drop-shadow(0 0 2px var(--amber)) drop-shadow(0 0 5px rgb(255 183 3 / 60%)); }
.live h3 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0; }
.eta { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.eta .num { font-family: "Inter Display", "Inter", system-ui, sans-serif; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.eta .num.word { font-size: 34px; letter-spacing: -.01em; }
.eta .unit { font-size: 22px; font-weight: 800; }
.live .meta { color: var(--muted); margin: 4px 0 10px; font-size: 15px; }

.group { display: grid; gap: 8px; }
.group h3 { margin: 4px 0 0; }
.next { list-style: none; margin: 0; padding: 0; }
.next li + li { border-top: 1px solid var(--line); }
.next li button {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 0;
  background: none; border: 0; text-align: left; cursor: pointer; font-size: 15px; color: var(--muted);
}
.next .when { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-deep); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .next .when { color: var(--ink); } }

.panel { background: var(--bg); border-radius: var(--radius); padding: 16px; }
.panel h4 { font-size: 14px; margin: 12px 0 0; }
.how { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.bars { display: grid; grid-template-columns: repeat(19, 1fr); align-items: end; gap: 3px; height: 56px; margin: 8px 0 4px; }
.bars i { display: block; background: var(--green-tint-2); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars i.now { background: var(--green-ui); }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Dock: the screen's one primary action, in the thumb zone above the tabs. */
.dock {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); z-index: 8;
  padding: 10px 16px 12px; background: var(--card); box-shadow: var(--shadow-up);
}
.dock .inner { max-width: 528px; margin: 0 auto; display: grid; gap: 10px; }
.leads { justify-content: center; flex-wrap: nowrap; }
.leads button { flex: 1; padding: 0 8px; min-width: 0; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  padding-inline: max(0px, calc((100vw - 560px) / 2)); /* on wide screens the tabs sit under the app column */
}
.tabs button { min-height: var(--tabs-h); border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 3px; }
.tabs svg { width: 26px; height: 26px; }
.tabs .fill { fill: currentColor; }
.tabs .cut { fill: none; stroke: var(--card); stroke-width: 1.6; }
.tabs button[aria-current="page"] { color: var(--green-deep); }
.tabs button[aria-current="page"] svg { color: var(--green-ui); }
@media (prefers-color-scheme: dark) { .tabs button[aria-current="page"] { color: var(--green-ui); } }

/* Map tab: full-bleed map, round floating controls, Grab's tracking sheet. */
.map-view { position: fixed; inset: calc(var(--bar-h)) 0 calc(var(--tabs-h) + env(safe-area-inset-bottom)); z-index: 4; }
#mapbox { position: absolute; inset: 0; }
.map-tools { position: absolute; top: 56px; right: 12px; display: grid; gap: 10px; z-index: 2; }
.map-tools button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 800; cursor: pointer; }
.map-tools button[aria-pressed="true"] { background: var(--green-deep); color: #fff; }
.map-tools svg { width: 22px; height: 22px; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: 560px; margin: 0 auto;
  background: var(--card); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: var(--shadow-up); padding: 10px 20px 18px;
}
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.sheet .muted { font-size: 15px; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
/* Live buses: DOM markers sized by zoom through --bus-len (set in map.js). */
.bus-marker { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.bus-marker:focus-visible { outline: 3px solid var(--green-ui); outline-offset: 2px; border-radius: 10px; }
.bus-body { display: block; height: var(--bus-len, 44px); width: auto; pointer-events: none; }
.bus-marker.mine .bus-body { filter: drop-shadow(0 0 2px var(--amber)) drop-shadow(0 0 6px var(--amber)); }
#mapbox.is-3d .bus-body { visibility: hidden; } /* the 3D layer draws the coach; the button stays tappable */
.bus-eta { padding: 3px 9px; border-radius: 999px; background: var(--green-deep); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 1px 4px rgb(0 0 0 / 25%); pointer-events: none; }

/* Sakay: offline (start) and online (sharing), like a driver's go-online screen. */
.ride-hero { background: var(--green-tint); border-radius: var(--radius-sheet); padding: 24px 20px 20px; text-align: center; }
.ride-hero svg { width: 140px; height: 84px; margin-bottom: 8px; }
.ride-hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.ride-hero p { margin: 0 auto; max-width: 30em; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.perks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; }
.perks li + li { border-top: 1px solid var(--line); }
.perks svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); }
.perks b { display: block; }
.perks span { color: var(--muted); font-size: 15px; }
.perks span b { color: var(--ink); font-size: 16px; }
@media (prefers-color-scheme: dark) { .perks svg { color: var(--green-ui); } }

#ride-live { display: grid; gap: 16px; }
.online { background: var(--green); color: var(--green-ink); border-radius: var(--radius-sheet); padding: 18px 18px 16px; }
.online-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; background: rgb(255 255 255 / 60%); padding: 4px 12px 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.online-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--green-deep); }
.online h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.online p { margin-bottom: 0; }
.online .stats div { background: rgb(255 255 255 / 75%); color: var(--green-ink); }
.online .stats dt { color: var(--green-ink); }
@media (prefers-color-scheme: dark) {
  .online { background: #0d5c33; color: #eafff2; }
  .online-tag, .online .stats div { background: rgb(0 0 0 / 25%); color: #eafff2; }
  .online .stats dt { color: #cfeedd; }
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.stats div { background: var(--bg); border-radius: 14px; padding: 10px 6px; text-align: center; }
.stats dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.stats dd { margin: 0; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.group.form { gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 800; }
.field .muted { font-weight: 400; }
.note { font-size: 14px; }
input[type="text"], input[type="search"], input[inputmode] {
  min-height: 52px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; width: 100%;
}
input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--green-ui); }
input::placeholder { color: var(--muted); }

/* Ako: an account page, not a stack of cards. */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font-size: 22px; font-weight: 800; }
@media (prefers-color-scheme: dark) { .avatar { color: var(--green-ui); } }
.profile h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; overflow-wrap: anywhere; }
.profile .btn { margin-left: auto; }
.badge { display: inline-block; margin: 0; font-size: 13px; font-weight: 700; color: var(--green-ink); background: var(--green-tint-2); padding: 2px 10px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .badge { color: var(--ink); } }
.me .stats { margin: 0; }
.me .stats div { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.progress p { margin: 6px 0 0; font-size: 14px; }
.badge-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.badge-bar i { display: block; height: 100%; background: var(--green-ui); border-radius: 999px; }
.me .group { background: var(--card); border-radius: var(--radius); padding: 16px; }
.me .group .muted { font-size: 14px; margin: 0; }
.me .group .btn { justify-self: start; }
.leaders { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: rank; }
.leaders li { display: flex; align-items: center; gap: 10px; padding: 10px 0; counter-increment: rank; }
.leaders li + li { border-top: 1px solid var(--line); }
.leaders li::before { content: counter(rank); width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg); font-size: 13px; font-weight: 800; color: var(--muted); }
.leaders li.you { font-weight: 800; }
.leaders li.empty::before { content: none; }
.leaders li.you::before { background: var(--green-deep); color: #fff; }
.leaders .n { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.receipts { margin: 4px 0 0; padding: 0; list-style: none; }
.receipts li { padding: 10px 0; }
.receipts li + li { border-top: 1px solid var(--line); }
.receipts small { display: block; color: var(--muted); }

/* Dialogs rise from the bottom like Grab's sheets. */
dialog { width: min(560px, calc(100% - 24px)); max-height: 88dvh; border: 0; border-radius: var(--radius-sheet); padding: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
dialog.sheet-dialog { width: 100%; max-width: 560px; margin: auto auto 0; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
@media (min-width: 600px) { dialog.sheet-dialog { margin: auto; border-radius: var(--radius-sheet); } }
dialog::backdrop { background: rgb(6 20 12 / 50%); }
dialog .head { display: flex; align-items: center; gap: 8px; padding: 18px 16px 8px 20px; position: sticky; top: 0; z-index: 1; background: var(--card); }
dialog .head h2 { font-size: 20px; font-weight: 800; margin: 0; }
dialog .head .btn { margin-left: auto; }
dialog .body { padding: 8px 20px 20px; display: grid; gap: 12px; }
.search { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--bg); }
.search svg { width: 20px; height: 20px; color: var(--muted); }
.search input { min-height: 50px; padding: 0; background: none; box-shadow: none; }
.search input:focus-visible { box-shadow: none; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--green-ui); }
.stop-list { list-style: none; margin: 0; padding: 0; }
.stop-list h3 { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; }
.stop-list button { width: 100%; min-height: 52px; text-align: left; padding: 8px 12px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-size: 16px; }
.stop-list button[aria-current="true"] { background: var(--green-tint); font-weight: 800; }
.consent-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.check input { width: 24px; height: 24px; margin-top: 1px; flex: none; accent-color: var(--green-deep); }
.stack { display: grid; gap: 4px; margin-top: 4px; }

/* The arrival moment: the peak of the whole experience, a green sheet that rises with the horn. */
.arrive { position: fixed; inset: 0; z-index: 20; display: grid; place-items: end center; background: rgb(6 20 12 / 55%); }
.arrive .card { width: min(560px, 100%); background: var(--card); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-up); display: grid; gap: 4px; overflow: hidden; }
.arrive.ask .card { padding-top: 24px; }
.arrive .card h2 { font-size: 24px; font-weight: 800; }
.arrive-band { display: flex; align-items: center; gap: 14px; margin: 0 -20px 12px; padding: 18px 20px; background: var(--green); color: var(--green-ink); }
.arrive-band img { width: 26px; height: 65px; object-fit: contain; filter: drop-shadow(0 0 2px var(--amber)) drop-shadow(0 0 5px rgb(255 183 3 / 70%)); }
.arrive-band h2 { margin: 0; font-size: 26px; }
.arrive-stop { margin: 0 0 2px; font-weight: 700; }
.arrive-eta { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.arrive-eta .num { font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.arrive-eta b { font-size: 22px; }
@media (prefers-color-scheme: dark) { .arrive-band { background: #0d5c33; color: #eafff2; } }

#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabs-h) + 136px + env(safe-area-inset-bottom)); z-index: 30; max-width: 528px; margin: 0 auto; }
#toast p { background: var(--ink); color: var(--card); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-1); margin: 0; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .arrive .card { animation: rise .42s cubic-bezier(.16, 1, .3, 1); }
  .arrive .card .num { animation: count .6s cubic-bezier(.16, 1, .3, 1) .1s backwards; }
  @keyframes rise { from { transform: translateY(100%); } }
  @keyframes count { from { transform: translateY(12px); opacity: 0; } }
  .status[data-s="live"] i, .online-tag i { animation: pulse 2s infinite; }
  @keyframes pulse { 50% { opacity: .3; } }
}

/* ---------- Site ---------- */
.site header.bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; max-width: 1040px; margin: 0 auto; }
.site header.bar b { font-size: 17px; white-space: nowrap; }
.site header.bar .pill { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.site header.bar .btn { margin-left: auto; min-height: 44px; padding: 0 16px; white-space: nowrap; font-size: 16px; }
@media (max-width: 420px) { .site header.bar .pill { display: none; } }
.site .mark { width: 30px; height: 30px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hero-site { display: grid; gap: 32px; padding-block: 32px 48px; align-items: center; }
@media (min-width: 860px) { .hero-site { grid-template-columns: 1.1fr .9fr; padding-block: 56px 72px; } }
.hero-site h1 { font-family: "Inter Display", "Inter", system-ui, sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 56px); letter-spacing: -.035em; margin-bottom: 16px; }
.hero-site .lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-site .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
/* Landing language: both versions are in the markup and <html lang> picks one (site.js). */
html[lang="en"] .site [lang="fil"], html:not([lang="en"]) .site [lang="en"] { display: none !important; }
.lang-switch { margin: 4px 0 0; }
.lang-switch button { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-color-scheme: dark) { .lang-switch button { color: var(--green-ui); } }
/* The hero phone shows the real Home screen: green band, search pill, the live card. */
.phone { background: var(--card); border: 10px solid var(--ink); border-radius: 40px; max-width: 360px; margin: 0 auto; width: 100%; box-shadow: var(--shadow-1); overflow: hidden; }
.phone-band { background: var(--green); padding: 22px 16px 40px; display: grid; gap: 12px; }
.phone-band .dirs span { display: grid; place-items: center; min-height: 40px; border-radius: 999px; color: var(--green-ink); font-weight: 700; font-size: 15px; }
.phone-band .dirs span[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgb(6 48 26 / 20%); }
.phone-sheet { margin-top: -24px; position: relative; background: var(--card); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding: 18px 14px 16px; display: grid; gap: 14px; }
@media (prefers-color-scheme: dark) { .phone-band { background: #0d5c33; } .phone-band .dirs span { color: #eafff2; } }
section.block { padding: 48px 0; border-top: 1px solid var(--line); }
section.block h2 { font-family: "Inter Display", "Inter", system-ui, sans-serif; font-weight: 800; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; margin-bottom: 12px; }
section.block > .wrap > p.intro { color: var(--muted); font-size: 18px; max-width: 40em; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 20px; }
.steps { display: grid; gap: 16px; margin-top: 24px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-deep); color: #fff; margin-right: 10px; font-size: 16px; }
/* Steps read as a numbered flow, not three boxed cards. */
.steps .card { background: none; box-shadow: none; border-radius: 0; padding: 0; }
.steps .card::before { content: ""; display: block; height: 3px; background: var(--green); margin-bottom: 18px; }
.line-map { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.line-map li { position: relative; padding: 6px 0 6px 32px; }
.line-map li::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 4px; background: var(--green); }
.line-map li::after { content: ""; position: absolute; left: 3px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 4px solid var(--green-ui); }
.line-map li:first-child::before { top: 14px; }
.line-map li:last-child::before { bottom: calc(100% - 14px); }
.line-map small { color: var(--muted); margin-left: 6px; }
.two { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.photo figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.cues { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.tiers { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tiers li { display: flex; gap: 10px; align-items: center; }
.tiers b { min-width: 3.2em; font-variant-numeric: tabular-nums; }
details { background: var(--card); border-radius: 14px; padding: 4px 16px; box-shadow: var(--shadow-1); margin-top: 10px; }
summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
footer.site-foot { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
