/* Mapish marketing site. Hand-written, no dependencies, no external requests.
   Brand tokens mirror mobile/lib/app/theme/app_theme.dart. Text colours are darker/lighter
   variants of the brand greens so body copy and links pass WCAG AA (the raw brand greens
   #0E9C63 / #17B978 are only used for the wordmark, decoration and large shapes). */

:root {
  color-scheme: light dark;

  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #e8e8ea;
  --band: #e0e0e3;
  --ink: #14141a;
  --muted: #55555c;
  --line: #d0d0d4;
  --brand: #0b5f3c;          /* text links, primary button background */
  --brand-ink: #ffffff;      /* text on --brand */
  --brand-soft: #e4e4e7;
  --seed: #0f7a4d;
  --accent: #a88a3f;
  --wm-map: #0b5f3c;
  --wm-bang: #a88a3f;
  --wm-sh: #0f7a4d;
  --focus: #0b5f3c;

  --fuel-regular: #2e8b57;
  --fuel-diesel: #a88a3f;
  --fuel-high: #d32f2f;

  --frame: #17181d;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.22), 0 4px 10px -4px rgba(0, 0, 0, 0.14);

  --radius: 18px;
  --maxw: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --surface: #1a1a1d;
    --surface-2: #242428;
    --band: #161618;
    --ink: #f0f0f2;
    --muted: #a9a9b0;
    --line: #34343a;
    --brand: #4bd497;
    --brand-ink: #04140c;
    --brand-soft: #26262b;
    --wm-map: #7fe3b4;
    --wm-bang: #d1ae55;
    --wm-sh: #35d08f;
    --focus: #7fe3b4;
    --fuel-regular: #4bbf85;
    --fuel-diesel: #e0b04a;
    --fuel-high: #ff7b72;
    --frame: #05090700;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111113;
  --surface: #1a1a1d;
  --surface-2: #242428;
  --band: #161618;
  --ink: #f0f0f2;
  --muted: #a9a9b0;
  --line: #34343a;
  --brand: #4bd497;
  --brand-ink: #04140c;
  --brand-soft: #26262b;
  --wm-map: #7fe3b4;
  --wm-bang: #d1ae55;
  --wm-sh: #35d08f;
  --focus: #7fe3b4;
  --fuel-regular: #4bbf85;
  --fuel-diesel: #e0b04a;
  --fuel-high: #ff7b72;
  --frame: #05090700;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }

/* ---------- typography ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 7.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 38rem; }
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- wordmark ---------- */
.wordmark { font-weight: 900; letter-spacing: -0.03em; }
.wordmark .map { color: var(--wm-map); }
.wordmark .bang { color: var(--wm-bang); }
.wordmark .sh { color: var(--wm-sh); font-style: italic; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 1.5rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: none; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--brand); text-decoration: underline; }

.pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 750;
  font-size: 0.85rem;
  border: 1px solid var(--line);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}
.btn:hover { text-decoration: underline; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* "Coming soon" box: deliberately NOT a link and NOT a store badge. */
.soon {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  border: 2px dashed var(--line);
  background: var(--surface);
}
.soon strong { font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 3rem; overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 .tag { display: block; }
.tagline { font-size: 1.25rem; font-weight: 750; color: var(--brand); margin-bottom: 0.5rem; }
.hero-phones { display: flex; justify-content: center; gap: 1rem; }
.hero-phones .phone:nth-child(2) { margin-top: 2.5rem; }

/* ---------- device frame ---------- */
.phone {
  margin: 0;
  width: min(44vw, 260px);
  flex: none;
}
.phone .frame {
  padding: 8px;
  border-radius: 34px;
  background: #17181d;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.phone img { border-radius: 26px; width: 100%; background: var(--surface); }
.phone figcaption { margin-top: 0.75rem; font-size: 0.82rem; color: var(--muted); text-align: center; line-height: 1.4; }

/* ---------- sections ---------- */
section { padding: 3.5rem 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.2rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); }

.feature { display: grid; gap: 2rem; align-items: center; }
.feature + .feature { margin-top: 4rem; }
.feature .phone { margin: 0 auto; width: min(64vw, 270px); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.5rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg) translateY(-30%);
}

.cards { display: grid; gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { margin-bottom: 0.35rem; }
.card p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid currentColor;
}
.badge.official { color: var(--brand); }
.badge.community { color: var(--ink); }
.badge.estimate { color: var(--muted); border-style: dashed; }
.badge.soon-b { color: var(--muted); }

.fuels { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.fuels li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--dot);
  font-weight: 700;
  font-size: 0.9rem;
}
.fuels li::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--dot); }
.fuels .regular { --dot: var(--fuel-regular); }
.fuels .diesel { --dot: var(--fuel-diesel); }
.fuels .high { --dot: var(--fuel-high); }

