/* Layout: one centered column (max 1160px); hero splits copy / phone, sections stack with generous rhythm.
   Identity: the app's Lime theme (mobile/src/constants/theme.ts). Colours are named by their job, like
   in the app: lime for primary buttons and highlights, raised white cards on a soft green-grey page,
   dark hero cards with a bike wheel, Archivo 800 headings and Figtree text. */
:root {
  --bg: #f4f6f1;
  --surface: #e7ebe2;
  --raised: #ffffff;
  --ink: #141a10;
  --ink2: #525c4b;
  --line: rgba(20, 26, 16, 0.12);
  --acc: #c5f03a;
  --on-acc: #141a10;
  --acc-ink: #3d6b0f;
  --acc-tint: #ecfbc4;
  --acc-on: #2c4d08;
  --a2: #2f66e0;
  --a2-ink: #2552b8;
  --a2-tint: #e2eafc;
  --a2-on: #1a3a85;
  --warn: #9a4a06;
  --warn-tint: #fdebd3;
  --hero-bg: #141a10;
  --hero-fg: #f4f6f1;
  --hero-sub: #c4ccbb;
  --hero-pebble: #c5f03a;
  --hero-pebble-fg: #141a10;
  --map: #e3e8dd;
  --map2: #d6ddcf;
  --map-road: #ffffff;
  --map-water: #cddcef;
  /* The app's route line and end pin (constants/map.ts), the same in every theme. */
  --route: #e8590c;
  --bezel: #141a10;
  --shadow-sm: 0 1px 3px rgba(20, 26, 16, 0.08);
  --shadow-md: 0 4px 14px rgba(20, 26, 16, 0.12);
  --shadow-lg: 0 14px 36px rgba(20, 26, 16, 0.22);

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.85rem, 1.35rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.9rem, 1.7rem + 5.2vw, 5.4rem);

  --radius-card: 24px;
  --radius-tile: 20px;
  --radius-hero: 32px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d100b;
    --surface: #161b13;
    --raised: #1d2319;
    --ink: #f0f3ec;
    --ink2: #a2ab9a;
    --line: rgba(240, 243, 236, 0.12);
    --acc-ink: #c5f03a;
    --acc-tint: #253310;
    --acc-on: #d8f781;
    --a2: #7ea6f6;
    --a2-ink: #93b5f8;
    --a2-tint: #142340;
    --a2-on: #bcd0fb;
    --warn: #f4b05a;
    --warn-tint: #362510;
    --hero-bg: #1f2a12;
    --hero-fg: #f0f3ec;
    --hero-sub: #c4cdb8;
    --map: #151a12;
    --map2: #1b2117;
    --map-road: #252c20;
    --map-water: #142340;
    --bezel: #000000;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d100b;
  --surface: #161b13;
  --raised: #1d2319;
  --ink: #f0f3ec;
  --ink2: #a2ab9a;
  --line: rgba(240, 243, 236, 0.12);
  --acc-ink: #c5f03a;
  --acc-tint: #253310;
  --acc-on: #d8f781;
  --a2: #7ea6f6;
  --a2-ink: #93b5f8;
  --a2-tint: #142340;
  --a2-on: #bcd0fb;
  --warn: #f4b05a;
  --warn-tint: #362510;
  --hero-bg: #1f2a12;
  --hero-fg: #f0f3ec;
  --hero-sub: #c4cdb8;
  --map: #151a12;
  --map2: #1b2117;
  --map-road: #252c20;
  --map-water: #142340;
  --bezel: #000000;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--acc-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 99px; }
.skip:focus { top: 12px; }
.icons { display: none; }

/* The bike wheel from the app's cards (components/ui/wheel-decor.tsx), drawn from #wheel. */
.wheel { position: absolute; pointer-events: none; fill: none; stroke: currentColor; stroke-linecap: round; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h3 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 800; letter-spacing: -0.02em; }
.label, .eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--acc-ink);
}
.lede { font-size: var(--step-1); color: var(--ink2); max-width: 34rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid var(--acc); border-radius: 99px;
  background: var(--acc); color: var(--on-acc);
  font: 800 1.0625rem/1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
  font: 700 var(--step-0)/1 var(--font-body); letter-spacing: 0;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--bg); width: 100%; }

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font: 700 0.75rem/1.4 var(--font-body);
  white-space: nowrap;
}
.badge-nodrop { background: var(--acc); color: var(--on-acc); }
.badge-plain { background: var(--acc-tint); color: var(--acc-on); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.5rem/1 var(--font-display);
  letter-spacing: -0.025em; text-decoration: none; color: var(--ink);
}
/* The logo (Claude Design): "vel" + the mark + "gether", the mark standing in for the "o". It is
   a little taller than the lowercase letters and stands on the baseline. Same in the app
   (components/ui/logo.tsx). */
