/* ============================================================
   Roovr — landing page
   Vanilla CSS, design tokens via custom properties.
   Dark mode is default; light mode swaps via body[data-mode="light"].
   ============================================================ */

:root {
  --accent: #C6FF3D;
  --ink: #0A0B08;
  --paper: #F4F5F1;
  --paper-alt: #EDEDE8;
  --dark: #0B0D0A;
  --dark-alt: #17191A;

  --font-title: -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-body:  -apple-system, "SF Pro Text", system-ui, sans-serif;
  --font-mono:  "SF Mono", ui-monospace, Menlo, monospace;

  --container: 1320px;
  --gutter: 32px;
  --radius-card: 24px;
  --radius-pill: 999px;

  --map-land: #131613;
  --map-land-alt: #191D19;
  --map-road: #23271F;
  --map-road-minor: #1C1F1B;
  --map-park: #1C2615;
  --map-water: #0E1A1E;
  --map-label: rgba(244, 246, 240, 0.32);
}

body[data-mode="dark"] {
  --bg: var(--dark);
  --bg-alt: var(--dark-alt);
  --surface: var(--dark-alt);
  --text: #F4F6F0;
  --muted: rgba(244, 246, 240, 0.62);
  --line: rgba(244, 246, 240, 0.08);
  --route-active: var(--accent);
  --pin-ring: var(--dark-alt);
  --map-land: #131613;
  --map-land-alt: #191D19;
  --map-road: #23271F;
  --map-road-minor: #1C1F1B;
  --map-park: #1C2615;
  --map-water: #0E1A1E;
  --map-label: rgba(244, 246, 240, 0.32);
  --how-bg: var(--dark-alt);
  --how-card: var(--dark);
  --footer-bg: var(--dark);
}

body[data-mode="light"] {
  --bg: var(--paper);
  --bg-alt: #FAFBF6;
  --surface: #fff;
  --text: var(--ink);
  --muted: rgba(10, 11, 8, 0.55);
  --line: rgba(10, 11, 8, 0.08);
  --route-active: var(--ink);
  --pin-ring: #fff;
  --map-land: #EDEFE6;
  --map-land-alt: #E2E6D5;
  --map-road: #FFFFFF;
  --map-road-minor: #F6F7F1;
  --map-park: #DDEBBE;
  --map-water: #D6E7E4;
  --map-label: rgba(10, 11, 8, 0.36);
  --how-bg: #FAFBF6;
  --how-card: #fff;
  --footer-bg: var(--ink);
}

/* ============================================================
   Reset + base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

/* ============================================================
   Utility primitives
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-dot::before { display: none; }
.eyebrow.ink::before { background: var(--ink); }

.section-heading {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -1.8px;
  color: var(--text);
  margin: 20px 0 0;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.2px;
  border-radius: 16px;
  padding: 16px 22px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-accent {
  background: var(--accent);
  color: #0A0B08;
  box-shadow: 0 10px 30px rgba(198, 255, 61, 0.34);
}
.btn-accent, .btn-accent * { color: #0A0B08; }
.btn-accent svg { fill: #0A0B08; stroke: #0A0B08; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(198, 255, 61, 0.45); }
body[data-mode="light"] .btn-accent { box-shadow: 0 10px 30px rgba(198, 255, 61, 0.55); }

.store-badge {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { display: block; height: 50px; width: auto; }
.download-cta .store-badge img { height: 60px; }
/* The Google Play PNG bakes ~25% clear space into the image, so render
   it ~1.3x taller than the Apple badge to match visible button heights. */
.store-badge img[src*="google-play"] { height: 65px; }
.download-cta .store-badge img[src*="google-play"] { height: 78px; }
@media (max-width: 720px) {
  .store-badge img { height: 44px; }
  .download-cta .store-badge img { height: 52px; }
  .store-badge img[src*="google-play"] { height: 57px; }
  .download-cta .store-badge img[src*="google-play"] { height: 68px; }
}

