/* Ferros · Concept 2 · INTERCHANGE — the world's money as one transit network */
@view-transition { navigation: auto; }

:root {
  --paper: #F5F4EF; --paper2: #EFEDE6; --mapbg: #FBFAF6; --white: #FFFFFF;
  --ink: #0E0E0C; --ink2: #3C3C38; --mute: #85847D; --hair: #DEDCD3; --hair2: #E8E6DF;
  --board: #0B0B0A; --flap: #1A1A18; --flapt: #F4F1E6; --amber: #FFB000; --green: #35D07F;
  --ach: #E4002B; --sepa: #0050D8; --pix: #00A38C; --spei: #FF6B00; --paynow: #7A3CFF; --duit: #E5007E;
  --ewal: #0097E6; --fps: #A0522D; --gold: #F2A900; --agent: #8D8D86;
  --tc: #0050D8;
  --f: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --m: 'Martian Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --nav-h: 60px;
}
@media (min-width: 900px) { :root { --nav-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.5; font-weight: 420;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.lock, body.lock { overflow: hidden; }
@media (hover: hover) and (pointer: fine) { html { scrollbar-gutter: stable; } }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-align: inherit; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.ic { width: 20px; height: 20px; flex: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--sepa); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- type ---------- */
.mono-label { font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); line-height: 1.35; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--m); font-stretch: 87.5%; font-size: 11px; font-weight: 550; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.bullet { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--f); font-stretch: 100%; font-weight: 800; font-size: 13px; letter-spacing: 0; flex: none; }
.sec-head { max-width: 860px; }
.sec-head h2 { font-size: clamp(42px, 8.6vw, 92px); line-height: .94; letter-spacing: -.045em; font-weight: 790; margin: 16px 0 16px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink2); max-width: 640px; text-wrap: pretty; }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pix); flex: none; }
.dot.live { position: relative; }
.dot.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: livepulse 2s infinite; will-change: transform, opacity; }
@keyframes livepulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.btn .ic { width: 18px; height: 18px; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -10px rgba(14,14,12,.6); }
.btn-line { box-shadow: 0 0 0 1.5px var(--ink) inset; color: var(--ink); }
.btn-sm { height: 44px; padding: 0 16px; font-size: 15px; }
.btn-tag { font-family: var(--m); font-stretch: 87.5%; font-size: 11px; font-weight: 500; padding: 4px 7px; border-radius: 999px; background: rgba(245,244,239,.16); color: var(--paper); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn-line:hover { background: var(--ink); color: var(--paper); }
}
.btn:active { transform: scale(.98); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; color: var(--ink); transition: background .2s; }
.icon-btn.dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px 0 11px; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 1px var(--hair) inset, 0 4px 14px -8px rgba(14,14,12,.35); font-size: 13.5px; font-weight: 620; color: var(--ink); white-space: nowrap; }
@media (max-width: 599px) { .mf-long { display: none; } .mapframe-tools [data-act="pause"] { width: 40px; padding: 0; justify-content: center; } .mapframe-tools [data-act="pause"] span { display: none; } }
.mapframe-bar .mono-label .mf-long { margin-right: 2px; }
.chip-btn .ic { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(245, 244, 239, .97); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--hair); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-weight: 800; font-size: 27px; letter-spacing: -.05em; line-height: 1; transform: translateY(-1px); }
.nav-links { display: none; align-items: center; gap: 2px; margin-left: 22px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15.5px; font-weight: 560; text-decoration: none; color: var(--ink); transition: background .2s; }
.nav-link .chev { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] { background: var(--hair2); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (hover: hover) { .nav-link:hover { background: var(--hair2); } }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .signin { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink) inset; }
.show-xs { display: inline; } .hide-xs { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta .signin { display: inline-flex; }
  .menu-btn { display: none; }
  .show-xs { display: none; } .hide-xs { display: inline; }
}