.wordmark { white-space: nowrap; }
.wordmark-o {
  display: inline-block; vertical-align: baseline;
  height: 0.61em; width: calc(0.61em * 69.4 / 76); margin: 0 0.05em 0.005em;
}
.wordmark-o .m-main { fill: var(--ink); }
.wordmark-o .m-acc { fill: var(--acc-ink); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.94rem; color: var(--ink2); }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

@media (max-width: 1040px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 4px);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 20px 20px;
    background: var(--raised); border-radius: var(--radius-card); box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; font-size: var(--step-0); color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) var(--section); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.hero-copy { display: grid; gap: 24px; min-width: 0; justify-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 99px;
  background: var(--acc-tint); color: var(--acc-on);
  letter-spacing: 0.06em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc-ink) 22%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
  font-size: var(--step--1); font-weight: 600; color: var(--ink2);
}
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 99px; background: var(--surface);
}
.hero-points li::before {
  content: ""; width: 9px; height: 5px; margin-top: -3px;
  border-left: 2px solid var(--acc-ink); border-bottom: 2px solid var(--acc-ink);
  transform: rotate(-45deg);
}

/* Phone mockup: the app's Home screen, sized in em so it scales with the phone. */
.hero-visual { display: flex; justify-content: center; position: relative; }
/* Wider than its column (max-width: none) so the spokes show around the phone while it turns. */
.hero-visual > .wheel { width: 150%; max-width: none; aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%; color: var(--acc); opacity: .45; }
.phone {
  position: relative; z-index: 1;
  width: min(320px, 100%);
  aspect-ratio: 9 / 18.5;
  padding: 10px; border-radius: 46px;
  background: var(--bezel);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  transform: rotate(2.5deg);
  font-size: 16px;
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 36px; background: var(--bg);
  display: flex; flex-direction: column;
  font-family: var(--font-body); line-height: 1.3;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75em 1.4em 0;
  font: 700 0.72em/1 var(--font-body); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.phone-island { width: 5em; height: 1.4em; border-radius: 99px; background: var(--bezel); }
.app-home { flex: 1; min-height: 0; overflow: hidden; display: grid; align-content: start; gap: 0.75em; padding: 0.95em 0.85em 0; }
.app-greeting { font: 800 1.45em/1.1 var(--font-display); letter-spacing: -0.03em; padding-inline: 0.2em; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }

.app-hero {
  position: relative; overflow: hidden;
  display: grid; gap: 0.8em; padding: 1em;
  border-radius: 1.6em; background: var(--hero-bg); color: var(--hero-fg);
}
.app-hero .wheel { width: 9.5em; height: 9.5em; right: -2.6em; top: -3.6em; color: var(--hero-pebble); opacity: .3; }
.app-eyebrow { position: relative; font: 700 0.6em/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--hero-sub); }
.app-hero-title { position: relative; display: flex; align-items: center; gap: 0.75em; }
.app-date {
  flex: none; display: grid; place-items: center; align-content: center;
  width: 3.3em; height: 3.3em; border-radius: 50%;
  background: var(--hero-pebble); color: var(--hero-pebble-fg);
}
.app-date small { font: 700 0.56em/1.1 var(--font-body); letter-spacing: .08em; }
.app-date b { font: 800 1.3em/1 var(--font-display); }
.app-hero-name { font: 800 1.12em/1.15 var(--font-display); letter-spacing: -0.025em; }
.app-hero-meta { margin-top: 0.2em; font-size: 0.74em; font-weight: 600; color: var(--hero-sub); }
.app-hero-foot { position: relative; display: flex; align-items: center; gap: 0.55em; font-size: 0.7em; font-weight: 600; }
.app-avatars { display: flex; }
.app-avatars .avatar { box-shadow: 0 0 0 2px var(--hero-bg); }
.app-avatars .avatar + .avatar { margin-left: -0.35em; }
.app-hero-foot > span:nth-child(2) { flex: 1; min-width: 0; }
.app-chat {
  display: inline-flex; align-items: center; gap: 0.4em;
  height: 2.4em; padding: 0 0.9em; border-radius: 99px;
  background: var(--hero-pebble); color: var(--hero-pebble-fg); font-weight: 700; white-space: nowrap;
}
.avatar {
  display: grid; place-items: center; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%;
  font-size: 0.78em; font-weight: 700;
}
.tone-acc { background: var(--acc-tint); color: var(--acc-on); }
.tone-a2 { background: var(--a2-tint); color: var(--a2-on); }
.tone-ink { background: var(--surface); color: var(--ink); }

