/* ==========================================================================
   The Riding Co. — website
   Tokens inherited from the app's RC2 design system so the site and the
   product read as one company. Dark only: the app is dark-only by doctrine.
   ========================================================================== */

:root{
  /* ground & surface */
  --carbon:#0B0F14;
  --carbon2:#080B0F;
  --surface:#12181F;
  --surface2:#17212A;
  --border:#263238;
  --border-soft:#1a232b;

  /* text — measured on carbon */
  --paper:#EAF0F4;   /* 16.8:1 */
  --muted:#A4B4BE;   /*  9.0:1 */
  --dim:#6E8896;     /*  5.2:1 — NOT the app's #5E7788, which is 4.1:1 and fails on web */

  /* identity & accent */
  --signal:#00C2A8;             /* 8.5:1 — identity + interaction ONLY */
  --signal-glow:rgba(0,194,168,.5);
  --ride:#FD5A00;               /* 6.1:1 — route line + heat. Never a primary button */

  /* status — the safety language, never decoration */
  --good:#2ECC71;
  --caution:#F5A623;
  --danger:#E74C3C;
  --info:#4A90D9;

  --sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;

  --maxw:1240px;
  --gutter:32px;
  --ease:cubic-bezier(.22,.61,.36,1);

  /* real height of the fixed nav. Anything that pins itself below the nav reads
     this instead of guessing — a hard-coded 54px left the sticky phone sliding
     under a nav that actually measures 82px on a phone. */
  --nav-h:82px;

  /* tell the browser to render its own furniture dark: scrollbars, form
     controls, overscroll glow. Without it they arrive light on a dark page. */
  color-scheme:dark;
}

/* ---------- reset & base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--carbon);color:var(--paper);font-family:var(--sans);
  line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
  /* our own teal instead of Android's default blue flash on every tap */
  -webkit-tap-highlight-color:rgba(0,194,168,.18);
}
/* set while the mobile menu is open so the page behind it can't scroll */
body.menu-open{overflow:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.028em;line-height:1.03;text-wrap:balance}

/* browser surfaces — themed, not inherited */
::selection{background:rgba(0,194,168,.3);color:#fff}
html{caret-color:var(--signal);scrollbar-color:var(--border) var(--carbon);scrollbar-width:thin}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:var(--carbon)}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:99px;border:3px solid var(--carbon)}
::-webkit-scrollbar-thumb:hover{background:#33454f}
:focus-visible{outline:2px solid var(--signal);outline-offset:3px;border-radius:6px}
:focus:not(:focus-visible){outline:none}
.mono,.n,.u,.mi,.rng b,.dl-spec,.filemeta b{font-variant-numeric:tabular-nums}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);width:100%}
.sec{padding:120px 0;position:relative}
.sec-head h2{font-size:clamp(30px,4.4vw,56px)}
.sec-head p{color:var(--muted);font-weight:300;font-size:clamp(16px,1.4vw,18.5px);line-height:1.62;margin:18px 0 0;max-width:52ch}
.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--signal);color:#04211d;
  padding:12px 18px;border-radius:0 0 10px 0;font-weight:600}
.skip:focus{left:0}

/* closing statement — a standalone line under content. Never a kicker above a heading. */
.closer{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.24em;text-transform:uppercase;
  color:var(--dim);display:inline-flex;align-items:center;gap:10px}
.closer::before{content:"";width:20px;height:1px;background:currentColor;flex:none}

/* ---------- wordmark ---------- */
.wm{display:inline-flex;align-items:baseline;font-weight:600;font-size:14px;
  letter-spacing:.19em;text-transform:uppercase;white-space:nowrap}
.wm i{color:var(--signal);font-style:normal;margin-left:1px}

/* ---------- nav ---------- */
.nav{position:fixed;top:0;left:0;right:0;z-index:80;border-bottom:1px solid transparent;transition:.3s}
/* .94, not .86 — at 86% a big display heading scrolling underneath stayed
   legible through the bar, which reads as a glitch rather than as glass */
.nav.solid{background:rgba(8,11,15,.94);backdrop-filter:blur(18px);border-color:var(--border-soft)}
.nav-in{max-width:var(--maxw);margin:0 auto;padding:17px var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:24px}
.nav-links{display:flex;gap:30px;font-size:14px;color:var(--muted)}
.nav-links a{transition:color .2s}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--paper)}

/* ---------- mobile menu ----------
   The links used to be deleted below 980px with nothing put in their place, so a
   phone had no navigation at all on a page ten screens long.

   Progressive enhancement, deliberately: the collapsed state only applies once
   the script has added .has-menu. If the script never arrives the links stay
   visible as a wrapped row — plainer, but reachable. Never hide navigation
   behind a button that might not exist. */
.navtoggle{display:none}

