/* HailAFare app prototype — the app vocabulary (app_contract.md §4). Needs /css/tokens.css, /css/app.css and
   /css/airport.css first; this file adds only what the app shell and its screens need: the frame (.app), the navy top
   bar, the scrollable screen, the five-tab bar, the bottom sheet, toasts, and the app's own cards (hero, countdown,
   stat, row, driver status, notification mock, Wallet pass, checklist step, empty state). Every colour is a token, so
   light and dark both come for free; motion uses the tokens and is 0 ms under prefers-reduced-motion. The phone bezel
   on desktop is drawn by showcase.css (agent B): .app stays max-width 430 px and height 100 % so the showcase can set
   the frame's height; nothing here positions .phone above 900 px. */

/* ---------- page and frame ---------- */
html, body.app-body { height: 100%; }
body.app-body { margin: 0; background: var(--bg); color: var(--ink); overflow: hidden; }
.noscript { max-width: 36em; margin: var(--s-6) auto; padding: 0 var(--s-4); }
.showcase { height: 100%; min-height: 100dvh; }
.showcase-side:empty { display: none; }
.phone { height: 100%; min-height: 100dvh; display: flex; justify-content: center; }
.app:not(.chip) { position: relative; width: 100%; max-width: 430px; height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); overflow: hidden; padding-bottom: env(safe-area-inset-bottom); font-size: var(--fs-15); line-height: var(--lh-body); }   /* :not(.chip): the "Open app" chip is .chip.app too (v2.2) */
@media (max-width: 899px) { .phone { align-items: stretch; } }