.app-section { display: flex; justify-content: space-between; align-items: baseline; padding: 0.15em 0.2em 0; }
.app-section b { font: 800 0.98em/1.1 var(--font-display); letter-spacing: -0.02em; }
.app-section span { font-size: 0.7em; font-weight: 700; color: var(--acc-ink); }
.app-card {
  display: grid; gap: 0.55em; padding: 0.85em;
  border-radius: 1.5em; background: var(--raised); box-shadow: var(--shadow-sm);
}
.app-card-top { display: flex; align-items: center; gap: 0.45em; font-size: 0.66em; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.app-card-top > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-tag { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.7em 0.3em 0.55em; border-radius: 99px; font-weight: 700; }
.app-card-title { font: 800 1em/1.15 var(--font-display); letter-spacing: -0.025em; }
.app-meta { display: grid; gap: 0.3em; margin: 0; padding: 0; list-style: none; font-size: 0.68em; font-weight: 600; color: var(--ink2); }
.app-meta li { display: flex; align-items: center; gap: 0.5em; }
.app-host { display: flex; align-items: center; gap: 0.55em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.app-host > span:nth-child(2) { flex: 1; min-width: 0; display: grid; font-size: 0.7em; font-weight: 700; }
.app-host small { font-size: 0.9em; font-weight: 600; color: var(--ink2); }
.app-join {
  display: grid; place-items: center; height: 2.3em; padding: 0 1.05em; border-radius: 99px;
  background: var(--acc); color: var(--on-acc); font: 800 0.76em/1 var(--font-display);
}
.app-tabs {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 0.5em 0.4em 1.1em; margin-top: auto;
  background: var(--raised); box-shadow: 0 -1px 0 var(--line);
  font-size: 0.56em; font-weight: 700; color: var(--ink2); text-align: center;
}
.app-tabs span { display: grid; justify-items: center; gap: 0.3em; }
.app-tabs .i { width: 1.9em; height: 1.9em; padding: 0.25em 0.9em; box-sizing: content-box; border-radius: 99px; }
.app-tabs .is-active { color: var(--ink); }
.app-tabs .is-active .i { background: var(--acc-tint); }
.app-tabs .app-plus { align-self: start; }
.app-tabs .app-plus .i {
  width: 2.1em; height: 2.1em; padding: 0.85em; margin-top: -2.2em;
  border-radius: 50%; background: var(--acc); color: var(--on-acc); box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(300px, 100%); font-size: 15px; transform: rotate(2deg); }
}
@media (max-width: 360px) { .phone { font-size: 13.5px; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 14px; max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-intro { color: var(--ink2); font-size: var(--step-1); max-width: 38rem; }
.card, .pace-scale, .level-block, .types, .feature, .compare-pane, .safety-list, .plan, .faq-list details {
  background: var(--raised); border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
}
/* A full-width section drawn as one big rounded card inside the page margins. */
.how > .wrap, .signup > .wrap {
  position: relative; overflow: hidden;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter));
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-hero);
}
.how, .signup { padding-block: calc(var(--section) / 2); }