.nav-cta, .nav-cta * { color: #0A0B08 !important; }
.nav-cta svg { stroke: #0A0B08 !important; fill: none; }

.btn-ink {
  background: var(--ink);
  color: var(--accent);
  border-radius: 16px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
}

/* ============================================================
   Scroll fade-in (IntersectionObserver toggles .visible)
   ============================================================ */

html.js .fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}
html.js .fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
body[data-mode="dark"] .nav { background: rgba(11, 13, 10, 0.72); }
body[data-mode="light"] .nav { background: rgba(244, 245, 241, 0.78); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-left { display: flex; align-items: center; gap: 20px; }
.nav-version {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.1px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.mode-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mode-toggle:hover { color: var(--text); border-color: var(--text); }
.mode-toggle .icon-sun { display: none; }
.mode-toggle .icon-moon { display: block; }
body[data-mode="light"] .mode-toggle .icon-sun { display: block; }
body[data-mode="light"] .mode-toggle .icon-moon { display: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 60px);
}
.hero-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag-accent {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--text);
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero h1 .highlight {
  background: var(--accent);
  color: var(--ink);
  padding: 0 0.12em;
  border-radius: 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 28px 0 0;
  max-width: 480px;
  letter-spacing: -0.2px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-cta-meta {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero-cta-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-stats {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-stats .num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
}
.hero-stats .lab {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Hero map card */
.hero-map-card {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
body[data-mode="light"] .hero-map-card {
  box-shadow: 0 30px 80px rgba(10, 11, 8, 0.12), 0 4px 12px rgba(10, 11, 8, 0.06);
}
.hero-map-svg { width: 100%; height: 100%; display: block; }
.hero-map-chrome {
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.chrome-pill {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 0.5px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: -0.1px;
  color: var(--text);
}
body[data-mode="dark"] .chrome-pill { background: rgba(11, 13, 10, 0.7); }
body[data-mode="light"] .chrome-pill { background: rgba(255, 255, 255, 0.88); }
.chrome-pill .dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.2);
}
.chrome-pill .muted { color: var(--muted); font-weight: 500; }
.chrome-pill strong { font-weight: 600; }
.chrome-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
}
body[data-mode="dark"] .chrome-mono { background: rgba(11, 13, 10, 0.7); }
body[data-mode="light"] .chrome-mono { background: rgba(255, 255, 255, 0.88); }

.hero-map-stats {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
body[data-mode="dark"] .hero-map-stats { background: rgba(11, 13, 10, 0.78); }
body[data-mode="light"] .hero-map-stats { background: rgba(255, 255, 255, 0.92); }
.hero-map-stats .stat {
  padding: 14px 12px;
  border-right: 0.5px solid var(--line);
}
.hero-map-stats .stat:last-child { border-right: none; }
.hero-map-stats .lab {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
}
.hero-map-stats .stat-icon { flex-shrink: 0; color: var(--muted); }
.hero-map-stats .val {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.6px;
  margin-top: 4px;
  display: flex; align-items: baseline; gap: 3px;
}
.hero-map-stats .unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

/* ============================================================
   How it works
   ============================================================ */

.howitworks {
  background: var(--how-bg);
  border-bottom: 1px solid var(--line);
  padding: 120px var(--gutter);
}
.howitworks .container { padding: 0; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: var(--how-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 420px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--accent);
  text-transform: uppercase;
}
.step-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-art svg { width: 100%; height: auto; max-width: 100%; display: block; }
.step-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}
.step-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: -0.1px;
  text-wrap: pretty;
  margin: 0;
}

/* ============================================================
   Features (bento)
   ============================================================ */

.features {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 120px var(--gutter);
}
.features-head {
  margin-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}
.bento-card.span-3-2 { grid-column: span 3; grid-row: span 2; }
.bento-card.span-2-2 { grid-column: span 2; grid-row: span 2; padding: 24px; }
.bento-card.accent {
  background: var(--accent);
  border: none;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.bento-card.accent .feat-num,
.bento-card.accent .feat-sub { color: rgba(10, 11, 8, 0.55); }
.bento-card.accent .feat-title { color: var(--ink); }
.feat-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.feat-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.feat-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  letter-spacing: -0.1px;
  max-width: 320px;
  margin: 0;
}

/* Surface mix bar (in accent card — uses ink colors) */
.surf-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
  background: rgba(10, 11, 8, 0.15);
}
.surf-bar .seg-1 { background: var(--ink); }
.surf-bar .seg-2 { background: rgba(10, 11, 8, 0.5); }
.surf-bar .seg-3 { background: rgba(10, 11, 8, 0.25); }
.surf-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.surf-legend > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.surf-legend .swatch {
  width: 10px; height: 10px;
  border-radius: 2px;
}
.surf-legend strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.surf-legend .pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(10, 11, 8, 0.55);
}

/* Favorites list (in bento) */
.fav-list { display: flex; flex-direction: column; gap: 6px; }
.fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}
body[data-mode="dark"] .fav-item { background: rgba(244, 246, 240, 0.04); }
body[data-mode="light"] .fav-item { background: rgba(10, 11, 8, 0.03); }
.fav-item .name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.fav-item .km {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}