@media (max-width:980px){
  .nav.has-menu .nav-links{
    position:absolute;left:0;right:0;top:100%;
    flex-direction:column;gap:0;
    background:var(--carbon2);
    border-bottom:1px solid var(--border);
    box-shadow:0 30px 60px -30px rgba(0,0,0,.9);
    padding:6px var(--gutter) 14px;
    /* clip-path over display:none so the panel can animate and stays in the
       accessibility tree order; visibility handles focusability. */
    visibility:hidden;opacity:0;transform:translateY(-8px);
    transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s;
    max-height:calc(100svh - var(--nav-h));overflow-y:auto;
  }
  .nav.has-menu.open .nav-links{visibility:visible;opacity:1;transform:none}

  .nav.has-menu .nav-links a{
    display:block;font-size:16.5px;color:var(--paper);
    padding:15px 0;                       /* 47px target, comfortably over the 44px floor */
    border-bottom:1px solid var(--border-soft);
  }
  .nav.has-menu .nav-links a:last-child{border-bottom:0}
  .nav.has-menu .nav-links a[aria-current="page"]{color:var(--signal)}

  /* no script: a wrapped row rather than a hidden menu */
  .nav:not(.has-menu) .nav-links{
    flex-wrap:wrap;gap:10px 20px;width:100%;order:3;
    padding-top:12px;font-size:15px;
  }
  .nav:not(.has-menu) .nav-links a{padding:7px 0}
  .nav:not(.has-menu) .nav-in{flex-wrap:wrap}

  .nav.has-menu .navtoggle{
    display:inline-flex;align-items:center;justify-content:center;
    width:46px;height:46px;
    background:none;border:1px solid transparent;border-radius:11px;
    color:var(--paper);cursor:pointer;flex:none;
    transition:border-color .2s,background .2s;
  }
  .nav.has-menu .navtoggle:hover{border-color:var(--border)}
  .nav.has-menu.open .navtoggle{background:var(--surface);border-color:var(--border)}
  /* .nb, not .bars — `.bars` is already the offline section's signal-strength
     meter, and its nth-child height rules carry the same specificity as these
     but sit later in the file, so they won. Own class, no collision. */
  .navtoggle .nb{position:relative;width:19px;height:13px;display:block}
  .navtoggle .nb i{
    position:absolute;left:0;right:0;height:1.6px;border-radius:2px;background:currentColor;
    transition:transform .24s var(--ease),opacity .18s var(--ease);
  }
  .navtoggle .nb i:nth-child(1){top:0}
  .navtoggle .nb i:nth-child(2){top:5.7px}
  .navtoggle .nb i:nth-child(3){top:11.4px}
  .nav.open .navtoggle .nb i:nth-child(1){transform:translateY(5.7px) rotate(45deg)}
  .nav.open .navtoggle .nb i:nth-child(2){opacity:0}
  .nav.open .navtoggle .nb i:nth-child(3){transform:translateY(-5.7px) rotate(-45deg)}

  /* the panel needs an opaque nav to drop out of, whatever the scroll position */
  .nav.has-menu.open{background:rgba(8,11,15,.98);backdrop-filter:blur(18px)}
}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:var(--sans);font-weight:500;font-size:14.5px;padding:12px 20px;border-radius:11px;
  cursor:pointer;border:1px solid transparent;
  transition:transform .16s var(--ease),background .2s,border-color .2s}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--signal);color:#04211d;font-weight:600}
