/* ==========================================================================
   GoTeens — marketing site
   Palette: brand green + white + light grey + deep-green darks (no red)
   Type:   Baloo 2 (display / logotype) · Nunito (body)
   ========================================================================== */

:root {
  /* Brand green */
  --primary: #186922;         /* main brand green — buttons/accents on light */
  --primary-bright: #21ad35;  /* brighter green — accents/buttons on dark */
  --primary-dark: #07280c;    /* deepest green — text on bright-green buttons */
  --bg-dark: #0b330f;         /* dark section background */
  --bg-darker: #031204;       /* footer / deepest section */
  --bg-light: #efefef;        /* light section background */
  --white: #ffffff;
  --text: #333333;
  --text-secondary: #585858;

  /* Derived */
  --line: rgba(51, 51, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 18px 40px -24px rgba(3, 18, 4, 0.5);
  --tint: rgba(24, 105, 34, 0.09);      /* primary @ ~9% */
  --tint-bright: rgba(33, 173, 53, 0.16);
  --phone-bezel: #06210a;

  /* Type */
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 22px;
  --section-pad: clamp(4rem, 9vw, 7.5rem);
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
section[id], #top, #apply { scroll-margin-top: 80px; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: normal;            /* long Greek labels must wrap, not overflow */
  max-width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn--primary {                    /* on LIGHT backgrounds — white on green passes AA (6.8:1) */
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 24px -14px rgba(24, 105, 34, 0.85);
}
.btn--primary:hover { background: #14591d; transform: scale(1.04); }
.btn--primary:active { transform: scale(0.98); }
.btn--bright {                     /* on DARK backgrounds — dark-green on bright-green passes AA (5.4:1) */
  background: var(--primary-bright);
  color: var(--primary-dark);
  box-shadow: 0 12px 26px -14px rgba(33, 173, 53, 0.6);
}
.btn--bright:hover { background: #27c23d; transform: scale(1.04); }
.btn--bright:active { transform: scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); transform: scale(1.04); }
.btn--ghost:active { transform: scale(0.98); }
.btn--lg { font-size: 1.12rem; padding: 1.05rem 2.1rem; min-height: 56px; }

.play-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.35rem; font-weight: 700; font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.play-link__icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.play-link:hover { color: var(--white); border-bottom-color: var(--primary-bright); }

/* Availability badge (Android now / iOS soon) — on dark backgrounds */
.availability { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.35rem; }
.availability--center { justify-content: center; }
.availability__badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; line-height: 1;
}
.availability__badge--live { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.availability__badge--soon { color: rgba(255, 255, 255, 0.66); border: 1px dashed rgba(255, 255, 255, 0.32); }
.availability__icon { width: 18px; height: 18px; }

/* ------------------------------ Logotype -------------------------------- */
/* Every logotype instance sits on a dark background → "Teens" uses the bright green. */
.logotype { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1; display: inline-block; }
.logo-go { color: var(--white); }
.logo-teens { color: var(--primary-bright); }
.logotype--hero { font-size: clamp(2.6rem, 8vw, 4.25rem); margin-bottom: 1.1rem; }
.logotype--footer { font-size: 1.5rem; }

/* ------------------------------- Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 20, 6, 0.95);   /* solid, no backdrop blur (blur = scroll jank) */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.site-header .logotype { font-size: 1.6rem; }

.site-nav { display: none; align-items: center; gap: 1.5rem; margin-left: auto; margin-right: 1.4rem; }
.site-nav a {
  font-family: var(--font-display); font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--primary-bright); }
.site-nav__cta {
  color: var(--primary-dark) !important;
  background: var(--primary-bright);
  padding: 0.45rem 1rem !important; border-radius: 999px; border: 0 !important;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.site-nav__cta:hover { background: #27c23d; transform: translateY(-1px); }

.lang-toggle { display: inline-flex; align-items: center; gap: 0.15rem; }
.lang-sep { color: rgba(255, 255, 255, 0.35); font-weight: 700; }
.lang-btn {
  background: transparent; border: 0; color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 0.35rem 0.6rem; border-radius: 999px; min-height: 40px;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.lang-btn:hover { color: var(--white); }
.lang-btn[aria-pressed="true"] { color: var(--primary-dark); background: var(--primary-bright); }

/* ============================ ROUTE LAYER =============================== */
main { position: relative; }
/* Overlay above section backgrounds (z 1), below header (z 100). The line is
   static (painted once); only the small pin moves — on the GPU via transform. */
.route-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.route-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.route-guide { stroke: var(--primary-bright); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 9 12; opacity: 0.5; }
.route-pin { display: none; }   /* route is shown statically; the travelling pin is off for smoothness */
@media (max-width: 767px) {
  .route-guide { stroke-width: 2; opacity: 0.4; }
}

/* Section content sits above the (background) but the route overlays it */
.hero, .how, .parents, .drivers, .roadmap, .city, .final { position: relative; z-index: 1; }

/* ============================== HERO =================================== */
.hero {
  background: var(--bg-dark); color: var(--white); overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3.5rem, 7vw, 5rem);
}
.hero__map { position: absolute; inset: 0; z-index: 0; opacity: 0.55; }
.hero__map-svg { width: 100%; height: 100%; }
.hero__roads path { fill: none; stroke: #ffffff; stroke-opacity: 0.06; stroke-width: 2; }
.hero__road-dots circle { fill: var(--primary-bright); opacity: 0.4; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 20% 30%, rgba(11,51,15,0) 40%, rgba(3,18,4,0.6) 100%);
}
.hero__inner { position: relative; z-index: 2; display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero__copy { max-width: 34rem; }
.hero h1 { font-size: clamp(2.15rem, 6.2vw, 3.7rem); font-weight: 800; letter-spacing: -0.015em; }
.hero__sub { margin-top: 1.1rem; font-size: clamp(1.02rem, 2.4vw, 1.22rem); color: rgba(255, 255, 255, 0.85); max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }

.hero__visual { position: relative; min-height: 420px; display: flex; justify-content: center; align-items: center; }
.hero__route { position: absolute; width: min(92%, 460px); top: 50%; left: 50%; transform: translate(-50%, -52%); z-index: 0; }
.hero__roo { position: absolute; z-index: 3; width: clamp(96px, 26%, 150px); bottom: -6%; right: 2%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4)); }

.scroll-hint {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0; width: max-content;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72);
}
.scroll-hint__chevron { width: 22px; height: 22px; }

/* ========================= PHONE FRAME COMPONENT ======================== */
.phone { width: 240px; }
.phone__frame {
  position: relative; padding: 8px; background: var(--phone-bezel); border-radius: 34px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}
.phone__frame::after { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); z-index: 2; }
.phone__screen { position: relative; aspect-ratio: 49 / 100; border-radius: 27px; overflow: hidden; background: var(--bg-light); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }

.hero__visual .phone { position: absolute; }
/* --front sits on the RIGHT and on top; --back on the LEFT and behind. */
.phone--back  { z-index: 1; transform: translate(-26%, -6%) rotate(-4deg); }
.phone--front { z-index: 2; transform: translate(26%, 8%) rotate(6deg); }
.phone--sm { width: clamp(200px, 60vw, 250px); }
.phone--xs { width: clamp(150px, 38vw, 180px); }

/* ============================ SHARED HEADS ============================== */
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--center { max-width: 46rem; margin-inline: auto; text-align: center; }
.block-head { max-width: 40rem; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; }
.eyebrow--light { color: var(--primary-bright); }
.eyebrow--light::before { background: var(--primary-bright); }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2, .parents__intro h2, .drivers__intro h2, .block-head h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin-top: 0.9rem; }
.lead { margin-top: 1rem; font-size: clamp(1.02rem, 2.2vw, 1.18rem); color: var(--text-secondary); max-width: 34rem; }
.lead--center { margin-inline: auto; }