/* Ride levels */
.level-title {
  margin-bottom: 14px;
  font: 700 0.75rem/1.4 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink2);
}
.pace-scale {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  margin: 0; padding: 8px; list-style: none;
}
.pace-step {
  display: grid; gap: 6px; align-content: start;
  padding: 18px 18px 20px;
  min-width: 0;
}
.pace-step + .pace-step { border-left: 1px solid var(--line); }
.pace-name { font: 800 var(--step-2)/1.1 var(--font-display); letter-spacing: -0.025em; }
.pace-speed { font: 700 var(--step-0)/1.2 var(--font-body); color: var(--acc-ink); font-variant-numeric: tabular-nums; }
.pace-note { font-size: var(--step--1); color: var(--ink2); }
.pace-bar {
  margin-top: 10px; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--acc) var(--fill), var(--surface) var(--fill));
}
.pace-footnote { margin-top: 20px; line-height: 2; color: var(--ink2); }
@media (max-width: 820px) {
  .pace-scale { grid-template-columns: 1fr; padding: 4px 18px; }
  .pace-step { grid-template-columns: 7.5rem 8rem minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 0; }
  .pace-step + .pace-step { border-left: 0; border-top: 1px solid var(--line); }
  .pace-bar { margin-top: 0; }
}
@media (max-width: 440px) {
  .pace-step { grid-template-columns: 1fr auto; }
  .pace-bar { grid-column: 1 / -1; }
}