.btn-primary:hover{background:#19d6bb}
.btn-ghost{border-color:var(--border);color:var(--paper);background:rgba(18,24,31,.6);backdrop-filter:blur(6px)}
.btn-ghost:hover{border-color:var(--signal)}
.btn svg{width:17px;height:17px;flex:none}
.btn-lg{padding:16px 26px;font-size:16px;border-radius:13px}

/* ---------- reveal ----------
   Scoped to .js on <html>. The hidden state is opt-in, not the default, so a
   script that never arrives — blocked, timed out, thrown — leaves the page
   readable instead of leaving eighteen blocks at opacity:0 forever. The head
   sets .js immediately (no flash) and strips it again if site.js never checks in. */
.js .rv{opacity:0;transform:translateY(16px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.js .rv.in{opacity:1;transform:none}
.js .rv.d1{transition-delay:.1s}.js .rv.d2{transition-delay:.2s}.js .rv.d3{transition-delay:.3s}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* ---------- hero ---------- */
.hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden}
.hero-photo{position:absolute;inset:-4%;background-size:cover;background-position:center 44%;
  background-image:url("../img/hero-riders.jpg");will-change:transform}
.hero-grade{position:absolute;inset:0;
  background:
    linear-gradient(to top,var(--carbon) 3%,rgba(11,15,20,.72) 30%,rgba(11,15,20,.18) 62%,rgba(11,15,20,.55) 100%),
    linear-gradient(90deg,rgba(11,15,20,.82) 0%,rgba(11,15,20,.25) 52%,rgba(11,15,20,0) 80%)}
/* anchored to the hero's lower band so it reads as road at every aspect ratio */
.hero-route{position:absolute;left:0;right:0;bottom:0;top:auto;height:44%;opacity:.75;z-index:2;pointer-events:none}
.hero-route path{fill:none;stroke:var(--signal);stroke-width:2;stroke-linecap:round;
  filter:drop-shadow(0 0 7px var(--signal-glow));stroke-dasharray:2000;stroke-dashoffset:2000;
  animation:draw 3.2s var(--ease) .6s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.hero-route .wp{opacity:0;animation:fade .6s var(--ease) forwards}
.hero-route .wp.w1{animation-delay:2.1s}
.hero-route .wp.w2{animation-delay:3.1s}
@keyframes fade{to{opacity:1}}
/* padding-block ONLY. A `padding` shorthand here silently resets the horizontal
   gutter that .wrap sets on this same element — invisible at 1240px, but at
   375px it puts the headline, the buttons and the beta line against the glass. */
.hero-in{position:relative;z-index:4;padding-block:130px 78px}
.hero h1{font-size:clamp(42px,7.2vw,92px);font-weight:600;letter-spacing:-.04em;max-width:13ch}
.hero .lede{color:var(--muted);font-weight:300;font-size:clamp(16px,1.55vw,19.5px);
  max-width:45ch;margin-top:24px;line-height:1.58}
.hero .cta-row{display:flex;gap:13px;flex-wrap:wrap;margin-top:34px;align-items:center}
.hero .micro{font-family:var(--mono);font-size:11.5px;color:var(--dim);letter-spacing:.06em;margin-top:18px}
.fu{opacity:0;transform:translateY(22px);animation:fadeup .9s var(--ease) forwards}
.f1{animation-delay:.1s}.f2{animation-delay:.26s}.f3{animation-delay:.42s}.f4{animation-delay:.58s}
@keyframes fadeup{to{opacity:1;transform:none}}
.scrollcue{position:absolute;right:var(--gutter);bottom:34px;z-index:4;font-family:var(--mono);
  font-size:10px;letter-spacing:.2em;color:var(--dim);text-transform:uppercase;
  display:flex;align-items:center;gap:11px;opacity:0;animation:fadeup .8s 1.4s forwards}
.scrollcue .l{width:32px;height:1px;background:currentColor;animation:cue 1.9s var(--ease) infinite}
@keyframes cue{0%,100%{transform:scaleX(.35);opacity:.4;transform-origin:right}
               50%{transform:scaleX(1);opacity:1;transform-origin:right}}

/* ---------- problem ---------- */
.problem{background:var(--carbon2);border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft)}
.p-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;margin-top:56px}
.stack{position:relative;height:400px;display:grid;place-items:center}
.msg{position:absolute;font-size:13.5px;background:var(--surface);border:1px solid var(--border);
  border-radius:13px 13px 13px 4px;padding:10px 14px;color:var(--muted);white-space:nowrap;
  box-shadow:0 14px 34px -18px rgba(0,0,0,.8);
  transition:transform 1.1s var(--ease),opacity .85s var(--ease)}
.msg b{color:var(--paper);font-weight:500}
.stack.done .msg{opacity:0;transform:translate(var(--tx,0),var(--ty,0)) scale(.62)}
.one-ride{position:absolute;width:330px;opacity:0;transform:translateY(22px) scale(.95);
  transition:opacity .9s .55s var(--ease),transform .9s .55s var(--ease)}
.stack.done .one-ride{opacity:1;transform:none}

/* the transformation — vague talk becomes a real plan */
.becomes .from{font-family:var(--mono);font-size:clamp(13.5px,1.5vw,16px);color:var(--dim);
  display:flex;align-items:center;gap:12px;letter-spacing:.01em}
.becomes .from .ln{flex:0 0 28px;height:1px;background:var(--border)}
.becomes .to{font-size:clamp(25px,3.3vw,40px);font-weight:600;letter-spacing:-.028em;
  line-height:1.08;margin-top:14px;max-width:14ch}
.becomes .bd{color:var(--muted);font-weight:300;font-size:17.5px;line-height:1.62;max-width:40ch;margin-top:20px}
.becomes .bd b{color:var(--paper);font-weight:500}

/* ---------- ride card (mirrors Rc2RideCard) ---------- */
.rcard{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.rcard .ph{height:132px;position:relative;overflow:hidden;background:var(--surface2)}
.rcard .ph img{width:100%;height:100%;object-fit:cover;object-position:center}
.rcard .bd{padding:15px 16px 16px}
.rcard h3{font-weight:600;font-size:18px;letter-spacing:-.01em;margin:0}
.rcard .sub{font-size:13.5px;color:var(--muted);margin-top:4px}
.rcard .row{display:flex;gap:15px;align-items:center;margin-top:11px;font-size:13.5px;color:var(--paper);flex-wrap:wrap}
.rcard .row .n{font-family:var(--mono);font-weight:600}
.rcard .row .u{font-family:var(--mono);color:var(--muted);font-size:12px}
.rcard .riders{display:flex;align-items:center;gap:11px;margin-top:13px}
.rcard .rl{font-size:13px;color:var(--muted)}
.rcard .join{display:block;background:var(--signal);color:#04211d;font-weight:600;font-size:14.5px;
  text-align:center;padding:12px;border-radius:11px;margin-top:13px}

/* monogram avatars — the app has no rider photos, and inventing them would fake a capability */
.mono-av{display:flex}
.mono-av span{width:28px;height:28px;border-radius:50%;background:var(--surface2);border:1px solid var(--border);
  margin-left:-8px;display:grid;place-items:center;font-family:var(--mono);font-size:11px;color:var(--muted)}
.mono-av span:first-child{margin-left:0}

/* ---------- story ---------- */
.story-in{display:grid;grid-template-columns:1fr 380px;gap:56px;align-items:start;margin-top:16px}
.step{min-height:76vh;display:flex;flex-direction:column;justify-content:center;padding:24px 0}
.step .ix{font-family:var(--mono);font-size:12px;letter-spacing:.14em;color:var(--dim);text-transform:uppercase}
.step h3{font-size:clamp(28px,3.5vw,46px);margin-top:13px}
.step p{color:var(--muted);font-weight:300;font-size:18px;line-height:1.62;margin:18px 0 0;max-width:40ch}
.step .chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}
.step .chips span{font-family:var(--mono);font-size:11.5px;color:var(--muted);
  border:1px solid var(--border);border-radius:999px;padding:7px 13px}
.sticky{position:sticky;top:0;height:100vh;display:flex;align-items:center;justify-content:center}
/* the step dots exist only for the phone carousel; desktop has the pinned rail */
.dots{display:none}
.rail{position:absolute;left:-34px;top:50%;transform:translateY(-50%);height:260px;width:2px;background:var(--border)}
.rail .fill{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--signal);
  transform:scaleY(0);transform-origin:top;transition:transform .5s var(--ease);box-shadow:0 0 8px var(--signal-glow)}