/* ============================ HOW IT WORKS ============================= */
.how { background: var(--bg-light); padding-block: var(--section-pad); }
.steps { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5rem); }
.step { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.step__media { display: flex; justify-content: center; }
.step__illo { width: clamp(200px, 55vw, 280px); filter: drop-shadow(0 22px 26px rgba(3, 18, 4, 0.14)); }
.step__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--primary); opacity: 0.32; line-height: 1; margin-bottom: 0.4rem; }
.step__text h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.step__text p { margin-top: 0.6rem; color: var(--text-secondary); font-size: 1.05rem; max-width: 30rem; }

/* "Any QR format works" note under step 3 */
.qr-formats {
  display: flex; gap: 0.85rem; align-items: flex-start; max-width: 30rem;
  margin-top: 1.1rem; padding: 0.9rem 1rem; border-radius: 14px;
  background: var(--tint); border: 1px solid rgba(24, 105, 34, 0.18);
}
.qr-formats__icons { display: inline-flex; gap: 0.3rem; color: var(--primary); flex: none; }
.qr-formats__icons svg { width: 20px; height: 20px; }
.qr-formats p { margin-top: 0; font-size: 0.92rem; }

/* =============================== PARENTS =============================== */
.parents { background: var(--white); padding-block: var(--section-pad); }
.parents__inner { display: flex; flex-direction: column; gap: clamp(3.5rem, 8vw, 6rem); }
.parents__intro { max-width: 40rem; }
.parents__illo { width: clamp(150px, 30vw, 210px); margin-top: 1.6rem; filter: drop-shadow(0 22px 26px rgba(3, 18, 4, 0.14)); }

