@font-face { font-family: Figtree; src: url(/assets/fonts/figtree-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/assets/fonts/figtree-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url(/assets/fonts/figtree-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Garamond; src: url(/assets/fonts/ebgaramond-normal-400_600.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --page: #fbfaf7; --ink: #111112; --mute: #77756f; --line: #e4e1da; --green: #06ba67; --amber: #f2b45a; --night: #050506;
  --sans: Figtree, system-ui, sans-serif; --serif: Garamond, 'Times New Roman', serif;
  --gut: clamp(18px, 3.2vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }

/* ---------------- header: transparent over the car, warm white after ---------------- */
.timeline { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 12px var(--gut); color: #fcfcfa; transition: background .4s, color .4s; }
body.parked .timeline { background: rgba(251, 250, 247, .92); color: var(--ink); backdrop-filter: blur(10px); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.mark img { width: 34px; height: 34px; border-radius: 8px; }
.hop { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.hop a { text-decoration: none; transition: opacity .2s; }
.hop:hover a { opacity: .45; } .hop a:hover { opacity: 1; }
.coin { display: flex; align-items: center; gap: 8px; }
.ca, .buy, .phantom, .glyph { height: 34px; border-radius: 17px; border: 1px solid currentColor; background: transparent; padding: 0 14px; display: inline-flex; align-items: center; font-size: 13px; text-decoration: none; white-space: nowrap; }
.glyph { width: 34px; padding: 0; justify-content: center; }
.ca[disabled] { opacity: .75; cursor: default; }
.buy { background: var(--green); border-color: var(--green); color: #0c0c0d; font-weight: 700; }
.buy[aria-disabled=true] { opacity: .85; }
.phantom { background: #fcfcfa; color: #0c0c0d; border-color: #fcfcfa; font-weight: 500; }
body.parked .phantom { background: var(--ink); color: #fcfcfa; border-color: var(--ink); }

/* ---------------- stage: the game, full bleed ---------------- */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--night); overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; opacity: 0; transition: opacity 1.4s ease-out; touch-action: none; }
.stage.idling #scene { opacity: 1; }
.stage.flash::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(255, 59, 48, .55); pointer-events: none; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.labels p { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; will-change: transform; }
.pop { font-weight: 700; font-size: 14px; color: #fcfcfa; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.pop.good { color: #7cf0b6; } .pop.sour { color: #ff8a80; } .pop.muted { color: #d7d4cc; }
.bubble { background: #fcfcfa; color: #0c0c0d; padding: 7px 12px; border-radius: 14px 14px 14px 3px; font-size: 13px; max-width: 260px; white-space: normal !important; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.pinlabel { background: #0c0c0d; color: #fcfcfa; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; }

/* start card */
.intro { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0 var(--gut) clamp(28px, 7vh, 80px); z-index: 6; transition: opacity .5s, visibility .5s; background: linear-gradient(0deg, rgba(5,5,6,.75), rgba(5,5,6,0) 55%); }
.intro.out { opacity: 0; visibility: hidden; }
.card { color: #fcfcfa; max-width: 470px; }
.card h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7vw, 108px); line-height: .95; letter-spacing: -0.02em; margin: 0 0 18px; }
.card .aside { color: #d9d6cf; max-width: 400px; margin: 0 0 18px; }
.shiftflow { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 13px; color: #c9c6be; }
.shiftflow li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
kbd { font: 700 12px var(--sans); min-width: 26px; height: 26px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 6px; background: #fcfcfa; color: #0c0c0d; }
.thumbhint { display: none; font-size: 13px; color: #c9c6be; }
.stage.touch .thumbhint { display: block; } .stage.touch .shiftflow { display: none; }
.start { height: 52px; padding: 0 30px; border-radius: 26px; border: 0; background: var(--green); color: #0c0c0d; font-weight: 700; font-size: 16px; }
.start:hover { background: #fcfcfa; }
.reset { display: block; margin-top: 12px; background: none; border: 0; padding: 0; color: #a9a69e; font-size: 13px; text-decoration: underline; }

/* ---------------- HUD: the driver phone ---------------- */
.phonehud { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.phonehud[hidden] { display: none; }
.pills { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.pill { margin: 0; white-space: nowrap; height: 40px; padding: 0 16px; border-radius: 20px; background: #0c0c0d; color: #fcfcfa; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.pill.earn { font-size: 19px; padding: 0 22px; }
.pill.clock { font-weight: 500; color: #d9d6cf; }
.pill.rate svg { color: #fcfcfa; }
.pill.rate.thin { background: #fcfcfa; color: #c62a1f; } .pill.rate.thin svg { color: #c62a1f; }
.mapcard { position: absolute; top: 64px; right: var(--gut); width: 168px; background: #fcfcfa; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.mapcard canvas { width: 168px; height: 168px; display: block; }
.mapcard .surge { margin: 0; padding: 6px 12px; font-size: 12px; color: #333; border-top: 1px solid #eee; }
.mapcard .surge span { font-weight: 700; color: #0c0c0d; }
.mute { position: absolute; top: 64px; left: var(--gut); width: 40px; height: 40px; border-radius: 20px; border: 0; background: #0c0c0d; color: #fcfcfa; display: grid; place-items: center; pointer-events: auto; }
.mute[aria-pressed=true] { opacity: .5; }
.coach { position: absolute; top: 118px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.96); color: #0c0c0d; padding: 8px 16px 8px 8px; border-radius: 24px; max-width: min(560px, 92vw); font-size: 14px; }
.coach img { border-radius: 7px; } .coach p { margin: 0; }
.coach[hidden] { display: none; }

.sheet { position: absolute; left: var(--gut); bottom: 24px; width: 340px; background: #fcfcfa; color: #0c0c0d; border-radius: 18px; padding: 16px 18px 14px; pointer-events: auto; box-shadow: 0 14px 40px rgba(0,0,0,.45); animation: up .35s cubic-bezier(.2,.9,.3,1); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet p { margin: 0; }
.sheet .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.sheet .kind { font-weight: 700; } .sheet .surge { color: #555; }
.sheet .fare { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 2px; }
.sheet .who { font-size: 14px; } .sheet .who.big { font-size: 20px; font-weight: 700; margin: 4px 0 2px; } .sheet .who span { color: #555; }
.sheet .leg { font-size: 13px; color: #555; }
.sheet .tag { font-size: 12px; color: #04884b; font-weight: 700; margin: 4px 0; }
.sheet .live { font-size: 14px; font-weight: 500; margin-top: 8px; }
.sheet .q { font-size: 14px; margin: 10px 0 0; }
.sheet .accept { position: relative; overflow: hidden; width: 100%; height: 50px; margin-top: 12px; border: 0; border-radius: 12px; background: #0c0c0d; color: #fcfcfa; font-weight: 700; font-size: 17px; }
.sheet.req .accept { background: var(--green); color: #0c0c0d; }
.sheet .accept span { position: relative; z-index: 1; }
.sheet .timer { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(0,0,0,.35); transform-origin: left; }
.sheet .key { font-size: 11px; color: #888; text-align: center; margin-top: 6px; }
.sheet .scan { display: block; height: 3px; margin-top: 12px; background: linear-gradient(90deg, transparent, var(--green), transparent) 0 0 / 40% 100% no-repeat #eee; animation: scan 1.6s linear infinite; }
@keyframes scan { to { background-position: 170% 0; } }

.wheelpad { display: none; }
.stage.touch .wheelpad { display: block; }
.wheelpad .base { position: absolute; left: 22px; bottom: 24px; width: 150px; height: 64px; border-radius: 32px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); pointer-events: auto; touch-action: none; display: grid; place-items: center; }
.wheelpad .knob { width: 54px; height: 54px; border-radius: 50%; background: #fcfcfa; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.pedals { position: absolute; right: 18px; bottom: 24px; display: flex; gap: 10px; align-items: flex-end; }
.pedals button { pointer-events: auto; touch-action: none; border: 0; border-radius: 16px; font-weight: 700; user-select: none; -webkit-user-select: none; }
#brake { width: 74px; height: 64px; background: #fcfcfa; color: #0c0c0d; }
#gas { width: 80px; height: 104px; background: var(--green); color: #0c0c0d; }
.pedals button.on { transform: scale(.94); filter: brightness(.85); }
.stage.touch .sheet { left: 50%; transform: translateX(-50%); width: min(340px, 92vw); bottom: auto; top: 160px; padding: 12px 14px; }
.stage.touch .sheet .fare { font-size: 28px; } .stage.touch .sheet .accept { height: 44px; }
.stage.touch .sheet .leg + .leg { display: none; }

/* ---------------- pay stub ---------------- */
.stub { border: 0; padding: 0; background: transparent; max-width: min(620px, 94vw); width: 100%; max-height: 92vh; }
.stub::backdrop { background: rgba(5,5,6,.6); backdrop-filter: blur(3px); }
.receipt { background: var(--page); color: var(--ink); padding: 26px 28px; border-radius: 4px; }
.receipt header { display: flex; gap: 14px; align-items: center; }
.receipt header img { border-radius: 9px; }
.receipt h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0; line-height: 1; }
.receipt header p { margin: 4px 0 0; color: var(--mute); font-size: 13px; }
.reason { font-size: 14px; color: #3a3936; margin: 14px 0 6px; }
.lines { margin: 10px 0; border-top: 1px solid var(--ink); }
.lines div, .cols div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lines dt, .cols dt { color: #3a3936; } .lines dd, .cols dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.lines .minus dd { color: #9a3b2f; }
.lines .takehome { border-bottom: 1px solid var(--ink); font-size: 18px; } .lines .takehome dd { font-weight: 700; color: #04884b; }
.cols { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 18px; margin: 6px 0; }
.cols div { font-size: 13px; }
.glovebox { font-size: 14px; margin: 14px 0 4px; }
.receipt h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 14px 0 8px; }
.shop { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop button { width: 100%; text-align: left; background: #fcfcfa; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; font-size: 12px; color: var(--mute); }
.shop button b { display: flex; justify-content: space-between; color: var(--ink); font-size: 14px; }
.shop button:not(:disabled):hover { border-color: var(--ink); }
.shop button:disabled { opacity: .5; cursor: default; } .shop button.fitted { opacity: 1; border-color: var(--green); }
.stub-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.stub-cta > * { height: 46px; border-radius: 23px; padding: 0 20px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--ink); background: transparent; }
.stub-cta .next { background: var(--green); border-color: var(--green); color: #0c0c0d; }
.stub-cta .save:disabled { opacity: .45; }
.note { font-size: 12px; color: var(--mute); margin: 10px 0 0; }

/* ---------------- page below the car ---------------- */
.surface, .track article, .faq details { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.surface.in, .track article.in, .faq details.in { opacity: 1; transform: none; }
.clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.16,1,.3,1); }
.clip.in { clip-path: inset(0 0 0 0); }
.still { margin: 0; overflow: hidden; background: #1a1a1c; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }

.intro2 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; padding: clamp(90px, 14vw, 200px) var(--gut) clamp(60px, 8vw, 120px); align-items: start; }
.intro2 .txt { grid-column: 2 / span 3; font-size: 15px; color: #3a3936; }
.intro2 .txt p:first-child { color: var(--ink); }
.intro2 .tall { grid-column: 7 / span 5; aspect-ratio: 4 / 5; }
.intro2 .small { grid-column: 5 / span 2; aspect-ratio: 3 / 4; margin-top: 46%; }

.shift { padding: clamp(40px, 6vw, 90px) 0 clamp(70px, 9vw, 140px); }
.shift h2 { font-size: clamp(42px, 5vw, 76px); margin: 0 var(--gut) 40px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23vw); gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gut); }
.track::-webkit-scrollbar { display: none; }
.track article { border-top: 1px solid var(--ink); padding-top: 14px; }
.track b { font-size: 13px; font-weight: 500; color: var(--mute); }
.track h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 8px 0 10px; line-height: 1.05; }
.track p { margin: 0; font-size: 14px; color: #3a3936; }
.progress { margin: 36px var(--gut) 0; height: 1px; background: var(--line); }
.progress i { display: block; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(0); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--gut) clamp(80px, 10vw, 160px); }
.tile { background: #f2efe8; padding: clamp(22px, 3vw, 44px); min-height: 520px; }
.tile h2 { font-size: clamp(40px, 4.4vw, 68px); margin: 0 0 14px; }
.tile .aside { max-width: 440px; color: #3a3936; margin: 0 0 26px; }
.hush { color: var(--mute); font-size: 14px; list-style: none; }
.fleet { list-style: none; padding: 0; margin: 0; }
.fleet li:not(.hush) { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fleet img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.fleet small { display: block; font-size: 12px; color: var(--mute); }
.fleet .px { font-weight: 700; text-align: right; }
.grab { height: 32px; border-radius: 16px; padding: 0 14px; display: inline-flex; align-items: center; background: var(--ink); color: #fcfcfa; font-weight: 700; font-size: 13px; text-decoration: none; }
.launch { display: grid; gap: 12px; max-width: 520px; }
.launch label { display: grid; gap: 5px; font-size: 13px; color: #3a3936; }
.launch input, .launch textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #d6d2c9; border-radius: 8px; background: #fcfcfa; color: var(--ink); }
.launch input:focus, .launch textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.launch .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.go { height: 50px; border: 0; border-radius: 25px; background: var(--ink); color: #fcfcfa; font-weight: 700; font-size: 15px; }
.go:hover { background: var(--green); color: #0c0c0d; }
.go:disabled { opacity: .5; }
.status { margin: 0; font-size: 14px; min-height: 1.5em; }
.fine { font-size: 12px; color: var(--mute); margin: 0; }

.statement { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; padding: 0 var(--gut) clamp(90px, 12vw, 180px); align-items: end; }
.statement .left { grid-column: 1 / span 6; }
.statement .big { font-size: clamp(64px, 9vw, 150px); margin: 0 0 20px; line-height: .92; }
.statement .aside { max-width: 360px; color: #3a3936; margin: 0; }
.drivers { grid-column: 8 / span 5; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.drivers li:not(.hush) { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.drivers .n { color: var(--mute); } .drivers span:not(.n) { color: var(--mute); font-size: 13px; } .drivers .s { font-variant-numeric: tabular-nums; }
.drivers .hush { padding: 12px 0; }

.words { position: relative; height: 92vh; min-height: 520px; overflow: hidden; color: #fcfcfa; }
.words .still { position: absolute; inset: 0; }
.words .still img { will-change: transform; }
.words .serif { position: absolute; margin: 0; font-size: clamp(48px, 7.5vw, 128px); opacity: 0; transform: translateY(24px); transition: opacity 1s, transform 1s cubic-bezier(.2,.7,.2,1); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.words .serif.in { opacity: 1; transform: none; }
.w1 { left: var(--gut); top: 14%; } .w2 { left: 42%; top: 44%; transition-delay: .12s !important; } .w3 { right: var(--gut); bottom: 10%; transition-delay: .24s !important; }

.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; padding: clamp(80px, 10vw, 160px) var(--gut); }
.faq h2 { grid-column: 1 / span 4; font-size: clamp(36px, 3.6vw, 56px); margin: 0 0 30px; }
.faq .qs { grid-column: 6 / span 7; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--mute); } .faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: #3a3936; max-width: 620px; font-size: 14px; }

.curb { display: flex; align-items: center; gap: 18px; padding: 26px var(--gut) 34px; border-top: 1px solid var(--line); font-size: 13px; color: #3a3936; }
.curb img { border-radius: 6px; } .curb p { margin: 0; }
.curb .now { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.curb .now i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.curb a { text-decoration: none; } .curb a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hop { display: none; }
  .coin { margin-left: auto; }
  .intro2 .txt { grid-column: 1 / -1; margin-bottom: 30px; } .intro2 .tall { grid-column: 1 / span 8; } .intro2 .small { grid-column: 9 / span 4; margin-top: 60%; }
  .pair { grid-template-columns: 1fr; } .tile { min-height: 0; }
  .statement .left, .drivers { grid-column: 1 / -1; } .drivers { margin-top: 30px; }
  .faq h2, .faq .qs { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .timeline { gap: 10px; padding: 10px 14px; }
  .mark span { display: none; } .ca { max-width: 96px; overflow: hidden; }
  .coin { gap: 6px; } .ca { padding: 0 10px; font-size: 12px; }
  .pills { top: 58px; gap: 5px; } .pill { height: 34px; padding: 0 11px; font-size: 13px; } .pill.earn { font-size: 15px; padding: 0 13px; }
  .mapcard { top: 100px; right: 12px; width: 108px; } .mapcard canvas { width: 108px; height: 108px; } .mapcard .surge { font-size: 11px; padding: 4px 8px; }
  .mute { top: 100px; left: 12px; width: 34px; height: 34px; }
  .coach { top: auto; bottom: 150px; font-size: 13px; }
  .stage.touch .sheet { top: 214px; left: 12px; transform: none; width: calc(100% - 136px); }
  .sheet { left: 12px; right: 12px; width: auto; }
  .cols { grid-template-columns: 1fr 1fr; } .shop { grid-template-columns: 1fr; }
  .receipt { padding: 20px 16px; }
  .track { grid-auto-columns: 78vw; }
  .launch .row { grid-template-columns: 1fr; }
  .curb { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .surface, .track article, .faq details, .words .serif { opacity: 1; transform: none; } .clip { clip-path: none; } }
/* audit fixes: no sideways scroll, a focus ring that shows at once, headlines wrap inside long words, buttons stay on one line */
html, body { overflow-x: clip; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
#scene:focus-visible { outline: none; }
h1, h2, h3 { overflow-wrap: anywhere; min-width: 0; }
button, .buy, .ca, .phantom, .start { white-space: nowrap; }
