/* ── Twisty, twistyrides.com ─────────────────────────────────────────────
   Dark ground, because the route lines are the hero and they only sing
   against it. Style colours are the app's own (app56/src/constants/theme.ts)
   so a rider recognises them before they read a word.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --ink:        #0c0e11;
  --ink-2:      #14171c;
  --ink-3:      #1c2027;
  --paper:      #f2f3f5;
  --paper-dim:  #a8aeb8;
  --paper-mute: #6f7681;
  --line:       #262b33;

  --brand:      #e8590c;
  --brand-lift: #ff6b1f;

  /* riding styles: theme.ts */
  --fastest:     #8c949e;
  --sweepers:    #4d97e0;
  --twisty:      #f59f00;
  --max-twisty:  #ff6b1f;
  --backcountry: #51cf66;

  --wrap: 1180px;
  --r: 16px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 680; letter-spacing: -.028em; line-height: 1.06; }
p { margin: 0 0 1.1em; }
a { color: inherit; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--pad);
  background: var(--brand);
  color: #fff;
  font-size: 16px; font-weight: 620; letter-spacing: -.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 6px 24px -8px rgba(232, 89, 12, .7);
  white-space: nowrap;
}
.btn:hover { background: var(--brand-lift); transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(255, 107, 31, .8); }
.btn:active { transform: translateY(0); }
.btn--sm { --pad: 9px 17px; font-size: 15px; box-shadow: none; }
.btn--lg { --pad: 17px 34px; font-size: 18px; }
.btn--block { display: flex; width: 100%; margin-top: 26px; }

/* Apple's own "Download on the App Store" badge, used as supplied (the
   marketing guidelines require its exact form, a minimum height of 40px and
   clear space around it). Height is fixed; width follows the SVG's ratio. */
.badge { display: inline-block; line-height: 0; transition: transform .2s var(--ease); }
.badge img { display: block; height: 60px; width: auto; }
.badge:hover { transform: translateY(-2px); }

.eyebrow {
  font-size: 13px; font-weight: 640; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}

.tag {
  display: inline-block; margin-top: 12px;
  font-size: 11.5px; font-weight: 680; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(232, 89, 12, .45);
  border-radius: 999px; padding: 3px 10px;
}
.tag--inline { margin-top: 22px; }

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 16px max(22px, calc((100vw - var(--wrap)) / 2));
  transition: background-color .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(12, 14, 17, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700; letter-spacing: -.03em;
  text-decoration: none;
}
.nav__mark { width: 26px; height: 26px; color: var(--brand); flex: none; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 15px; color: var(--paper-dim); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--paper); }
.nav__links .btn { color: #fff; }
@media (max-width: 640px) { .nav__links a:not(.btn) { display: none; } }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 130px 0 0;
  overflow: hidden;
}
/* The map sits to the right of the headline on a wide screen and behind it on
   a narrow one: the routes run north to south, so they want a tall column. */