/* ---------- top bar (navy in both themes) ---------- */
.app-top { flex: none; display: grid; grid-template-columns: var(--tap) minmax(0, 1fr) var(--tap); align-items: center; min-height: var(--topbar-h); padding: env(safe-area-inset-top) var(--s-1) 0; background: var(--navy); color: var(--on-navy); }
.app-top :focus-visible { outline-color: var(--focus-on-navy); }
.app-top .iconbtn { color: #FFFFFF; }
.app-top .iconbtn:hover { background: rgba(255, 255, 255, .12); }
.app-back { grid-column: 1; }
.app-back[hidden] { display: none; }
.app-title { grid-column: 2; margin: 0; font-size: var(--fs-17); font-weight: 800; letter-spacing: -.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #FFFFFF; }
.app-title .wordmark span { color: #F2A900; }
.app-action { grid-column: 3; display: flex; justify-content: flex-end; }
.app-action:empty { display: block; }
.app.bare .app-top, .app.bare .tabbar { display: none; }

/* ---------- screens ---------- */
.screen-host { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.screen { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: var(--s-4) var(--s-4) var(--s-8); outline: none; animation: screen-in 220ms var(--ease); }
.screen > * { max-width: 100%; }
.screen h2 { font-size: var(--fs-17); margin: 0 0 var(--s-2); }
.screen h3 { font-size: var(--fs-15); margin: 0 0 var(--s-1); }
.screen .card { margin: 0 0 var(--s-3); }
.screen .card > :last-child { margin-bottom: 0; }
@keyframes screen-in { from { opacity: .4; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.screen.back-in { animation-name: screen-back; }
@keyframes screen-back { from { opacity: .4; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.screen-boot { display: block; }
.sec { margin: 0 0 var(--s-5); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
.sec-head h2 { margin: 0; color: var(--primary); font-size: var(--fs-17); }
.sec-head .linkbtn { min-height: 32px; }
.sub { color: var(--muted); font-size: var(--fs-13); }
.meta { font-size: var(--fs-13); color: var(--muted); margin: 0 0 var(--s-2); }
.lead { font-size: var(--fs-17); line-height: var(--lh-heading); margin: 0 0 var(--s-2); }
.stack { display: grid; gap: var(--s-2); }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.actions-grid .btn { width: 100%; white-space: normal; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-3); }
.chipbtn { min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--r-chip); border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--fs-15); cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2); }
.chipbtn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.linkbtn.quiet { text-decoration: none; }
.inline-note { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-13); color: var(--muted); margin: 0 0 var(--s-3); }
.inline-note .icon { flex: none; margin-top: 2px; }
.demo-note { font-size: var(--fs-13); color: var(--muted); margin: var(--s-2) 0 0; }
.field-error { color: var(--danger); font-size: var(--fs-13); font-weight: 600; margin: 4px 0 0; }
.btn.outline { background: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn.applepay { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 800; letter-spacing: .01em; }
.btn.applepay .pay { font-weight: 500; }
.btn.applepay .chip.sample { color: var(--bg); }

/* ---------- tab bar ---------- */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 56px; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .01em; border-radius: var(--r-field); }
.tab .tab-glyph { display: inline-flex; width: 24px; height: 24px; }
.tab .tab-glyph .icon { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--primary); font-weight: 800; }
.tab:focus-visible { outline-offset: -3px; }
.app.sheet-open .screen { overflow: hidden; }

/* ---------- cards and rows ---------- */
.card.navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.card.tint { background: var(--amber-tint); border-color: var(--amber); }
.card.ring { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 46%); align-items: center; gap: var(--s-3); min-height: var(--tap); width: 100%; padding: var(--s-2) 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; text-decoration: none; font: inherit; cursor: default; }
.row:last-child { border-bottom: 0; }
.row.click { cursor: pointer; }
.row .row-glyph { color: var(--primary); width: 24px; height: 24px; display: inline-flex; }
.row .row-glyph .icon { width: 24px; height: 24px; }
.row .row-glyph:empty { display: none; }
.row .row-main { min-width: 0; }
.row .row-title { display: block; font-weight: 700; font-size: var(--fs-15); overflow-wrap: break-word; }
.row .row-sub { display: block; color: var(--muted); font-size: var(--fs-13); }
.row .row-trail { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 2px 6px; max-width: 100%; justify-self: end; color: var(--muted); font-size: var(--fs-13); font-weight: 700; font-variant-numeric: tabular-nums; white-space: normal; text-align: right; }
.row .row-trail:empty { display: none; }
.row .row-trail .chev { color: var(--muted); }
.row .row-trail .num { color: var(--primary); font-size: var(--fs-15); font-weight: 800; }
.rows { display: block; }
.card > .rows > .row:first-child { padding-top: 0; }

/* ---------- hero (the home's next-trip card) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.hero .k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 4px; }
.hero .route { font-size: var(--fs-17); font-weight: 800; margin: 0 0 var(--s-2); }
.hero .when { color: var(--on-navy-muted); font-size: var(--fs-13); margin: 0 0 var(--s-3); }
.hero .count { color: #FFFFFF; }
.hero .count-lbl { color: var(--on-navy-muted); }
.hero .pick { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin: var(--s-3) 0; padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, .18); font-size: var(--fs-15); }
.hero .pick b { font-size: var(--fs-20); font-variant-numeric: tabular-nums; }
.hero .sub, .hero .meta { color: var(--on-navy-muted); }
.hero .chip.sample { color: #FFFFFF; box-shadow: 0 0 0 1.5px var(--amber) inset; }
.hero .chip.est { background: rgba(255, 255, 255, .14); color: var(--on-navy-muted); }
.hero .btn.amber { position: relative; }
.hero :focus-visible { outline-color: var(--focus-on-navy); }

/* ---------- countdown and stats ---------- */
.count { display: block; font-size: var(--fs-32); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; color: var(--primary); }
.count.small { font-size: var(--fs-24); }
.count-lbl { display: block; font-size: var(--fs-13); color: var(--muted); font-weight: 600; }
.count-wrap { display: grid; gap: 2px; margin: 0 0 var(--s-3); }
.stat { display: grid; gap: 2px; }
.stat .big { font-size: var(--fs-24); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); line-height: 1.15; }
.stat .lbl { font-size: var(--fs-13); color: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.stats .stat { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-3); background: var(--surface); }

/* ---------- segmented (reuses .segmented / .seg from app.css) ---------- */
.segmented.app-seg { margin: 0 0 var(--s-3); }
.segmented.app-seg .seg { font-size: 12px; padding: 0 4px; }
.segmented.app-seg.four .seg { font-size: 11px; }

/* ---------- lists ---------- */
.list .opt { margin-bottom: var(--s-3); }
.list .opt .name { font-size: var(--fs-15); }
.list .opt .price { font-size: var(--fs-20); }
.list .opt .actions .btn.small { padding: 8px 10px; }
.list .opt .actions .linkbtn { font-size: 12px; }
.timeline li { grid-template-columns: 112px minmax(0, 1fr); }
.timeline .t { white-space: normal; line-height: 1.25; }
.timeline li.done { color: var(--muted); }
.timeline li.done::before { background: var(--muted); }
.timeline li.home::before { background: var(--primary); }
.reminders li { background: var(--surface); }

/* ---------- the best-time strip (smaller than the site) ---------- */
.stripcard { padding: var(--s-3); }
.stripcard .strip { --row: 22px; }
.stripcard .strip-labels { font-size: 11px; }
.stripcard .strip-axis { height: 30px; font-size: 10px; }
.stripcard .readout { min-height: 2.4em; font-size: 12px; }
.stripcard .strip-legend { font-size: 11px; }
@media (max-width: 420px) { .strip-axis.dense span:nth-child(even) { visibility: hidden; } }

/* ---------- bottom sheet ---------- */
.sheet-app { position: absolute; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade-in var(--t-sheet) var(--ease); }
.sheet-card { position: relative; width: 100%; max-height: 88%; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-sheet); padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); animation: sheet-up var(--t-sheet) var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet-handle { display: flex; align-items: center; justify-content: center; width: 100%; height: 28px; border: 0; background: transparent; cursor: pointer; border-radius: 16px 16px 0 0; }
.sheet-handle .grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet-head { display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-2) var(--s-2) var(--s-4); }
.sheet-head h2 { flex: 1; font-size: var(--fs-17); margin: 0; }
.sheet-head .iconbtn { color: var(--primary); }
.sheet-body { flex: 1; min-height: 0; overflow: auto; padding: 0 var(--s-4); overscroll-behavior: contain; }
.sheet-body > p:last-child { margin-bottom: 0; }
.sheet-actions { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4) 0; }
.sheet-actions:empty { display: none; }
.sheet-body .kv.plain { margin: 0 0 var(--s-2); }
.sheet-body .kv.plain dd .chip { vertical-align: 1px; }