/* Difficulty meter (replaces "Splits temps réel") */
.difficulty {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diff-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.diff-row .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  width: 56px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.diff-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
body[data-mode="dark"] .diff-bar { background: rgba(244, 246, 240, 0.06); }
body[data-mode="light"] .diff-bar { background: rgba(10, 11, 8, 0.05); }
.diff-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.diff-fill.dim { background: rgba(244, 246, 240, 0.4); }
body[data-mode="light"] .diff-fill.dim { background: rgba(10, 11, 8, 0.35); }
.diff-row .val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 32px;
  text-align: right;
}

/* ============================================================
   Mockups carousel
   ============================================================ */

.mockups {
  background: var(--how-bg);
  border-bottom: 1px solid var(--line);
  padding: 120px var(--gutter);
  overflow: hidden;
}
.mockups-head {
  margin-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.mockups-dots {
  display: flex;
  gap: 8px;
}
.mockups-dots button {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: rgba(244, 246, 240, 0.2);
  transition: background 0.3s ease;
}
body[data-mode="light"] .mockups-dots button { background: rgba(10, 11, 8, 0.18); }
.mockups-dots button[data-active="true"] { background: var(--accent); }

.mockups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 700px;
}
.phone {
  position: absolute;
  top: 20px;
  transition: transform 0.7s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.5s ease, filter 0.5s ease;
  width: 320px; height: 660px;
  border-radius: 44px;
  background: var(--ink);
  padding: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
body[data-mode="light"] .phone { background: #1A1A1A; }
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.phone-screen .island {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  border-radius: 16px;
  background: #000;
  z-index: 50;
}

/* Carousel positions (data-pos is the offset from active, clamped to ±2) */
.phone[data-pos="-2"] { transform: translateX(-220%) scale(0.7); opacity: 0; pointer-events: none; }
.phone[data-pos="-1"] { transform: translateX(-110%) scale(0.85); opacity: 0.35; filter: blur(2px); pointer-events: none; }
.phone[data-pos="0"]  { transform: translateX(0) scale(1); opacity: 1; pointer-events: auto; }
.phone[data-pos="1"]  { transform: translateX(110%) scale(0.85); opacity: 0.35; filter: blur(2px); pointer-events: none; }
.phone[data-pos="2"]  { transform: translateX(220%) scale(0.7); opacity: 0; pointer-events: none; }

.captions { position: relative; }
.caption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  pointer-events: none;
  inset: 0;
}
.caption[data-active="true"] {
  opacity: 1;
  transform: none;
  position: relative;
  pointer-events: auto;
}
.caption .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--accent);
  text-transform: uppercase;
}
.caption h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--text);
  margin: 12px 0 12px;
}
.caption p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.1px;
  max-width: 420px;
  margin: 0;
}

