/* CoRoute homepage only (index.html). Tokens come from site.css. Mobile first: base rules are for phones
   (360 px and up), min-width queries add columns. Prefixes: hx (hero), motto, fx (features), hw (how it works),
   px (pricing), hp (shared homepage sections), rv (rider reviews). */

/* ---------- Shared bits ---------- */
.hp-head { max-width: 46rem; }
.hp-head h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
.hp-head > p:not(.eyebrow) { margin-top: var(--sp-16); color: var(--c-text-2); font-size: var(--fs-lead); line-height: var(--lh-snug); }
.hp-head .link-arrow { margin-top: var(--sp-20); }
.hp-split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) {
  .hp-split { grid-template-columns: 1.05fr .95fr; }
  .hp-split--rev > :first-child { order: 2; }
}
/* Reveal on scroll ([data-reveal]) lives in site.css (3.55), so every page shares the same motion. */

/* ---------- Hero: the motto over a live 3D road ---------- */
.hx {
  --hx-ink: var(--c-text);
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  min-height: min(100svh, 920px);
  display: flex; align-items: flex-start;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) 0 0;
}
.hx__scene { position: absolute; inset: 0; z-index: -2; background: var(--c-surface-3); }
.hx__poster, .hero3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero3d__canvas { opacity: 0; transition: opacity 1.1s var(--ease); }
.hx__scene[data-state="live"] .hero3d__canvas { opacity: 1; }
/* Poster colours: the app's light map, or its night palette */
.hx-sky-top { stop-color: #BFDDE4; }
.hx-sky-hor { stop-color: #EEF3F5; }
.hx-m3 { fill: #C9DBD8; }
.hx-m2 { fill: #ADC7C3; }
.hx-m1 { fill: #93B3B0; }
.hx-road { fill: #3E4F5C; }
.hx-route { fill: none; stroke: #0B6E78; stroke-width: 6; stroke-linecap: round; }
.hx-r { stroke: #FFFFFF; stroke-width: 3; }
.hx-r--a { fill: #1565C0; } .hx-r--b { fill: #0B6E78; } .hx-r--c { fill: #C2185B; } .hx-r--d { fill: #9A6A00; } .hx-r--e { fill: #B4541C; }
:root[data-theme="dark"] .hx-sky-top { stop-color: #060B0F; }
:root[data-theme="dark"] .hx-sky-hor { stop-color: #15323A; }
:root[data-theme="dark"] .hx-m3 { fill: #1D2C35; }
:root[data-theme="dark"] .hx-m2 { fill: #1A2730; }
:root[data-theme="dark"] .hx-m1 { fill: #16222A; }
:root[data-theme="dark"] .hx-road { fill: #0A1014; }
:root[data-theme="dark"] .hx-route { stroke: #5CCAD3; }
:root[data-theme="dark"] .hx-r { stroke: #0F171D; }
:root[data-theme="dark"] .hx-r--a { fill: #82B1FF; } :root[data-theme="dark"] .hx-r--b { fill: #5CCAD3; }
:root[data-theme="dark"] .hx-r--c { fill: #FF80AB; } :root[data-theme="dark"] .hx-r--d { fill: #FFD54F; } :root[data-theme="dark"] .hx-r--e { fill: #F0A070; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hx-sky-top { stop-color: #060B0F; }
  :root:not([data-theme="light"]) .hx-sky-hor { stop-color: #15323A; }
  :root:not([data-theme="light"]) .hx-m3 { fill: #1D2C35; }
  :root:not([data-theme="light"]) .hx-m2 { fill: #1A2730; }
  :root:not([data-theme="light"]) .hx-m1 { fill: #16222A; }
  :root:not([data-theme="light"]) .hx-road { fill: #0A1014; }
  :root:not([data-theme="light"]) .hx-route { stroke: #5CCAD3; }
}
/* Legibility: the page colour behind the words, fading out toward the road */
/* Phones: the words sit on the page colour and the road runs underneath them, in its own band. */
.hx { --hx-band: clamp(300px, 70vw, 440px); }
.hx__scene { top: auto; height: calc(var(--hx-band) + 120px); }
.hx__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--c-bg) calc(100% - var(--hx-band) - 120px), color-mix(in srgb, var(--c-bg) 70%, transparent) calc(100% - var(--hx-band) - 40px), transparent calc(100% - var(--hx-band) + 60px)),
    linear-gradient(0deg, var(--c-bg) 0%, transparent 14%);
}
@media (max-width: 899px) { .hx { padding-bottom: var(--hx-band); } }
@media (min-width: 900px) {
  .hx { align-items: center; padding-bottom: clamp(72px, 12vh, 140px); }
  .hx__scene { top: 0; height: auto; }
  .hx__scrim {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--c-bg) 94%, transparent) 0%, color-mix(in srgb, var(--c-bg) 80%, transparent) 34%, transparent 60%),
      linear-gradient(0deg, var(--c-bg) 0%, transparent 16%);
  }
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .hx__scrim { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg) 40%, transparent 70%); }
}
.hx__inner { position: relative; }
.hx__kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: var(--r-full);
  background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 800; color: var(--c-text-2);
}
.hx__kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-light); }
.hx__title {
  margin-top: var(--sp-20); max-width: 11ch;
  font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; color: var(--hx-ink);
}
.hx__title span { display: block; color: var(--c-brand); }
.hx__lead { margin-top: var(--sp-20); max-width: 36rem; font-size: var(--fs-lead); line-height: var(--lh-snug); color: var(--c-text-2); font-weight: 600; }
.hx__cta { display: flex; flex-wrap: wrap; gap: var(--sp-12); margin-top: var(--sp-32); }
.hx__cta .btn--ghost { background: color-mix(in srgb, var(--c-surface) 70%, transparent); }
@media (max-width: 599px) { .hx__lead-more { display: none; } }
.hx__note { margin-top: var(--sp-16); font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-3); }
.hx__live {
  display: inline-flex; align-items: center; gap: 10px; margin-top: var(--sp-20); min-height: 40px; padding: 8px 16px 8px 12px;
  border-radius: var(--r-full); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
  font-size: var(--fs-small); font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums;
}
.hx__pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #2E9E5B; flex: none; }
.hx__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #2E9E5B; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hx__pulse::after { animation: hx-ping 2.4s var(--ease) infinite; }
  @keyframes hx-ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
}
@media (max-width: 420px) {
  .hx__cta .btn { width: 100%; }
}

/* ---------- Motto band ---------- */
.motto { position: relative; margin-top: clamp(-64px, -6vw, -24px); z-index: 1; }
.motto__card {
  display: grid; gap: var(--sp-32); align-items: center; padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-sheet); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) { .motto__card { grid-template-columns: 1.1fr .9fr; gap: var(--sp-48); } }
.motto__words h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
.motto__words h2 span { color: var(--c-safety-ink); }
.motto__words > p:not(.eyebrow) { margin-top: var(--sp-12); color: var(--c-text-2); max-width: 40rem; }
.motto__pillars { display: grid; gap: var(--sp-8); }
.motto__pillars a {
  display: flex; align-items: center; gap: var(--sp-16); min-height: 64px; padding: 12px 16px;
  border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text-2);
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.motto__pillars a:hover { border-color: var(--c-brand); transform: translateX(2px); }
.motto__pillars b { display: block; color: var(--c-text); font-size: 1.0625rem; }
.motto__pillars span:last-child { font-size: var(--fs-small); line-height: 1.35; }
.motto__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--c-brand-light); color: var(--c-brand); }

/* ---------- Live numbers (hidden until the real counts are worth showing; see site.js) ---------- */
.hp-numbers[hidden] { display: none; }
.hp-numbers__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-16); }
.hp-numbers__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: var(--r-full);
  background: var(--c-surface); border: 1px solid var(--c-border); font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--c-text-2);
}
.hp-numbers__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-12); margin-top: clamp(24px, 4vw, 40px); }
@media (min-width: 760px) { .hp-numbers__list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-16); } }
.hp-numbers__list > div {
  position: relative; overflow: hidden; display: flex; flex-direction: column-reverse; gap: 6px; min-width: 0;
  padding: var(--sp-20) var(--sp-20) var(--sp-24); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border);
}
.hp-numbers__list > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-brand); }
.hp-numbers__list dd { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--c-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hp-numbers__list dt { font-size: var(--fs-small); font-weight: 700; color: var(--c-text-2); }
.hp-numbers__note { margin-top: var(--sp-16); }

/* ---------- Features ---------- */
.fx-grid { display: grid; gap: var(--sp-16); margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 640px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fx-card--wide { grid-column: span 2; } }
.fx-card {
  display: flex; flex-direction: column; gap: var(--sp-8); min-width: 0; padding: var(--sp-24);
  border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-border);
  transition: border-color var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
.fx-card:hover { border-color: var(--c-accent-line); box-shadow: var(--shadow-md); }
.fx-card h3 { margin-top: var(--sp-12); font-size: var(--fs-h3); }
.fx-card p { color: var(--c-text-2); font-size: var(--fs-small); line-height: var(--lh-snug); }
.fx-card--sos { background: linear-gradient(160deg, var(--c-red-soft), var(--c-surface) 60%); }
.fx-card--wide h3 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.fx-card--wide p { font-size: var(--fs-body); max-width: 34rem; }
.fx-card__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--c-brand-light); color: var(--c-brand); }
.fx-card__icon .icon { width: 24px; height: 24px; }
.fx-card__icon--sos { background: var(--c-sos); color: #FFFFFF; }
.fx-card__icon--amber { background: var(--c-safety-light); color: var(--c-safety-ink); }
.fx-split { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1024px) { .fx-split { grid-template-columns: .85fr 1.15fr; align-items: start; } .fx-split .hp-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.fx-list { display: grid; gap: var(--sp-12); }
.fx-list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-16); padding: var(--sp-20); border-radius: var(--r-xl); background: var(--c-bg); border: 1px solid var(--c-border); }
.fx-list h3 { font-size: var(--fs-h4); padding-top: 2px; }
.fx-list p { margin-top: 4px; color: var(--c-text-2); font-size: var(--fs-small); line-height: var(--lh-snug); }