.hero__map { position: absolute; inset: -3% 2% -3% 42%; }
.hero__map svg { width: 100%; height: 100%; display: block; }
/* Just enough to hold the headline, and no more: the routes are the point,
   so the right-hand side is left almost completely alone. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--ink) 4%, rgba(12,14,17,.9) 24%, rgba(12,14,17,.28) 44%, transparent 58%),
    linear-gradient(to top, var(--ink) 0%, rgba(12,14,17,.35) 14%, transparent 34%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero__map { inset: 0 0 12% 0; opacity: .72; }
  .hero__scrim {
    background:
      linear-gradient(to top, var(--ink) 6%, rgba(12,14,17,.86) 30%, rgba(12,14,17,.3) 62%, transparent 86%);
  }
}
.hero__body { position: relative; padding-bottom: 42px; }
.hero__title {
  font-size: clamp(52px, 11.5vw, 132px);
  letter-spacing: -.045em;
  margin-bottom: 22px;
}
.hero__lede {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.42;
  color: var(--paper-dim);
  max-width: 30ch;
  margin-bottom: 32px;
}
.hero__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__note { font-size: 14px; color: var(--paper-mute); }

/* the five-style ticker under the hero */
.legend {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 0; padding: 0 0 34px;
  width: min(100% - 44px, var(--wrap)); margin-inline: auto;
}
.legend li {
  display: inline-flex; align-items: baseline; gap: 9px;
  border: 1px solid var(--line);
  background: rgba(20, 23, 28, .66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 7px 15px 7px 11px;
  font-size: 14px;
  opacity: 0; transform: translateY(10px);
  animation: rise .55s var(--ease) forwards;
}
.legend .swatch { width: 9px; height: 9px; border-radius: 50%; align-self: center; flex: none; }
.legend .name { font-weight: 620; letter-spacing: -.01em; }
.legend .time { color: var(--paper-mute); font-variant-numeric: tabular-nums; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── generic sections ──────────────────────────────────────────────────── */
.section__title { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 20px; }
.section__sub { font-size: 19px; color: var(--paper-dim); margin-bottom: 46px; }
.section__body { font-size: 17.5px; color: var(--paper-dim); line-height: 1.68; }
.section__body strong, .band__body strong { color: var(--paper); font-weight: 620; }
.muted { color: var(--paper-mute); font-size: 16px; }

.band { padding: clamp(90px, 13vw, 160px) 0; }
.band__title { font-size: clamp(28px, 4.2vw, 46px); margin-bottom: 26px; }
.band__title em { font-style: normal; color: var(--brand); }
.band__body { font-size: clamp(17px, 1.7vw, 20px); color: var(--paper-dim); line-height: 1.62; }
.band--split { background: var(--ink-2); border-block: 1px solid var(--line); }

/* ── five ways in ──────────────────────────────────────────────────────── */
.ways { padding: clamp(70px, 10vw, 120px) 0; }
.ways__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.way {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: 26px 24px 28px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.way:hover { border-color: #39404b; transform: translateY(-3px); }
.way h3 { font-size: 19px; margin-bottom: 9px; }
.way p { font-size: 15.5px; color: var(--paper-mute); line-height: 1.55; margin: 0; }
.way__art { width: 80px; height: 60px; display: block; margin-bottom: 18px; color: var(--brand); overflow: visible; }
.way__art .d { stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.way__art .p { fill: currentColor; }
.way__art .pip { fill: currentColor; }
/* draw-on when the card scrolls in */
.way__art .d { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); }
.is-in .way__art .d { animation: draw 1.1s var(--ease) forwards; }
.way__art .p, .way__art .pip { opacity: 0; }
.is-in .way__art .p, .is-in .way__art .pip { animation: pop .45s var(--ease) forwards; }
.is-in .way__art .p1 { animation-delay: .35s; }
.is-in .way__art .p2 { animation-delay: .6s; }
.is-in .way__art .p3 { animation-delay: .85s; }
.is-in .way__art .pip { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* ── shape it ──────────────────────────────────────────────────────────── */
.shape { padding: clamp(70px, 10vw, 130px) 0; background: var(--ink-2); border-block: 1px solid var(--line); }
.shape__grid { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 880px) { .shape__grid { grid-template-columns: 1fr; gap: 34px; } }
.shape__map { position: relative; }
.shape__map svg { width: 100%; height: auto; display: block; }
.shape__stats {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.shape__stats div { display: flex; flex-direction: column; }
.shape__stats b { font-size: 30px; font-weight: 660; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.shape__stats span { font-size: 14px; color: var(--paper-mute); }
.shape__stats .arrow { font-size: 22px; color: var(--paper-mute); }
.shape__stats div:last-of-type b { color: var(--sweepers); }

/* ── chips ─────────────────────────────────────────────────────────────── */
.chips { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-size: 14.5px; color: var(--paper-dim);
}

/* ── honest ────────────────────────────────────────────────────────────── */
.honest { padding: clamp(70px, 10vw, 130px) 0; }
.honest__list { margin: 40px 0 0; display: grid; gap: 26px; }
.honest__list dt { font-size: 19px; font-weight: 640; letter-spacing: -.02em; margin-bottom: 6px; }
.honest__list dd { margin: 0; color: var(--paper-mute); font-size: 16.5px; line-height: 1.6; }

/* ── PHOTO SLOT A · the road band ───────────────────────────────────────
   Drop a wide landscape in --shot and the whole band comes alive. Until then
   it is a dark band with the line on it, which still reads. */
.roadband {
  position: relative;
  min-height: clamp(360px, 56vh, 620px);
  display: grid; align-items: end;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-3);
}
/* Oversized and pushed off both edges, so the parallax shift below can never
   drag a hard edge into frame. transform only: no layout, no repaint. */
.roadband__frame {
  position: absolute; inset: -5% 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.roadband__img { position: absolute; inset: 0; display: block; }
.roadband__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Bottom-aligned so the near bend (the stretch the route line is fitted to)
     stays in view. It is `bottom` and not a percentage because SVG's
     preserveAspectRatio only offers Min/Mid/Max, and the overlay MUST crop
     exactly the way the photo does or the line slides off the tarmac. */
  object-position: center bottom;
  display: block;
}
/* Pairs with object-position: center bottom above: xMidYMax slice is its
   exact SVG equivalent. Change one without the other and the line drifts. */
.roadband__route { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 899px) { .roadband__route { display: none; } }
.roadband__line {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  filter: drop-shadow(0 0 7px rgba(255, 107, 31, .55));
}
.roadband.is-in .roadband__line {
  transition: stroke-dashoffset 1900ms cubic-bezier(.25, .6, .3, 1) 250ms;
  stroke-dashoffset: 0;
}
.roadband__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,14,17,.94) 4%, rgba(12,14,17,.45) 44%, rgba(12,14,17,.2) 100%);
}
.roadband__body { position: relative; padding: 0 0 clamp(38px, 6vw, 64px); }
.roadband__quote {
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 660; letter-spacing: -.035em; line-height: 1.14;
  margin: 0 0 12px;
}
.roadband__cap { font-size: 14px; color: var(--paper-mute); margin: 0; }

/* ── founder ───────────────────────────────────────────────────────────── */
.founder {
  padding: clamp(80px, 12vw, 150px) 0;
  background:
    radial-gradient(80% 110% at 72% 0%, rgba(232, 89, 12, .13), transparent 62%),
    var(--ink);
  border-top: 1px solid var(--line);
}
.founder__grid {
  display: grid; gap: clamp(32px, 5vw, 60px);
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
}
@media (max-width: 880px) { .founder__grid { grid-template-columns: 1fr; } }

/* The rider and the builder, side by side: that pairing IS the story. */
.founder__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.founder__photos figure { margin: 0; }
.founder__photos figcaption {
  margin-top: 10px; font-size: 12.5px; color: var(--paper-mute);
  letter-spacing: .04em; text-transform: uppercase;
}
.founder__photo {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-size: cover; background-position: center;
  background-color: var(--ink-2);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .95);
}
.founder__photo--bike { background-image: url("/assets/founder-bike.jpg"); }
/* Framed a touch high: he sits in the upper half of that one. */
.founder__photo--desk { background-image: url("/assets/founder-desk.jpg"); background-position: center 32%; }
/* The second photo sits a little lower, so the pair reads as a spread rather
   than a pair of passport shots. */
@media (min-width: 560px) { .founder__photos figure:last-child { transform: translateY(26px); } }
.founder__quote {
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 620; letter-spacing: -.03em; line-height: 1.26;
}
.founder__body { font-size: 17.5px; color: var(--paper-dim); }
.founder__sign { font-size: 15px; color: var(--paper-mute); margin: 0; }

/* ── pricing ───────────────────────────────────────────────────────────── */
.pricing { padding: clamp(70px, 10vw, 130px) 0; background: var(--ink-2); border-block: 1px solid var(--line); }
.tiers { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 900px; margin-inline: auto; }
.tier {
  position: relative;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--ink); padding: 34px 30px 36px;
}
.tier--premium { border-color: rgba(232, 89, 12, .55); background: linear-gradient(180deg, rgba(232,89,12,.07), var(--ink) 46%); }
.tier h3 { font-size: 15px; font-weight: 660; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 14px; }
.tier--premium h3 { color: var(--brand); }
.tier__price { margin: 0 0 4px; }
.tier__price b { font-size: 46px; font-weight: 680; letter-spacing: -.04em; }
.tier__price span { font-size: 17px; color: var(--paper-mute); }
.tier__note { font-size: 15px; color: var(--paper-mute); margin-bottom: 26px; }
.tier__badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 660; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.tier__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tier__list li {
  position: relative; padding-left: 27px;
  font-size: 16px; color: var(--paper-dim); line-height: 1.5;
}
.tier__list li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.tier__list b { color: var(--paper); font-weight: 620; }
.pricing__fine { max-width: 900px; margin: 30px auto 0; font-size: 13.5px; color: var(--paper-mute); text-align: center; line-height: 1.6; }

/* ── closer ────────────────────────────────────────────────────────────── */
.closer { padding: clamp(90px, 13vw, 170px) 0; }
.closer__title { font-size: clamp(30px, 5.4vw, 60px); letter-spacing: -.04em; margin-bottom: 34px; }

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 46px 0 34px; background: var(--ink-2); }
.foot__grid { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.foot__tag { margin: 10px 0 0; font-size: 15px; color: var(--paper-mute); }
.foot__links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot__links a { font-size: 15px; color: var(--paper-dim); text-decoration: none; }
.foot__links a:hover { color: var(--paper); text-decoration: underline; }
.foot__legal { width: min(100% - 44px, var(--wrap)); margin: 34px auto 0; font-size: 13.5px; color: var(--paper-mute); }

/* ── scroll reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── legal / support pages ─────────────────────────────────────────────── */
.doc { padding: 140px 0 100px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.doc .updated { color: var(--paper-mute); font-size: 15px; margin-bottom: 48px; }
.doc h2 { font-size: 22px; margin: 44px 0 14px; letter-spacing: -.02em; }
.doc h3 { font-size: 17.5px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--paper-dim); font-size: 16.5px; line-height: 1.72; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 9px; }
.doc a { color: var(--brand-lift); }
.doc strong { color: var(--paper); font-weight: 620; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--paper-dim); }
.doc th { color: var(--paper); font-weight: 620; }
.doc__wrap { overflow-x: auto; }
/* Placeholders awaiting the founder's answers. Deliberately loud: the site
   must not go live with any of these still rendered. */
.todo {
  color: #ffd43b;
  border: 1px dashed rgba(255, 212, 59, .6);
  border-radius: 6px; padding: 1px 7px;
  font-size: .93em; font-weight: 620; white-space: nowrap;
}
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--ink-2); border-radius: 0 12px 12px 0;
  padding: 20px 24px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }

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