/* Phone screen styles */
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 14px 20px 28px;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.15);
}
.sheet-handle {
  width: 36px; height: 5px;
  border-radius: 3px;
  background: var(--muted);
  opacity: 0.4;
  margin: 0 auto 18px;
}
.sheet-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.sheet-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-top: 4px;
}
.dist-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 6px;
}
.dist-num .big {
  font-family: var(--font-title);
  font-size: 76px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -2.6px;
  line-height: 1;
}
.dist-num .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.dist-meta {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}
.slider-mock {
  height: 24px;
  position: relative;
  margin-bottom: 16px;
}
.slider-mock .track {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  height: 5px;
  border-radius: 3px;
}
body[data-mode="dark"] .slider-mock .track { background: rgba(244, 246, 240, 0.1); }
body[data-mode="light"] .slider-mock .track { background: rgba(10, 11, 8, 0.08); }
.slider-mock .fill {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 37%;
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
}
.slider-mock .thumb {
  position: absolute;
  top: 50%; left: 37%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 11px;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(198, 255, 61, 0.13);
}
.presets {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.preset {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.preset.active {
  border-color: var(--accent);
  background: rgba(198, 255, 61, 0.2);
}
.cta-mock {
  margin-top: 16px;
  padding: 13px;
  text-align: center;
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stats-mock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.stats-mock .stat {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 6px;
}
.stats-mock .lab {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--muted);
  text-transform: uppercase;
}
.stats-mock .val {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 2px;
}
.stats-mock .v {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}
.stats-mock .u {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}
.elev-card {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-top: 8px;
}
.elev-card .lab {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.export-overlay {
  position: absolute;
  inset: 0;
}
body[data-mode="dark"] .export-overlay { background: rgba(11, 13, 10, 0.6); }
body[data-mode="light"] .export-overlay { background: rgba(10, 11, 8, 0.4); }
.export-map-dim {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  overflow: hidden;
}
.export-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 14px 18px 24px;
}
.format-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.format-toggle .fmt {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border: 1px solid var(--line);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.app-grid .app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.app-grid .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.4px;
}
.app-grid .name {
  font-size: 10px;
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   Export section
   ============================================================ */

.export {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 120px var(--gutter);
}
.export-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.platform {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.platform .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.6px;
  flex-shrink: 0;
}
.platform .name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}
.platform .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin-top: 4px;
  text-transform: uppercase;
}
.export-banner {
  margin-top: 14px;
  padding: 20px 24px;
  background: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.export-banner .copy {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.export-banner .formats {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: rgba(10, 11, 8, 0.65);
  text-transform: uppercase;
}

/* ============================================================
   Download CTA
   ============================================================ */

.download {
  background: var(--accent);
  color: var(--ink);
  padding: 120px var(--gutter);
  border-bottom: 1px solid rgba(10, 11, 8, 0.12);
}
.download-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.download h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -2.6px;
  color: var(--ink);
  margin: 16px 0 0;
  text-wrap: balance;
}
.download p {
  font-size: 19px;
  color: rgba(10, 11, 8, 0.7);
  line-height: 1.5;
  margin-top: 20px;
  max-width: 520px;
  letter-spacing: -0.1px;
}
.download .features-row {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.download .features-row > div {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(10, 11, 8, 0.7);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.download .big-mark {
  display: flex;
  justify-content: center;
}
.download .big-mark > div {
  width: 280px; height: 280px;
  border-radius: 64px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 11, 8, 0.25);
}
.download-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.appstore-btn .label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.appstore-btn .small {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 1.2px;
  opacity: 0.7;
}
.appstore-btn .big {
  font-size: 19px;
  letter-spacing: -0.4px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--footer-bg);
  color: #F4F6F0;
  padding: 56px var(--gutter) 36px;
}
.footer .container { padding: 0; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244, 246, 240, 0.08);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand .tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 246, 240, 0.55);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.footer-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 246, 240, 0.55);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 246, 240, 0.55);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ============================================================
   Responsive (≤ 900px)
   ============================================================ */

@media (max-width: 1200px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-version { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px var(--gutter) 72px;
    min-height: auto;
  }
  .hero h1 { font-size: clamp(48px, 12vw, 72px); letter-spacing: -2px; }

  .howitworks, .features, .mockups, .export, .download { padding: 80px var(--gutter); }

  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-card.span-3-2,
  .bento-card.span-2-2 { grid-column: span 1; grid-row: span 1; }

  .mockups-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .phone-stage { min-height: 720px; }
  .phone[data-pos="-2"], .phone[data-pos="-1"], .phone[data-pos="1"], .phone[data-pos="2"] { display: none; }

  .export-grid { grid-template-columns: 1fr; }

  .download-grid { grid-template-columns: 1fr; gap: 32px; }
  .download h2 { font-size: clamp(40px, 12vw, 64px); letter-spacing: -1.6px; }
  .download .big-mark > div { width: 220px; height: 220px; border-radius: 50px; }

  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-map-stats .val { font-size: 18px; }
  .hero-map-chrome { top: 12px; left: 12px; right: 12px; }
  .hero-map-stats { left: 12px; right: 12px; bottom: 12px; }
  .nav-cta span { display: none; }
}

/* ============================================================
   Mockups — redesigned to match real app screens
   ============================================================ */

.phone-map.full-bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Map chrome (visible on top of full-bleed map) */
.map-chrome-pill {
  position: absolute;
  top: 50px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--line);
  font-size: 12px;
  letter-spacing: -0.1px;
  color: var(--text);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
