/* Roost MX — marketing site. Brand kit shared with the timing + booking apps:
   ink ground, teal for timing/live, roost-dust orange for action, Funnel Display
   headlines, Inter body, Bebas Neue plates, JetBrains Mono for lap times + prices. */

:root {
  --ink: #0a0c11;
  --ink-2: #13161d;
  --ink-3: #1a1f29;
  --line: #262c37;
  --line-2: #333b49;
  --text: #eef2f7;
  --dim: #97a2b3;
  --teal: #00a6cb;
  --teal-bright: #00c2e0;
  --teal-soft: rgba(0, 194, 224, 0.14);
  --orange: #ff6a1a;
  --orange-2: #e85a0f;
  --paper: #f4f6f9;
  --paper-2: #ffffff;
  --paper-line: #dde3ec;
  --paper-text: #101319;
  --paper-dim: #566072;
  --ok: #35d07f;
  --r: 12px;
  --r-lg: 18px;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --display: 'Funnel Display', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --plate: 'Bebas Neue', 'Funnel Display', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--dim); max-width: 34em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #180a02; padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 8px; z-index: 50; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1; white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn--fill { background: var(--orange); color: #180a02; }
.btn--fill:hover { background: var(--orange-2); }
.btn--line { border-color: var(--line-2); color: var(--text); }
.btn--line:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.btn--teal { border-color: var(--teal); color: var(--teal-bright); }
.btn--teal:hover { background: var(--teal-soft); }
.paper .btn--line { border-color: #c6cfdb; color: var(--paper-text); }
.paper .btn--line:hover { border-color: var(--teal); color: #00799a; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 17, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav__brand img { height: 34px; width: auto; }
.nav__brand-suffix { font-family: var(--plate); font-size: 1.15rem; letter-spacing: 0.12em; color: var(--orange); transform: translateY(1px); }
/* nowrap is the whole trick: without it every two-word label broke over two
   lines and the bar read as a wall of stacked text. */
.nav__links { display: flex; align-items: center; gap: 1.35rem; margin-left: 1.25rem; font-size: 0.9rem; color: var(--dim); white-space: nowrap; }
/* Each link carries its own rule that grows from the left on hover and stays put
   for the section you are actually in — on a page this long, "where am I" is
   worth more than another button. */
.nav__links a { position: relative; padding: 0.35rem 0; font-weight: 500; letter-spacing: 0.01em; transition: color 140ms ease; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal-bright); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--text); }
.nav__links a:hover::after, .nav__links a:focus-visible::after, .nav__links a.is-here::after { transform: scaleX(1); }
.nav__links a.is-here { color: var(--text); }
/* The Garage app is a different product, not a sixth section of this page. */
.nav__other { margin-left: 0.35rem; padding-left: 1.5rem; border-left: 1px solid var(--line-2); color: var(--dim); }
.nav__other::after { display: none; }
.nav__other:hover { color: var(--orange); }
.nav__cta { margin-left: auto; display: flex; gap: 0.6rem; }
.nav__cta .btn { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
.nav__menu { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.nav__menu svg { display: block; margin: auto; }
@media (max-width: 1120px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .nav.is-open .nav__links, .nav.is-open .nav__cta {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
    position: absolute; left: 0; right: 0; top: 68px; padding: 1.2rem var(--gutter);
    background: var(--ink-2); border-bottom: 1px solid var(--line); margin: 0;
  }
  .nav.is-open .nav__cta { top: auto; position: static; padding-top: 0; }
  .nav.is-open .nav__links { padding-bottom: 0.4rem; }
  .nav.is-open { background: var(--ink-2); }
  .nav.is-open .nav__links { font-size: 1.05rem; }
  .nav.is-open .nav__panel { display: block; position: absolute; left: 0; right: 0; top: 68px; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.2rem; }
}
.nav__panel { display: contents; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.5rem; }
.hero__copy .lead { max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__proof { color: var(--dim); font-size: 0.92rem; max-width: 34em; border-left: 2px solid var(--teal); padding-left: 0.9rem; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } }

/* live timing board — the one thing on the page allowed to move */
.board {
  color: var(--text); /* stays a dark screen even on the paper bands */
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 194, 224, 0.06) inset;
  overflow: hidden; font-size: 0.95rem;
}
.board__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.board__live { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--plate); letter-spacing: 0.14em; font-size: 0.95rem; color: var(--ok); }
.board__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6); animation: ping 1.8s ease-out infinite; }
.board__race { color: var(--text); font-weight: 600; }
.board__lap { margin-left: auto; font-family: var(--mono); color: var(--dim); font-size: 0.85rem; }
.board__lap b { color: var(--text); font-weight: 700; }
.board__rows { list-style: none; margin: 0; padding: 0.35rem 0; }
.board__row { display: grid; grid-template-columns: 2.6rem 3rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.62rem 1rem; }
.board__row + .board__row { border-top: 1px solid rgba(38, 44, 55, 0.7); }
.board__row.is-leader { background: linear-gradient(90deg, rgba(0, 194, 224, 0.10), transparent 60%); box-shadow: inset 3px 0 0 var(--teal-bright); }
.board__pos { font-family: var(--plate); font-size: 1.35rem; color: var(--orange); letter-spacing: 0.04em; }
.is-leader .board__pos { color: var(--teal-bright); }
.board__name { font-weight: 600; }
.board__name small { display: block; font-weight: 400; color: var(--dim); font-size: 0.78rem; }
.board__time { font-family: var(--mono); font-size: 0.95rem; color: var(--text); text-align: right; }
.board__time small { color: var(--dim); font-size: 0.78rem; display: block; }
.board__foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; color: var(--dim); }
.board__foot b { color: var(--teal-bright); font-weight: 600; }
/* Rider numbers wear the SAME MX number board the timing app draws: the outline
   SVG from apps/web/src/assets, masked over currentColor at the app's own 0.65.
   A hand-drawn hexagon here would be a different product in the screenshots. */