/* ---------- Safe (always a night band, like the app's SOS screen) ---------- */
.hp-safe { background: #0F171D; color: #C9D4DB; border-top: 1px solid #2A3842; border-bottom: 1px solid #2A3842; }
.hp-safe h2, .hp-safe h3 { color: #F2F6F8; }
.hp-head--dark > p:not(.eyebrow) { color: #C9D4DB; }
.hp-safe .eyebrow--safety { color: #F0A070; }
.hp-safe__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hp-safe__grid { grid-template-columns: 1.25fr .75fr; } }
.hp-flow { position: relative; display: grid; gap: var(--sp-24); margin-top: clamp(32px, 4vw, 48px); }
.hp-flow__step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: calc(-1 * var(--sp-24)); width: 2px; background: repeating-linear-gradient(180deg, rgba(92, 202, 211, .55) 0 10px, transparent 10px 18px); }
.hp-flow__step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-16); align-items: start; }
.hp-flow__dot { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #1A262F; border: 2px solid #5CCAD3; color: #5CCAD3; }
.hp-flow__dot .icon { width: 22px; height: 22px; }
.hp-flow__dot--sos { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }
.hp-flow h3 { font-size: var(--fs-h4); padding-top: 2px; }
.hp-flow p { color: #C9D4DB; margin-top: 4px; }
.hp-safe__also { margin-top: var(--sp-32); color: #C9D4DB; }
.hp-safe__notice { display: flex; gap: var(--sp-12); align-items: flex-start; margin-top: var(--sp-16); padding: var(--sp-16) var(--sp-20); border-radius: var(--r-lg); background: rgba(200, 16, 46, .14); border: 1px solid rgba(255, 138, 154, .4); }
.hp-safe__notice .icon { width: 22px; height: 22px; color: #FF8A9A; margin-top: 2px; }
.hp-safe__notice p { color: #F2F6F8; }
.hp-safe__notice strong { color: #FFFFFF; }
.hp-safe .link-arrow { color: #5CCAD3; margin-top: var(--sp-16); }
.hp-phone { margin: 0 auto; width: min(100%, 300px); }
.hp-phone__screen {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 20px 24px; text-align: center;
  border-radius: 40px; background: linear-gradient(180deg, #3A0A14, #1A0B10); border: 8px solid #24323B; box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.hp-phone__kicker { display: flex; align-items: center; gap: 6px; color: #FF8A9A; font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.hp-phone__kicker .icon { width: 16px; height: 16px; }
.hp-phone__q { font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; color: #FFFFFF; }
.hp-phone__ring { position: relative; width: 132px; height: 132px; display: grid; place-content: center; color: #FFFFFF; }
.hp-phone__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hp-phone__track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 8; }
.hp-phone__arc { fill: none; stroke: #FF5A6E; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 0; }
.hp-phone__ring b { font-size: 3.25rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.hp-phone__ring small { font-size: .75rem; color: #C9D4DB; }
.hp-phone__btn { width: 100%; display: grid; place-items: center; min-height: 52px; border-radius: 18px; font-weight: 800; }
.hp-phone__btn--ok { background: #1A262F; border: 1px solid rgba(92, 202, 211, .6); color: #5CCAD3; }
.hp-phone__btn--help { background: #C8102E; color: #FFFFFF; }
.hp-phone figcaption { margin-top: var(--sp-12); text-align: center; font-size: var(--fs-xs); color: #9BAAB5; }
@media (prefers-reduced-motion: no-preference) {
  .hp-phone__arc { animation: hp-count 15s linear infinite; }
  @keyframes hp-count { to { stroke-dashoffset: 327; } }
}

/* ---------- Secure ---------- */
.hp-checks { display: grid; gap: var(--sp-16); margin-top: var(--sp-24); }
.hp-checks li { display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-12); color: var(--c-text-2); }
.hp-checks .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand); margin-top: 1px; }
.hp-checks b { color: var(--c-text); }
.hp-who { border: 1px solid var(--c-border); border-radius: var(--r-xl); overflow: hidden; background: var(--c-bg); }
.hp-who__row { display: grid; gap: 2px; padding: var(--sp-16) var(--sp-20); border-bottom: 1px solid var(--c-border); color: var(--c-text-2); }
.hp-who__row:last-child { border-bottom: 0; }
.hp-who__row b { color: var(--c-text); }
.hp-who__row--head { display: none; }
.hp-who__row--none { background: var(--c-brand-light); }
.hp-who__row--none span:last-child { color: var(--c-brand); font-weight: 800; }
@media (min-width: 560px) {
  .hp-who__row { grid-template-columns: 9.5rem 1fr; gap: var(--sp-16); }
  .hp-who__row--head { display: grid; padding-block: var(--sp-12); background: var(--c-surface-2); font-size: var(--fs-label); font-weight: 800; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--c-text-3); }
}

/* ---------- Memorable ---------- */
.hp-memo__list { display: grid; gap: var(--sp-16); margin-top: var(--sp-24); }
.hp-memo__list li { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-12); color: var(--c-text-2); }
.hp-memo__list .icon { width: 44px; height: 44px; padding: 11px; border-radius: var(--r-md); background: var(--c-safety-light); color: var(--c-safety-ink); }
.hp-memo__list b { color: var(--c-text); }
.hp-report { margin: 0; }
.hp-report__card { padding: var(--sp-20); border-radius: var(--r-xl); color: #C9D4DB; background: #0F171D url("/assets/topo.svg") center / cover no-repeat; border: 1px solid #2A3842; box-shadow: var(--shadow-lg); }
.hp-report__top { display: flex; flex-direction: column; gap: 2px; }
.hp-report__tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #F0A070; }
.hp-report__title { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: #FFFFFF; }
.hp-report__map { width: 100%; height: auto; margin: var(--sp-12) 0; }
.hp-report__road { fill: none; stroke: #233038; stroke-width: 12; stroke-linecap: round; }
.hp-report__route { fill: none; stroke: #5CCAD3; stroke-width: 4; stroke-linecap: round; }
.hp-report__route--b { stroke: #F0A070; stroke-width: 3; stroke-dasharray: 2 7; }
.hp-report__pin { stroke: #0F171D; stroke-width: 3; }
.hp-report__pin--start { fill: #5CCAD3; }
.hp-report__pin--stop { fill: #FFD54F; }
.hp-report__pin--end { fill: #F0A070; }
.hp-report__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--r-md); overflow: hidden; background: #2A3842; }
.hp-report__stats div { background: #1A262F; padding: 10px 12px; }
.hp-report__stats dt { font-size: .75rem; color: #9BAAB5; }
.hp-report__stats dd i { display: block; height: 14px; margin-top: 6px; width: 70%; border-radius: 7px; background: #2A3842; }
.hp-report figcaption { margin-top: var(--sp-12); font-size: var(--fs-xs); color: var(--c-text-3); }
@media (min-width: 560px) { .hp-report__stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- How it works ---------- */
.hw-steps { display: grid; gap: var(--sp-16); margin: clamp(32px, 4vw, 48px) 0 var(--sp-24); counter-reset: hw; }
@media (min-width: 860px) { .hw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hw-step { position: relative; padding: var(--sp-24); border-radius: var(--r-xl); background: var(--c-bg); border: 1px solid var(--c-border); }
.hw-step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand-fill); color: #FFFFFF; font-weight: 800; font-size: 1.125rem; }
.hw-step h3 { margin-top: var(--sp-16); font-size: var(--fs-h3); }
.hw-step p { margin-top: var(--sp-8); color: var(--c-text-2); font-size: var(--fs-small); line-height: var(--lh-snug); }

/* ---------- Pricing (cards rendered by home.js from /api/membership/catalog) ---------- */
.px__head { margin-inline: auto; text-align: center; }
.px__head .eyebrow { justify-content: center; }
.px__head > p:not(.eyebrow) { margin-inline: auto; }
.px-grid { display: grid; gap: var(--sp-16); margin-top: clamp(32px, 4vw, 56px); align-items: stretch; }
@media (min-width: 760px) { .px-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.px-card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-12); min-width: 0; padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-sheet); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
}
.px-card--accent { border: 2px solid var(--c-brand); box-shadow: 0 18px 48px -18px var(--c-brand-glow), var(--shadow-md); }
.px-card__tag { align-self: flex-start; padding: 4px 12px; border-radius: var(--r-full); background: var(--c-brand-light); color: var(--c-brand); font-size: var(--fs-label); font-weight: 800; letter-spacing: var(--tr-label); text-transform: uppercase; }
.px-card__name { font-size: var(--fs-h3); }
.px-card__seats { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text-2); font-weight: 700; font-size: var(--fs-small); }
.px-card__seats .icon { width: 18px; height: 18px; color: var(--c-brand); }
.px-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-8); }
.px-card__amount { font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--c-text); font-variant-numeric: tabular-nums; }
.px-card__per { color: var(--c-text-3); font-weight: 700; font-size: var(--fs-small); }
.px-card__desc { color: var(--c-text-2); font-size: var(--fs-small); line-height: var(--lh-snug); }
.px-card__list { display: grid; gap: 10px; margin-top: var(--sp-8); padding-top: var(--sp-16); border-top: 1px solid var(--c-border); }
.px-card__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: var(--fs-small); color: var(--c-text-2); font-weight: 600; }
.px-card__list .icon { width: 20px; height: 20px; color: var(--c-brand); }
.px-card .btn { margin-top: auto; }
.px-card__cta { padding-top: var(--sp-16); margin-top: auto; }
.px-card--skel { min-height: 280px; gap: 14px; }
.px-card--skel i { display: block; height: 14px; border-radius: 7px; background: var(--c-surface-2); }
.px-card--skel i:nth-child(1) { width: 45%; height: 20px; }
.px-card--skel i:nth-child(2) { width: 35%; height: 40px; margin-top: 12px; }
.px-card--skel i:nth-child(3) { width: 85%; margin-top: 24px; }
.px-grid--skel .px-card--skel:nth-child(n + 2) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .px-card--skel i { animation: rv-pulse 1.4s ease-in-out infinite alternate; }
}
.px-msg { grid-column: 1 / -1; padding: var(--sp-24); border-radius: var(--r-xl); border: 1px dashed var(--c-border-strong); color: var(--c-text-2); text-align: center; }
.px-free {
  display: flex; align-items: flex-start; gap: var(--sp-16); margin-top: var(--sp-16); padding: var(--sp-20) var(--sp-24);
  border-radius: var(--r-xl); background: var(--c-brand-light); color: var(--c-text-2);
}
.px-free b { color: var(--c-text); }
.px-free__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface); color: var(--c-brand); }
.px-note { margin-top: var(--sp-16); text-align: center; }

/* ---------- Reviews ---------- */
.hp-reviews__head { display: grid; gap: var(--sp-32); align-items: end; }
.hp-reviews__summary { margin-top: var(--sp-16) !important; font-weight: 800; color: var(--c-text) !important; font-size: var(--fs-body) !important; }
.hp-howto { display: grid; gap: var(--sp-8); counter-reset: howto; }
.hp-howto li { counter-increment: howto; display: grid; grid-template-columns: 36px 1fr; gap: 2px var(--sp-12); padding: var(--sp-12) var(--sp-16); border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-border); }
.hp-howto li::before { content: counter(howto); grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--c-brand-fill); color: #FFFFFF; font-weight: 800; }
.hp-howto b { font-size: 1.0625rem; }
.hp-howto span { color: var(--c-text-2); font-size: var(--fs-small); }
@media (min-width: 1024px) { .hp-reviews__head { grid-template-columns: 1.2fr .8fr; } }
.hp-stories { margin-top: clamp(32px, 4vw, 48px); }
.hp-reviews__foot { margin-top: var(--sp-24); }

.rv-grid { display: grid; gap: var(--sp-16); }
@media (min-width: 760px) { .rv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rv-grid { grid-template-columns: repeat(3, 1fr); } }
/* A card is the outer frame (.rv-card) with an optional photo area and a text body. The admin picks one of
   four templates per story: photo-left, photo-top, quote-card, gallery (data-template on the card). */
.rv-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-xl); }
.rv-card__body { display: flex; flex-direction: column; gap: var(--sp-12); flex: 1 1 auto; min-width: 0; padding: var(--sp-24); }
.rv-card__media { margin: 0; background: var(--c-surface-2); }
.rv-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Photo beside the story: stacked on phones, side by side when the card can span two columns. */
@media (min-width: 760px) {
  .rv-card--photo-left:not(.is-photoless) { grid-column: span 2; flex-direction: row; }
  .rv-card--photo-left .rv-card__media { flex: 0 0 44%; }
  .rv-card--photo-left .rv-card__media img { height: 100%; min-height: 240px; aspect-ratio: auto; }
}
.rv-card--photo-top .rv-card__media img { aspect-ratio: 16 / 10; }
/* Quote card: words only, set larger on a tinted ground. */
.rv-card--quote-card { background: var(--c-brand-light); border-color: transparent; }
.rv-card--quote-card .rv-card__quote { border-left: 0; padding-left: 0; font-size: 1.125rem; line-height: 1.55; }
.rv-card--quote-card .rv-card__quote::before { content: "\201C"; display: block; height: .55em; font-family: Georgia, serif; font-size: 3.5rem; line-height: 1; color: var(--c-brand); }
/* Gallery: two or three selected photos above the story. */
.rv-card__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--c-surface-2); }
.rv-card__gallery li:first-child:nth-last-child(3) { grid-column: span 2; }
.rv-card__gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rv-card__head { display: flex; flex-direction: column; gap: 4px; }
.rv-stars { display: flex; gap: 2px; }
.rv-star { width: 18px; height: 18px; fill: var(--c-border-strong); }
.rv-star.is-on { fill: #E8A33D; }
.rv-card__trip { font-size: var(--fs-h4); line-height: var(--lh-heading); overflow-wrap: anywhere; margin-top: 4px; }
.rv-card__route { font-size: var(--fs-small); color: var(--c-text-2); overflow-wrap: anywhere; }
.rv-card__quote { margin: 0; padding-left: var(--sp-12); border-left: 3px solid var(--c-brand); color: var(--c-text); }
.rv-card__quote p { white-space: pre-line; overflow-wrap: anywhere; }
.rv-card__quote.is-clamped p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card__more { align-self: flex-start; min-height: 44px; padding: 0; color: var(--c-brand); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.rv-card__facts { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-24); }
.rv-card__facts dt { font-size: var(--fs-xs); color: var(--c-text-3); }
.rv-card__facts dd { font-weight: 800; font-variant-numeric: tabular-nums; }
.rv-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-12); margin-top: auto; padding-top: var(--sp-12); border-top: 1px solid var(--c-border); font-size: var(--fs-small); }
.rv-card__rider { font-weight: 800; color: var(--c-text); }
.rv-card__badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-full); background: var(--c-brand-light); color: var(--c-brand); font-size: var(--fs-xs); font-weight: 800; }
.rv-card__date { color: var(--c-text-3); margin-left: auto; }
.rv-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-12);
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); border: 1px dashed var(--c-border-strong); background: var(--c-bg); color: var(--c-text-2);
}
.rv-empty__title { font-size: var(--fs-h3); }
.rv-empty .btn { margin-top: var(--sp-8); }
.rv-empty--error { border-style: solid; border-color: var(--c-border); }
.rv-skel { display: flex; flex-direction: column; gap: 10px; padding: var(--sp-24); border-radius: var(--r-xl); border: 1px solid var(--c-border); background: var(--c-bg); }
.rv-skel i { display: block; height: 12px; border-radius: 6px; background: var(--c-surface-2); }
.rv-skel i:nth-child(1) { width: 40%; }
.rv-skel i:nth-child(2) { width: 75%; height: 18px; }
.rv-skel i:nth-child(3) { width: 95%; }
.rv-skel i:nth-child(4) { width: 60%; }
@media (prefers-reduced-motion: no-preference) {
  .rv-skel i { animation: rv-pulse 1.4s ease-in-out infinite alternate; }
  @keyframes rv-pulse { to { opacity: .45; } }
}
.rv-grid--skeleton .rv-skel:nth-child(n + 2) { display: none; }
@media (min-width: 760px) { .rv-grid--skeleton .rv-skel:nth-child(2) { display: flex; } }
@media (min-width: 1100px) { .rv-grid--skeleton .rv-skel:nth-child(3) { display: flex; } }

/* ---------- FAQ ---------- */
.hp-faq-wrap { display: grid; gap: var(--sp-32); }
@media (min-width: 1024px) { .hp-faq-wrap { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.hp-faq { display: grid; gap: var(--sp-8); }
.hp-faq details { border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); padding: 0 var(--sp-20); transition: border-color var(--d-fast) var(--ease); }
.hp-faq details[open] { border-color: var(--c-accent-line); }
.hp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16);
  min-height: 60px; padding: var(--sp-16) 0; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.0625rem; color: var(--c-text);
}
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--c-brand); border-bottom: 2px solid var(--c-brand); transform: translateY(-3px) rotate(45deg); transition: transform var(--d-fast) var(--ease); }
.hp-faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.hp-faq summary:hover { color: var(--c-brand); }
.hp-faq__a { padding: 0 0 var(--sp-20); color: var(--c-text-2); max-width: 62ch; }