.trust-cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card { background: var(--bg-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--card-shadow); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--primary); margin-bottom: 1rem; }
.card__icon--plain { box-shadow: none; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; }
.card p { margin-top: 0.4rem; color: var(--text-secondary); font-size: 0.98rem; }
.card--wide { display: grid; gap: 1.4rem; align-items: center; }
.card__phone { justify-self: center; }

.parents__cta { display: flex; justify-content: center; }

/* 4a — Two ways to ride */
.compare { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.compare-card {
  position: relative; background: var(--bg-light); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--card-shadow);
}
.compare-card--featured { border: 2px solid var(--primary); background: var(--white); box-shadow: 0 24px 48px -26px rgba(24, 105, 34, 0.5); }
.pill {
  position: absolute; top: -0.85rem; left: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--primary); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em;
  padding: 0.35rem 0.85rem; border-radius: 999px;
}
.compare-card__title { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.compare-card__body { margin-top: 0.7rem; color: var(--text-secondary); }
.ticks { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-weight: 600; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.5 3.5L18 8' fill='none' stroke='%23186922' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.goodtoknow { display: flex; gap: 0.8rem; margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--tint); border: 1px solid rgba(24, 105, 34, 0.18); }
.goodtoknow__icon { color: var(--primary); flex: none; }
.goodtoknow__icon svg { width: 22px; height: 22px; }
.goodtoknow__title { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 0.98rem; }
.goodtoknow__body { margin-top: 0.2rem; font-size: 0.92rem; color: var(--text-secondary); }
.twoways__reassure { margin-top: 1.6rem; font-weight: 600; color: var(--text); max-width: 44rem; }

/* 4c — A ride that fits every child */
.fits { display: grid; gap: 1.2rem; align-items: center; }
.fits__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--tint); color: var(--primary); }
.fits__icon svg { width: 34px; height: 34px; }
.fits__text h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.fits__text p { margin-top: 0.9rem; color: var(--text-secondary); max-width: 42rem; font-size: 1.05rem; }
.fits__note { font-size: 0.97rem; padding-left: 0.95rem; border-left: 3px solid rgba(24, 105, 34, 0.28); }

/* 4e — Payments */
.pay { max-width: 46rem; }
.pay__head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.pay h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.pay__body { margin-top: 1rem; color: var(--text-secondary); font-size: 1.05rem; }
.pay__points { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.pay__points li { position: relative; padding-left: 1.7rem; color: var(--text); }
.pay__points li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.5 3.5L18 8' fill='none' stroke='%23186922' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

/* 4b — Fewer cars, calmer roads (+ 3→1 merge) */
.fewer { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
.fewer__text h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.fewer__text p { margin-top: 0.9rem; color: var(--text-secondary); max-width: 40rem; font-size: 1.05rem; }
/* Three cars, with the middle one prominent and the outer two receding —
   a calm, static "many → fewer" cue (no animation, for smoothness). */
.merge { display: flex; align-items: center; justify-content: center; gap: clamp(0.8rem, 4vw, 1.8rem); width: 100%; max-width: 320px; margin-inline: auto; min-height: 90px; }
.merge__car { width: clamp(52px, 14vw, 68px); color: var(--primary); flex: none; }
/* Static "many → fewer" read: the middle car stands out, the outer two recede. */
.merge__car--1, .merge__car--3 { opacity: 0.25; transform: scale(0.82); }
.merge__car--2 { z-index: 2; }

/* Referral callout */
.referral {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: clamp(1.3rem, 3vw, 1.9rem); border-radius: var(--radius);
  background: var(--tint); border: 1px solid rgba(24, 105, 34, 0.22);
}
.referral__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--white); color: var(--primary); flex: none; }
.referral__icon svg { width: 26px; height: 26px; }
.referral h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
.referral p { margin-top: 0.5rem; color: var(--text-secondary); max-width: 40rem; }