.rail .st{position:absolute;left:-4px;width:10px;height:10px;border-radius:50%;
  background:var(--surface2);border:1px solid var(--border);transition:.4s}
.rail .st.on{background:var(--signal);border-color:var(--signal);box-shadow:0 0 9px var(--signal-glow)}

/* phone — sized by viewport height so the device never outgrows the fold */
.phone{position:relative;width:min(268px,calc((74vh - 20px) / 2.144 + 18px));
  border-radius:40px;border:1px solid var(--border);background:#04070a;padding:9px;
  box-shadow:0 60px 140px -55px rgba(0,0,0,.95),0 0 0 1px rgba(0,194,168,.06)}
.pscreen{position:relative;border-radius:34px;overflow:hidden;background:var(--carbon);aspect-ratio:9/19.3}
.pshot{position:absolute;inset:0;opacity:0;transform:scale(1.015);
  transition:opacity .55s var(--ease),transform .55s var(--ease)}
.pshot.on{opacity:1;transform:none}
/* contain, never cover — a UI screenshot must never be cropped. The letterbox is
   invisible because the app's own ground is the same carbon as the screen. */
.pshot img{width:100%;height:100%;object-fit:contain;object-position:center;background:var(--carbon)}
.shotnote{font-family:var(--mono);font-size:10.5px;color:var(--dim);text-align:center;margin-top:16px;letter-spacing:.05em}

/* the Ride step: designed nav view carrying the real turn instrument */
.navview{position:absolute;inset:0;background:linear-gradient(165deg,#0e1a26,#080d12)}
.navview .nmap{position:absolute;inset:0}
.navview .nmap svg{width:100%;height:100%}
.navview .ngrid{position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size:34px 34px}
.navview .turn{position:absolute;top:10px;left:10px;right:10px;border-radius:14px;overflow:hidden;border:1px solid var(--border)}
.navview .foot{position:absolute;left:10px;right:10px;bottom:12px;display:flex;flex-direction:column;gap:9px}
.navview .rng{background:rgba(18,24,31,.9);border:1px solid var(--border);border-radius:12px;
  padding:10px;text-align:center;backdrop-filter:blur(6px)}
.navview .rng b{font-family:var(--mono);font-size:17px;font-weight:600}
.navview .rng span{display:block;font-family:var(--mono);font-size:8.5px;letter-spacing:.2em;color:var(--dim);margin-top:2px}
.navview .offr{display:flex;align-items:center;justify-content:center;gap:8px;background:rgba(46,204,113,.12);
  border:1px solid rgba(46,204,113,.34);color:var(--good);border-radius:11px;padding:9px;
  font-family:var(--mono);font-size:10.5px}
.navview .offr .d{width:6px;height:6px;border-radius:50%;background:var(--good);box-shadow:0 0 7px var(--good)}
.rp{fill:none;stroke:var(--signal);stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 7px var(--signal-glow))}

/* ---------- offline ---------- */
.offline{background:var(--carbon2);border-top:1px solid var(--border-soft)}
.off-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.bars{display:flex;align-items:flex-end;gap:5px;height:32px;margin-bottom:22px}
.bars i{width:9px;background:var(--border);border-radius:2px;display:block}
.bars i:nth-child(1){height:32%}.bars i:nth-child(2){height:55%}
.bars i:nth-child(3){height:78%}.bars i:nth-child(4){height:100%}
.offline.in .bars i{animation:sigdrop 2.8s var(--ease) infinite}
.offline.in .bars i:nth-child(1){animation-delay:0s}.offline.in .bars i:nth-child(2){animation-delay:.18s}
.offline.in .bars i:nth-child(3){animation-delay:.36s}.offline.in .bars i:nth-child(4){animation-delay:.54s}
@keyframes sigdrop{0%,55%{background:var(--muted)}66%,100%{background:var(--border)}}
.offcard{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:26px}
.offcard .h{display:flex;align-items:center;gap:13px}
.offcard .ic{width:46px;height:46px;border-radius:13px;background:rgba(46,204,113,.13);
  color:var(--good);display:grid;place-items:center;flex:none}
.offcard .ic svg{width:24px;height:24px}
.offcard h3{font-weight:600;font-size:18px;margin:0}
.offcard .s{font-family:var(--mono);font-size:11.5px;color:var(--good);margin-top:2px}
.offrows{margin-top:20px;display:flex;flex-direction:column;gap:12px}
.offrows .r{display:flex;align-items:flex-start;gap:12px;font-size:14.5px;color:var(--muted);font-weight:300}
.offrows .r b{color:var(--paper);font-weight:500}
.offrows .ck{width:19px;height:19px;border-radius:50%;background:rgba(46,204,113,.15);
  color:var(--good);display:grid;place-items:center;flex:none;margin-top:3px}
.offrows .ck svg{width:11px;height:11px}
.honest{margin-top:18px;padding-top:16px;border-top:1px solid var(--border-soft);
  font-size:13.5px;color:var(--dim);font-weight:300}
.honest b{color:var(--muted);font-weight:500}

/* ---------- breather ---------- */
.breather{position:relative;min-height:84svh;display:flex;align-items:center;overflow:hidden}
/* holds the parallax transform; the photo itself is a real <img loading="lazy">
   inside it. As a CSS background it was 159KB fetched on page load for a section
   seven screens down — a background-image can never be lazy. */
.br-photo{position:absolute;inset:-4%;will-change:transform}
.br-photo img{width:100%;height:100%;object-fit:cover;object-position:center 50%}
.br-grade{position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(11,15,20,.93) 0%,rgba(11,15,20,.55) 42%,rgba(11,15,20,.08) 100%),
             linear-gradient(to top,rgba(11,15,20,.7),rgba(11,15,20,0) 40%)}