/* products panel: mega-menu (desktop) / full-screen drawer (mobile) */
.products { position: fixed; inset: 0; z-index: 70; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; padding: 10px 0 120px; animation: drawerIn .38s var(--ease); }
.products[hidden] { display: none; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.products-head { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 8px; }
.products-grid { display: grid; gap: 26px; }
.pg { display: grid; gap: 4px; align-content: start; }
.pg-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pg-title b { font-size: 13px; font-family: var(--m); font-stretch: 87.5%; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.pl { position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; min-height: 64px; padding: 8px 10px 8px 0; text-decoration: none; border-radius: 14px; transition: background .2s; }
.pl::before { content: ''; position: absolute; left: 16px; top: -2px; bottom: -2px; width: 8px; background: var(--c); }
.pg .pl:first-of-type::before { top: 50%; border-radius: 4px 4px 0 0; }
.pg .pl:last-of-type::before { bottom: 50%; border-radius: 0 0 4px 4px; }
.pg .pl:only-of-type::before { display: none; }
.pl-st { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; }
.pl-st .bullet { width: 30px; height: 30px; font-size: 14px; box-shadow: 0 0 0 3px var(--paper); }
.pl-tx b { display: block; font-size: 17px; font-weight: 720; letter-spacing: -.02em; line-height: 1.2; }
.pl-tx span { display: block; font-size: 14px; color: var(--ink2); line-height: 1.35; }
@media (hover: hover) { .pl:hover { background: var(--white); } }
.products-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair); }
.products-foot a { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; font-weight: 600; text-decoration: none; border-radius: 999px; }
.products-foot .btn { margin-left: 4px; }
@media (min-width: 900px) {
  .products { position: absolute; inset: auto 0 auto 0; top: 100%; padding: 26px 0 30px; background: var(--white); box-shadow: 0 1px 0 var(--hair), 0 30px 60px -30px rgba(14,14,12,.35); max-height: calc(100vh - var(--nav-h)); }
  .products-head { display: none; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .pl::before { left: 16px; }
  .pl-st .bullet { box-shadow: 0 0 0 3px var(--white); }
  @media (hover: hover) { .pl:hover { background: var(--paper); } }
  .products-foot { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 14px 0 34px; }
.hero-top { display: flex; flex-direction: column; gap: 14px; }
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 480px; }
.ticket {
  position: relative; display: grid; align-content: center; gap: 1px; height: 54px; padding: 6px 10px 4px 16px; border-radius: 9px; background: var(--white); color: var(--ink);
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 6.5px, #000 7px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 6.5px, #000 7px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 6.5px, #000 7px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 6.5px, #000 7px) right / 51% 100% no-repeat;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--spring);
}
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.ticket::after { content: ''; position: absolute; left: 9px; top: 12px; bottom: 9px; border-left: 1.5px dashed var(--hair); }
.tk-no { font-family: var(--m); font-stretch: 87.5%; font-size: 9.5px; font-weight: 500; color: var(--mute); letter-spacing: .04em; }
.tk-name { font-size: 15px; font-weight: 720; letter-spacing: -.02em; line-height: 1.1; }
.ticket[aria-selected="true"] { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.ticket[aria-selected="true"] .tk-no { color: rgba(245,244,239,.6); }
.ticket[aria-selected="true"]::after { border-color: rgba(245,244,239,.22); }
.hero-eyebrow { color: var(--ink2); }

.hero-title { margin: 22px 0 14px; font-size: clamp(54px, 14.2vw, 158px); line-height: .88; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.hero-title > span { display: block; width: fit-content; }
body[data-view="developers"] .hero-title { font-size: clamp(44px, 11.6vw, 158px); }
.hero-title .there { font-style: normal; position: relative; white-space: nowrap; display: inline-block; }
.hero-title .there::after { content: ''; position: absolute; left: .03em; right: .26em; bottom: -.02em; height: .1em; border-radius: 99px; background: var(--tc); transition: background .6s var(--ease); }
.hero-title .there::before { content: ''; position: absolute; right: .12em; bottom: -.075em; width: .21em; height: .21em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .045em var(--ink); z-index: 1; }
.hero-title .word { display: inline-block; }
.hero-title.words-in .word { animation: wordIn .7s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; transform: translateX(-.5em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.hero-copy { display: grid; gap: 16px; margin-top: 22px; }
.ticker { display: flex; align-items: center; gap: 12px; min-height: 44px; overflow: hidden; }
.tk-line { position: relative; flex: none; width: 54px; height: 8px; border-radius: 99px; background: var(--tc); transition: background .6s var(--ease); }
.tk-dot { position: absolute; right: -5px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink); }
.tk-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; padding-left: 6px; }
.tk-text.roll { animation: tickRoll .55s var(--ease) both; }
@keyframes tickRoll { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
.tk-city { font-size: 19px; font-weight: 760; letter-spacing: -.02em; }
.tk-rail { font-weight: 650; color: var(--tc); }
.tk-amt { font-family: var(--m); font-stretch: 87.5%; font-size: 13px; font-weight: 500; }
.tk-eta { font-family: var(--m); font-stretch: 87.5%; font-size: 11px; text-transform: uppercase; color: var(--mute); }
.hero-sub { font-size: 17.5px; color: var(--ink2); max-width: 560px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) {
  .hero { padding-top: 22px; padding-bottom: 40px; }
  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 452px); grid-template-rows: auto 1fr auto auto auto; grid-template-areas: "top top" "title ticker" "title copy" "map map" "stats stats"; column-gap: 56px; }
  .hero-top { grid-area: top; flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-title { grid-area: title; align-self: end; margin: 26px 0 0; font-size: clamp(64px, min(8.6vw, 14.2vh), 142px); }
  body[data-view="developers"] .hero-title { font-size: clamp(56px, min(7.2vw, 12.4vh), 122px); }
  .ticker { grid-area: ticker; align-self: end; margin-bottom: 14px; }
  .hero-copy { grid-area: copy; align-self: end; margin-top: 0; gap: 20px; }
  .hero-sub { font-size: 17px; }
  .mapframe { grid-area: map; margin-top: 30px; }
  #heroMap { height: clamp(440px, calc(100svh - 450px), 680px); }
  .hero-stats { grid-area: stats; }
  .hero-ctas { flex-wrap: nowrap; }
}

/* ---------- map frame & views ---------- */
.mapframe { position: relative; margin-top: 22px; border-radius: 26px; background: var(--mapbg); box-shadow: 0 0 0 1px var(--hair) inset, 0 40px 80px -60px rgba(14,14,12,.45); overflow: hidden; isolation: isolate; }
.mapframe-bar { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 0 16px; pointer-events: none; }
.mapframe-bar .mono-label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); background: rgba(251,250,246,.86); padding: 6px 8px; border-radius: 8px; }
.mapframe-tools { display: flex; gap: 6px; }
.mapview { position: relative; overflow: hidden; height: clamp(400px, 56vh, 660px); background-color: var(--mapbg); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mv-dots { position: absolute; left: 0; top: 0; right: -60px; bottom: -60px; background-image: radial-gradient(circle, rgba(14,14,12,.1) 1px, transparent 1.5px); background-size: 22px 22px; will-change: transform; pointer-events: none; }
.run-map .mv-dots { display: none; }
#heroMap { height: clamp(380px, 54svh, 640px); }
.mv-stage { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; transform-origin: 0 0; will-change: transform; }
.mv-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.mv-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mv-line { fill: none; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; transition: opacity .5s var(--ease); }
.mv-line.express { stroke-width: 15; }
.mv-casing { fill: none; stroke: var(--mapbg); stroke-width: 21; stroke-linecap: round; stroke-linejoin: round; }
.mv-center { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .5s var(--ease); }
.mv-agent-dash { fill: none; stroke: #fff; stroke-width: 5; stroke-dasharray: 0.1 18; stroke-linecap: round; }
.mv-label { font-family: var(--f); font-weight: 680; font-size: 19px; letter-spacing: -.01em; fill: var(--ink); paint-order: stroke; stroke: var(--mapbg); stroke-width: 7px; stroke-linejoin: round; transition: opacity .5s var(--ease); }
.mv-label.small { font-size: 15.5px; font-weight: 620; }
.mv-sub { font-family: var(--m); font-stretch: 87.5%; font-weight: 500; font-size: 11.5px; letter-spacing: .04em; fill: var(--mute); paint-order: stroke; stroke: var(--mapbg); stroke-width: 6px; text-transform: uppercase; }
.mv-region { font-family: var(--m); font-stretch: 87.5%; font-weight: 600; font-size: 13px; letter-spacing: .22em; fill: rgba(14,14,12,.26); }
.mv-st { fill: #fff; stroke: var(--ink); stroke-width: 4.5; transition: opacity .5s var(--ease); }
.mv-hit { fill: transparent; cursor: pointer; outline: none; }
.mv-hit:focus-visible + .mv-st, .mv-sgroup:focus-visible .mv-st { stroke: var(--sepa); stroke-width: 6; }
.mv-sgroup { cursor: pointer; outline: none; }
.mv-sgroup:focus-visible .mv-label { fill: var(--sepa); }
@media (hover: hover) { .mv-sgroup:hover .mv-st { stroke-width: 6; } .mv-sgroup:hover .mv-label { fill: var(--sepa); } }
.mv-ferros-pill { fill: #fff; stroke: var(--ink); stroke-width: 6; }
.mv-ferros-name { font-family: var(--f); font-weight: 800; font-size: 46px; letter-spacing: -.05em; fill: var(--ink); }
.mv-ferros-sub { font-family: var(--m); font-stretch: 87.5%; font-weight: 600; font-size: 11.5px; letter-spacing: .14em; fill: var(--mute); text-transform: uppercase; }
.mv-pulse { position: absolute; left: 685px; top: 444px; width: 230px; height: 112px; border-radius: 56px; box-shadow: 0 0 0 5px var(--gold); opacity: 0; pointer-events: none; z-index: 1; }
.mv-pulse.go { animation: fxPulse .9s var(--ease); }
@keyframes fxPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
.mapview.dim .mv-line:not(.on), .mapview.dim .mv-center:not(.on) { opacity: .14; }
.mapview.dim .mv-sgroup:not(.on) { opacity: .28; }
.mv-route { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 14; opacity: 0; }
.mapview.dim .mv-route { opacity: .55; }

/* station buttons + labels (HTML, inside the scaled stage) */
.mv-stations { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; }
.mv-stations.passive { pointer-events: none; }
.mv-stb { position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%; color: var(--ink); transition: opacity .5s var(--ease); }
.mv-stb.mv-fx { left: -115px; top: -56px; width: 230px; height: 112px; border-radius: 56px; }
.mv-lab { position: absolute; left: 50%; top: 50%; --ax: -50%; transform: translate(var(--dx), var(--dy)) translate(var(--ax), -79%); font-family: var(--f); font-weight: 680; font-size: 19px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; color: var(--ink); text-shadow: 2.5px 0 var(--mapbg), -2.5px 0 var(--mapbg), 0 2.5px var(--mapbg), 0 -2.5px var(--mapbg), 1.8px 1.8px var(--mapbg), -1.8px 1.8px var(--mapbg), 1.8px -1.8px var(--mapbg), -1.8px -1.8px var(--mapbg); transition: color .2s; }
.mv-lab.start { --ax: 0%; }
.mv-lab.end { --ax: -100%; }
.mv-stb.merchant .mv-lab { font-size: 15.5px; font-weight: 620; }
.mv-stb:focus-visible { outline: 4px solid var(--sepa); outline-offset: -8px; }
.mv-stb:focus-visible .mv-lab { color: var(--sepa); }
@media (hover: hover) { button.mv-stb:hover .mv-lab { color: var(--sepa); } button.mv-stb:not(.mv-fx):hover { background: radial-gradient(circle, rgba(0,80,216,.14) 0 40%, transparent 41%); } }
.mapview.dim .mv-stb:not(.on) { opacity: .28; }
.fm-view.dragging .mv-stb { pointer-events: none; }

/* trains (HTML, composited) */
.train { position: absolute; left: 0; top: 0; will-change: transform; pointer-events: none; z-index: 3; }
.train-pill { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(var(--k, 1)); display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--m); font-stretch: 87.5%; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(14,14,12,.6), 0 0 0 2.5px #fff; transition: opacity .3s; }
.train-pill i { width: 15px; height: 15px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2.5px #fff; flex: none; transition: background .3s; }
.train.hidden .train-pill, .train.hidden .train-dot { opacity: 0; }
.train-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(14,14,12,.35); transform: scale(var(--k, 1)); transition: opacity .3s; }
.run-map .mv-label, .run-map .mv-region, .run-map .mv-ferros-sub { display: none; }
.train.flip .train-pill span { animation: pillFlip .45s var(--ease); }
@keyframes pillFlip { 0% { opacity: 0; transform: translateY(70%); } 100% { opacity: 1; transform: none; } }
.ripple { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 2; }
.ripple::before { content: ''; position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 4px var(--c); animation: ripple 1.1s var(--ease) forwards; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.legend { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; background: var(--mapbg); border-top: 1px solid var(--hair2); }
.legend::-webkit-scrollbar { display: none; }
.lg { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 9px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-size: 13.5px; font-weight: 640; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.lg i { width: 20px; height: 8px; border-radius: 9px; background: var(--c); flex: none; }
.lg.dashed i { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }
.lg[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
@media (min-width: 900px) {
  .legend { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 12px 14px 14px; }
  .lg { height: 34px; font-size: 13px; box-shadow: 0 0 0 1px var(--hair) inset, 0 4px 10px -8px rgba(14,14,12,.3); }
}

.hero-stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.hero-stats li { display: grid; gap: 2px; padding: 14px 12px 4px 0; }
.hero-stats b { font-size: clamp(26px, 3.4vw, 40px); font-weight: 790; letter-spacing: -.04em; line-height: 1; }
.hero-stats span { font-size: 14px; color: var(--ink2); line-height: 1.3; }
@media (min-width: 900px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } .hero-stats li { padding: 18px 18px 0 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 140px) 0 0; }
.night { background: var(--ink); color: var(--paper); padding-bottom: clamp(64px, 10vw, 120px); margin-top: clamp(64px, 10vw, 140px); }
.night .lead { color: rgba(245,244,239,.72); }
.night .eyebrow { color: rgba(245,244,239,.7); }
.night .mono-label { color: rgba(245,244,239,.5); }
.night + .night { margin-top: 0; padding-top: 0; }

/* ---------- departures board ---------- */
.board { margin-top: 30px; background: var(--board); border-radius: 24px; padding: 16px 14px 14px; color: var(--flapt); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -50px rgba(14,14,12,.8); overflow: hidden; }
.board-head { display: none; }
.board-rows { display: grid; gap: 10px; }
.brow { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brow:last-child { border-bottom: 0; padding-bottom: 0; }
.bline { display: flex; align-items: center; gap: var(--cg, 2px); }
.bgroup { display: flex; gap: var(--cg, 2px); }
.bgap { width: var(--cw, 14px); flex: none; }
.flap { position: relative; display: inline-grid; place-items: center; width: var(--cw, 15px); height: var(--ch, 24px); border-radius: 3px; background: linear-gradient(#252522 0 50%, #191917 50% 100%); font-family: var(--m); font-stretch: 100%; font-weight: 600; font-size: var(--fs, 13px); line-height: 1; color: var(--flapt); overflow: hidden; flex: none; }
.flap::after { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: rgba(0,0,0,.75); }
.flap span { display: block; transform-origin: 50% 50%; }
.flap.go span { animation: flapChar .07s linear; }
@keyframes flapChar { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); opacity: .6; } 100% { transform: scaleY(1); } }
.brow .st .flap { color: var(--amber); }
.brow.arrived .st .flap { color: var(--green); }
.brow .bcol-via .flap { color: #CFCBBE; }
.board-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.board-foot .mono-label { color: rgba(244,241,230,.45); }
.board-count { color: var(--green) !important; }
@media (min-width: 900px) {
  .board { padding: 22px 26px 18px; }
  .board-head { display: grid; grid-template-columns: var(--cols); gap: 18px; font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .board-rows { gap: 8px; }
  .brow { grid-template-columns: var(--cols); gap: 18px; align-items: center; padding-bottom: 8px; }
}

/* ---------- planner ---------- */
.planner { margin-top: 34px; display: grid; gap: 14px; }
.planner-form, .planner-out { display: grid; gap: 12px; align-content: start; }
.od { position: relative; display: grid; gap: 8px; }
.od-field { display: grid; gap: 3px; min-height: 72px; padding: 12px 64px 12px 16px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; transition: box-shadow .2s; }
.od-field:active { box-shadow: 0 0 0 2px var(--ink) inset; }
@media (hover: hover) { .od-field:hover { box-shadow: 0 0 0 1.5px var(--ink) inset; } }
.od-k { font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.od-v { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.od-dots { display: inline-flex; gap: 3px; }
.od-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); margin-right: 3px; }
.od-city { font-size: 21px; font-weight: 750; letter-spacing: -.025em; }
.od-meta { font-family: var(--m); font-stretch: 87.5%; font-size: 12px; color: var(--ink2); }
.swap { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 4px var(--paper); transition: transform .45s var(--spring); z-index: 2; }
.swap.spin { transform: translateY(-50%) rotate(180deg); }
.amount { display: grid; gap: 4px; padding: 12px 16px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; cursor: text; }
.amount:focus-within { box-shadow: 0 0 0 2px var(--ink) inset; }
.amount-in { display: flex; align-items: baseline; gap: 8px; }
.amount-cur { font-size: 24px; font-weight: 700; color: var(--mute); }
.amount input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font-size: 32px; font-weight: 780; letter-spacing: -.035em; font-variant-numeric: tabular-nums; padding: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--hair2); }
.seg button { display: grid; justify-items: center; align-content: center; min-height: 52px; padding: 4px 8px; border-radius: 12px; font-weight: 680; font-size: 15px; line-height: 1.15; transition: background .25s, color .25s; }
.seg button small { font-family: var(--m); font-stretch: 87.5%; font-size: 10px; font-weight: 500; color: var(--mute); letter-spacing: .02em; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.seg button[aria-checked="true"] small { color: rgba(245,244,239,.6); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quick .mono-label { margin-right: 4px; }
.qchip { height: 42px; padding: 0 14px; border-radius: 999px; background: transparent; box-shadow: 0 0 0 1.5px var(--hair) inset; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, box-shadow .2s; }
.qchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (hover: hover) { .qchip:hover { box-shadow: 0 0 0 1.5px var(--ink) inset; } }
.result { padding: 18px 18px 16px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; }
.res-main { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px dashed var(--hair); }
.res-big { font-size: clamp(40px, 9vw, 58px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.res-eta { display: flex; align-items: center; gap: 8px; font-weight: 640; font-size: 15px; margin-top: 6px; }
.res-grid { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.res-grid div { display: grid; gap: 2px; min-width: 0; }
.res-grid dt { font-family: var(--m); font-stretch: 87.5%; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.res-grid dd { margin: 0; font-size: 15px; font-weight: 640; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.res-grid dd.pos { color: var(--pix); }
.itin { position: relative; list-style: none; margin: 0; padding: 16px 18px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; display: grid; }
.it { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; min-height: 58px; }
.it::before { content: ''; position: absolute; left: 13px; top: 18px; bottom: -6px; width: 8px; background: var(--c, var(--hair)); border-radius: 0; }
.it:last-child::before { display: none; }
.it-st { position: relative; z-index: 1; width: 22px; height: 22px; margin: 7px 0 0 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--ink); }
.it.xfer .it-st { width: 30px; height: 22px; margin-left: 2px; border-radius: 12px; }
.it b { display: block; font-size: 17px; font-weight: 740; letter-spacing: -.02em; line-height: 1.25; padding-top: 5px; }
.it span { display: block; font-size: 13.5px; color: var(--ink2); line-height: 1.35; padding-bottom: 12px; }
.it .rail { display: inline-flex; align-items: center; gap: 6px; font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); padding: 0; }
.it .rail i { width: 14px; height: 6px; border-radius: 6px; background: var(--c); }
.it-train { position: absolute; left: 27px; top: 0; list-style: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ink); z-index: 2; transition: transform 1s var(--ease); }
.planner-map { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair) inset; }
.planner-map .mapview { height: 340px; }
.planner-map .replay { position: absolute; right: 12px; top: 12px; z-index: 4; }
@media (min-width: 1000px) {
  .planner { grid-template-columns: minmax(360px, 440px) 1fr; grid-template-rows: auto 1fr; gap: 16px 22px; }
  .planner-form { grid-column: 1; }
  .planner-out { grid-column: 1; }
  .planner-map { grid-column: 2; grid-row: 1 / span 2; }
  .planner-map .mapview { height: 100%; min-height: 640px; }
}

/* ---------- lines (products) ---------- */
.lines-grid { margin-top: 34px; display: grid; gap: 30px; }
.lgroup { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ltrack { display: grid; gap: 12px; }
.lgroup-n { margin-left: auto; }
@media (max-width: 899px) {
  .ltrack { grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding: 2px clamp(16px, 4vw, 40px) 6px; scroll-padding: 0 clamp(16px, 4vw, 40px); scrollbar-width: none; }
  .ltrack::-webkit-scrollbar { display: none; }
  .ltrack .lcard { scroll-snap-align: start; }
}
@media (min-width: 600px) and (max-width: 899px) { .ltrack { grid-auto-columns: 46%; } }
.lgroup-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.lgroup-h b { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.lcard { display: block; padding: 18px 18px 14px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
@media (hover: hover) { .lcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--ink) inset, 0 24px 40px -30px rgba(14,14,12,.5); } }
.lcard-h { display: flex; align-items: center; gap: 12px; }
.lcard-h .bullet { width: 36px; height: 36px; font-size: 17px; }
.lcard-h b { font-size: 22px; font-weight: 760; letter-spacing: -.03em; line-height: 1.1; }
.lcard-p { margin-top: 8px; font-size: 15px; color: var(--ink2); }
.stops { list-style: none; margin: 14px 0 0; padding: 0; position: relative; display: grid; }
.stops li { position: relative; display: grid; grid-template-columns: 26px 1fr; align-items: center; min-height: 34px; font-size: 14.5px; font-weight: 560; }
.stops li::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 8px; background: var(--c); }
.stops li:first-child::before { top: 50%; border-radius: 4px 4px 0 0; }
.stops li:last-child::before { bottom: 50%; border-radius: 0 0 4px 4px; }
.stops li::after { content: ''; position: relative; z-index: 1; width: 8px; height: 3px; margin-left: 17px; background: var(--c); grid-column: 1; grid-row: 1; }
.stops li span { grid-column: 2; padding-left: 8px; }
.stops li.term::after { width: 16px; height: 16px; margin-left: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3.5px var(--ink); }
.lcard-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 680; }
.lcard-go .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
@media (hover: hover) { .lcard:hover .lcard-go .ic { transform: translateX(4px); } }
@media (min-width: 900px) { .lines-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
body[data-view="developers"] .lgroup[data-pillar="dev"] { order: -1; }

/* ---------- cards ---------- */
.cardrail { margin-top: 34px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 84%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; margin-left: -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cardrail::-webkit-scrollbar { display: none; }
.pass { scroll-snap-align: start; display: grid; gap: 16px; align-content: start; }
.pass-flip { position: relative; display: block; width: 100%; aspect-ratio: 1.586; perspective: 1200px; border-radius: 18px; }
.pass-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .8s var(--spring); display: block; }
.pass-back { transform: rotateY(180deg); background: var(--ink); color: var(--paper); padding: 18px 20px; display: grid; align-content: start; gap: 8px; }
.pass-flip[aria-pressed="true"] .pass-front { transform: rotateY(-180deg); }
.pass-flip[aria-pressed="true"] .pass-back { transform: rotateY(0); }
.pass-front { box-shadow: 0 0 0 1px rgba(14,14,12,.08) inset, 0 30px 50px -34px rgba(14,14,12,.6); }
.pf-employee { background: #fff; }
.pf-metal { background: linear-gradient(115deg, #8d8f93 0%, #d9dadc 18%, #a3a5aa 34%, #eceded 50%, #9a9ca1 66%, #cfd0d3 82%, #7f8186 100%); color: #111; }
.pf-metal::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.16) 0 1px, rgba(0,0,0,.035) 1px 2px); mix-blend-mode: overlay; }
.pf-agent { background: radial-gradient(120% 90% at 85% 10%, #2a2a27 0%, #0E0E0C 60%); color: var(--paper); }
.pass-stripes { position: absolute; left: 0; right: 0; top: 0; display: grid; }
.pass-stripes i { height: 9px; background: var(--c); }
.pass-top { position: absolute; left: 18px; right: 18px; top: 22px; display: flex; align-items: center; justify-content: space-between; }
.pf-employee .pass-top { top: 38px; }
.pass-mark { width: 26px; height: 26px; }
.pass-type { font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pass-chip { position: absolute; left: 20px; top: 44%; width: 38px; height: 29px; border-radius: 6px; background: linear-gradient(135deg, #e9d9a7, #b59a52 50%, #e3cf93); box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset; }
.pass-chip::after { content: ''; position: absolute; inset: 7px 10px; border: 1px solid rgba(0,0,0,.22); border-radius: 3px; }
.pass-num { position: absolute; right: 20px; top: 47%; font-family: var(--m); font-stretch: 87.5%; font-size: 13px; letter-spacing: .04em; }
.pass-name { position: absolute; left: 20px; bottom: 16px; font-size: 17px; font-weight: 720; letter-spacing: -.02em; line-height: 1.15; }
.pass-name small { display: block; font-size: 12px; font-weight: 500; opacity: .7; letter-spacing: 0; }
.pass-visa { position: absolute; right: 20px; bottom: 16px; font-weight: 800; font-style: italic; font-size: 22px; letter-spacing: -.02em; }
.pass-route { position: absolute; left: 20px; right: 20px; top: 46%; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--agent) 0 10px, transparent 10px 16px); }
.pass-route i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #0E0E0C; box-shadow: 0 0 0 3px var(--paper); }
.pass-route i:nth-child(1) { left: 0; } .pass-route i:nth-child(2) { left: 33%; } .pass-route i:nth-child(3) { left: 66%; } .pass-route i:nth-child(4) { left: 100%; background: var(--ach); }
.pass-lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: rgba(14,14,12,.72); color: #fff; font-weight: 700; opacity: 0; transition: opacity .35s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pass-lock .ic { width: 28px; height: 28px; }
.pass.locked .pass-lock { opacity: 1; }
.pb-title { font-size: 20px; font-weight: 760; letter-spacing: -.02em; margin-bottom: 4px; }
.pb-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(245,244,239,.12); font-size: 14px; }
.pb-row span { color: rgba(245,244,239,.6); }
.pass-meta h3 { font-size: 22px; font-weight: 760; letter-spacing: -.03em; }
.pass-meta p { margin-top: 6px; font-size: 15px; color: var(--ink2); }
.pass-meta a { font-weight: 650; text-underline-offset: 3px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-weight: 620; font-size: 15px; }
.tg-track { position: relative; width: 48px; height: 28px; border-radius: 99px; background: var(--hair); transition: background .25s; }
.tg-knob { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .35s var(--spring); }
.toggle[aria-pressed="true"] .tg-track { background: var(--ink); }
.toggle[aria-pressed="true"] .tg-knob { transform: translateX(20px); }
@media (min-width: 900px) { .cardrail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 26px; } }

/* ---------- agents / driverless line ---------- */
.agent-stage { margin-top: 34px; display: grid; gap: 16px; }
.agent-track { padding: 18px; border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; display: grid; gap: 16px; align-content: start; min-width: 0; }
.agent-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.agent-meta b { font-family: var(--m); font-stretch: 87.5%; font-size: 13px; font-weight: 600; }
.dl { position: relative; display: grid; gap: 0; padding: 4px 0; }
.dl-rail { position: absolute; left: 21px; top: 26px; bottom: 26px; width: 10px; border-radius: 6px; background: repeating-linear-gradient(180deg, var(--agent) 0 14px, #d9d8d2 14px 20px); }
.dl-stop { position: relative; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; min-height: 70px; gap: 8px; }
.dl-dot { position: relative; z-index: 1; justify-self: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4.5px var(--ink); transition: box-shadow .3s, background .3s; }
.dl-stop.depot .dl-dot { width: 34px; height: 24px; border-radius: 12px; }
.dl-name b { display: block; font-size: 18px; font-weight: 740; letter-spacing: -.02em; line-height: 1.2; }
.dl-name span { display: block; font-size: 13px; color: var(--mute); }
.dl-badge { font-family: var(--m); font-stretch: 87.5%; font-size: 11px; font-weight: 600; padding: 6px 9px; border-radius: 8px; background: var(--paper); color: var(--mute); white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .35s, transform .35s var(--ease), background .3s, color .3s; }
.dl-stop.ok .dl-badge { opacity: 1; transform: none; background: rgba(0,163,140,.12); color: #007A69; }
.dl-stop.no .dl-badge { opacity: 1; transform: none; background: rgba(228,0,43,.1); color: var(--ach); }
.dl-stop.wait .dl-badge { opacity: 1; transform: none; background: rgba(255,176,0,.16); color: #A36A00; }
.dl-stop.ok .dl-dot { background: var(--pix); }
.dl-signal { position: absolute; right: auto; left: 40px; top: 6px; display: grid; gap: 3px; padding: 4px; border-radius: 8px; background: var(--ink); z-index: 2; }
.dl-signal i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a36; transition: background .3s, box-shadow .3s; }
.dl-signal[data-s="stop"] i:nth-child(1) { background: #ff2d55; box-shadow: 0 0 10px #ff2d55; }
.dl-signal[data-s="wait"] i:nth-child(2) { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.dl-signal[data-s="go"] i:nth-child(3) { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dl-train { position: absolute; left: 0; top: 0; z-index: 3; will-change: transform; transition: transform 1.1s cubic-bezier(.45, 0, .2, 1); }
.dl-train span { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 22px; height: 40px; padding: 5px 0; border-radius: 11px; background: var(--ink); color: #fff; font-family: var(--m); font-stretch: 87.5%; font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 2.5px #fff, 0 8px 16px -8px rgba(0,0,0,.6); }
.dl-train span::before, .dl-train span::after { content: ''; width: 10px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.85); }
.dl-train span i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dl-train em { display: none; }
.agent-log { font-family: var(--m); font-stretch: 87.5%; font-size: 11.5px; line-height: 1.55; background: var(--paper); border-radius: 14px; padding: 12px 14px; min-height: 120px; max-height: 190px; overflow: auto; display: grid; align-content: start; gap: 2px; }
.agent-log p { display: grid; grid-template-columns: 62px 1fr; gap: 8px; animation: logIn .35s var(--ease); }
.agent-log p time { color: var(--mute); }
.agent-log .g { color: #007A69; } .agent-log .r { color: var(--ach); } .agent-log .a { color: #A36A00; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.agent-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-side { display: grid; gap: 16px; justify-items: center; align-content: start; }
.ticketjson { width: 100%; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; overflow: hidden; position: relative; transition: box-shadow .4s, transform .5s var(--spring); }
.ticketjson::before, .ticketjson::after { content: ''; position: absolute; top: 44px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.ticketjson::before { left: -8px; } .ticketjson::after { right: -8px; }
.tj-head { display: flex; justify-content: space-between; gap: 8px; padding: 14px 16px 14px; border-bottom: 1.5px dashed var(--hair); }
.tj-body { margin: 0; padding: 14px 16px 16px; font-family: var(--m); font-stretch: 87.5%; font-size: 11.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; color: var(--ink2); max-height: 74px; overflow: hidden; transition: max-height .7s var(--ease); }
.tj-body i { font-style: normal; color: var(--paynow); } .tj-body s { text-decoration: none; color: #007A69; } .tj-body u { text-decoration: none; color: var(--spei); }
.ticketjson[data-state="open"] { box-shadow: 0 0 0 2px var(--ink) inset, 0 30px 50px -36px rgba(14,14,12,.55); transform: translateY(-2px); }
.ticketjson[data-state="open"] .tj-body { max-height: 420px; }
.ticketjson[data-state="idle"] .tj-body { -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); }

.phone { position: relative; width: min(300px, 82vw); aspect-ratio: 300 / 600; border-radius: 48px; background: #111; padding: 10px; box-shadow: 0 0 0 1.5px #3a3a36 inset, 0 0 0 4px #1d1d1b, 0 50px 80px -40px rgba(14,14,12,.6); }
.phone-in { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: linear-gradient(170deg, #fdfcf8 0%, #efede5 100%); }
.ph-island { position: absolute; left: 50%; top: 10px; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #0b0b0a; z-index: 5; }
.ph-status { position: absolute; left: 0; right: 0; top: 14px; display: flex; justify-content: space-between; padding: 0 26px; font-size: 13px; font-weight: 700; z-index: 4; }
.ph-bars { display: flex; gap: 2px; align-items: end; } .ph-bars i { width: 3px; background: var(--ink); border-radius: 1px; } .ph-bars i:nth-child(1) { height: 5px; } .ph-bars i:nth-child(2) { height: 7px; } .ph-bars i:nth-child(3) { height: 9px; }
.ph-screen { position: absolute; inset: 0; padding: 64px 20px 22px; display: grid; align-content: start; justify-items: center; text-align: center; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .45s; }
.phone[data-state="idle"] .ph-idle, .phone[data-state="notif"] .ph-idle, .phone[data-state="notif"] .ph-notif, .phone[data-state="ask"] .ph-ask, .phone[data-state="scan"] .ph-scan, .phone[data-state="done"] .ph-result { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s; }
.ph-lock { display: grid; gap: 0; margin-top: 18px; }
.ph-time { font-size: 72px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.ph-date { font-size: 15px; font-weight: 600; color: var(--ink2); }
.ph-hint { margin-top: auto; position: absolute; left: 22px; right: 22px; bottom: 36px; font-size: 13.5px; color: var(--mute); }
.ph-notif { align-content: start; padding-top: 196px; background: none; }
.ph-banner { width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 16px 30px -18px rgba(0,0,0,.45), 0 0 0 1px rgba(14,14,12,.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: bannerIn .6s var(--spring); }
@keyframes bannerIn { from { transform: translateY(-30px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.ph-app { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; }
.ph-app svg { width: 18px; height: 18px; }
.ph-banner b { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.ph-banner span { font-size: 13.5px; color: var(--ink2); }
.ph-ask { gap: 4px; }
.ph-kicker { font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.ph-amt { font-size: 50px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.ph-for { font-size: 14.5px; font-weight: 600; }
.ph-reason { margin-top: 10px; font-size: 14px; color: var(--ink2); line-height: 1.4; }
.ph-facts { width: 100%; margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(14,14,12,.05); font-size: 12.5px; }
.ph-facts span { color: var(--mute); } .ph-facts b { font-weight: 700; text-align: right; }
.ph-actions { position: absolute; left: 18px; right: 18px; bottom: 22px; display: grid; gap: 8px; }
.ph-actions .btn { width: 100%; height: 48px; font-size: 15px; }
.ph-actions .btn .ic { width: 22px; height: 22px; }
.ph-scan { align-content: center; padding-top: 0; }
.faceid { position: relative; width: 104px; height: 104px; color: var(--ink); }
.faceid svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fi-glyph { animation: none; }
.phone[data-state="scan"] .fi-glyph { animation: fiPulse 1.1s var(--ease) infinite; }
.fi-done { opacity: 0; transform: scale(.6); color: var(--pix); transition: opacity .35s, transform .5s var(--spring); }
.phone[data-state="scan"].ok .fi-glyph { opacity: 0; transition: opacity .25s; animation: none; }
.phone[data-state="scan"].ok .fi-done { opacity: 1; transform: none; }
.fi-label { margin-top: 14px; font-weight: 650; font-size: 15px; color: var(--ink2); }
@keyframes fiPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .55; } }
.ph-result { align-content: center; padding-top: 0; gap: 8px; }
.ph-res-ic { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--pix); color: #fff; animation: popIn .6s var(--spring); }
.ph-res-ic .ic { width: 36px; height: 36px; }
.phone.declined .ph-res-ic { background: var(--ach); }
.ph-res-t { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.ph-res-s { font-size: 14px; color: var(--ink2); max-width: 220px; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.specs { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.specs li { display: grid; gap: 2px; padding: 14px 10px 0 0; }
.specs b { font-size: clamp(19px, 2.2vw, 26px); font-weight: 780; letter-spacing: -.03em; line-height: 1.1; }
.specs span { font-size: 13.5px; color: var(--ink2); line-height: 1.3; }
@media (min-width: 1000px) {
  .agent-stage { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr); gap: 22px; align-items: start; }
  .agent-track { padding: 24px; }
  .agent-side { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .dl { grid-template-columns: repeat(5, 1fr); padding: 30px 0 6px; }
  .dl-rail { left: 10%; right: 10%; top: 41px; bottom: auto; width: auto; height: 10px; background: repeating-linear-gradient(90deg, var(--agent) 0 14px, #d9d8d2 14px 20px); }
  .dl-stop { grid-template-columns: 1fr; grid-template-rows: 24px auto auto; justify-items: center; text-align: center; min-height: 0; gap: 10px; }
  .dl-dot { grid-row: 1; }
  .dl-name { grid-row: 2; }
  .dl-badge { grid-row: 3; transform: translateY(-6px); }
  .dl-stop.ok .dl-badge, .dl-stop.no .dl-badge, .dl-stop.wait .dl-badge { transform: none; }
  .dl-signal { left: calc(50% + 18px); top: -30px; grid-auto-flow: column; }
  .dl-train span { flex-direction: row; width: auto; height: 28px; padding: 0 10px 0 7px; gap: 6px; border-radius: 999px; }
  .dl-train span::before, .dl-train span::after { display: none; }
  .dl-train em { display: inline; font-style: normal; }
}

/* ---------- payday ---------- */
.payday-grid { margin-top: 34px; display: grid; gap: 16px; }
.seats, .run, .chat { border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; padding: 18px; min-width: 0; }
.seats { display: grid; gap: 10px; align-content: start; }
.seats-q { font-weight: 650; font-size: 15.5px; }
.seats-val { display: flex; align-items: baseline; gap: 8px; }
.seats-val b { font-size: 60px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.seats-val span { color: var(--mute); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--rc, var(--spei)) 0 var(--p, 50%), var(--hair) var(--p, 50%) 100%); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--rc, var(--spei)) 0 var(--p, 50%), var(--hair) var(--p, 50%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4.5px var(--ink), 0 6px 12px -4px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4.5px solid var(--ink); }
.seats-scale { display: flex; justify-content: space-between; font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; color: var(--mute); margin-top: -6px; }
.seats-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.seats-cmp > div { display: grid; gap: 2px; padding: 14px; border-radius: 16px; }
.sc-ferros { background: var(--ink); color: var(--paper); }
.sc-ferros .mono-label { color: rgba(245,244,239,.6); }
.sc-other { background: var(--paper); }
.seats-cmp b { font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sc-other b { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--ach); }
.seats-cmp span:last-child { font-size: 13px; opacity: .75; }
.seats-save { font-size: 17px; font-weight: 600; }
.seats-save b { font-weight: 800; color: var(--pix); }
.run { display: grid; gap: 12px; align-content: start; }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.run-head b { display: block; font-size: 19px; font-weight: 760; letter-spacing: -.02em; }
.run-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rr { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hair2); }
.rr-av { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12.5px; font-weight: 750; }
.rr-n { font-weight: 680; font-size: 15px; line-height: 1.2; min-width: 0; }
.rr-n small { display: block; font-weight: 500; font-size: 12.5px; color: var(--mute); }
.rr-amt { text-align: right; font-family: var(--m); font-stretch: 87.5%; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rr-rail { display: inline-flex; align-items: center; gap: 6px; font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; text-transform: uppercase; color: var(--ink2); }
.rr-rail i { width: 14px; height: 6px; border-radius: 6px; background: var(--c); }
.rr-st { justify-self: end; font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; font-weight: 600; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--paper); color: var(--mute); white-space: nowrap; transition: background .3s, color .3s; }
.rr[data-s="sent"] .rr-st { background: rgba(255,176,0,.18); color: #A36A00; }
.rr[data-s="done"] .rr-st { background: rgba(0,163,140,.13); color: #007A69; }
.run-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.run-map { position: relative; height: 210px; border-radius: 16px; overflow: hidden; background: var(--mapbg); box-shadow: 0 0 0 1px var(--hair2) inset; }
.run-map .mapview { height: 100%; }
.chat { display: grid; gap: 0; padding: 0; overflow: hidden; align-content: start; background: #F3F1EA; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.chat-head b { display: block; font-size: 15.5px; } .chat-head small { display: block; font-size: 12px; opacity: .65; }
.chat-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--duit); font-weight: 800; font-size: 13px; color: #fff; }
.chat-body { display: grid; gap: 8px; padding: 16px; align-content: start; min-height: 220px; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: #fff; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.06); animation: logIn .4s var(--ease); }
.bubble.out { justify-self: end; border-radius: 16px 16px 4px 16px; background: #D9F2EC; }
.bubble.claim { display: grid; gap: 2px; }
.cl-k { font-family: var(--m); font-stretch: 87.5%; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.cl-amt { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.cl-from { font-size: 13px; color: var(--ink2); margin-bottom: 8px; }
.chat-opts { display: grid; gap: 6px; padding: 0 16px 16px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-weight: 680; }
.opt small { margin-left: auto; font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; color: var(--mute); text-transform: uppercase; }
.opt-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
@media (min-width: 1000px) { .payday-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "seats run" "chat run"; grid-template-rows: auto 1fr; align-items: start; column-gap: 20px; row-gap: 20px; } .seats { grid-area: seats; } .run { grid-area: run; } .chat { grid-area: chat; } .seats, .run { padding: 22px; } }

/* ---------- arrivals / pay ---------- */
.arr-grid { margin-top: 34px; display: grid; gap: 16px; }
.arr-left { display: grid; gap: 12px; align-content: start; }
.payer { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.payer::-webkit-scrollbar { display: none; }
.pchip { flex: none; display: grid; gap: 0; min-height: 58px; padding: 8px 14px 8px 12px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; text-align: left; scroll-snap-align: start; transition: background .2s, color .2s; }
.pchip b { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 720; white-space: nowrap; }
.pchip b i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pchip span { font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; color: var(--mute); text-transform: uppercase; white-space: nowrap; }
.pchip[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.pchip[aria-checked="true"] span { color: rgba(245,244,239,.6); }
.arr-land { padding: 18px; border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; display: grid; gap: 10px; }
.al-row { display: grid; gap: 0; }
.al-row b { font-size: clamp(32px, 7vw, 46px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.al-row span:last-child { font-weight: 600; font-size: 15px; color: var(--ink2); }
.al-track { position: relative; height: 34px; margin: 2px 0; }
.al-track::before { content: ''; position: absolute; left: 14px; right: 14px; top: 13px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--c1, var(--pix)), var(--c2, var(--ach))); }
.al-track::after { content: ''; position: absolute; right: 6px; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--ink); }
.al-track i { position: absolute; left: 6px; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.al-track i.go { animation: alRun 1.6s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes alRun { from { left: 6px; } to { left: calc(100% - 26px); } }
.al-fee { font-size: 13px; color: var(--mute); }
.checkout { border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset, 0 40px 70px -50px rgba(14,14,12,.5); overflow: hidden; }
.co-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: var(--paper2); font-family: var(--m); font-stretch: 87.5%; font-size: 11.5px; color: var(--ink2); border-bottom: 1px solid var(--hair); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-lock .ic { width: 14px; height: 14px; }
.co-in { padding: 18px; display: grid; gap: 10px; }
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.co-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.co-brand::before { content: ''; width: 22px; height: 22px; border-radius: 7px; background: conic-gradient(from 45deg, var(--duit), var(--spei), var(--gold), var(--duit)); }
.co-desc { font-size: 14.5px; color: var(--ink2); }
.co-amt { font-size: clamp(36px, 8vw, 48px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.co-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 1px 6px; scrollbar-width: none; }
.co-tabs::-webkit-scrollbar { display: none; }
.co-tab { flex: none; height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--hair) inset; font-size: 14px; font-weight: 650; white-space: nowrap; transition: background .2s, color .2s; }
.co-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.co-panel { min-height: 188px; border-radius: 16px; background: var(--paper); padding: 14px; display: grid; gap: 8px; align-content: start; animation: logIn .35s var(--ease); }
.co-qr { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.co-qr svg { width: 120px; height: 120px; background: #fff; border-radius: 10px; padding: 8px; }
.co-qr p, .co-panel p { font-size: 14px; color: var(--ink2); line-height: 1.4; }
.co-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.co-kv span { color: var(--mute); font-family: var(--m); font-stretch: 87.5%; font-size: 11px; text-transform: uppercase; align-self: center; }
.co-kv b { font-family: var(--m); font-stretch: 87.5%; font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.co-apple { display: grid; place-items: center; height: 52px; border-radius: 12px; background: #000; color: #fff; font-weight: 700; font-size: 17px; }
.co-card { display: grid; gap: 8px; }
.co-card span { display: flex; align-items: center; height: 46px; padding: 0 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-family: var(--m); font-stretch: 87.5%; font-size: 13px; color: var(--mute); }
.co-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: none; box-shadow: none; padding: 0; height: auto; }
.co-pay { width: 100%; }
.co-pay.done { background: var(--pix); }
.co-note { font-size: 13px; color: var(--mute); text-align: center; }
@media (min-width: 1000px) { .arr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; } .co-in { padding: 22px; } }

.escrow { margin-top: 18px; padding: 18px; border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; display: grid; gap: 18px; }
.esc-head { display: grid; gap: 14px; }
.esc-head h3 { font-size: 22px; font-weight: 760; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
.esc-head p { margin-top: 6px; font-size: 15px; color: var(--ink2); max-width: 620px; }
.esc-ctl { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.esc-bal { display: grid; } .esc-bal b { font-size: 28px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.esc-line { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
.es { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; min-height: 64px; }
.es::before { content: ''; position: absolute; left: 16px; top: 50%; height: 100%; width: 8px; background: var(--hair); transition: background .5s; }
.es:last-child::before { display: none; }
.es.done::before { background: var(--pix); }
.es-dot { position: relative; z-index: 1; justify-self: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4.5px var(--ink); transition: background .3s; }
.es.done .es-dot { background: var(--pix); }
.es.next .es-dot::after { content: ""; position: absolute; inset: -4.5px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0,163,140,.55); animation: nextRing 1.6s var(--ease) infinite; will-change: transform, opacity; }
@keyframes nextRing { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.75); opacity: 0; } }
.es b { display: block; font-size: 16.5px; font-weight: 720; letter-spacing: -.02em; }
.es small { display: block; font-size: 13px; color: var(--mute); }
.es-amt { text-align: right; font-family: var(--m); font-stretch: 87.5%; font-size: 13px; font-weight: 600; }
.es-amt em { display: block; font-style: normal; font-size: 10.5px; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.es.done .es-amt em { color: #007A69; }
@media (min-width: 900px) {
  .escrow { padding: 24px; }
  .esc-head { grid-template-columns: 1fr auto; align-items: end; }
  .esc-line { grid-template-columns: repeat(4, 1fr); padding-top: 6px; }
  .es { grid-template-columns: 1fr; grid-template-rows: 24px auto auto; justify-items: start; gap: 10px; min-height: 0; }
  .es::before { left: 11px; top: 8px; width: 100%; height: 8px; }
  .es-dot { justify-self: start; }
  .es-amt { text-align: left; }
}

/* ---------- treasury ---------- */
.tre-grid { display: grid; gap: 24px; align-items: center; }
.tre-seg { margin-top: 22px; max-width: 460px; }
.tre-box { padding: 20px; border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; display: grid; gap: 8px; }
.tre-bal { font-size: clamp(44px, 9vw, 70px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
#treRange { --rc: var(--gold); }
.tre-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.tre-out div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--paper); }
.tre-out b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tre-tracks { display: grid; gap: 10px; margin: 10px 0 6px; }
.tt { position: relative; display: grid; gap: 6px; }
.tt-l { display: block; height: 10px; border-radius: 10px; background: var(--c); }
.tt-l.gold { background: linear-gradient(90deg, var(--gold), var(--gold)); position: relative; }
.tt-l.gold::after { content: ''; position: absolute; left: 6px; right: 6px; top: 4px; height: 2px; background: #fff; border-radius: 2px; }
.tt-name { font-family: var(--m); font-stretch: 87.5%; font-size: 11px; text-transform: uppercase; color: var(--ink2); }
.tt-train { position: absolute; left: 0; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; pointer-events: none; animation: treRun 6s cubic-bezier(.45, 0, .55, 1) infinite alternate; will-change: transform; }
@keyframes treRun { from { transform: translateX(0); } to { transform: translateX(var(--run, 0px)); } }
@media (min-width: 1000px) { .tre-grid { grid-template-columns: 1fr minmax(420px, .9fr); gap: 60px; } .tre-box { padding: 28px; } }

/* ---------- custody (night) ---------- */
.cus-grid { display: grid; gap: 30px; padding-top: clamp(64px, 10vw, 120px); }
.cus-rec { margin-top: 16px; font-size: 16px; color: rgba(245,244,239,.72); max-width: 560px; }
.who { display: grid; gap: 12px; align-content: start; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.who-b { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center; min-height: 64px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(245,244,239,.06); box-shadow: 0 0 0 1px rgba(245,244,239,.12) inset; color: var(--paper); text-align: left; transition: background .3s; }
.who-b b { font-size: 19px; font-weight: 740; letter-spacing: -.02em; }
.who-a { grid-column: 2; font-size: 15px; color: rgba(245,244,239,.75); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s; }
.who-b[aria-expanded="true"] { background: rgba(245,244,239,.11); }
.who-b[aria-expanded="true"] .who-a { max-height: 80px; opacity: 1; }
.sig { grid-row: span 2; align-self: start; margin-top: 4px; display: grid; gap: 3px; justify-items: center; width: 22px; padding: 4px 0; border-radius: 8px; background: #000; box-shadow: 0 0 0 1px rgba(245,244,239,.18); }
.sig::before, .sig::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #2c2c29; }
.sig[data-s="go"]::after { background: var(--green); box-shadow: 0 0 10px var(--green); }
.sig[data-s="stop"]::before { background: #ff2d55; box-shadow: 0 0 10px #ff2d55; }
.sig[data-s="wait"]::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.chipdiagram { margin-top: 8px; padding: 16px; border-radius: 20px; background: rgba(245,244,239,.04); box-shadow: 0 0 0 1px rgba(245,244,239,.1) inset; }
.cd-svg { width: 100%; height: auto; }
.cd-t { font-family: var(--m); font-stretch: 87.5%; font-size: 9.5px; letter-spacing: .08em; fill: rgba(245,244,239,.6); }
.cd-t.sm { font-size: 8.5px; letter-spacing: .06em; }
.cd-f { font-family: var(--f); font-weight: 800; font-size: 19px; letter-spacing: -.04em; fill: var(--paper); }
@media (min-width: 1000px) { .cus-grid { grid-template-columns: 1fr minmax(420px, .85fr); gap: 70px; align-items: start; } }

/* ---------- developers (night) ---------- */
.devs { padding-top: clamp(64px, 10vw, 120px); }
.dev-grid { margin-top: 34px; display: grid; gap: 18px; }
.code { border-radius: 22px; background: #171715; box-shadow: 0 0 0 1px rgba(245,244,239,.1) inset; overflow: hidden; min-width: 0; }
.code-tabs { display: flex; gap: 2px; padding: 8px; overflow-x: auto; border-bottom: 1px solid rgba(245,244,239,.08); scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button { flex: none; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 640; color: rgba(245,244,239,.6); transition: background .2s, color .2s; }
.code-tabs button[aria-selected="true"] { background: rgba(245,244,239,.1); color: var(--paper); }
.code-body { position: relative; }
@media (max-width: 599px) { .code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; } }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 0 18px; }
.code-file { font-family: var(--m); font-stretch: 87.5%; font-size: 11px; letter-spacing: .02em; color: rgba(245,244,239,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code pre { margin: 0; padding: 12px 18px 22px; overflow-x: auto; font-family: var(--m); font-stretch: 87.5%; font-size: 12.5px; line-height: 1.7; color: #E9E6DA; min-height: 330px; tab-size: 2; }
.code .k { color: #B99BFF; } .code .s { color: #6FE0C5; } .code .n { color: #FFB45E; } .code .c { color: rgba(245,244,239,.38); } .code .f { color: #7FB6FF; } .code .t { color: #FF8FB8; }
.copy { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(245,244,239,.1); color: var(--paper); font-size: 13px; font-weight: 650; z-index: 2; transition: background .2s; }
.copy .ic { width: 16px; height: 16px; }
.copy.ok { background: var(--pix); }
.dev-side { display: grid; gap: 14px; align-content: start; }
.devline { list-style: none; margin: 0; padding: 0; display: grid; }
.devline li { position: relative; display: grid; gap: 2px; padding: 10px 0 12px 40px; min-height: 60px; }
.devline li::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 8px; background: var(--c); }
.devline li:first-child::before { top: 18px; border-radius: 4px 4px 0 0; }
.devline li:last-child::before { bottom: calc(100% - 26px); border-radius: 0 0 4px 4px; }
.devline li::after { content: ''; position: absolute; left: 7px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.devline b { font-family: var(--m); font-stretch: 87.5%; font-size: 13.5px; font-weight: 600; color: var(--paper); }
.devline span { font-size: 14.5px; color: rgba(245,244,239,.7); }
.dev-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dev-prices div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(245,244,239,.06); box-shadow: 0 0 0 1px rgba(245,244,239,.1) inset; }
.dev-prices b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.dev-prices b i { font-style: normal; font-size: 13px; font-weight: 600; opacity: .6; }
.dev-prices small { font-size: 12px; color: rgba(245,244,239,.6); line-height: 1.3; }
@media (min-width: 1000px) { .dev-grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); gap: 26px; } .code pre { font-size: 13px; padding: 22px 24px 26px; min-height: 380px; } }

/* ---------- fares ---------- */
.fare-tabs { margin-top: 30px; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--hair2); overflow-x: auto; scrollbar-width: none; max-width: 640px; }
.fare-tabs::-webkit-scrollbar { display: none; }
.fare-tabs button { flex: 1 0 auto; height: 46px; padding: 0 16px; border-radius: 12px; font-weight: 680; font-size: 15px; white-space: nowrap; transition: background .25s, color .25s; }
@media (max-width: 599px) { .fare-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; overflow: visible; } .fare-tabs button { padding: 0 2px; font-size: 14px; text-align: center; } }
.fare-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.fare-cards { margin-top: 16px; display: grid; gap: 14px; }
.fare { position: relative; display: grid; align-content: start; gap: 12px; padding: 0 0 18px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; overflow: hidden; animation: logIn .45s var(--ease) both; }
.fare-band { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; background: var(--c); color: #fff; }
.fare-band b { font-size: 18px; font-weight: 760; letter-spacing: -.02em; }
.fare-band span { font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; text-transform: uppercase; opacity: .85; }
.fare.gold .fare-band { color: var(--ink); }
.fare-price { display: flex; align-items: baseline; gap: 6px; padding: 0 18px; }
.fare-price b { font-size: 50px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.fare-price span { font-weight: 600; color: var(--mute); }
.fare-sub { padding: 0 18px; font-size: 14.5px; color: var(--ink2); }
.fare ul { list-style: none; margin: 0; padding: 0 18px; display: grid; gap: 7px; }
.fare li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.35; }
.fare li::before { content: ''; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c); }
.fare .btn { margin: 4px 18px 0; }
.fare-perf { height: 0; border-top: 2px dashed var(--hair); margin: 2px 0; position: relative; }
.fare-perf::before, .fare-perf::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.fare-perf::before { left: -8px; } .fare-perf::after { right: -8px; }
@media (min-width: 760px) { .fare-cards { grid-template-columns: repeat(2, 1fr); } .fare-cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 759px) { .fare-cards.three { grid-template-columns: 1fr; } }

.builder { margin-top: 26px; display: grid; gap: 18px; padding: 18px; border-radius: 26px; background: var(--paper2); box-shadow: 0 0 0 1px var(--hair) inset; }
.bl-left h3 { font-size: 26px; font-weight: 780; letter-spacing: -.035em; }
.bl-left p { margin-top: 4px; color: var(--ink2); font-size: 15px; }
.bl-opts { margin-top: 14px; display: grid; gap: 8px; }
.bopt { display: grid; grid-template-columns: 12px 1fr auto 48px; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 14px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset; text-align: left; transition: box-shadow .2s; }
.bopt > i { width: 12px; height: 34px; border-radius: 6px; background: var(--c); }
.bopt b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.bopt small { display: block; font-size: 12.5px; color: var(--mute); font-weight: 500; }
.bopt .bo-p { font-family: var(--m); font-stretch: 87.5%; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.bopt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink) inset; }
.bopt[aria-pressed="true"] .tg-track { background: var(--ink); }
.bopt[aria-pressed="true"] .tg-knob { transform: translateX(20px); }
.bl-mau { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 16px; background: var(--white); }
.bl-mau input { grid-column: 1 / -1; --rc: var(--paynow); }
.bl-mau b { font-family: var(--m); font-stretch: 87.5%; font-size: 14px; }
.bl-pass { position: relative; align-self: start; display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--hair) inset, 0 40px 60px -40px rgba(14,14,12,.5); overflow: hidden; }
.bp-top { display: flex; align-items: center; gap: 10px; font-weight: 780; font-size: 18px; letter-spacing: -.02em; }
.bp-mark { width: 28px; height: 28px; }
.bp-no { margin-left: auto; }
.bp-stripes { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--hair2); }
.bp-stripes i { flex: 1; background: var(--c); animation: stripeIn .5s var(--ease) both; transform-origin: left; }
@keyframes stripeIn { from { transform: scaleX(0); } to { transform: none; } }
.bp-lines { display: grid; gap: 6px; min-height: 60px; }
.bp-lines p { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.bp-lines p span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.bp-lines p span:first-child::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.bp-lines p span:last-child { font-family: var(--m); font-stretch: 87.5%; font-size: 12.5px; font-weight: 600; }
.bp-total { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 10px; padding-top: 12px; border-top: 1px solid var(--hair); }
.bp-total b { grid-row: 2; font-size: 56px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.bp-total .mono-label:last-child { grid-row: 2; align-self: end; padding-bottom: 6px; }
.bp-perf { height: 0; border-top: 2px dashed var(--hair); margin: 0 -20px; position: relative; }
.bp-perf::before, .bp-perf::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper2); }
.bp-perf::before { left: -8px; } .bp-perf::after { right: -8px; }
.bp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink2); }
@media (min-width: 1000px) { .builder { grid-template-columns: 1fr minmax(380px, .8fr); gap: 34px; padding: 30px; } }

/* ---------- footer ---------- */
.foot { margin-top: clamp(80px, 12vw, 160px); padding: 0 0 120px; }
.foot-strip { height: 150px; margin-bottom: 30px; }
.foot-strip svg { width: 100%; height: 100%; overflow: visible; }
.fs-label { font-family: var(--f); font-weight: 800; font-size: 20px; letter-spacing: -.03em; fill: var(--ink); }
.fs-sub { font-family: var(--m); font-stretch: 87.5%; font-size: 10px; fill: var(--mute); letter-spacing: .06em; }
.foot-grid { display: grid; gap: 28px 18px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 10px; font-size: 15px; color: var(--ink2); max-width: 420px; }
.foot-clocks { margin-top: 16px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 18px; }
.foot-clocks span { display: grid; font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; color: var(--mute); text-transform: uppercase; }
.foot-clocks b { font-family: var(--m); font-stretch: 87.5%; font-size: 14px; color: var(--ink); font-weight: 600; }
.foot-col { display: grid; gap: 0; align-content: start; }
.foot-col .mono-label { margin-bottom: 6px; }
.foot-col a { display: flex; align-items: center; min-height: 40px; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--mute); max-width: 900px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } .foot { padding-bottom: 110px; } }

/* ---------- overlays ---------- */
.fullmap { position: fixed; inset: 0; z-index: 90; background: var(--mapbg); display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn .35s var(--ease); }
.fullmap[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fm-bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px 16px; background: rgba(251,250,246,.92); box-shadow: 0 1px 0 var(--hair); }
.fm-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; font-size: 17px; letter-spacing: -.02em; }
.fm-title .brand-mark { width: 26px; height: 26px; }
.fm-tools { display: flex; gap: 6px; }
.fm-view { height: auto !important; touch-action: none; cursor: grab; }
.fm-view:active { cursor: grabbing; }
.fm-legend { position: relative !important; left: auto !important; bottom: auto !important; max-width: none !important; flex-wrap: nowrap !important; overflow-x: auto !important; padding: 10px 12px !important; background: rgba(251,250,246,.95) !important; border-top: 1px solid var(--hair) !important; }
.fm-hint { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 66px); transform: translateX(-50%); padding: 7px 10px; border-radius: 9px; background: rgba(14,14,12,.78); color: #fff !important; white-space: nowrap; pointer-events: none; animation: hintOut 4.5s forwards; }
@keyframes hintOut { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

.sheet { position: fixed; inset: 0; z-index: 120; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(14,14,12,.5); opacity: 0; transition: opacity .35s; }
.sheet.open .sheet-scrim { opacity: 1; }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 28px 28px 0 0; background: var(--paper); padding: 10px 18px calc(26px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .5s var(--ease); box-shadow: 0 -20px 60px -30px rgba(0,0,0,.5); }
.sheet.open .sheet-card { transform: none; }
.sheet-grab { width: 42px; height: 5px; border-radius: 5px; background: var(--hair); margin: 0 auto 8px; }
.sheet-x { position: absolute; right: 12px; top: 12px; z-index: 2; }
.sheet-body { display: grid; gap: 14px; padding-top: 6px; }
@media (min-width: 760px) {
  .sheet-card { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-height: min(86vh, 820px); border-radius: 28px; padding: 24px 28px 28px; transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
  .sheet.open .sheet-card { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grab { display: none; }
}
.sh-kicker { display: flex; align-items: center; gap: 8px; }
.sh-title { font-size: 34px; font-weight: 800; letter-spacing: -.045em; line-height: 1; padding-right: 48px; }
.sh-p { font-size: 15.5px; color: var(--ink2); }
.sh-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-line { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-size: 13.5px; font-weight: 660; }
.sh-line i { width: 18px; height: 7px; border-radius: 7px; background: var(--c); }
.sh-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-facts div { padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; display: grid; gap: 2px; }
.sh-facts b { font-size: 17px; font-weight: 740; letter-spacing: -.02em; }
.sh-story { padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1.45; }
.sh-story b { display: block; font-size: 13px; font-family: var(--m); font-stretch: 87.5%; font-weight: 500; text-transform: uppercase; color: rgba(245,244,239,.6); margin-bottom: 4px; }
.sh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-actions .btn { width: 100%; padding: 0 12px; }
.pick-group { display: grid; gap: 4px; }
.pick-h { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 4px 0; }
.pick-h i { width: 22px; height: 8px; border-radius: 8px; background: var(--c); }
.pick-h b { font-family: var(--m); font-stretch: 87.5%; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-weight: 680; font-size: 16px; text-align: left; }
.pick span { font-family: var(--m); font-stretch: 87.5%; font-size: 11px; color: var(--mute); font-weight: 500; }
.pick[aria-current="true"] { box-shadow: 0 0 0 2px var(--ink) inset; }
.pick:disabled { opacity: .35; cursor: not-allowed; }
.form { display: grid; gap: 10px; }
.fld { display: grid; gap: 4px; }
.fld > span { font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.fld input, .fld select { width: 100%; height: 54px; padding: 0 14px; border-radius: 14px; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-size: 17px; font-weight: 560; outline: none; appearance: none; -webkit-appearance: none; }
.fld select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 25px, calc(100% - 16px) 25px; background-size: 6px 6px; background-repeat: no-repeat; }
.fld input:focus, .fld select:focus { box-shadow: 0 0 0 2px var(--ink) inset; }
.fld.err input { box-shadow: 0 0 0 2px var(--ach) inset; }
.fld em { font-style: normal; font-size: 13px; color: var(--ach); min-height: 0; }
.kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind button { height: 52px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset; font-weight: 700; text-align: center; }
.kind button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.slot { position: relative; height: 22px; margin: 6px 0 -12px; border-radius: 12px; background: var(--ink); box-shadow: 0 6px 0 -2px #000 inset; z-index: 2; }
.slot::after { content: ''; position: absolute; left: 18px; right: 18px; top: 9px; height: 4px; border-radius: 4px; background: #000; }
.printed { position: relative; overflow: hidden; border-radius: 0 0 16px 16px; }
.tix { position: relative; margin: 0 22px; padding: 26px 18px 18px; border-radius: 0 0 14px 14px; background: #fff; box-shadow: 0 0 0 1px var(--hair) inset, 0 20px 30px -24px rgba(0,0,0,.5); transform: translateY(-100%); animation: printOut 1.6s cubic-bezier(.3, 0, .2, 1) .15s forwards; display: grid; gap: 10px; }
@keyframes printOut { 0% { transform: translateY(-100%); } 70% { transform: translateY(4%); } 100% { transform: translateY(0); } }
.tix-stripes { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.tix-stripes i { flex: 1; background: var(--c); }
.tix-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tix-h b { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.tix-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.tix-kv span { font-family: var(--m); font-stretch: 87.5%; font-size: 10.5px; text-transform: uppercase; color: var(--mute); align-self: center; }
.tix-kv b { text-align: right; font-weight: 680; }
.tix-perf { border-top: 2px dashed var(--hair); margin: 2px -18px; }
.tix-code { display: flex; gap: 2px; height: 34px; }
.tix-code i { flex: 1; background: var(--ink); }
.tix-code i:nth-child(3n) { flex: .4; } .tix-code i:nth-child(4n) { flex: 2; background: transparent; } .tix-code i:nth-child(5n) { flex: .6; }
.signin-box { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 14px 0 6px; }
.signin-box .faceid { width: 92px; height: 92px; }
.signin-box.scan .fi-glyph { animation: fiPulse 1s var(--ease) infinite; }
.signin-box.ok .fi-glyph { opacity: 0; }
.signin-box.ok .fi-done { opacity: 1; transform: none; }
.signin-box:not(.scan):not(.ok) .fi-glyph { animation: none; }
.toast { position: fixed; left: 50%; top: calc(var(--nav-h) + 12px); z-index: 150; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14.5px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transition: transform .4s var(--ease), opacity .3s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* route map: station labels hidden, the two ends get screen-space name boards */
.planner-map .mv-lab, .planner-map .mv-region { display: none; }
.mv-tags { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.mv-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 7px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(14,14,12,.6); will-change: transform; }
.mv-tag i { width: 12px; height: 5px; border-radius: 3px; background: var(--c); }

/* landing marker when you jump to a section */
.sec-head.arrive .eyebrow .bullet { animation: arrive 1.1s var(--spring) 1; }
@keyframes arrive { 0%, 100% { transform: none; } 35% { transform: scale(1.45); } }

/* CSS loops pause while their section is off screen */
[data-off] *, [data-off] *::before, [data-off] *::after { animation-play-state: paused !important; }