body[data-mode="dark"] .map-chrome-pill { background: rgba(11, 13, 10, 0.7); }
body[data-mode="light"] .map-chrome-pill { background: rgba(255, 255, 255, 0.88); }
.map-chrome-pill .chrome-dot {
  width: 7px; height: 7px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.25);
}
.map-chrome-pill strong { font-weight: 600; }
.map-chrome-pill .chrome-muted { color: var(--muted); }

.map-chrome-buttons {
  position: absolute;
  top: 50px;
  right: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-btn {
  width: 36px; height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 0.5px solid var(--line);
  position: relative;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body[data-mode="dark"] .map-btn { background: rgba(11, 13, 10, 0.7); }
body[data-mode="light"] .map-btn { background: rgba(255, 255, 255, 0.88); }
.map-btn-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAB (mockup B) */
.fab {
  position: absolute;
  z-index: 6;
  bottom: calc(50% + 14px);
  right: 14px;
  width: 44px; height: 44px;
  border-radius: 22px;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(198, 255, 61, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
}
.fab svg { stroke: var(--ink); }

/* User location dot (mockup A) */
.user-dot {
  position: absolute;
  z-index: 4;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
}
.user-dot-halo, .user-dot-ring, .user-dot-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.user-dot-halo {
  width: 24px; height: 24px;
  background: var(--accent);
  opacity: 0.25;
  animation: user-pulse 2.4s ease-in-out infinite;
}
.user-dot-ring {
  width: 14px; height: 14px;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.user-dot-core {
  width: 6px; height: 6px;
  background: var(--accent);
}
@keyframes user-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.45; }
  50%      { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

/* Sheets — top positions for the new layouts */
.sheet-distance { top: 50%; padding-top: 14px; }
.sheet-route    { top: 42%; padding: 14px 16px; background: var(--surface); }

/* Mockup B: route header + favorite + actions row */
.route-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.route-title { font-size: 18px; margin-top: 2px; }
.route-fav {
  width: 32px; height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--line);
}
body[data-mode="dark"] .route-fav { background: rgba(244, 246, 240, 0.06); }
body[data-mode="light"] .route-fav { background: rgba(10, 11, 8, 0.04); }
.route-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.route-actions .cta-mock { flex: 1; padding: 10px 0; font-size: 13px; }
.cta-mock.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

/* Mockup C: export sheet with brand list */
.export-overlay {
  position: absolute;
  inset: 0;
}
body[data-mode="dark"] .export-overlay { background: rgba(11, 13, 10, 0.55); }
body[data-mode="light"] .export-overlay { background: rgba(10, 11, 8, 0.35); }

.export-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: 26%;
  background: var(--surface);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 14px 18px 24px;
}
.export-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.export-title { font-size: 18px; }
.export-close {
  width: 28px; height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 0.5px solid var(--line);
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 0.5px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease;
}
body[data-mode="dark"] .brand-tile:hover { background: rgba(244, 246, 240, 0.04); }
body[data-mode="light"] .brand-tile:hover { background: rgba(10, 11, 8, 0.03); }
.brand-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.4px;
  flex-shrink: 0;
}
.brand-icon-file {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.brand-text { flex: 1; min-width: 0; }
.brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}
.brand-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin-top: 2px;
  text-transform: uppercase;
}
.brand-arrow { color: var(--muted); }

/* ============================================================
   Bento card hover + scroll-in animation
   ============================================================ */

.bento-card {
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(198, 255, 61, 0.08);
}
.bento-card.accent:hover {
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(198, 255, 61, 0.32);
}

/* Bento internals fade in only when section enters viewport */
html.js .features:not(.visible) .bento-card .elev-content,
html.js .features:not(.visible) .bento-card .surf-bar > div,
html.js .features:not(.visible) .bento-card .fav-list,
html.js .features:not(.visible) #regen-svg,
html.js .features:not(.visible) .export-demo {
  opacity: 0;
}
html.js .features.visible .bento-card .elev-content,
html.js .features.visible .bento-card .surf-bar > div,
html.js .features.visible .bento-card .fav-list,
html.js .features.visible #regen-svg,
html.js .features.visible .export-demo {
  opacity: 1;
  transition: opacity 600ms ease 100ms;
}