/* ---------- toasts (bottom, above the tab bar) ---------- */
.toasts { position: absolute; left: var(--s-3); right: var(--s-3); bottom: calc(56px + var(--s-3) + env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: var(--s-2); pointer-events: none; }
.toast { display: flex; align-items: center; gap: var(--s-2); background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px var(--s-3); font-size: var(--fs-13); font-weight: 600; box-shadow: var(--shadow-float); opacity: 0; transform: translateY(8px); transition: opacity var(--t-chip) var(--ease), transform var(--t-chip) var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast.success { border-color: var(--live); }
.toast.success .icon { color: var(--live); }
.toast.sample { border-color: var(--amber); }
.toast .chip { flex: none; }

/* ---------- chips ---------- */
.chip.navy { background: var(--navy); color: #FFFFFF; }
.chip.sample { white-space: nowrap; }

/* ---------- the driver-status card ---------- */
.driver { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-2) var(--s-3); align-items: center; }
.driver .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--fs-17); letter-spacing: .02em; }
.driver .avatar.pending { background: var(--estimate-tint); color: var(--muted); }
.driver .d-main { min-width: 0; }
.driver .d-name { display: block; font-weight: 800; font-size: var(--fs-15); }
.driver .d-vehicle { display: block; color: var(--muted); font-size: var(--fs-13); }
.driver .d-status { grid-column: 1 / -1; display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: start; gap: 4px var(--s-2); font-size: var(--fs-15); font-weight: 700; padding-top: var(--s-2); border-top: 1px dashed var(--line); }
.driver .d-status .dot { margin-top: 6px; }
.driver .d-status .sub { grid-column: 2; }
.driver .d-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.driver .d-status.live-ish .dot { background: var(--teal); }
.driver .d-status .sub { font-weight: 500; }
.driver .d-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.driver .d-actions .btn { width: 100%; }

