/* assets/css/site.css — the Ride website (design v254 src/site.jsx + sitepages.jsx). Tokens = the design's SW palette.
   One stylesheet for every page; layout helpers are in helpers/site_layout.php. Desktop gutters 120 px, phone 20 px. */
@font-face { font-family: 'Geist'; src: url('../fonts/geist_variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm_plex_mono_semibold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --ink: #0A1226; --ink2: #2A3247; --mute: #6A7388; --line: #E6E9F0; --raised: #F5F7FB; --bone: #F5F1E8; --yellow: #FFD23F;
  --green: #1F7A45; --green-bg: #ECF8F0; --gutter: 120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.ic { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Nav ── */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 20px 48px; }
.nav .grow { flex: 1; }
.nav a.l { font-size: 15px; font-weight: 500; color: var(--mute); text-decoration: none; }
.nav a.l.on { color: var(--ink); }
.nav.dark a.l { color: rgba(255,255,255,.75); }
.nav.dark a.l.on { color: #fff; }
.nav .get { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.nav.dark .get { background: #fff; color: var(--ink); }
.wm { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wm span { font-family: 'IBM Plex Mono', monospace; font-weight: 600; letter-spacing: -0.01em; }
.wm small { font-size: .45em; margin-left: 8px; opacity: .7; }

/* ── Store buttons ── */
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: inherit; }
.store { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); text-decoration: none; }
.store.light { background: #fff; color: var(--ink); border-color: var(--line); }
.store span { line-height: 1.05; text-align: left; }
.store small { display: block; font-size: 10px; letter-spacing: .4px; }
.store b { display: block; font-size: 18px; font-weight: 600; }
.stores.small .store { height: 44px; }
.stores.small .store b { font-size: 16px; }

/* ── Hero (dark home) ── */
.hero-home { position: relative; height: 620px; background: radial-gradient(1200px 500px at 50% 110%, #2A3247 0%, var(--ink) 60%); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.hero-home .skyline { position: absolute; bottom: 0; left: 0; width: 100%; height: 160px; opacity: .25; }
.kicker { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.hero-home .kicker { color: var(--yellow); }
.hero-home h1 { margin: 14px 0 0; font-size: 68px; line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; max-width: 900px; }
.hero-home p { font-size: 20px; color: rgba(255,255,255,.75); margin: 18px 0 0; max-width: 640px; line-height: 1.45; }
.hero-home .stores { margin-top: 28px; justify-content: center; }
.hero-home .motion { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); }

/* ── Page hero (inner pages — design sitepages.jsx PgHero): text left, optional panel right ── */
.pghero { position: relative; min-height: 600px; background: radial-gradient(1100px 520px at 75% 110%, #2A3247 0%, var(--ink) 62%); color: #fff;
  display: flex; flex-direction: row; align-items: center; gap: 48px; padding: 120px var(--gutter) 70px; overflow: hidden; }
.pghero.light { background: var(--raised); color: var(--ink); }
.pghero > .txt { flex: 1; min-width: 0; }
.pghero > .aside { flex-shrink: 0; position: relative; }
.pghero .kicker { color: var(--yellow); }
.pghero.light .kicker { color: var(--mute); }
.pghero h1 { font-size: 58px; line-height: 1.06; margin: 14px 0 0; font-weight: 700; letter-spacing: -0.03em; max-width: 680px; }
.pghero p.sub { font-size: 19px; margin: 16px 0 0; max-width: 600px; line-height: 1.5; color: rgba(255,255,255,.78); }
.pghero.light p.sub { color: var(--ink2); }
.pghero .actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Sections ── */
.sec { padding: 88px var(--gutter); }
.sec.center { text-align: center; }
.sec h2 { font-size: 40px; line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.sec p.sub { font-size: 17px; color: var(--ink2); margin: 10px 0 0; line-height: 1.5; }
.sec.center p.sub { margin-left: auto; margin-right: auto; max-width: 640px; }
.bg-bone { background: var(--bone); }
.bg-raised { background: var(--raised); }
.bg-black { background: #000; color: #fff; }
.bg-ink { background: var(--ink); color: #fff; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn.yellow { background: var(--yellow); color: var(--ink); }

/* ── Tiles, steps, stats ── */
.tile { background: #fff; border-radius: 18px; padding: 18px; text-align: left; transition: box-shadow .4s ease, transform .4s ease; }
.tile.on { box-shadow: 0 0 0 2px var(--ink), 0 10px 24px rgba(10,18,38,.10); transform: translateY(-2px); }
.tile .tic { width: 40px; height: 40px; border-radius: 12px; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; transition: background .4s; }
.tile.on .tic { background: var(--yellow); }   /* 2026-11-21 design SiteHome tile: a lit tile's icon turns signal yellow */
.tile b { display: block; font-size: 16px; margin-top: 12px; }
.tile span.d { display: block; font-size: 14px; color: var(--mute); margin-top: 4px; line-height: 1.45; }
.stats { display: inline-flex; margin-top: 40px; padding: 20px 8px; border-radius: 20px; box-shadow: 0 10px 40px rgba(10,18,38,.08); border: 1px solid var(--line); background: #fff; }
.stats > div { padding: 0 32px; text-align: left; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 30px; font-weight: 700; }
.stats span { font-size: 14px; color: var(--mute); }
.steps { display: grid; gap: 16px; margin-top: 40px; text-align: left; }
.step { border-radius: 20px; padding: 22px; background: var(--raised); }
.step .n { width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.step:first-child .n { background: var(--yellow); color: var(--ink); }
.step b { display: block; font-size: 18px; margin-top: 14px; }
.step span:not(.n) { display: block; font-size: 14.5px; color: var(--mute); margin-top: 6px; line-height: 1.5; }
.steps.dark .step { background: rgba(255,255,255,.06); }
.steps.dark .step .n { background: #fff; color: var(--ink); }
.steps.dark .step:first-child .n { background: var(--yellow); }
.steps.dark .step span:not(.n) { color: rgba(255,255,255,.7); }
.ptile { border-radius: 20px; padding: 22px; text-align: left; }
.ptile.line { border: 1px solid var(--line); }
.ptile .tic { width: 42px; height: 42px; border-radius: 12px; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; }
.ptile b { display: block; font-size: 17px; margin-top: 14px; }
.ptile .d { display: block; font-size: 14.5px; color: var(--mute); margin-top: 4px; line-height: 1.5; }
.getapp { background: var(--ink); color: #fff; border-radius: 28px; padding: 44px 52px; display: flex; align-items: center; gap: 40px; }
.getapp .txt { flex: 1; }
.getapp .lbl { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 13px; background: var(--bone); color: var(--ink); padding: 3px 10px; border-radius: 6px; }
.getapp h2 { font-size: 36px; margin: 14px 0 0; font-weight: 700; letter-spacing: -0.02em; }
.getapp p { font-size: 16.5px; color: rgba(255,255,255,.75); margin: 10px 0 22px; max-width: 560px; line-height: 1.5; }
.getapp .qr { background: #fff; border-radius: 18px; padding: 14px; text-align: center; color: var(--ink); }

/* ── Drive: kinds in the hero, document list ── */
.kindgrid { width: 470px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kindgrid .kind { background: #fff; border-radius: 18px; padding: 16px 6px 10px; text-align: center; color: var(--ink); }
.kindgrid .kind.on { background: var(--bone); box-shadow: 0 0 0 3px var(--yellow); }
.kindgrid .art { height: 46px; display: flex; align-items: center; justify-content: center; }
.kindgrid .nm { font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.kindgrid .note { grid-column: 1 / -1; font-size: 13px; color: rgba(255,255,255,.6); text-align: center; margin-top: 4px; }
.docitem { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--raised); }
.docitem b { display: block; font-size: 16px; }
.docitem span { display: block; font-size: 14px; color: var(--mute); margin-top: 2px; }

/* ── Pro: services + machines in the hero ── */
.progrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.progrid .kind { background: #fff; border-radius: 18px; padding: 14px 6px 10px; text-align: center; color: var(--ink); }
.progrid img { margin: 0 auto; }
.progrid .nm { font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.machlbl { font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.55); margin: 16px 0 8px; }
.machgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.machgrid div { background: #fff; border-radius: 14px; padding: 6px; display: flex; justify-content: center; }

/* ── Schools: free pair ── */
.freepair { display: flex; gap: 16px; max-width: 860px; margin: 32px auto 0; text-align: left; }
.freepair > div { flex: 1; border-radius: 22px; background: var(--raised); padding: 26px; }
.freepair > div.dark { background: var(--ink); color: #fff; }
.freepair span { font-size: 14px; color: var(--mute); }
.freepair .dark span { color: rgba(255,255,255,.6); }
.freepair b { display: block; font-size: 34px; font-weight: 700; margin-top: 6px; }
.freepair p { font-size: 14px; color: var(--mute); margin: 8px 0 0; line-height: 1.5; }
.freepair .dark p { color: rgba(255,255,255,.7); }

/* ── Advertise (design site.jsx SiteAds / SiteAdHero) ── */
.adtop { position: relative; background: var(--raised); padding: 110px 100px 60px var(--gutter); display: flex; gap: 40px; align-items: center; overflow: hidden; }
.adtop .txt { flex: 1; min-width: 0; }
.adtop h1 { font-size: 56px; line-height: 1.05; margin: 12px 0 0; font-weight: 700; letter-spacing: -0.03em; }
.adtop p.sub { font-size: 19px; color: var(--ink2); margin: 16px 0 0; max-width: 560px; line-height: 1.5; }
.adtop .actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.pbtn { height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.pbtn.dark { background: var(--ink); color: #fff; }
.pbtn.line { border: 1.5px solid var(--ink); color: var(--ink); }
.adstats { display: flex; gap: 40px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.adstats b { display: block; font-size: 28px; font-weight: 700; }
.adstats span { font-size: 13.5px; color: var(--mute); }
/* 2026-11-22 (LD-119 #26, site.jsx :396): the note under the "[X]" placeholders; #30 the footer's coming-soon items */
.adstats-note { font-size: 12px; color: var(--mute); margin-top: 8px; }
.adhero { position: relative; width: 520px; height: 650px; flex-shrink: 0; }
.adhero .shadow { position: absolute; left: 150px; right: 150px; top: 586px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,18,38,.2), transparent); }
/* 2026-11-21 (spec 1664 smoothness rules): z-index moves with the slide (the phone coming forward passes over the other one
   half-way, not at the start) and each phone is its own GPU layer. Was:
.adhero .slot { position: absolute; left: 60px; top: -37px; width: 400px; transform-origin: 50% 37px; transition: transform .75s cubic-bezier(.4,0,.2,1), opacity .75s cubic-bezier(.4,0,.2,1); cursor: pointer; } */
.adhero .slot { position: absolute; left: 60px; top: -37px; width: 400px; transform-origin: 50% 37px; transition: transform .75s cubic-bezier(.4,0,.2,1), opacity .75s cubic-bezier(.4,0,.2,1), z-index .75s linear; cursor: pointer; will-change: transform, opacity; }
/* Side phones are dimmed with a solid veil in the page colour over the phone body (design SiteAdHero dim layer) — the phone
   itself stays opaque, so nothing behind it shows through. Phone body in the 856 × 1524 capture: x 128–727, y 80–1331. */
.adhero .slot::after { content: ''; position: absolute; top: 5.25%; bottom: 12.6%; left: 14.95%; right: 14.95%; border-radius: 47px; background: var(--raised); opacity: 0; transition: opacity .75s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.adhero .slot[data-pos="1"]::after, .adhero .slot[data-pos="-1"]::after { opacity: .5; }
.adhero .slot.snap::after { transition: none; }
.adhero .slot img { display: block; width: 100%; height: auto; }
.adhero .slot .hl { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.adhero .slot .plain { transition: opacity .75s; }
.adhero .slot[data-pos="0"] { transform: translate3d(0, 0, 0) scale(1); z-index: 10; cursor: default; }
.adhero .slot[data-pos="1"] { transform: translate3d(145px, 50px, 0) scale(.674); z-index: 5; }
.adhero .slot[data-pos="-1"] { transform: translate3d(-145px, 50px, 0) scale(.674); z-index: 5; }
.adhero .slot[data-pos="2"] { transform: translate3d(290px, 80px, 0) scale(.5); opacity: 0; z-index: 1; }
.adhero .slot[data-pos="out"] { transform: translate3d(-290px, 80px, 0) scale(.5); opacity: 0; z-index: 1; }
/* 2026-11-21 side phones were see-through (spec 1664: "dimmed (solid, never see-through)") — now the ::after veil above. Was:
.adhero .slot[data-pos="1"] .plain, .adhero .slot[data-pos="-1"] .plain { opacity: .5; } */
.adhero .slot.settled[data-pos="0"] .hl { opacity: 1; }
.adhero .slot.snap { transition: none; }
.adhero .ctl { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 12; }
.adhero .cap { font-size: 14px; font-weight: 600; color: var(--ink2); }
.adhero .dots { display: flex; gap: 6px; }
.adhero .dots button { width: 8px; height: 8px; border-radius: 999px; background: #C9CDD3; transition: width .3s, background .3s; }
.adhero .dots button.on { width: 22px; background: var(--ink); }
.fmttabs { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.fmttabs a { height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--raised); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.fmttabs a.on { background: var(--ink); color: #fff; }
.fmttabs a span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--ink); }
.fmttabs a.on span { background: var(--yellow); }
.fmt { display: flex; gap: 64px; align-items: center; margin-top: 48px; text-align: left; }
.fmt .txt { flex: 1; }
.fmt h3 { font-size: 32px; margin: 0; font-weight: 700; }
.fmt p { font-size: 17px; color: var(--ink2); line-height: 1.55; max-width: 520px; }
.fmt .bul { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.fmt .bul span { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; }
.fmt .fine { font-size: 12.5px; color: var(--mute); margin-top: 14px; line-height: 1.5; }
.fmt .specs { margin-top: 34px; max-width: 560px; }
.fmt .tbl { margin-top: 10px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fmt .tbl > div { display: flex; gap: 16px; padding: 12px 16px; font-size: 14.5px; line-height: 1.45; }
.fmt .tbl > div + div { border-top: 1px solid var(--line); }
.fmt .tbl span:first-child { width: 130px; flex-shrink: 0; font-weight: 600; }
.fmt .tbl span + span { color: var(--ink2); }
.fmt .phoneimg { width: 428px; height: auto; flex-shrink: 0; margin: -40px -64px -96px; }
.js-tabs .fmt[hidden] { display: none; }
.reach { background: #fff; border-radius: 20px; padding: 22px; }
.reach .tic { width: 44px; height: 44px; border-radius: 12px; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; }
.reach b { display: block; font-weight: 700; font-size: 19px; margin-top: 14px; }
.reach div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.reach div span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--raised); }
.campaign { max-width: 620px; margin: 0 auto; border-radius: 24px; border: 1px solid var(--line); padding: 32px; box-shadow: 0 10px 40px rgba(10,18,38,.06); }
.campaign h2 { font-size: 30px; margin: 0; font-weight: 700; text-align: center; }
.campaign p.sub { text-align: center; font-size: 15px; color: var(--mute); margin: 8px 0 22px; }
.nevershow { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 22px; text-align: center; }
.nevershow .row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.nevershow .row span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.nevershow .row b { color: var(--ink2); font-weight: 600; }
/* 2026-11-21 + the veil. Was: @media (prefers-reduced-motion: reduce) { .adhero .slot, .adhero .slot .plain { transition: opacity .3s; } } */
@media (prefers-reduced-motion: reduce) { .adhero .slot, .adhero .slot .plain, .adhero .slot::after { transition: opacity .3s; } }

/* Map sponsor tab (2026-11-21, spec 1664 "only the Map sponsor tab moves the badge"; design map.jsx RideMap: the brand badge
   replaces the car and drives the route in 14 s, then starts again). The phone is ad_map_base.png (the capture without the
   badge); the badge is an SVG layer in the capture's own pixels (856 × 1524), so it scales with the image. The route, in
   those pixels (the design's path × 1.436 + the screen's offset): (277, 847) → (342, 847) → (342, 710) → (557, 710) → (557, 588).
   "Reduce motion": the badge stays where the capture had it. */
.fmt .mapphone { position: relative; width: 428px; flex-shrink: 0; margin: -40px -64px -96px; }
.fmt .mapphone img { width: 100%; height: auto; }
.fmt .mapphone svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mapbadge { transform: translate(342px, 837px); animation: map-badge 14s linear infinite; }
.mapbadge .dir { transform: rotate(-90deg); animation: map-badge-dir 14s linear infinite; }
@keyframes map-badge { 0% { transform: translate(277px, 847px); } 12% { transform: translate(342px, 847px); } 37.4% { transform: translate(342px, 710px); }
                       77.4% { transform: translate(557px, 710px); } 100% { transform: translate(557px, 588px); } }
@keyframes map-badge-dir { 0%, 11.5% { transform: rotate(0deg); } 12.5%, 36.9% { transform: rotate(-90deg); } 37.9%, 76.9% { transform: rotate(0deg); }
                           77.9%, 100% { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { .mapbadge, .mapbadge .dir { animation: none; } }

/* ── Help ── */
.search.helpsearch { width: 560px; height: 58px; padding: 0 22px; box-shadow: 0 8px 30px rgba(10,18,38,.06); }
.danger { border-radius: 18px; background: #FDECEC; color: #7A1A12; padding: 16px 22px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.danger span { flex: 1; }
.topic { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: #fff; text-align: left; text-decoration: none; }
.topic .tic { width: 44px; height: 44px; border-radius: 12px; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topic .t { flex: 1; }
.topic b { display: block; font-size: 17px; }
.topic .t span { display: block; font-size: 14px; color: var(--mute); margin-top: 2px; }
.helplist a { display: flex; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 16.5px; text-decoration: none; }
.helplist a span { flex: 1; }

/* ── Cards / family ── */
.card { border-radius: 22px; border: 1px solid var(--line); padding: 22px; background: #fff; }
.family a { display: block; text-align: center; border-radius: 22px; padding: 22px; text-decoration: none; }
.family .appic { width: 96px; height: 96px; border-radius: 24px; background: var(--ink); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.family .appic small { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 11px; color: var(--yellow); letter-spacing: 1px; }
.family b { display: block; font-size: 19px; margin-top: 14px; }
.family span { display: block; font-size: 14px; color: var(--ink2); margin-top: 6px; line-height: 1.45; }
.family em { display: block; font-style: normal; font-size: 14px; font-weight: 600; margin-top: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--mute); }
.badge.live { background: var(--green-bg); color: var(--green); }
.pill { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 14px; background: var(--yellow); color: var(--ink); padding: 4px 12px; border-radius: 999px; }

/* ── Phone frame + flow ── */
.phone { position: relative; border-radius: 40px; background: #0b0f1a; padding: 10px; box-shadow: 0 30px 60px rgba(10,18,38,.25); }
.phone .scr { position: relative; border-radius: 31px; overflow: hidden; background: #fff; aspect-ratio: 390 / 844; }
/* 2026-11-21 (design site.jsx SiteFlowPhone, spec 1658): the next screen slides in from the right in 0.45 s while the last one
   fades out drifting left, instead of a 0.5 s cross-fade. Was:
.phone .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.phone .scr img.on { opacity: 1; } */
.phone .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(-24px); z-index: 1;
                  transition: opacity .45s ease, transform .45s cubic-bezier(.4,0,.2,1); }
.phone .scr img.on { opacity: 1; transform: none; z-index: 2; animation: site-flow-in .45s cubic-bezier(.4,0,.2,1) both; }
@keyframes site-flow-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.flow { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.flow .cap { font-size: 14px; font-weight: 600; min-height: 21px; }
.flow .dots { display: flex; gap: 6px; }
.flow .dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--line); }
.flow .dots button.on { background: var(--ink); width: 20px; }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 36px auto 0; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 2px; color: var(--ink2); line-height: 1.6; font-size: 15.5px; max-width: 720px; }

/* ── Forms ── */
.formcard { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 36px; box-shadow: 0 10px 40px rgba(10,18,38,.06); }
.formcard h2 { font-size: 34px; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.formcard p.sub { margin: 8px 0 22px; color: var(--mute); }
/* 2026-11-22 (LD-119 #24): Contact us — people with a Ride account write from the app first */
.appfirst { margin: 14px 0 6px; padding: 16px 18px; border-radius: 16px; background: var(--raised, #F4F2EC); display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.appfirst span { color: var(--ink2, #3A4256); } .appfirst .links a { font-weight: 600; color: inherit; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { height: 52px; border-radius: 14px; border: 1px solid var(--line); padding: 0 14px; background: #fff; }
.field textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.fgrid .btn { grid-column: 1 / -1; width: 100%; }
.done { border-radius: 16px; background: var(--green-bg); color: var(--green); padding: 18px; font-size: 15.5px; font-weight: 600; }
.err { border-radius: 16px; background: #FDECEC; color: #A12A2A; padding: 14px 18px; font-size: 15px; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 10px; width: 440px; max-width: 100%; height: 54px; border-radius: 999px; background: #fff; border: 1px solid var(--line); padding: 0 20px; }
.search input { border: 0; outline: 0; flex: 1; font-size: 16px; background: transparent; }

/* ── Legal ── */
.legal { display: flex; gap: 56px; padding: 40px var(--gutter) 90px; align-items: flex-start; }
.legal nav { width: 230px; flex-shrink: 0; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; }
.legal nav a { display: block; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink2); }
.legal nav a.on { background: var(--ink); color: #fff; }
.legal article { flex: 1; max-width: 760px; }
.legal article h2 { font-size: 22px; font-weight: 700; margin: 32px 0 8px; }
.legal article p, .legal article li { font-size: 16px; line-height: 1.7; color: var(--ink2); }
.legal article p { margin: 0 0 10px; }
.legal article ul { margin: 0 0 10px; padding-left: 22px; }
.insh { border-radius: 18px; background: var(--raised); padding: 18px 22px; margin-top: 20px; }
.insh .kicker { font-size: 12.5px; letter-spacing: 1.5px; font-weight: 700; }
.kv { border-radius: 16px; background: var(--raised); padding: 18px; }
.kv span { display: block; font-size: 13px; color: var(--mute); }
.kv b { display: block; font-size: 16px; margin-top: 4px; }

/* ── Footer ── */
.foot { background: #000; color: #fff; padding: 64px var(--gutter) 36px; }
.foot .cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-top: 32px; }
.foot .h { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.foot .cols a, .foot .cols span { display: block; font-size: 14px; color: rgba(255,255,255,.6); padding: 4px 0; text-decoration: none; }
.foot .cols a:hover { color: #fff; }
.foot .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.foot .row .grow { flex: 1; }
.foot .social { font-size: 13px; color: rgba(255,255,255,.6); }
.foot a.social { text-decoration: none; } .foot a.social:hover { color: #fff; }   /* 2026-11-22 LD-119 #30: now a link to soon.php?p=social */
.foot .fine { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.6; }

/* ── Home: in-app grid, Plus, Get Ride now ── */
.inapp { display: grid; grid-template-columns: 1fr 1fr 260px 1fr 1fr; gap: 14px; align-items: center; margin-top: 40px; }
.inapp-phone { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.plus { display: flex; justify-content: center; gap: 40px; margin-top: 32px; }
.plus div { text-align: left; }
.plus b { display: block; font-size: 20px; }
.plus span { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-top: 4px; }
.getnow { border-radius: 28px; background: var(--bone); padding: 0 56px; display: flex; align-items: center; gap: 32px; overflow: hidden; }
.getnow .txt { flex: 1; padding: 56px 0; }
.getnow h2 { font-size: 40px; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.getnow p { font-size: 17px; color: var(--ink2); margin: 10px 0 24px; }
.getnow .scan { width: 260px; align-self: flex-end; background: var(--ink); border-radius: 36px 36px 0 0; padding: 12px 12px 0; }
.getnow .scan-in { background: #fff; border-radius: 28px 28px 0 0; padding: 28px 20px; text-align: center; }

/* ── Ride Motions car (helpers/site_layout.php site_motion; design motion.jsx loop) ── */
.rm-roof { transform-box: fill-box; transform-origin: 50% 100%; animation: rm-bounce .52s ease-in-out infinite; }
.rm-sl { transform-box: fill-box; transform-origin: 100% 50%; animation: rm-line 1.1s linear infinite both; }
.rm-sl0 { animation-duration: 1.05s; animation-delay: .1s; } .rm-sl1 { animation-duration: 1.3s; animation-delay: .35s; }
.rm-sl2 { animation-duration: .9s; animation-delay: .2s; } .rm-x { animation: rm-line-x 3.4s linear infinite both; animation-delay: 1.2s; }
@keyframes rm-bounce { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.012, .955); } 75% { transform: scale(.996, 1.012); } }
@keyframes rm-line { 0% { transform: translateX(40px) scaleX(.95); opacity: 0; } 22% { opacity: 1; } 100% { transform: translateX(-140px) scaleX(1.05); opacity: 0; } }
@keyframes rm-line-x { 0%, 62% { transform: translateX(40px); opacity: 0; } 70% { opacity: 1; } 95%, 100% { transform: translateX(-150px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  /* 2026-11-21 + the slide-in and the yellow icon. Was: .phone .scr img, .tile { transition: none; } */
  .phone .scr img, .tile, .tile .tic { transition: none; }
  .phone .scr img, .phone .scr img.on { animation: none; transform: none; }
  .rm-roof, .rm-sl { animation: none; }
  .rm-x { animation: none; opacity: 0; }
}

/* ── Phone width ── */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav { padding: 16px 20px; }
  .nav a.l { display: none; }
  .hero-home { height: 640px; }
  .hero-home h1 { font-size: 40px; }
  .hero-home p { font-size: 17px; }
  .hero-home .motion { bottom: 34px; }
  .pghero { flex-direction: column; align-items: stretch; gap: 32px; padding: 96px 20px 48px; min-height: 0 !important; }
  .pghero > .aside { display: flex; justify-content: center; }
  .pghero h1 { font-size: 36px; }
  .pghero p.sub { font-size: 16px; }
  .pghero .actions { margin-top: 24px; }
  .sec { padding: 56px 20px; }
  .sec h2 { font-size: 30px; }
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .grid.m2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr !important; margin-top: 28px; }
  .getapp { flex-direction: column; align-items: stretch; gap: 24px; padding: 28px 22px; border-radius: 22px; }
  .getapp .qr { display: none; }
  .getapp h2 { font-size: 28px; }
  .kindgrid { width: 100%; gap: 8px; }
  .progrid { gap: 8px; }
  .freepair { flex-direction: column; gap: 12px; margin-top: 24px; }
  .danger { align-items: flex-start; padding: 14px 16px; font-size: 14px; }
  .adtop { flex-direction: column; align-items: stretch; gap: 28px; padding: 88px 20px 40px; }
  .adtop h1 { font-size: 38px; }
  .adtop p.sub { font-size: 16.5px; }
  .adstats { gap: 18px; margin-top: 26px; }
  .adstats > div { flex: 1; }
  .adstats b { font-size: 22px; }
  .adstats span { font-size: 12.5px; }
  .adhero { zoom: .66; margin: 0 auto; }
  .fmttabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 24px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
  .fmttabs a { height: 40px; padding: 0 14px; font-size: 14px; }
  .fmt { flex-direction: column-reverse; gap: 32px; margin-top: 32px; }
  .fmt h3 { font-size: 26px; }
  .fmt p { font-size: 15.5px; }
  .fmt .tbl > div { flex-direction: column; gap: 2px; font-size: 14px; }
  .fmt .phoneimg { width: 371px; margin: -35px auto -83px; }
  .fmt .mapphone { width: 371px; margin: -35px auto -83px; }   /* 2026-11-21 Map sponsor phone with the moving badge */
  #formats { overflow: hidden; }   /* the phone image's transparent shadow margin is wider than a phone screen */
  .campaign { padding: 22px; }
  .machgrid { grid-template-columns: repeat(3, 1fr); }
  .stats { flex-direction: column; gap: 14px; padding: 20px; }
  .stats > div { padding: 0; text-align: center; }
  .stats > div + div { border-left: 0; }
  .formcard { padding: 24px 20px; border-radius: 22px; }
  .formcard h2 { font-size: 26px; }
  .fgrid { grid-template-columns: 1fr; }
  .legal { flex-direction: column; gap: 18px; padding: 18px 20px 56px; align-items: stretch; }
  .legal nav { width: auto; position: static; flex-direction: row; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; }
  .legal nav a { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; white-space: nowrap; background: var(--raised); }
  .promise { padding-top: 64px !important; padding-bottom: 64px !important; }
  .promise h2 { font-size: 32px !important; }
  .float, .inapp-phone, .getnow .scan { display: none !important; }
  .inapp { grid-template-columns: 1fr 1fr; }
  .plus { flex-direction: column; gap: 14px; }
  .plus div { text-align: center; }
  .getnow { flex-direction: column; padding: 28px; }
  .getnow .txt { padding: 0; }
  .getnow h2 { font-size: 30px; }
  .foot { padding: 40px 20px 28px; }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