/* ── Card 01: animated elevation ─────────────────────────────────────── */
.elev-content { position: relative; width: 100%; }
.elev-pill {
  position: absolute; top: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
body[data-mode="dark"] .elev-pill { background: rgba(11,13,10,0.7); }
body[data-mode="light"] .elev-pill { background: rgba(255,255,255,0.92); }
.elev-pill-dot {
  width: 6px; height: 6px; border-radius: 3px; background: var(--accent);
  transition: transform 0.2s ease;
}
.elev-pill.flash .elev-pill-dot { transform: scale(1.6); }
.elev-pill-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 600; color: var(--text);
  animation: roovr-pill-in 0.45s cubic-bezier(0.32,0.72,0,1) both;
}
.elev-pill-gain {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1px; color: var(--muted); margin-left: 2px;
}
@keyframes roovr-pill-in {
  0%   { opacity: 0; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}
.elev-scroll {
  margin-top: 28px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(198,255,61,0.4) transparent;
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
}
#elev-svg { width: 880px; height: 200px; display: block; }

/* ── Card 03: favorites with heart pop + particles ───────────────────── */
.fav-heart-wrap {
  position: relative; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.fav-heart {
  color: rgba(244,246,240,0.45);
  transition: fill 0.2s ease, stroke 0.2s ease;
  transform-origin: 50% 55%;
}
body[data-mode="light"] .fav-heart { color: rgba(10,11,8,0.4); }
.fav-item[data-active="true"] .fav-heart {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 0;
  animation: roovr-heart-pop 520ms cubic-bezier(.2,1.4,.4,1);
}
@keyframes roovr-heart-pop {
  0%   { transform: rotate(-18deg) scale(0.6); }
  35%  { transform: rotate(14deg) scale(1.25); }
  65%  { transform: rotate(-6deg) scale(0.95); }
  100% { transform: rotate(0deg) scale(1); }
}
.fav-burst {
  position: absolute; inset: 0;
  pointer-events: none;
}
.fav-item[data-active="true"][data-just-activated="true"] .fav-burst::before,
.fav-item[data-active="true"][data-just-activated="true"] .fav-burst::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 3px; height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  animation: roovr-heart-particle 620ms ease-out forwards;
  animation-delay: 40ms;
}
@keyframes roovr-heart-particle {
  0%   { transform: translate(0,0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: var(--burst-end, translate(14px,-14px)) scale(0.2); opacity: 0; }
}
/* Multiple particle directions — done via 8 absolutely-positioned <span> dots */
.fav-burst .p {
  position: absolute; left: 50%; top: 50%;
  width: 3px; height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
}
.fav-item[data-just-activated="true"] .fav-burst .p {
  animation: roovr-heart-particle 620ms ease-out 40ms forwards;
}

/* ── Card 04: relance loop ───────────────────────────────────────────── */
#regen-svg { width: 100%; height: 200px; display: block; }

/* ── Card 05: export demo ────────────────────────────────────────────── */
.export-demo {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 12px;
}
body[data-mode="dark"] .export-demo { background: rgba(244,246,240,0.05); }
body[data-mode="light"] .export-demo { background: rgba(10,11,8,0.035); }

.export-file-row { display: flex; justify-content: center; }
.export-file-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px 7px 9px; border-radius: 10px;
  border: 1px solid;
}
body[data-mode="dark"] .export-file-pill {
  background: #1A1B1A;
  border-color: rgba(244,246,240,0.14);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
body[data-mode="light"] .export-file-pill {
  background: #fff;
  border-color: rgba(10,11,8,0.12);
  box-shadow: 0 4px 14px rgba(10,11,8,0.06);
}
.export-file-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.export-file-icon svg { stroke: var(--ink); }
.export-file-name {
  font-size: 13px; font-weight: 600;
  color: var(--text); letter-spacing: -0.1px;
}
.export-file-tag {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--muted);
  padding: 2px 6px; border-radius: 4px;
}
body[data-mode="dark"] .export-file-tag { background: rgba(244,246,240,0.08); }
body[data-mode="light"] .export-file-tag { background: rgba(10,11,8,0.06); }

.export-flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: 28px;
}
.export-flow-cell {
  position: relative;
  display: flex; justify-content: center;
}
.export-flow-cell .track {
  position: absolute; top: 0; bottom: 4px; left: 50%;
  width: 1px; transform: translateX(-50%);
  background-image: linear-gradient(to bottom,
    var(--mute-fg) 0, var(--mute-fg) 2px,
    transparent 2px, transparent 5px);
  background-size: 1px 5px;
  background-repeat: repeat-y;
  --mute-fg: rgba(244,246,240,0.22);
}
body[data-mode="light"] .export-flow-cell .track { --mute-fg: rgba(10,11,8,0.18); }
.export-flow-cell .drop {
  position: absolute; top: 0; left: 50%;
  width: 2.4px; transform: translateX(-50%);
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.05s linear;
}
.export-flow-cell .dot {
  position: absolute; top: 0; left: 50%;
  width: 6.4px; height: 6.4px;
  margin-left: -3.2px; margin-top: -3.2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.export-flow-cell.active .dot { opacity: 1; transition: top 0.05s linear; }
.export-flow-cell .arrow {
  position: absolute; bottom: 0; left: 50%;
  width: 12px; height: 6px;
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6'><path d='M1 0 L6 5 L11 0' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.export-flow-cell.active.sent .arrow {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6'><path d='M1 0 L6 5 L11 0' fill='none' stroke='%23C6FF3D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.export-dest-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.export-dest {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px 6px; border-radius: 10px;
  border: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}
.export-dest[data-active="true"] {
  border-color: rgba(244,246,240,0.16);
}
body[data-mode="dark"] .export-dest[data-active="true"] { background: rgba(244,246,240,0.06); }
body[data-mode="light"] .export-dest[data-active="true"] { background: rgba(10,11,8,0.04); border-color: rgba(10,11,8,0.14); }
.export-dest[data-done="true"] {
  border-color: var(--accent);
  background: rgba(198,255,61,0.14);
}
body[data-mode="light"] .export-dest[data-done="true"] { background: rgba(198,255,61,0.22); }
.export-dest-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand, var(--muted));
  opacity: 0.55;
  transition: opacity 220ms ease, box-shadow 220ms ease;
}
.export-dest[data-active="true"] .export-dest-dot { opacity: 1; }
.export-dest[data-done="true"] .export-dest-dot { box-shadow: 0 0 0 3px rgba(198,255,61,0.33); }
.export-dest-name {
  font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: -0.1px;
  white-space: nowrap;
}
.export-dest[data-active="true"] .export-dest-name { color: var(--text); }
.export-dest-check {
  position: absolute; top: 4px; right: 4px;
  color: var(--accent);
  opacity: 0;
}
.export-dest[data-done="true"] .export-dest-check { opacity: 1; }