.plate {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.34rem; flex-shrink: 0; color: var(--text);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plate::before {
  content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0.65;
  -webkit-mask: url('/assets/img/rider-number-badge.svg') center / contain no-repeat;
  mask: url('/assets/img/rider-number-badge.svg') center / contain no-repeat;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(53, 208, 127, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.motion .board__row { opacity: 0; animation: rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
.board__time.is-fresh { color: var(--teal-bright); transition: color 900ms ease; }
@media (prefers-reduced-motion: reduce) { .board__live::before { animation: none; } .motion .board__row { animation: none; opacity: 1; } }

/* ---- bands ---- */
.band { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.band + .band { border-top: 1px solid var(--line); }
.paper { background: var(--paper); color: var(--paper-text); }
.paper .lead, .paper .dim { color: var(--paper-dim); }
.paper + .paper { border-top: 1px solid var(--paper-line); }
.band__head { display: grid; gap: 0.9rem; max-width: 40em; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.dim { color: var(--dim); }

/* the race day, in order */
.day { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.step:nth-child(even) .step__copy { order: 2; }
.step__copy { display: grid; gap: 0.8rem; align-content: start; }
.step__time { font-family: var(--mono); font-size: 0.85rem; color: var(--teal); }
.paper .step__time { color: #00799a; }
.step__copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.step__copy p { color: var(--dim); max-width: 30em; }
.paper .step__copy p { color: var(--paper-dim); }
.step__copy ul { margin: 0.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; color: var(--paper-dim); font-size: 0.95rem; }
.step__copy li { padding-left: 1.1rem; position: relative; }
.step__copy li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.step__art { min-width: 0; }
@media (max-width: 860px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__copy { order: 0; }
}

/* screenshots */
.shot { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.paper .shot { border-color: var(--paper-line); box-shadow: 0 18px 50px rgba(16, 24, 40, 0.14); }
.phone {
  width: min(280px, 70vw); margin: 0 auto; border-radius: 34px; padding: 10px; background: #0f1218;
  border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.phone img { border-radius: 26px; display: block; width: 100%; height: auto; }

/* Hero: a real screenshot of the live board in a phone, rather than a mock-up of
   one. It is the product's own screen, so it earns the space the board had. */
.hero__phone { display: grid; justify-items: center; gap: 0.9rem; }
.hero__phone .phone { width: min(300px, 78vw); }
.hero__phone-cap { color: var(--dim); font-size: 0.82rem; text-align: center; max-width: 26em; }
@media (prefers-reduced-motion: no-preference) {
  .hero__phone { animation: rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: 160ms; }
}
/* entries composition: the class board wide, the phone tucked over its corner */
.art-entries { position: relative; padding-bottom: 2rem; }
.art-entries .shot { margin-right: 6rem; }
.art-entries .phone { position: absolute; right: 0; bottom: 0; width: 190px; padding: 7px; border-radius: 26px; }
.art-entries .phone img { border-radius: 20px; }
@media (max-width: 560px) { .art-entries .shot { margin-right: 0; } .art-entries { padding-bottom: 0; } .art-entries .phone { position: static; margin: 1rem auto 0; } }

/* paper artefacts: sign-on sheet + results sheet */
.sheet { background: var(--paper-2); color: var(--paper-text); border: 1px solid var(--paper-line); border-radius: var(--r); box-shadow: 0 18px 50px rgba(16, 24, 40, 0.14); overflow-x: auto; }
.sheet__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem 0.7rem; border-bottom: 3px solid var(--teal); }
.sheet__title { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.sheet__meta { font-size: 0.78rem; color: var(--paper-dim); }
.sheet table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.86rem; }
.sheet th { text-align: left; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); padding: 0.5rem 0.8rem; background: #e6f6fa; border-bottom: 1px solid var(--paper-line); }
.sheet td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--paper-line); }
.sheet td + td, .sheet th + th { border-left: 1px solid var(--paper-line); }
.sheet .n { font-family: var(--mono); font-size: 0.82rem; }
.sheet .pts { font-family: var(--mono); font-weight: 700; text-align: right; }
.sheet .blank td { height: 2.2rem; }
.sheet .wc { display: inline-block; margin-left: 0.4rem; padding: 0 0.35rem; border: 1px solid #b8860b; border-radius: 999px; color: #8a6508; font-size: 0.62rem; letter-spacing: 0.1em; vertical-align: middle; }
.plate--paper { color: var(--paper-text); width: 2.25rem; height: 2.03rem; font-size: 0.72rem; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.plan { border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; align-content: start; }
.plan--ink { background: var(--ink-2); border: 1px solid var(--line); color: var(--text); }
.plan--paper { background: var(--paper-2); color: var(--paper-text); border: 1px solid var(--paper-line); }
.plan__who { font-size: 0.9rem; color: var(--dim); }
.plan--paper .plan__who { color: var(--paper-dim); }
.plan__price { font-family: var(--mono); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--teal-bright); }
.plan--paper .plan__price { color: #00799a; }
.plan__price small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.95rem; color: var(--dim); letter-spacing: 0; margin-top: 0.3rem; }
.plan--paper .plan__price small { color: var(--paper-dim); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.plan li { padding-left: 1.3rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.45rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan__note { font-size: 0.85rem; color: var(--dim); }
.plan--paper .plan__note { color: var(--paper-dim); }
.worked { display: grid; grid-template-columns: repeat(3, auto); gap: 0.6rem 1.4rem; font-family: var(--mono); font-size: 0.85rem; color: var(--dim); }
.worked b { color: var(--text); font-weight: 600; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* kit */
.kit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.kit__img { display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, rgba(0, 166, 203, 0.16), transparent 75%); }
.kit__img img { width: min(360px, 80%); }
.kit__list { display: grid; gap: 1.1rem; }
.kit__item { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; align-items: start; }
.kit__item .n { font-family: var(--plate); font-size: 2rem; color: var(--teal-bright); line-height: 1; }
.kit__item h3 { font-size: 1.05rem; }
.kit__item p { color: var(--dim); font-size: 0.95rem; margin-top: 0.25rem; }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr; } }

/* generic feature grid — used by "what you run" and the timing detail band.
   Three up on a desktop, two on a tablet, one on a phone; the cards are text
   only, so they need a rule rather than a box to separate them. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2.5rem; }
.cards > div { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.cards h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cards p { color: var(--dim); font-size: 0.95rem; line-height: 1.6; }
/* The paper band flips the ground to near-white, so the dark-theme dim grey has
   to flip with it — the same override .step__copy and .lead already carry. */
.paper .cards p { color: var(--paper-dim); }
.paper .cards > div { border-top-color: var(--paper-line); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }

.kit__link { color: var(--teal-bright); white-space: nowrap; }
.kit__link:hover { text-decoration: underline; }

/* riders strip */
.riders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; }
.riders h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.riders p { color: var(--dim); font-size: 0.95rem; }
@media (max-width: 800px) { .riders { grid-template-columns: 1fr; } }

.riders__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* cta band */
.cta { background: linear-gradient(135deg, #0f1a22, var(--ink-2)); border-top: 1px solid var(--line); }
.cta__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; }
.cta__in .lead { max-width: 32em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
@media (max-width: 800px) { .cta__in { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--dim); font-size: 0.9rem; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot__brand img { width: 150px; }
.foot__brand p { margin-top: 0.9rem; max-width: 26em; }
.foot h4 { margin: 0 0 0.7rem; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot a:hover { color: var(--text); }
.foot__base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; }
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__in { grid-template-columns: 1fr; } }

/* ---- garage page ---- */
.ghero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.ghero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ghero__copy { display: grid; gap: 1.4rem; }
.ghero__id { display: flex; align-items: center; gap: 1rem; }
.ghero__id img { width: 64px; height: 64px; border-radius: 16px; }
.ghero__id span { font-family: var(--plate); letter-spacing: 0.12em; color: var(--orange); font-size: 1.1rem; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store { display: inline-grid; padding: 0.55rem 1.1rem; border-radius: 10px; background: var(--text); color: var(--ink); line-height: 1.15; }
.store small { font-size: 0.66rem; font-weight: 500; opacity: 0.75; }
.store b { font-size: 0.98rem; font-weight: 700; }
.paper .store { background: var(--ink); color: var(--text); }
@media (max-width: 900px) { .ghero__in { grid-template-columns: 1fr; } }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.feat + .feat { border-top: 1px solid var(--paper-line); }
.feat:nth-child(even) .feat__copy { order: 2; }
.feat__copy { display: grid; gap: 0.8rem; }
.feat__copy h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.feat__copy p { color: var(--paper-dim); max-width: 30em; }
.feat__tag { font-family: var(--plate); letter-spacing: 0.12em; font-size: 0.95rem; color: #00799a; }
.feat__tag--pro { color: var(--orange-2); }
.feat__art { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; justify-items: center; }
.feat__art .phone { width: 100%; max-width: 230px; box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18); }
.ghero .phone { width: min(250px, 66vw); }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } .feat:nth-child(even) .feat__copy { order: 0; } }

/* legal on paper */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.legal__index { position: sticky; top: 88px; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.legal__index a { padding: 0.45rem 0.7rem; border-left: 2px solid var(--paper-line); color: var(--paper-dim); }
.legal__index a:hover, .legal__index a.is-active { border-left-color: var(--teal); color: var(--paper-text); }
.legal__docs { display: grid; gap: clamp(2.5rem, 5vw, 4rem); max-width: 72ch; }
.doc { scroll-margin-top: 92px; }
.doc > header { margin-bottom: 1.25rem; padding-bottom: 0.9rem; border-bottom: 3px solid var(--teal); }
.doc > header h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.doc .meta { margin-top: 0.4rem; font-size: 0.85rem; color: var(--paper-dim); }
.doc .badge { display: inline-block; padding: 0 0.5rem; border-radius: 999px; background: var(--ink); color: var(--text); font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.6; margin-right: 0.3rem; }
.doc h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.doc h4 { font-family: var(--body); font-size: 1rem; font-weight: 700; margin: 1.1rem 0 0.35rem; }
.doc p, .doc li { color: #2a3140; font-size: 0.97rem; }
.doc p + p { margin-top: 0.7rem; }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.doc li + li { margin-top: 0.3rem; }
.doc a { color: #00799a; text-decoration: underline; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0.8rem 0; }
.doc th, .doc td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.doc th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); }
.doc strong { color: var(--paper-text); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal__index { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .legal__index a { border-left: 0; border-bottom: 2px solid var(--paper-line); } .legal__index a.is-active { border-bottom-color: var(--teal); } }


/* ── Photography ───────────────────────────────────────────────────────────
   Real race-day pictures, in three places only. The page's job is to be read,
   so a photo either carries a section or it is noise. Each one sits under a
   scrim heavy enough that the text keeps its contrast whatever the picture
   does underneath. */
.hero, .cta { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .cta::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-size: cover; background-repeat: no-repeat;
}
.hero::after, .cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* Heaviest on the left where the words are, lifting to the right so the
     roost and the gate stay visible behind the phone and the buttons. */
  background:
    radial-gradient(70% 60% at 78% 24%, rgba(0, 166, 203, 0.22), transparent 70%),
    linear-gradient(100deg, rgba(10, 12, 17, 0.95) 0%, rgba(10, 12, 17, 0.88) 46%, rgba(10, 12, 17, 0.52) 100%),
    linear-gradient(180deg, rgba(10, 12, 17, 0.6) 0%, rgba(10, 12, 17, 0) 34%, rgba(10, 12, 17, 0.82) 100%);
}
.hero::before { background-image: url("/assets/img/bg-roost.webp"); background-position: 62% 40%; }
.cta::before { background-image: url("/assets/img/bg-startline.webp"); background-position: center 58%; }
.cta::after {
  background:
    radial-gradient(70% 80% at 84% 50%, rgba(0, 166, 203, 0.14), transparent 70%),
    linear-gradient(100deg, rgba(10, 12, 17, 0.96) 0%, rgba(10, 12, 17, 0.93) 55%, rgba(10, 12, 17, 0.85) 100%),
    linear-gradient(180deg, rgba(10, 12, 17, 0.5), rgba(10, 12, 17, 0) 42%, rgba(10, 12, 17, 0.72));
}
@media (max-width: 800px) {
  /* The copy runs full width on a phone, so the scrim has to be flat. */
  .hero::after, .cta::after {
    background: linear-gradient(180deg, rgba(10, 12, 17, 0.93), rgba(10, 12, 17, 0.96));
  }
}

/* Full-bleed strip between two bands — a breath, and the only place on the page
   that shows a whole gate at once. */
.strip { position: relative; margin: 0; height: clamp(200px, 30vw, 420px); overflow: hidden; border-block: 1px solid var(--line); }
.strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.strip__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 0 1.1rem; color: var(--text); font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(10, 12, 17, 0) 0%, rgba(10, 12, 17, 0.55) 34%, rgba(10, 12, 17, 0.94) 76%);
}
.strip__cap .wrap { display: block; }
.strip__cap b { color: var(--teal-bright); font-weight: 600; }

/* Riders band: the cards keep the left, a portrait picture holds the right. */
.riders__with-photo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3rem); }
.riders__with-photo .riders { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.2rem; }
.riders__with-photo .riders > div:last-child { grid-column: 1 / -1; }
.riders__photo { position: relative; min-height: 340px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.riders__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .riders__with-photo { grid-template-columns: 1fr; }
  .riders__with-photo .riders { grid-template-columns: 1fr; }
  .riders__photo { display: none; }
}