.level-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  margin-top: 16px;
}
.level-block, .types { min-width: 0; padding: clamp(20px, 3vw, 28px); }
.level-note { margin-top: 14px; font-size: var(--step--1); color: var(--ink2); max-width: 30rem; }
.trail-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trail-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 99px; background: var(--surface);
  font-size: var(--step--1);
}
.trail-list strong { font-weight: 700; }
.trail { width: 14px; height: 14px; border-radius: 50%; }
.trail-green { background: #2e9e4f; }
.trail-blue { background: #2f6fd6; }
.trail-red { background: #d33a2c; }
.trail-black { background: #1a1a1a; box-shadow: 0 0 0 1.5px var(--line); }
.tag-list, .type-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li, .type-list li {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 0 15px; border-radius: 99px; border: 1.5px solid var(--line);
  font-size: var(--step--1); font-weight: 700;
}
.types { display: grid; gap: 14px; margin-top: 16px; }
/* Ride types are green, like the type tags on the app's ride cards. */
.type-list li { border-color: transparent; background: var(--acc-tint); color: var(--acc-on); }
@media (max-width: 720px) { .level-pair { grid-template-columns: 1fr; } }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; gap: 10px; align-content: start; min-width: 0; padding: clamp(20px, 2.4vw, 26px); }
.feature-icon {
  width: 48px; height: 48px; padding: 12px; margin-bottom: 6px;
  border-radius: 50%; background: var(--acc-tint);
  fill: none; stroke: var(--acc-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.feature:nth-child(3n + 2) .feature-icon { background: var(--a2-tint); stroke: var(--a2-ink); }
.feature:nth-child(3n) .feature-icon { background: var(--surface); stroke: var(--ink); }
.feature p { color: var(--ink2); font-size: 0.97rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* How it works: a dark hero card, like Next ride on the app's Home. */
.how > .wrap { background: var(--hero-bg); color: var(--hero-fg); }
.how .wheel { width: 340px; height: 340px; right: -90px; top: -130px; color: var(--hero-pebble); opacity: .22; }
.how .section-head, .how .steps { position: relative; }
.how .label { color: var(--hero-pebble); }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin: 0; padding: 0; list-style: none;
}
.step { display: grid; gap: 10px; align-content: start; position: relative; padding-top: 68px; min-width: 0; }
.step h3 { color: var(--hero-fg); }
.step::before {
  content: ""; position: absolute; left: 0; right: -24px; top: 25px;
  border-top: 2px dashed color-mix(in srgb, var(--hero-fg) 28%, transparent);
}
.step:last-child::before { right: 0; border-top-style: solid; border-color: var(--hero-pebble); }
.step-num {
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, var(--hero-fg) 12%, var(--hero-bg)); color: var(--hero-fg);
  font: 800 1.3rem/1 var(--font-display);
}
.step:last-child .step-num { background: var(--hero-pebble); color: var(--hero-pebble-fg); }
.step p { color: var(--hero-sub); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .step::before { right: 0; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Safety and privacy */
.safety-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.safety-copy { min-width: 0; }
.privacy-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.compare-pane { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 10px 10px 16px; }
.compare-pane svg { width: 100%; height: auto; display: block; border-radius: 16px; }
.compare-pane figcaption { padding-inline: 6px; font-size: var(--step--1); color: var(--ink2); }
.compare-pane figcaption strong { color: var(--ink); }
.map-bg { fill: var(--map); }
.map-road-thin { fill: none; stroke: var(--map-road); stroke-width: 5; stroke-linecap: round; }
.map-route { fill: none; stroke: var(--route); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
/* Approximate meeting area: about 1 km, randomly offset from the real point (dashed ring, as in the app). */
.map-area { fill: color-mix(in srgb, var(--acc) 30%, transparent); stroke: var(--acc-ink); stroke-width: 2; stroke-dasharray: 5 4; }
.map-pin { fill: var(--acc); stroke: var(--acc-ink); stroke-width: 3; }
.safety-list { display: grid; gap: 0; margin: 0; padding: 4px 24px; list-style: none; }
.safety-list li { display: grid; gap: 4px; padding: 18px 0; }
.safety-list li + li { border-top: 1px solid var(--line); }
.safety-list p { color: var(--ink2); }
@media (max-width: 900px) { .safety-inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .privacy-compare { grid-template-columns: 1fr; } }

/* Free & Premium: Free is the dark hero card, Premium a plain card. */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan {
  position: relative; overflow: hidden;
  display: grid; gap: 18px; align-content: start; min-width: 0;
  padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-hero);
}
.plan h3 { position: relative; display: flex; align-items: center; gap: 10px; font-size: 1.75rem; letter-spacing: -0.03em; }
.plan ul { position: relative; display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.plan li::before {
  content: ""; width: 10px; height: 6px; margin: 7px 0 0 3px;
  border-left: 2.5px solid var(--acc-ink); border-bottom: 2.5px solid var(--acc-ink);
  transform: rotate(-45deg);
}
.plan-free { background: var(--hero-bg); color: var(--hero-fg); box-shadow: var(--shadow-md); }
.plan-free .wheel { width: 220px; height: 220px; right: -60px; top: -80px; color: var(--hero-pebble); opacity: .28; }
.plan-free li::before { border-color: var(--hero-pebble); }
.plan-premium li { color: var(--ink2); }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }

/* Signup: a lime card, like the app's + button. Lime is the same in dark mode, so the text stays dark. */
.signup > .wrap { background: var(--acc); color: var(--on-acc); }
.signup .wheel { width: 420px; height: 420px; left: -150px; bottom: -190px; color: var(--on-acc); opacity: .08; }
.signup-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.signup-copy { position: relative; display: grid; gap: 16px; max-width: 30rem; }
.signup-copy p:last-child { font-size: var(--step-1); }
.label-on-accent { color: var(--on-acc); opacity: .7; }
.signup-form {
  position: relative;
  display: grid; gap: 16px;
  padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-card);
  background: var(--raised); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.field label { font-size: var(--step--1); font-weight: 700; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1.5px solid transparent; border-radius: var(--radius-tile);
  background: var(--surface); color: var(--ink);
  font: 600 var(--step-0) var(--font-body);
}
.field input::placeholder { color: var(--ink2); font-weight: 500; }
.field input:focus, .field select:focus { outline: none; border-color: var(--acc-ink); background: var(--raised); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.field textarea {
  width: 100%; min-height: 120px; padding: 14px 16px; resize: vertical;
  border: 1.5px solid transparent; border-radius: var(--radius-tile);
  background: var(--surface); color: var(--ink);
  font: 500 var(--step-0)/1.5 var(--font-body);
}
.field textarea::placeholder { color: var(--ink2); }
.field textarea:focus { outline: none; border-color: var(--acc-ink); background: var(--raised); }
.field-hint { font-size: 0.82rem; color: var(--ink2); }
.field label .field-hint { font-weight: 500; }
/* The help page's form sits in the text column, so it gets a lighter shadow than the signup card. */
.legal-body .signup-form { box-shadow: var(--shadow-sm); margin-top: 6px; }
.legal-body .signup-form label, .legal-body .signup-form p { color: var(--ink); }
.legal-body .signup-form .field-hint, .legal-body .signup-form .form-fine { color: var(--ink2); }
.check { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--acc-ink); }
.check-hint { margin-top: -6px; padding-left: 30px; font-size: 0.82rem; color: var(--ink2); }
/* Spam trap field: off screen rather than display: none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--step--1); min-height: 1.4em; }
.form-status.is-error { color: var(--warn); font-weight: 600; }
.form-status.is-success { color: var(--acc-ink); font-weight: 700; }
.form-fine { font-size: 0.82rem; color: var(--ink2); }
@media (max-width: 820px) { .signup-inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--radius-tile); padding-inline: 20px; }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--step-0);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface);
  font: 600 1.3rem/1 var(--font-body); color: var(--ink);
  transition: transform .2s ease, background-color .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--acc); color: var(--on-acc); }
.faq-list details p { padding: 0 0 20px; color: var(--ink2); max-width: 40rem; }
.faq-list details a { color: var(--acc-ink); font-weight: 600; }
@media (max-width: 820px) { .faq-inner { grid-template-columns: 1fr; } .faq-inner .section-head { margin-bottom: 0; } }

/* Footer */
.site-footer { margin-top: calc(var(--section) / 2); background: var(--raised); border-radius: var(--radius-hero) var(--radius-hero) 0 0; padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center;
}
.footer-brand { display: grid; gap: 8px; }
.footer-brand p { color: var(--ink2); font-size: var(--step--1); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: grid; padding: 9px 20px; border-radius: 99px;
  background: var(--ink); color: var(--bg);
  font: 800 1rem/1.2 var(--font-display);
}
.store small { font: 600 0.7rem/1.3 var(--font-body); opacity: .75; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-contacts div { display: grid; gap: 2px; }
.footer-contacts dt { font: 700 0.72rem/1.4 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink2); }
.footer-contacts dd { margin: 0; }
.footer-contacts a { text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.footer-contacts a:hover { color: var(--acc-ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; grid-column: 1 / -1; font-size: var(--step--1); color: var(--ink2); }
.footer-nav a { color: var(--ink2); }
.footer-nav a:hover { color: var(--ink); }
.footer-nav .copyright { margin-left: auto; }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav .copyright { margin-left: 0; }
}

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section); }
.legal-body { max-width: 44rem; display: grid; gap: 18px; }
.legal-body h1 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; }
.legal-body h2 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; letter-spacing: -0.025em; margin-top: 18px; }
.legal-body h3 { font-size: var(--step-1); }
.legal-body p, .legal-body li { color: var(--ink2); }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--acc-ink); font-weight: 600; }
.legal-body ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.legal-body .updated { font: 700 0.75rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .09em; color: var(--acc-ink); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .phone { animation: roll-in .9s cubic-bezier(.2,.8,.2,1) .1s both; }
  .hero-visual > .wheel { animation: spin 60s linear infinite; }
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@keyframes roll-in { from { transform: translateY(30px) rotate(8deg); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Privacy policy (privacy.html): language switch, summary box, services table, Slovenian part. */
.legal-body .lang { display: flex; gap: 10px; }
.legal-body .lang a { padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 700; }
.legal-body .lang a:hover { border-color: var(--ink); }
.legal-body .note { background: var(--acc-tint); color: var(--acc-on); border-radius: var(--radius-tile); padding: 16px 20px; }
.legal-body .note * { color: inherit; }
.legal-body .muted { font: 700 0.75rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .09em; color: var(--acc-ink); }
.legal-body article { display: grid; gap: 18px; }
.legal-body .part { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-body .table-wrap { overflow-x: auto; background: var(--raised); border-radius: var(--radius-tile); box-shadow: var(--shadow-sm); padding: 6px 12px; }
.legal-body table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink2); }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body th { color: var(--ink); font-weight: 700; }
/* Ride and invite link pages (r/, i/): English and Slovenian, one after the other. */
.legal-body section { display: grid; gap: 12px; }
.legal-body section + section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Language switch (header) */
.site-nav a.lang-switch {
  padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 99px;
  color: var(--ink);
}
.site-nav a.lang-switch:hover { border-color: var(--ink); }
@media (max-width: 1040px) { .site-nav a.lang-switch { align-self: flex-start; padding: 8px 16px; margin-top: 10px; border-bottom: 1.5px solid var(--line); } }