/* px, not ch: `ch` would resolve against this element's inherited 16px rather
   than the 56px display child, collapsing the measure to one word a line */
.quote{position:relative;z-index:2;max-width:min(580px,86%)}
.quote .q{font-size:clamp(28px,4.4vw,56px);font-weight:600;letter-spacing:-.03em;line-height:1.05}
.quote .q em{font-style:normal;color:var(--ride)}
.quote .a{font-family:var(--mono);font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--muted);margin-top:24px}

/* ---------- shared ride ---------- */
.shared{background:var(--carbon2);border-top:1px solid var(--border-soft)}
.sh-grid{display:grid;grid-template-columns:420px 1fr;gap:56px;align-items:center;margin-top:44px}
.flow{display:flex;align-items:center;gap:11px;font-family:var(--mono);font-size:11.5px;
  color:var(--muted);flex-wrap:wrap;margin-top:26px}
.flow .n{border:1px solid var(--border);border-radius:8px;padding:8px 12px;background:var(--surface)}
.flow .n.hl{border-color:var(--signal);color:var(--signal)}
.flow .a{color:var(--dim)}
.browser{border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--surface);
  box-shadow:0 40px 90px -45px rgba(0,0,0,.8)}
.browser .bar{display:flex;align-items:center;gap:7px;padding:11px 14px;
  border-bottom:1px solid var(--border);background:var(--surface2)}
.browser .bar .d{width:9px;height:9px;border-radius:50%;background:var(--border);flex:none}
/* min-width:0 is the one that matters. flex:1 with overflow:hidden still can't
   shrink a flex item below its min-content width, so the unbreakable URL forced
   this block 18px past the gutter on a phone. */
.browser .url{margin-left:8px;font-family:var(--mono);font-size:11px;color:var(--muted);
  background:var(--carbon);border:1px solid var(--border);border-radius:7px;padding:6px 11px;
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.browser .url b{color:var(--signal)}
.browser .bb{padding:18px}

/* ---------- still being built (mirrors Rc2RowGroup) ---------- */
.rowgroup{border:1px solid var(--border);border-radius:16px;overflow:hidden;
  background:var(--surface);margin-top:38px;max-width:780px}
.rowgroup .r{display:flex;gap:22px;align-items:flex-start;padding:22px 24px;border-bottom:1px solid var(--border-soft)}
.rowgroup .r:last-child{border-bottom:0}
.rowgroup .rt{flex:1;min-width:0}
.rowgroup h3{font-size:17.5px;font-weight:600;letter-spacing:-.012em;margin:0}
.rowgroup p{font-size:14.5px;color:var(--muted);font-weight:300;margin:7px 0 0;max-width:50ch;line-height:1.58}
.soon{font-family:var(--mono);font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--dim);
  border:1px solid var(--border);border-radius:999px;padding:6px 12px;white-space:nowrap;flex:none;margin-top:3px}

/* ---------- download band ---------- */
.download{position:relative;overflow:hidden;padding:130px 0;text-align:center}
.dl-grade{position:absolute;inset:0;background:radial-gradient(110% 90% at 50% 55%,rgba(11,15,20,.55),rgba(11,15,20,.97))}
.dl-glow{position:absolute;inset:0;background:radial-gradient(50% 45% at 50% 45%,rgba(253,90,0,.13),transparent 70%)}
.dl-map{position:absolute;inset:0;opacity:.5}
.dl-map svg{width:100%;height:100%}
.dl-in{position:relative;z-index:3;max-width:660px;margin:0 auto}
.download h2{font-size:clamp(34px,5.4vw,70px);letter-spacing:-.034em}
.download .p{color:var(--muted);font-weight:300;font-size:18.5px;margin:20px auto 0;max-width:40ch}
.dl-cta{display:flex;gap:13px;justify-content:center;flex-wrap:wrap;margin-top:34px}
.dl-note{margin-top:24px;font-size:13.5px;color:var(--dim);font-weight:300;max-width:46ch;
  margin-inline:auto;line-height:1.6}