/* ---------- Final call to action ---------- */
.hp-final__box {
  position: relative; overflow: hidden; display: grid; gap: var(--sp-24); align-items: center; padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-sheet); color: #FFFFFF;
  background: radial-gradient(700px 300px at 90% 0%, rgba(92, 202, 211, .35), transparent 70%), #0B6E78 url("/assets/topo.svg") center / cover no-repeat;
}
.hp-final__motto { font-size: var(--fs-label); font-weight: 800; letter-spacing: var(--tr-label); text-transform: uppercase; color: #CFF3F6 !important; margin: 0 0 var(--sp-12) !important; }
.hp-final__box h2 { color: #FFFFFF; font-size: var(--fs-h2); }
.hp-final__box p { margin-top: var(--sp-8); color: rgba(255, 255, 255, .9); max-width: 38rem; }
.hp-final__cta { display: flex; flex-direction: column; gap: var(--sp-12); }
.hp-final .btn--primary { background: #FFFFFF; color: #0B6E78 !important; box-shadow: none; }
.hp-final .btn--primary:hover { background: #E3F3F5; }
.hp-final .btn--ghost, .hp-final .btn--secondary { background: transparent; color: #FFFFFF !important; border-color: rgba(255, 255, 255, .6); }
.hp-final .btn--ghost:hover, .hp-final .btn--secondary:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .1); }
@media (min-width: 560px) { .hp-final__cta { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 1024px) { .hp-final__box { grid-template-columns: 1fr auto; } }

/* ---------- Feedback form ---------- */
.hp-feedback { align-items: start; }
.hp-form { padding: clamp(20px, 4vw, 32px); border-radius: var(--r-xl); background: var(--c-bg); border: 1px solid var(--c-border); }
.hp-form .form-textarea { min-height: 140px; }
.hp-form [aria-invalid="true"] { border-color: var(--c-danger); }
.hp-form__err { min-height: 0; color: var(--c-danger); font-size: var(--fs-small); font-weight: 700; }
.hp-form__err:empty { display: none; }
.hp-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-form .checkbox-label { min-height: 44px; }
.hp-form__status { margin-top: var(--sp-12); font-size: var(--fs-small); }
.hp-form__status:empty { display: none; }
.hp-form[data-state="sent"] .hp-form__status { color: var(--c-success); font-weight: 800; }
.hp-form[data-state="error"] .hp-form__status { color: var(--c-danger); }

/* ---------- Hero: Community note ---------- */
.hx__free { margin-top: var(--sp-20); }
.hx__free a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 10px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--c-surface) 88%, transparent); border: 1px solid var(--c-accent-line); color: var(--c-text-2);
  font-size: var(--fs-small); font-weight: 700; text-decoration: none; transition: border-color var(--d-fast) var(--ease);
}
.hx__free a:hover { border-color: var(--c-brand); }
.hx__free b { color: var(--c-brand); }
.hx__free .icon { width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand); }