.coverage { display: grid; gap: 1rem; margin-top: 2rem; }
.countries { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.countries li { padding: 0.25rem 0.8rem; border-radius: 8px; background: var(--surface-2); font-weight: 650; }
.note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.75rem;
}
summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 750;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 1.25rem 1rem; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- prose pages (privacy, 404) ---------- */
.prose { max-width: 46rem; padding: 2.5rem 1rem 4rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.notfound { text-align: center; padding: 5rem 0; }

/* ---------- larger screens ---------- */
@media (min-width: 48em) {
  .wrap { padding: 0 2rem; }
  .nav { display: flex; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; }
  .phone { width: 250px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4.2rem 1.25rem 1.25rem; }
  .steps li::before { top: 1.1rem; left: 1.25rem; }
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature.flip .copy { order: 2; }
  .feature .phone { width: 270px; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .coverage { grid-template-columns: 1fr 1fr; }
  section { padding: 5rem 0; }
}

@media (min-width: 64em) {
  .hero-phones { gap: 1.75rem; }
  .phone { width: 270px; }
}

/* ---------- motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .phone .frame { border: 2px solid CanvasText; }
}
@media print {
  .site-header, .skip { display: none; }
}

/* Waitlist form */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.waitlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem; max-width: 30rem; box-shadow: var(--shadow); }
.waitlist-title { margin: 0 0 0.25rem; font-size: 1.25rem; }
.wl-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.wl-row input[type="email"] { flex: 1 1 14rem; min-width: 0; font: inherit; padding: 0.7rem 0.9rem; border-radius: 999px; border: 1px solid var(--muted); background: var(--bg); color: var(--ink); }
.wl-row input[type="email"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wl-row .btn { cursor: pointer; border: 0; font: inherit; }
.wl-consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.75rem; font-size: 0.9rem; }
.wl-consent input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--brand); }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-status { margin: 0.75rem 0 0; min-height: 1.3em; font-weight: 600; }
.wl-status.ok { color: var(--brand); }
.wl-status.err { color: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wl-status.err { color: #ff8a80; } }
:root[data-theme="dark"] .wl-status.err { color: #ff8a80; }
.preview-banner { background: #b3261e; color: #fff; padding: 0.6rem 1rem; text-align: center; font-weight: 600; }

/* =====================================================================
   Trip planner / dashboard / smart map / motion (all CSS, CSP-safe: no inline styles)
   ===================================================================== */
.tint { background: linear-gradient(180deg, var(--bg), var(--band)); }
.split { display: grid; gap: 2.5rem; align-items: center; }
.split + .shots, .shots + .note { margin-top: 3rem; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.shots .phone { width: min(42vw, 230px); }
.shots.four .phone:nth-child(even), .shots.three .phone:nth-child(2) { margin-top: 1.75rem; }
.phone img { aspect-ratio: 540 / 1170; object-fit: cover; }
.hero-phones .phone img, .feature .phone img { aspect-ratio: 540 / 1045; }

/* benefits list */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.benefits li { display: flex; gap: 0.9rem; align-items: flex-start; }
.benefits h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.benefits p { margin: 0; color: var(--muted); }
.ico { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 0.95rem; }
.ico.big { width: 2.6rem; height: 2.6rem; font-size: 1.2rem; margin-bottom: 0.75rem; border-radius: 14px; }

/* route illustration */
.route-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1rem; box-shadow: var(--shadow); }
.route { width: 100%; height: auto; display: block; font-family: var(--font); }
.route .grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.route .route-base { fill: none; stroke: var(--line); stroke-width: 8; stroke-linecap: round; }
.route .route-line { fill: none; stroke: var(--seed); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route .dots circle { fill: #8a9391; opacity: 0.85; }
.route .ends .start { fill: var(--surface); stroke: var(--brand); stroke-width: 4; }
.route .ends .end { fill: var(--brand); }
.route .ends text { fill: var(--muted); font-size: 13px; font-weight: 600; }
.route .stop .core { fill: var(--seed); stroke: var(--surface); stroke-width: 3; }
.route .stop.best .core { fill: #b08d3a; }
.route .stop .pulse { fill: var(--seed); opacity: 0.3; }
.route .stop.best .pulse { fill: #b08d3a; }
.route .tag rect { fill: var(--brand); }
.route .tag text { fill: var(--brand-ink); font-size: 14px; font-weight: 800; }
.route .stop, .route .pulse { transform-box: fill-box; transform-origin: center; }
.route-card figcaption { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 0.4rem; }
.k { display: inline-block; border-radius: 50%; }
.stop-k { width: 0.85rem; height: 0.85rem; background: var(--seed); }
.dot-k { width: 0.5rem; height: 0.5rem; background: #8a9391; }
.chip { padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.8rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat .num { display: block; font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .lbl { display: block; color: var(--muted); font-size: 0.9rem; }

/* map keys + chips */
.keys { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.keys li { display: flex; align-items: center; gap: 0.7rem; }
.pin { flex: none; display: inline-block; border-radius: 50%; }
.pin.gold { width: 1.1rem; height: 1.1rem; background: #b08d3a; box-shadow: 0 0 0 4px rgba(176, 141, 58, 0.3); }
.pin.green { width: 0.85rem; height: 0.85rem; background: var(--seed); margin-inline: 0.125rem; }
.pin.grey { width: 0.7rem; height: 0.7rem; background: #8a9391; margin-inline: 0.2rem; }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.3rem 0.9rem; border-radius: 999px; border: 2px solid var(--brand); color: var(--brand); font-weight: 750; font-size: 0.92rem; background: var(--surface); }

/* hover lift */
.lift { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--seed); }

/* header shrink/blur (fixed height: no layout shift) */
.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.brand { transform-origin: left center; transition: transform 0.3s ease; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.35); }
.site-header.scrolled .brand { transform: scale(0.88); }

/* animated hero accent */
.tagline .grad { background: linear-gradient(100deg, #0b5f3c, #a88a3f, #0b5f3c); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shimmer 6s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tagline .grad { background-image: linear-gradient(100deg, #4bd497, #e6cb85, #4bd497); background-size: 200% 100%; } }
:root[data-theme="dark"] .tagline .grad { background-image: linear-gradient(100deg, #4bd497, #e6cb85, #4bd497); background-size: 200% 100%; }
.hero { position: relative; }
.hero::before { content: ""; position: absolute; width: 38rem; height: 38rem; right: -12rem; top: -14rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(209, 174, 85, 0.14), transparent); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.hero .wrap { position: relative; }
@keyframes shimmer { to { background-position: 100% 0; } }
@keyframes drift { to { transform: translate3d(-3rem, 3rem, 0) scale(1.1); } }

/* phones: gentle float (transform) + parallax (translate property, set by JS via custom property) */
.frame.par { translate: 0 var(--py, 0px); }
.frame.float { animation: float 7s ease-in-out infinite; }
.frame.float.alt { animation-duration: 8.5s; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* route animation: draws when the card scrolls into view */
.route-card .stop { opacity: 0; }
.route-card .route-line { stroke-dashoffset: 1; }
.route-card.is-in .route-line { animation: draw 2.4s ease-out forwards; }
.route-card.is-in .stop { animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.route-card.is-in .s1 { animation-delay: 0.9s; }
.route-card.is-in .s2 { animation-delay: 1.5s; }
.route-card.is-in .s3 { animation-delay: 2.1s; }
.route-card.is-in .pulse { animation: pulse 2.2s ease-out 1.2s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(2.2); opacity: 0; } }
/* without JS the route is shown fully drawn */
html:not(.js) .route-card .stop { opacity: 1; }
html:not(.js) .route-card .route-line { stroke-dashoffset: 0; }

/* scroll reveal: only hides when JS is running */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 0.1s; }
.js [data-reveal="3"] { transition-delay: 0.2s; }
.js [data-reveal="4"] { transition-delay: 0.3s; }
.js .lift[data-reveal].is-in:hover { transition-delay: 0s; }

@media (min-width: 48em) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .shots .phone { width: 210px; }
  .shots.two .phone { width: 230px; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.88rem; }
}
@media (min-width: 64em) { .nav { gap: 1.4rem; } .nav a { font-size: 0.95rem; } .shots.four .phone { width: 240px; } }

@media (prefers-reduced-motion: reduce) {
  .frame.par { translate: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .route-card .stop { opacity: 1; }
  .route-card .route-line { stroke-dashoffset: 0; }
  .tagline .grad, .hero::before { animation: none !important; }
}
.js .lift[data-reveal].is-in:hover { transform: translateY(-5px); transition-duration: 0.25s; }

/* Brand gold (brass of the logo pin) for Pro / Gold / premium states. Greens stay for verified/active. */
:root { --gold:#B08D3A;--gold-dark:#8A6B22;--gold-light:#D9B95C;--gold-bg:#FBF4DE;--gold-ink:#5C4513; }
:root[data-theme="dark"] { --gold:#D1AE55;--gold-dark:#B08D3A;--gold-light:#E6CB85;--gold-bg:#33290F;--gold-ink:#F1DDA0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gold:#D1AE55;--gold-dark:#B08D3A;--gold-light:#E6CB85;--gold-bg:#33290F;--gold-ink:#F1DDA0; } }

/* Gold only on special icons/badges (Pro / Gold / Founding Scout). Selected/active controls get a thin light-gold border. */
.badge-gold, .tag-gold { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 800; background: var(--gold-bg); color: var(--gold-ink); border: 0; box-shadow: 0 0 12px rgba(209, 174, 85, 0.35); }
[aria-pressed="true"], [aria-current="true"], [aria-current="page"], [aria-selected="true"], .is-active { outline: none; }


/* ---------- Scan & Go / Verified Fresh / Plans ---------- */
.sg-grid { display: grid; gap: 2rem; align-items: center; }
.sg-rewards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.sg-rewards li { padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.sg-icon { color: var(--gold); margin-right: 0.35rem; }
.sg-fresh { color: var(--seed); }
.sg-note { max-width: 46rem; margin-top: 1.5rem; }
.sg-art { margin: 0 auto; width: min(88vw, 360px); }
.sg-art svg { width: 100%; height: auto; display: block; }
.sg-ph { fill: var(--frame); }
.sg-ph2 { fill: var(--surface); stroke: var(--line); stroke-width: 3; }
.sg-qrbg { fill: #fff; }
.sg-qr rect { fill: #14141a; }
.sg-txt { fill: var(--ink); font: 700 13px var(--font); }
.sg-ph ~ .sg-txt { fill: #fff; }
.sg-btn { fill: var(--brand); }
.sg-btntxt { fill: var(--brand-ink); font: 700 12px var(--font); }
.sg-view { fill: var(--band); stroke: var(--line); }
.sg-corner { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.sg-scan { fill: var(--accent); animation: sgScan 2.4s ease-in-out infinite alternate; }
@keyframes sgScan { from { transform: translateY(0); } to { transform: translateY(76px); } }
.sg-plans ul { margin: 0.75rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
@media (min-width: 48em) { .sg-grid { grid-template-columns: 1.2fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .sg-scan { animation: none; transform: translateY(38px); } }

/* Logo palette: deep green, brass, light/mid grey. Brass is a soft glow only: no gold lines or edges. */
.btn { border-color: transparent; box-shadow: 0 0 18px rgba(209, 174, 85, 0.28); }
.btn.ghost { border-color: var(--line); box-shadow: none; }
.btn:hover { box-shadow: 0 0 24px rgba(209, 174, 85, 0.42); }
.site-header { border-bottom: 1px solid var(--line); }
.card { border-color: var(--line); border-top: 1px solid var(--line); box-shadow: 0 0 22px rgba(209, 174, 85, 0.14); }
.band { border-block-color: var(--line); }

/* Fluid full-width layout: use almost the whole viewport on large screens, 16px gutters on phones. */
:root { --maxw: 100rem; }
.wrap { padding-inline: clamp(1rem, 4vw, 4rem); }
.hero .wrap, .cards { column-gap: clamp(1rem, 3vw, 3rem); }
.hero p, .section > .wrap > p { max-width: 65ch; }
img, svg, video { max-width: 100%; }
body { overflow-x: hidden; }

/* Mobile: grid/flex children may shrink below their content so nothing forces horizontal scroll. */
.hero .wrap { grid-template-columns: minmax(0, 1fr); }
.hero .wrap > *, .site-header .wrap > *, .cards > * { min-width: 0; }
.hero-phones .phone { width: min(44vw, 250px); }
@media (min-width: 48em) { .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.preview-banner { overflow-wrap: anywhere; }

/* Logo in the hero and header, theme toggle */
.brand img { width: 44px; height: 44px; border-radius: 0; background: none; object-fit: contain; }
.hero-logo { display: block; width: clamp(120px, 22vw, 220px); height: auto; margin: 0 0 1.25rem; filter: drop-shadow(0 18px 24px rgba(60, 45, 10, 0.35)); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.theme-toggle button { font: inherit; font-size: 0.8rem; font-weight: 650; padding: 0.35rem 0.75rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.theme-toggle button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 30em) { .pill { display: none; } }

/* Hero brand mark: large pin with a soft brass/green glow */
.hero-mark { position: relative; display: grid; place-items: center; min-height: clamp(260px, 42vw, 560px); }
.hero-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(209, 174, 85, 0.5) 0%, rgba(150, 150, 160, 0.16) 45%, transparent 70%); filter: blur(34px); animation: glow 5s ease-in-out infinite alternate; }
.hero-mark-img { position: relative; width: min(72%, 440px); height: auto; filter: drop-shadow(0 0 22px rgba(209, 174, 85, 0.45)); animation: bob 6s ease-in-out infinite; }
:root[data-theme="dark"] .hero-glow { opacity: 1; }
@keyframes glow { from { opacity: 0.65; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-glow, .hero-mark-img { animation: none; } }
.header-actions { flex-wrap: nowrap; flex-shrink: 0; }
.pill, .theme-toggle button { white-space: nowrap; }
.theme-toggle { flex-shrink: 0; }
.nav a { white-space: nowrap; }
.nav { min-width: 0; }


/* Smaller, crisper hero mark with a subtler glow */
.hero-mark { min-height: 0; }
.hero-mark-img { width: min(60%, 240px); filter: drop-shadow(0 0 14px rgba(209, 174, 85, 0.35)); }
.hero-glow { width: 62%; filter: blur(40px); opacity: 0.55; }
@keyframes glow { from { opacity: 0.35; transform: scale(0.95); } to { opacity: 0.6; transform: scale(1.04); } }

/* ---------- responsive header ---------- */
.brand { flex-shrink: 0; }
.nav-toggle { display: inline-flex; align-items: center; font: inherit; font-size: 0.85rem; font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Below 80em the links live in a dropdown panel under the header. */
@media (max-width: 79.99em) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 0.5rem 1rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.35); }
  .site-header.nav-open .nav { display: flex; }
  .nav a { padding: 0.85rem 0.5rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { text-decoration: none; background: var(--surface-2); }
  .header-actions { gap: 0.5rem; }
}
@media (min-width: 80em) {
  .nav-toggle { display: none; }
  .nav { display: flex; gap: 1.1rem; }
  .nav a { font-size: 0.9rem; }
}
@media (max-width: 30em) {
  .site-header .wrap { gap: 0.5rem; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 36px; height: 36px; }
  .theme-toggle button { padding: 0.3rem 0.55rem; }
}

/* ---------- launch animation: the six pins shown one after another, same size, no fading ---------- */
.pin-splash { display: none; position: fixed; inset: 0; z-index: 1000; place-items: center; background: var(--bg); }
.pin-splash-on .pin-splash { display: grid; }
.pin-splash.is-leaving { opacity: 0; pointer-events: none; }
.pin-splash__pin { grid-area: 1 / 1; width: clamp(96px, 20vw, 140px); height: auto; opacity: 0; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28)); animation: pin-show 2.4s steps(1, end) infinite; animation-delay: calc(var(--i) * 0.4s); }
/* Each pin is visible for its own 0.4s (1/6 of the round), then hidden; it never fades or moves. */
@keyframes pin-show {
  0% { opacity: 1; }
  16.6667% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pin-splash { display: none !important; } }