.dl-note b{color:var(--muted);font-weight:500}
.dl-spec{font-family:var(--mono);font-size:11px;color:var(--dim);letter-spacing:.1em;margin-top:14px}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--border);padding:62px 0 46px}
.foot-top{display:flex;justify-content:space-between;gap:44px;flex-wrap:wrap}
.foot-brand{max-width:36ch}
.foot-brand p{color:var(--dim);font-size:13.5px;line-height:1.6;margin:16px 0 0;font-weight:300}
.foot-cols{display:flex;gap:58px;flex-wrap:wrap}
.foot-col h3{font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--dim);margin:0 0 14px}
.foot-col a{display:block;color:var(--muted);font-size:14px;margin-bottom:10px;transition:color .2s}
.foot-col a:hover{color:var(--signal)}
.foot-rt{height:2px;margin:42px 0 22px;position:relative;background:var(--border);border-radius:2px}
.foot-rt .fl{position:absolute;left:0;top:0;height:100%;width:42%;background:var(--signal);
  border-radius:2px;box-shadow:0 0 9px var(--signal-glow)}
.foot-rt::after{content:"";position:absolute;left:42%;top:-4px;width:10px;height:10px;
  border-radius:50%;background:var(--ride);transform:translateX(-50%)}
.foot-legal{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;
  font-family:var(--mono);font-size:11px;color:var(--dim)}

/* ==========================================================================
   SUB PAGES  (/download, /support, /privacy, /terms, 404)
   ========================================================================== */