/* ---------- Numbers: how we count (privacy) ---------- */
.hp-count { margin-top: var(--sp-24); padding: var(--sp-20) var(--sp-24); border-radius: var(--r-xl); background: var(--c-surface); border: 1px dashed var(--c-border-strong); }
.hp-count__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h4); }
.hp-count__title .icon { width: 22px; height: 22px; color: var(--c-brand); }
.hp-count__list { display: grid; gap: var(--sp-12); margin-top: var(--sp-12); color: var(--c-text-2); font-size: var(--fs-small); line-height: var(--lh-snug); }
.hp-count__list b { color: var(--c-text); }
@media (min-width: 900px) { .hp-count__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-24); } }

/* ---------- Your ride analytics (the card is a labelled sample) ---------- */
.hp-head > p.ra__private { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-24); color: var(--c-text-2); font-size: var(--fs-small); font-weight: 700; }
.ra__private .icon { width: 22px; height: 22px; flex: none; color: var(--c-brand); }
.ra-card { margin: 0; }
.ra-card__frame {
  display: grid; gap: var(--sp-16); padding: clamp(18px, 3vw, 28px); border-radius: var(--r-sheet); color: #C9D4DB;
  background: radial-gradient(420px 220px at 100% 0%, rgba(92, 202, 211, .22), transparent 70%), #0F171D; border: 1px solid #2A3842; box-shadow: var(--shadow-lg);
}
.ra-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); }
.ra-card__title { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; color: #FFFFFF; }
.ra-badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-full); border: 1px dashed currentColor;
  font-size: var(--fs-label); font-weight: 800; letter-spacing: var(--tr-label); text-transform: uppercase; color: #F0A070;
}
.ra-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-md); overflow: hidden; background: #2A3842; }
.ra-tiles div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 12px 14px; background: #1A262F; }
.ra-tiles dt { font-size: .75rem; color: #9BAAB5; }
.ra-tiles dd { font-size: 1.5rem; line-height: 1.1; font-weight: 800; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.ra-tiles small { font-size: .8125rem; font-weight: 700; color: #9BAAB5; }
@media (min-width: 560px) { .ra-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ra-card__label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9BAAB5; }
.ra-chart { width: 100%; height: auto; margin-top: -8px; }
.ra-chart__base { stroke: #2A3842; stroke-width: 2; }
.ra-chart__bar { fill: #24525A; }
.ra-chart__bar--now { fill: #5CCAD3; }
.ra-chart__bar--next { fill: none; stroke: #3A4A55; stroke-width: 2; stroke-dasharray: 3 4; }
.ra-safety { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.ra-safety li { padding: 6px 12px; border-radius: var(--r-full); background: #1A262F; border: 1px solid #2A3842; font-size: .8125rem; font-weight: 700; }
.ra-safety b { color: #FFFFFF; font-variant-numeric: tabular-nums; }
.ra-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: var(--sp-12); font-size: var(--fs-xs); color: var(--c-text-3); }
.ra-card figcaption .ra-badge { color: var(--c-safety-ink); }
.ra-badge--live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #5CCAD3; vertical-align: middle; }
.ra-chart__empty { fill: #9BAAB5; font-size: 11px; font-weight: 700; }
.ra-chart__lbl { fill: #9BAAB5; font-size: 9px; font-weight: 700; }

/* ---------- Get safety for your group rides ---------- */
.gx__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1024px) { .gx__grid { grid-template-columns: .9fr 1.1fr; align-items: start; } .gx__head { position: sticky; top: calc(var(--header-h) + 32px); } }
.gx-plans { display: grid; gap: var(--sp-8); margin-top: var(--sp-24); }
.gx-plans[hidden] { display: none; }
.gx-plan {
  display: grid; grid-template-columns: 1fr auto; gap: 2px var(--sp-12); align-items: center; padding: var(--sp-12) var(--sp-16);
  border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-border);
}
.gx-plan__name { font-weight: 800; color: var(--c-text); }
.gx-plan__seats { grid-row: 2; font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-3); }
.gx-plan__price { grid-row: span 2; grid-column: 2; text-align: right; color: var(--c-text-3); font-size: var(--fs-xs); font-weight: 700; }
.gx-plan__price b { display: block; font-size: 1.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--c-brand); font-variant-numeric: tabular-nums; }
.gx__cta { display: flex; flex-wrap: wrap; gap: var(--sp-12); margin-top: var(--sp-24); }
.hp-head > p.gx__fine { margin-top: var(--sp-12); font-size: var(--fs-small); }
@media (max-width: 420px) { .gx__cta .btn { width: 100%; } }
.gx-list { display: grid; gap: var(--sp-12); }
@media (min-width: 640px) { .gx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gx-list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-16); min-width: 0; padding: var(--sp-20); border-radius: var(--r-xl); background: var(--c-bg); border: 1px solid var(--c-border); }
.gx-list h3 { font-size: var(--fs-h4); padding-top: 2px; }
.gx-list p { margin-top: 4px; color: var(--c-text-2); font-size: var(--fs-small); line-height: var(--lh-snug); }

/* ---------- Pricing: Community, solo is always free ---------- */
.px-solo {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-16); align-items: start; margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 3vw, 32px); border-radius: var(--r-sheet); background: var(--c-brand-light); border: 2px solid var(--c-accent-line);
}
.px-solo__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface); color: var(--c-brand); }
.px-solo__icon .icon { width: 26px; height: 26px; }
.px-solo__tag { font-size: var(--fs-label); font-weight: 800; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--c-brand); }
.px-solo__title { margin-top: 4px; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); letter-spacing: -0.02em; }
.px-solo p:not(.px-solo__tag) { margin-top: var(--sp-8); color: var(--c-text-2); max-width: 52rem; }
@media (max-width: 479px) { .px-solo { grid-template-columns: 1fr; } }
.px-solo + .px-grid { margin-top: var(--sp-16); }