/* ============================================================
   FAQ — sticky left rail + hairline accordion
   ============================================================ */

.faq {
  background: var(--how-bg);
  border-bottom: 1px solid var(--line);
  padding: 120px var(--gutter);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
}
.faq-rail {
  position: sticky;
  top: 96px;
}
.faq-rail .section-heading .accent { color: var(--accent); }

.faq-list {
  display: flex;
  flex-direction: column;
}

/* Each item is a hairline-bordered row, no card */
.faq-item {
  border-top: 1px solid var(--line);
  transition: none;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--font-title);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.2px;
  font-weight: 500;
  padding-top: 6px;
  min-width: 28px;
  flex-shrink: 0;
}
.faq-q {
  flex: 1;
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.25;
  text-wrap: balance;
}
.faq-icon {
  width: 36px; height: 36px;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
body[data-mode="dark"] .faq-icon { background: rgba(244, 246, 240, 0.06); }
body[data-mode="light"] .faq-icon { background: rgba(10, 11, 8, 0.05); }
.faq-item[open] .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: rotate(45deg);
}

/* Answer wrapper uses CSS Grid trick for smooth height transition */
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.3s ease;
  opacity: 0;
}
.faq-item[open] .faq-a-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-a {
  overflow: hidden;
  padding: 0 60px 28px 52px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: -0.1px;
  text-wrap: pretty;
  max-width: 620px;
  min-height: 0; /* required for grid-row 0fr collapse */
}

/* ============================================================
   Responsive overrides for new mockups + FAQ
   ============================================================ */

@media (max-width: 900px) {
  .map-chrome-pill { font-size: 11px; padding: 7px 10px; }
  .map-btn { width: 32px; height: 32px; }
  .fab { width: 40px; height: 40px; }
  .faq { padding: 80px var(--gutter); }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-rail { position: static; top: auto; }
  .faq-q { font-size: 18px; }
  .faq-item summary { padding: 20px 0; gap: 16px; }
  .faq-num { min-width: 22px; padding-top: 4px; }
  .faq-a { padding: 0 12px 22px 38px; font-size: 15px; }
}