/* ---------- the notification mock ---------- */
.notifs { display: grid; gap: var(--s-2); margin: 0 0 var(--s-3); }
.notif { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px var(--s-3); align-items: start; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 10px var(--s-3); box-shadow: var(--shadow-float); animation: notif-in 260ms var(--ease); }
@keyframes notif-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.notif .n-icon { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 9px; background: var(--navy); color: #FFFFFF; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.notif .n-icon span { color: #F2A900; }
.notif .n-title { font-weight: 800; font-size: var(--fs-13); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.notif .n-body { grid-column: 2 / span 2; font-size: var(--fs-13); color: var(--ink); }
.notif .n-time { font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.notif .n-app { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- the Wallet pass mock ---------- */
.pass { position: relative; overflow: hidden; background: var(--navy); color: #FFFFFF; border-radius: 16px; padding: var(--s-4); display: grid; gap: var(--s-3); box-shadow: var(--shadow-float); }
.pass::before { content: ""; position: absolute; left: -30px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.pass .p-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.pass .p-brand { font-size: var(--fs-20); font-weight: 800; letter-spacing: -.01em; }
.pass .p-brand span { color: #F2A900; }
.pass .p-kind { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-muted); }
.pass .p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.pass .p-k { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-muted); }
.pass .p-v { display: block; font-size: var(--fs-15); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pass .p-v.big { font-size: var(--fs-24); }
.pass .p-qr { justify-self: center; width: 120px; height: 120px; border-radius: 10px; background: #FFFFFF; padding: 8px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pass .p-qr i { display: block; background: var(--navy); border-radius: 1px; }
.pass .p-qr i.o { background: transparent; }
.pass .p-code { text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; }
.pass .chip.sample { color: #FFFFFF; justify-self: center; }

/* ---------- checklist step ---------- */
.steps-list { display: grid; gap: 0; margin: 0 0 var(--s-3); }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: var(--tap); padding: var(--s-2) 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: 0; }
.step .circle { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--field-line); display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; background: transparent; }
.step .circle .icon { width: 16px; height: 16px; display: none; }
.step.done .circle { background: var(--navy); border-color: var(--navy); }
.step.done .circle .icon { display: block; }
.step.now .circle { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint); }
.step .s-label { display: block; font-weight: 700; }
.step.done .s-label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.step .s-sub { display: block; font-size: var(--fs-13); color: var(--muted); }
.step .s-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); white-space: nowrap; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: var(--s-6) var(--s-4); display: grid; gap: var(--s-2); justify-items: center; }
.empty .e-glyph { width: 56px; height: 56px; border-radius: 50%; background: var(--estimate-tint); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.empty .e-glyph .icon { width: 28px; height: 28px; }
.empty h2 { margin: 0; }
.empty p { color: var(--muted); margin: 0; max-width: 30ch; }
.empty .btn { margin-top: var(--s-2); }

/* ---------- onboarding ---------- */
.onb { display: flex; flex-direction: column; height: 100%; padding: 0; }
.onb-pages { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.onb-pages::-webkit-scrollbar { display: none; }
.onb-page { flex: none; width: 100%; scroll-snap-align: start; overflow-y: auto; padding: var(--s-6) var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.onb-page h2, .onb-page .onb-h1 { font-size: var(--fs-24); color: var(--primary); margin: 0; line-height: var(--lh-heading); }
.onb-page .lede { margin: 0; }
.onb-art { display: block; width: 100%; max-width: 250px; margin: var(--s-2) auto; }
.onb-foot { flex: none; padding: var(--s-3) var(--s-5) calc(var(--s-4) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-3); border-top: 1px solid var(--line); background: var(--surface); }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: var(--tap); height: 28px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.dots button i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: transform var(--t-chip) var(--ease), background var(--t-chip) var(--ease); }
.dots button[aria-current="true"] i { background: var(--navy); transform: scale(1.4); }
.onb-foot .btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-2); }
.onb .brand-line { font-size: var(--fs-24); font-weight: 800; color: var(--primary); }
.onb .brand-line span { color: var(--amber); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--tap); }
.toggle-row .t-main { min-width: 0; }
.toggle-row .t-title { display: block; font-weight: 700; }
.toggle-row .t-sub { display: block; font-size: var(--fs-13); color: var(--muted); }

/* ---------- plan form ---------- */
.form-grid { display: grid; gap: var(--s-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.field .input { min-width: 0; }
.field.lead > .icon { top: 35px; }
.field.trail .inbtn { top: 23px; }
.leg-block { background: var(--surface); }
.leg-block .leg-title { display: flex; align-items: center; gap: 6px; }
.leg-block .noflight { display: grid; gap: var(--s-2); }
.check { font-size: var(--fs-15); }
.plan-status { margin: var(--s-2) 0 0; }

/* ---------- results ---------- */
.mustbe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-3); }
.pickup { padding: var(--s-3); }
.curb { padding: var(--s-3); }
.curb .steps li .src { display: none; }
.card .simulate { margin-bottom: 0; }
.hero .k + .chip { margin-bottom: var(--s-2); }
.save-bar { padding: var(--s-2) 0 0; }

/* ---------- trip card ---------- */
.tripcard { margin: 0 0 var(--s-3); }
.tc-route { font-size: var(--fs-17); }
.tc-leg .price { font-size: var(--fs-17); }
.tc-actions { gap: var(--s-2); }
.tc-actions .two .btn { width: 100%; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--tap); }
.switch-row .switch { flex: none; }

/* ---------- booking ---------- */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-1); margin: 0 0 var(--s-4); counter-reset: s; }
.stepper li { list-style: none; display: grid; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stepper li::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--line); }
.stepper li.on { color: var(--primary); }
.stepper li.on::before, .stepper li.done::before { background: var(--navy); }
.stepper { padding: 0; }
.book-leg { margin: 0 0 var(--s-3); }
.pay-card { display: grid; gap: var(--s-3); }
.pay-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px dashed var(--line); }
.pay-row .icon { color: var(--primary); }
.pay-row b { font-variant-numeric: tabular-nums; }
.confirm { margin: 0 0 var(--s-3); }

/* ---------- today / landing ---------- */
.ff-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); }
.ff-row .clock { flex: 1; min-width: 0; font-size: var(--fs-13); color: var(--muted); font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: 2px; }
.stars button { width: var(--tap); height: var(--tap); border: 0; background: transparent; color: var(--field-line); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.stars button .icon { width: 28px; height: 28px; }
.stars button[aria-pressed="true"] { color: var(--amber); }
.stars button[aria-pressed="true"] .icon { fill: var(--amber); }
.fallbacks .row .row-trail .num { font-size: var(--fs-15); }

/* ---------- misc ---------- */
.placeholder { padding: var(--s-6) 0; }
.version { font-size: 12px; color: var(--muted); text-align: center; margin: var(--s-4) 0 0; }
.foot-note { font-size: 12px; color: var(--muted); margin: var(--s-4) 0 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .screen, .screen.back-in, .sheet-card, .sheet-scrim, .notif { animation: none; }
  .toast { transition: none; }
}