/* 4d — Crossover band (full-width; the loudest element between the two stories) */
.crossover {
  position: relative; isolation: isolate; overflow: hidden;
  margin-block: clamp(3.5rem, 8vw, 6rem);
  padding-block: clamp(3rem, 7vw, 4.75rem);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 58%, #05200a 100%);
  color: var(--white);
}
/* Slow drifting glow — transform-only, so it composites on the GPU and costs
   nothing per frame. The dashed route motif behind it is static. */
.crossover__glow {
  position: absolute; z-index: 0; top: -45%; left: -22%; width: 58%; height: 190%;
  background: radial-gradient(closest-side, rgba(33, 173, 53, 0.30), rgba(33, 173, 53, 0) 70%);
  animation: crossDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes crossDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(105%, 5%, 0); }
}
.crossover__route { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.crossover__inner { position: relative; z-index: 1; display: grid; gap: 1.6rem; align-items: center; }
.crossover h2 { font-size: clamp(2.05rem, 5.2vw, 3.4rem); margin-top: 0.7rem; }
.crossover p { margin-top: 0.9rem; color: rgba(255, 255, 255, 0.86); max-width: 42rem; font-size: clamp(1.05rem, 2.2vw, 1.2rem); }
.crossover .btn { justify-self: start; }

/* =============================== DRIVERS ============================== */
.drivers { background: var(--bg-dark); color: var(--white); padding-block: var(--section-pad); }
.drivers__inner { display: flex; flex-direction: column; gap: clamp(3.5rem, 8vw, 6rem); }
.drivers__intro { max-width: 40rem; }
.drivers .lead { color: rgba(255, 255, 255, 0.82); }
.drivers__illo { width: clamp(180px, 40vw, 260px); margin-top: 1.6rem; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.45)); }
.drivers__cta { margin-top: 1.6rem; }
.driver-cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card--dark { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); box-shadow: none; }
.card--dark .card__icon { background: var(--tint-bright); color: var(--primary-bright); }
.card--dark p { color: rgba(255, 255, 255, 0.75); }

/* 5a — Vetting checklist */
.vetting__intro { max-width: 40rem; }
.vetting__intro h2 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); }
.checklist { margin-top: 1.8rem; display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
.checklist li { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1.1rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); border-radius: 14px; font-weight: 600; }
.checklist__num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-bright); color: var(--primary-dark); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; }
.vetting__close { margin-top: 1.4rem; color: rgba(255, 255, 255, 0.72); font-style: italic; }

/* 5b — Parents make the best drivers */
.pdrivers { max-width: 42rem; }
.pdrivers h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.pdrivers p { margin-top: 0.9rem; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }

/* 5c — Application form */
.apply { background: var(--bg-light); color: var(--text); border-radius: clamp(20px, 3vw, 30px); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.apply__head { max-width: 40rem; margin-bottom: 1.8rem; }
.apply__head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.apply__head p { margin-top: 0.6rem; color: var(--text-secondary); }
.apply-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.field__opt { color: var(--text-secondary); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1.5px solid #cfcfcf; border-radius: 12px; padding: 0.7rem 0.85rem; min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24, 105, 34, 0.18); }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14); }
.field__err { color: #b42318; font-size: 0.85rem; font-weight: 600; min-height: 0; }
.field__err:empty { display: none; }
.field--check { gap: 0.5rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 0.15rem; flex: none; accent-color: var(--primary); }
.check a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.apply-form__submit { position: relative; margin-top: 0.5rem; justify-self: start; }
.apply-form__submit[disabled] { opacity: 0.75; cursor: progress; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; }
.apply-form.is-sending .spinner { display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.apply-form__status { color: #b42318; font-weight: 600; }
.apply-form__status:empty { display: none; }
.apply-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: clamp(2rem, 6vw, 4rem) 1rem; }
/* Must come after the rule above: an author `display` beats the UA's
   [hidden]{display:none}, which is what leaked the success message on load. */
.apply-done[hidden], [hidden] { display: none !important; }
.apply-done__tick { color: var(--primary); }
.apply-done__tick svg { width: 64px; height: 64px; }
.apply-done p { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; max-width: 26rem; }

/* =============================== ROADMAP ============================== */
.roadmap { background: var(--bg-darker); color: var(--white); padding-block: var(--section-pad); }
.rm-track { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.rm-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 1.9rem); display: flex; flex-direction: column; gap: 0.7rem; }
.rm-tag { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 999px; }
.rm-tag--dev { background: var(--primary-bright); color: var(--primary-dark); }
.rm-tag--planned { background: transparent; color: var(--primary-bright); border: 1.5px solid var(--primary-bright); }
.rm-card h3 { font-size: 1.3rem; }
.rm-card p { color: rgba(255, 255, 255, 0.78); }
.rm-card__link { align-self: flex-start; margin-top: auto; color: var(--primary-bright); font-weight: 700; border-bottom: 2px solid transparent; transition: border-color 0.18s ease; }
.rm-card__link:hover { border-bottom-color: var(--primary-bright); }

/* ================================= FAQ ================================ */
.faq { background: var(--bg-light); padding-block: var(--section-pad); }
.faq__groups { display: grid; gap: clamp(2.2rem, 5vw, 3.2rem); max-width: 52rem; margin-inline: auto; }
.faq-group__title { font-size: clamp(1.25rem, 2.8vw, 1.55rem); color: var(--primary); margin-bottom: 0.9rem; }
.faq-list { display: grid; gap: 0.6rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }

.faq-item__h { margin: 0; font: inherit; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px;                       /* comfortably over the 44px tap target */
  padding: 0.95rem 1.15rem; background: none; border: 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35;
  color: var(--text); border-radius: 16px; scroll-margin-top: 90px;
  transition: color 0.18s ease;
}
.faq-q:hover { color: var(--primary); }
.faq-item.is-open > .faq-item__h > .faq-q { color: var(--primary); }
/* Chevron, drawn with borders so there are no extra nodes to paint */
.faq-q::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.28s ease;
}
.faq-item.is-open .faq-q::after { transform: translateY(2px) rotate(-135deg); }

/* Cheap open/close: animate grid-template-rows 0fr → 1fr, never height:auto. */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
/* visibility keeps collapsed answers out of the a11y tree and out of tab order */
.faq-a__inner { overflow: hidden; visibility: hidden; transition: visibility 0.28s; }
.faq-item.is-open .faq-a__inner { visibility: visible; }
.faq-a__inner > * { margin: 0 1.15rem 1.15rem; color: var(--text-secondary); }
.faq-a a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.faq-a__links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; }
/* Unfinished answers — deliberately loud so they are easy to spot before launch */
.faq-todo {
  background: #fff6e5; border: 1px dashed #c98a00; border-radius: 12px;
  padding: 0.8rem 0.95rem; color: #7a5200; font-weight: 600; font-size: 0.93rem;
}

/* =============================== CITY ================================= */
.city { color: var(--white); overflow: hidden; min-height: clamp(360px, 60vh, 560px); display: flex; align-items: flex-end; }
.city__bg { position: absolute; inset: 0; z-index: 0; }
.city__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,18,4,0.92) 12%, rgba(3,18,4,0.5) 55%, rgba(3,18,4,0.4) 100%); }
.city__img { width: 100%; height: 118%; object-fit: cover; object-position: center; }
.city__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 40rem; }
.city__inner h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
.city__inner p { margin-top: 1rem; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: rgba(255, 255, 255, 0.88); }