/* ---------- Help us build: ratings and safety ideas ---------- */
.hb__head { margin-inline: auto; text-align: center; }
.hb__head .eyebrow { justify-content: center; }
.hb__head > p:not(.eyebrow) { margin-inline: auto; }
.hb-grid { display: grid; gap: var(--sp-16); margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 860px) { .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hb-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-12); min-width: 0; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-sheet); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
}
.hb-card--rate { background: linear-gradient(160deg, var(--c-brand-light), var(--c-surface) 65%); border-color: var(--c-accent-line); }
.hb-card h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); letter-spacing: -0.015em; }
.hb-card p { color: var(--c-text-2); }
.hb-card p b { color: var(--c-text); }
.hb-card__btn { margin-top: auto; }
.hb-card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--c-brand-light); color: var(--c-brand); }
.hb-card--rate .hb-card__icon { background: var(--c-surface); }
.hb-card__icon .icon { width: 24px; height: 24px; }
.hb-card__icon--amber { background: var(--c-safety-light); color: var(--c-safety-ink); }

/* ---------- Section ground swaps ---------- */
.hw .hw-step { background: var(--c-surface); }
.section--surface .hp-faq details { background: var(--c-bg); }
.section--surface .hp-count { background: var(--c-bg); }

/* ---------- Forced colours ---------- */
@media (forced-colors: active) {
  .hx__scene, .hx__scrim { display: none; }
  .motto__pillars a, .rv-card, .fx-card, .px-card, .hp-numbers__list > div, .px-solo, .hb-card, .gx-list li, .gx-plan, .hp-count { border: 1px solid CanvasText; }
}