.page-head{border-bottom:1px solid var(--border-soft);
  background:radial-gradient(120% 130% at 82% 0%,#101a24,var(--carbon) 62%);padding:150px 0 56px}
.page-head h1{font-size:clamp(32px,5vw,58px);letter-spacing:-.032em}
.page-head .lede{color:var(--muted);font-weight:300;font-size:clamp(16px,1.5vw,19px);
  margin-top:18px;max-width:52ch;line-height:1.6}
.page{padding:64px 0 100px}
.narrow{max-width:760px}

.prose h2{font-size:24px;margin:44px 0 0}
.prose h3{font-size:18px;margin:30px 0 0}
.prose p{color:var(--muted);font-weight:300;font-size:16px;line-height:1.72;margin:14px 0 0;max-width:68ch}
.prose ul{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;max-width:68ch}
.prose li{color:var(--muted);font-weight:300;font-size:16px;line-height:1.65;padding-left:19px;position:relative}
.prose li::before{content:"";position:absolute;left:0;top:10px;width:6px;height:6px;border-radius:50%;background:var(--border)}
.prose b,.prose strong{color:var(--paper);font-weight:500}
.prose a{color:var(--signal);text-decoration:underline;text-underline-offset:3px}
/* a button inside prose is still a button — the link rule above must not win */
.prose a.btn{text-decoration:none;color:var(--paper)}
.prose a.btn-primary{color:#04211d}

/* ---------- on this page ----------
   Privacy runs nine phone screens over thirteen sections and Terms is the same
   shape. Without this a rider looking for one answer thumbs the whole document. */
.toc{margin-top:28px;border:1px solid var(--border-soft);border-radius:14px;
  background:var(--surface);padding:18px 20px}
.toc h2{font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.14em;
  text-transform:uppercase;color:var(--dim);margin:0 0 4px}
.toc ol{margin:0;padding:0;list-style:none;
  columns:2;column-gap:28px}
/* the toc sits inside .prose, whose li rule adds a bullet and an indent */
.toc li{break-inside:avoid;padding-left:0}
.toc li::before{content:none}
.toc a{display:block;color:var(--muted);font-size:14.5px;font-weight:300;
  padding:9px 0;text-decoration:none;border-bottom:1px solid var(--border-soft);
  transition:color .2s}
.toc li:last-child a{border-bottom:0}
.toc a:hover{color:var(--signal)}
/* scroll-margin so a jump doesn't land the heading under the fixed nav */
.prose h2[id],.prose h3[id]{scroll-margin-top:calc(var(--nav-h) + 16px)}

@media (max-width:640px){
  .toc ol{columns:1}
  .toc a{padding:12px 0;font-size:15px}   /* 45px target */
}

/* the file card — names the download instead of hiding it behind a button */
.filecard{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:26px;margin-top:8px}
.filecard .ft{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}
.filecard .fi{width:52px;height:52px;border-radius:14px;background:rgba(0,194,168,.12);
  color:var(--signal);display:grid;place-items:center;flex:none}
.filecard .fi svg{width:26px;height:26px}
.filecard h2{font-size:20px;margin:0;font-weight:600}
.filemeta{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:10px;font-family:var(--mono);font-size:12px;color:var(--dim)}
.filemeta b{color:var(--muted);font-weight:500}
.filecard .fcta{margin-top:22px;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
/* the note beside the button is a sentence, so it reads in the reading face.
   It was mono at 11.5px and broke across "how to / install it" on a phone. */
.fnote{font-size:14px;color:var(--dim);font-weight:300;line-height:1.5;max-width:34ch}
/* The divider only. Prose lives here in the page's reading face — the mono
   treatment and word-break:break-all belong to a hash, and a hash only.
   Sentences inherited both and split mid-word ("so w / e") on a phone. */
.hashline{margin-top:16px;padding-top:14px;border-top:1px solid var(--border-soft);
  font-size:14.5px;color:var(--muted);font-weight:300;line-height:1.62;max-width:56ch}
.hashline b{color:var(--paper);font-weight:500}
.hashline.hash{font-family:var(--mono);font-size:11px;color:var(--dim);
  word-break:break-all;line-height:1.7;font-weight:400;max-width:none}
.hashline.hash b{color:var(--muted);font-weight:500}

/* numbered install steps — the sequence genuinely carries information */
.steps{counter-reset:s;margin-top:22px;display:flex;flex-direction:column;gap:14px}
.stepitem{display:flex;gap:16px;background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:18px 20px}
.stepitem::before{counter-increment:s;content:counter(s);font-family:var(--mono);font-size:12px;
  font-weight:600;color:var(--signal);background:rgba(0,194,168,.1);border-radius:50%;
  width:28px;height:28px;display:grid;place-items:center;flex:none}
.stepitem h3{font-size:16px;margin:0;font-weight:600}
.stepitem p{color:var(--muted);font-weight:300;font-size:14.5px;line-height:1.6;margin:6px 0 0;max-width:60ch}

.callout{background:var(--surface);border:1px solid var(--border);border-radius:14px;
  padding:18px 20px;margin-top:24px;font-size:14.5px;color:var(--muted);font-weight:300;line-height:1.62}
.callout b{color:var(--paper);font-weight:500}
.callout .lb{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--signal);display:block;margin-bottom:8px}
.callout.warn .lb{color:var(--caution)}

.draft{border:1px dashed var(--caution);border-radius:14px;padding:18px 20px;margin-top:24px;
  font-size:14.5px;color:var(--muted);font-weight:300;line-height:1.62;background:rgba(245,166,35,.05)}
.draft .lb{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--caution);display:block;margin-bottom:8px}
.draft b{color:var(--paper);font-weight:500}
.draft-inline{color:var(--caution);font-family:var(--mono);font-size:13px}

.centered{text-align:center;padding:170px 0 130px}
.centered h1{font-size:clamp(34px,5.5vw,64px)}
.centered p{color:var(--muted);font-weight:300;font-size:18px;margin:18px auto 0;max-width:42ch}
.centered .cta{margin-top:32px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:980px){
  /* minmax(0,1fr), not 1fr. A bare `1fr` is minmax(auto,1fr), and that auto
     minimum is the item's min-content width — so one wide descendant pushes the
     whole column past the container and the section leaks over the gutter. */
  .p-grid,.off-grid,.sh-grid{grid-template-columns:minmax(0,1fr);gap:44px}
  .scrollcue{font-size:12px}
  /* 56px between the device, the cards and the dots is a desktop rhythm; on a
     phone the three read as one control and want to sit closer together */
  .story-in{grid-template-columns:1fr;gap:26px}

  /* ---------- four steps, on a phone ----------
     The pinned device is a desktop idiom: it needs a second column to sit in.
     Forced into one column it has to overlay the text, which needs a fading
     mask, and a fading mask means step text scrolling THROUGH the device and
     its caption. Translucent text over a photo reads as a bug, not a style.

     So on a phone the device stops being sticky. It sits still above the steps,
     and the steps become a snap-scrolling rail of cards beneath it. Nothing
     overlaps anything, so there is nothing to mask and nothing to see through. */
  .sticky{position:static;height:auto;order:-1;z-index:auto;
    background:none;padding:0 0 18px;margin-bottom:0}
  .phone{width:min(150px,36vw)}
  .shotnote{margin-top:11px}
  .rail{display:none}

  .steprail{
    display:flex;
    gap:14px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    /* full-bleed so a card can peek past the gutter — that peek is the whole
       affordance. scroll-padding keeps the snapped card on the gutter line. */
    margin-inline:calc(var(--gutter) * -1);
    padding-inline:var(--gutter);
    scroll-padding-inline:var(--gutter);
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .steprail::-webkit-scrollbar{display:none}
  .steprail:focus-visible{outline:2px solid var(--signal);outline-offset:4px;border-radius:18px}

  .step{
    /* an explicit peek beats a percentage: 44px of the next card always shows,
       at every screen width, which is the entire affordance */
    flex:0 0 calc(100% - 34px);
    min-height:auto;
    scroll-snap-align:start;
    background:var(--surface);
    border:1px solid var(--border-soft);
    border-radius:18px;
    padding:22px 20px 24px;
    justify-content:flex-start;
  }
  /* The rail runs out of scroll before the last card can reach the start line,
     so ask for the end instead of a position it can never hold. Same place it
     lands either way — this just stops the browser chasing an impossible snap. */
  .steprail .step:last-child{scroll-snap-align:end}
  .step p{font-size:16px;max-width:none}
  .step h3{font-size:26px}
  .step .chips{margin-top:18px}

  /* ---------- dots ---------- */
  .dots{display:flex;justify-content:center;gap:4px;margin-top:0}
  .dots a{
    display:flex;align-items:center;justify-content:center;
    width:34px;height:44px;                 /* 44px tall: a real target, not a 6px dot */
    border-radius:10px;
  }
  .dots a span{                              /* the label is for screen readers */
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip-path:inset(50%);white-space:nowrap;
  }
  .dots a i{
    display:block;width:7px;height:7px;border-radius:50%;
    background:var(--border);
    transition:background .25s var(--ease),transform .25s var(--ease);
  }
  .dots a[aria-current="true"] i{background:var(--signal);transform:scale(1.5);
    box-shadow:0 0 8px var(--signal-glow)}
  .dots a:hover i{background:var(--muted)}
  .sh-grid > div:first-child{order:2}
  .br-grade{background:linear-gradient(to top,rgba(11,15,20,.95),rgba(11,15,20,.35))}
  /* a landscape photo in a tall viewport must scale hugely to cover — shorten
     the hero so the aspect mismatch, and therefore the crop, stays sensible */
  .hero{min-height:86svh}
  /* 820px instead of 1280px: 67KB instead of 178KB. It sits behind a scrim at
     under 400 CSS px — a phone was downloading the desktop plate for nothing. */
  .hero-photo{background-position:center 40%;background-image:url("../img/hero-riders-820.jpg")}
  .breather{min-height:72svh}
  .page-head{padding:120px 0 48px}

  /* the horizontal scrim is a desktop device: it darkens the left third where a
     desktop text column sits and reaches transparent at 80%. Phone copy runs the
     full width, so the end of every line landed on bare sunset. Flat wash here. */
  .hero-grade{
    background:
      linear-gradient(to top,var(--carbon) 3%,rgba(11,15,20,.78) 32%,rgba(11,15,20,.5) 66%,rgba(11,15,20,.66) 100%),
      linear-gradient(90deg,rgba(11,15,20,.5),rgba(11,15,20,.5))}

  /* --- tap targets ---
     Text links were 21px tall with a 10px gap: under the 24px WCAG 2.5.8 floor
     and far under Android's 48dp. Padding does it without moving anything. */
  .foot-col a{padding:12px 0;margin-bottom:0}
  .foot-legal a{display:inline-block;padding:11px 0}
  .wm{padding:12px 0}
  .nav-in{gap:12px}
  .nav .btn{margin-left:auto}
}

@media (max-width:560px){
  /* --nav-h stays 82px: the nav's padding and font don't change at this
     breakpoint, so neither does its height. Measured, not assumed. */
  :root{--gutter:20px}
  .sec{padding:82px 0}
  .stack{height:350px}
  .one-ride{width:290px}
  .hero-in{padding-bottom:56px}
  .scrollcue{display:none}
  /* keep the route clear of the beta line at narrow widths */
  .hero-route{height:22%;opacity:.6}
  .download{padding:90px 0}
  .page{padding:48px 0 76px}

  /* the device is no longer pinned (see the carousel block above); it just sits
     above the cards, so it only has to be big enough to read, not small enough
     to leave room for text scrolling past it */
  .phone{width:min(146px,38vw)}
  .sticky{padding:0 0 16px}
  .step{padding:20px 18px 22px}
  .step h3{font-size:24px}

  /* open every sub-page on its actual content rather than a screen of air */
  .page-head{padding:92px 0 32px}

  /* --- type floor ---
     Nothing that carries meaning goes under 12px. Contrast was never the
     problem here (5.15:1 at worst); size was. Text inside the phone mock is
     deliberately left alone — that is a picture of an app, like a screenshot. */
  .hero .micro{font-size:12.5px}
  .shotnote,.closer,.dl-spec,.hashline.hash,.soon,
  .callout .lb,.draft .lb,.foot-legal,
  .step .chips span,.flow,.browser .url,.quote .a,
  .offcard .s,.mono-av span,.foot-col h3{font-size:12px}
  .foot-col h3{letter-spacing:.14em}
}

/* --- short viewport (a phone held sideways) ---
   The hero was 151% of a 360px-tall window, so both buttons sat below the fold,
   and the pinned phone was 136% — the how-it-works section could not be seen at
   all. Height-based, not width-based: this is about the fold, not the layout. */
@media (max-height:520px) and (max-width:980px){
  .hero{min-height:0}
  /* budgeted against a 360px window: 84 nav clearance + headline + lede + the
     button row + the beta line has to land inside the fold, or a rider who
     rotates the phone sees a headline and no way to act on it. */
  .hero-in{padding-block:84px 20px}
  .hero h1{font-size:clamp(26px,4.4vw,36px);max-width:20ch}
  .hero .lede{margin-top:10px;font-size:15px;line-height:1.45;max-width:60ch}
  .hero .cta-row{margin-top:16px}
  .hero .micro{margin-top:10px}
  .hero .btn-lg{padding:12px 20px;font-size:15px}
  .hero-route{height:30%}
  .breather{min-height:0;padding:64px 0}
  .sec{padding:64px 0}
  .page-head{padding:92px 0 32px}

  /* unpin the device entirely: pinned, it was taller than the window it was
     pinned inside. Scrolling past it is better than never getting past it. */
  .sticky{position:static;height:auto;padding:8px 0 16px}
  .phone{width:min(124px,26vh)}
  .step{padding:24px 0}

  .nav.has-menu .nav-links{max-height:calc(100svh - var(--nav-h))}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .rv,.fu,.scrollcue{opacity:1!important;transform:none!important}
  .hero-route path{stroke-dashoffset:0!important}
  .hero-route .wp{opacity:1!important}
}