/* =============================== FINAL ================================ */
.final { background: var(--bg-dark); color: var(--white); padding-block: clamp(4.5rem, 9vw, 7rem); text-align: center; }
.final__inner { position: relative; max-width: 40rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.final__icon { width: 108px; border-radius: 26px; box-shadow: 0 24px 44px -18px rgba(0, 0, 0, 0.7); }
.final__roo { position: absolute; top: -18px; right: clamp(0.5rem, 18%, 6rem); width: clamp(78px, 20vw, 104px); filter: drop-shadow(0 12px 16px rgba(0,0,0,0.45)); }
.final__inner h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin-top: 1.6rem; }
.final__inner p { margin-top: 0.8rem; color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; }
.final .btn { margin-top: 2rem; }

/* =============================== FOOTER =============================== */
.site-footer { background: var(--bg-darker); color: rgba(255, 255, 255, 0.72); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-inner { display: grid; gap: 1.6rem; }
.footer-tagline { margin-top: 0.5rem; font-size: 0.95rem; max-width: 22rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; }
.footer-links a { font-weight: 600; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: color 0.18s ease, border-color 0.18s ease; }
.footer-links a:hover { color: var(--white); border-bottom-color: var(--primary-bright); }
.footer-email { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.95rem; }
.footer-email__addr { color: var(--primary-bright); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.footer-email__addr:hover { color: var(--white); }
.footer-copy { font-size: 0.86rem; color: rgba(255, 255, 255, 0.5); display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ========================= SCROLL REVEAL STATES ======================== */
/* Gated by the .js flag (set in <head>) so no-JS shows everything. A plain CSS
   transition, fired by an IntersectionObserver adding .is-in — light and smooth. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================ CONTENT-VISIBILITY ======================= */
/* Skip rendering work for below-the-fold sections until near the viewport.
   contain-intrinsic-size (auto + estimate) reserves height to avoid jumps. */
.parents { content-visibility: auto; contain-intrinsic-size: auto 2600px; }
.drivers { content-visibility: auto; contain-intrinsic-size: auto 2400px; }
.roadmap { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.faq     { content-visibility: auto; contain-intrinsic-size: auto 2400px; }
.city    { content-visibility: auto; contain-intrinsic-size: auto 520px; }
.final   { content-visibility: auto; contain-intrinsic-size: auto 620px; }

/* ============================ ANIMATIONS ============================== */
/* Only a tiny scroll-cue chevron bob remains (compositor-cheap). Roo is static. */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.scroll-hint__chevron { animation: bob 1.8s ease-in-out infinite; }

/* ============================ RESPONSIVE ============================== */
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .footer-copy { grid-column: 1 / -1; }
  .trust-cards { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .driver-cards { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr 1fr; align-items: start; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .fits { grid-template-columns: auto 1fr; gap: 1.6rem; }
  .fewer { grid-template-columns: 1.2fr 1fr; }
  .crossover__inner { grid-template-columns: 1fr auto; }
  .crossover .btn { justify-self: end; }
  .referral { align-items: center; }
  .rm-track { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

@media (min-width: 768px) {
  .step { grid-template-columns: 1fr 1fr; }
  .step--rev .step__media { order: 2; }
  .step__text { padding-inline: clamp(0.5rem, 2vw, 1.5rem); }
  .driver-cards { grid-template-columns: repeat(3, 1fr); }
  .checklist { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero__visual { min-height: 560px; }
  .phone { width: 260px; }
  .scroll-hint { margin-left: 0; margin-right: auto; }

  .parents__intro { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; max-width: none; }
  .parents__intro .eyebrow, .parents__intro h2, .parents__intro .lead { grid-column: 1; }
  .parents__illo { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: center; }

  .drivers__top { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; align-items: center; }
}

/* On small screens: show one phone in the hero, simplify */
@media (max-width: 899px) {
  .hero__visual .phone--back { display: none; }
  .hero__visual .phone--front { position: relative; transform: rotate(-3deg); }
  .hero__route { display: none; }
  .hero__roo { bottom: -4%; right: 4%; }
}

/* ========================= REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint__chevron { animation: none !important; }
  .btn, .site-nav a, .footer-links a, .play-link { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  /* FAQ toggles instantly; the crossover glow holds still. */
  .faq-a, .faq-a__inner, .faq-q, .faq-q::after { transition: none; }
  .crossover__glow { animation: none; }
}
