/* ==========================================================================
   RouteFeed marketing site — teal-purple on slate-navy (2026-07 rebrand)
   Palette mirrors the app's AppPalette (see APP_IDEA.md Reference Palette).
   Teal = discovery/brand, purple = the expressive secondary (feed/video,
   gradients), coral stays reserved for the single "go" action.
   ========================================================================== */

:root {
  --base: #0f172a;
  --surface: #1e293b;
  --surface-2: #283548;
  --teal: #14bba6;
  --teal-deep: #0d9488;
  --purple: #8b5cf6;
  --purple-deep: #7c3aed;
  --grad: linear-gradient(135deg, #14bba6, #7c3aed);
  --coral: #ff6b8a;
  --text: #f2f5f4;
  --text-2: #94a3b8;
  --line: rgba(242, 245, 244, 0.08);
  --line-strong: rgba(242, 245, 244, 0.14);
  --map-land: #223a37;
  --map-park: #2d574e;
  --map-wood: #1c322e;
  --radius: 24px;
  --radius-sm: 14px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

em { font-style: normal; color: var(--teal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 780px; text-align: center; }

/* ---------- large monitors: widen the column and let type keep scaling
   (component-level overrides live further down, after their base rules) ---------- */
@media (min-width: 1600px) {
  :root { --wrap: 1340px; }
  body { font-size: 18px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1560px; }
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- shared bits ---------- */
.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.section { padding: 110px 0; }
.section--surface {
  background: linear-gradient(180deg, var(--surface) 0%, #1a2537 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* first section of a standalone page (no hero): clear the fixed nav */
.section--page { padding-top: 160px; min-height: 100vh; }

.page__back { margin-top: 56px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.section__lead {
  max-width: 680px;
  font-size: 19px;
  color: var(--text-2);
  margin-bottom: 48px;
}
.wrap--narrow .section__lead { margin-left: auto; margin-right: auto; }
.section__lead strong { color: var(--text); font-weight: 600; }

.section__foot {
  margin-top: 42px;
  color: var(--text-2);
  max-width: 620px;
  font-size: 17px;
}

@media (min-width: 1600px) {
  .section__title { font-size: clamp(32px, 3.5vw, 62px); }
  .section__lead { max-width: 780px; font-size: 21px; }
  .section__foot { max-width: 700px; font-size: 18px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--teal {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.3);
}
.btn--teal:hover { background: var(--grad); filter: brightness(1.12); }

.btn--ghost {
  background: rgba(242, 245, 244, 0.06);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: rgba(242, 245, 244, 0.1); }

.btn--coral {
  background: var(--coral);
  color: #2b0d0d;
  box-shadow: 0 8px 24px rgba(255, 107, 138, 0.35);
}
.btn--coral:hover { background: #ff86a4; }

.btn--full { flex: 1; }
.btn--sq { padding: 14px 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip--live { background: rgba(20, 187, 166, 0.14); color: var(--teal); border: 1px solid rgba(20, 187, 166, 0.35); }
.chip--teal { background: rgba(20, 187, 166, 0.14); color: var(--teal); border: 1px solid rgba(20, 187, 166, 0.35); }
.chip--dim { background: rgba(142, 155, 160, 0.12); color: var(--text-2); border: 1px solid var(--line); }
.chip--tl { margin-left: 8px; font-size: 11px; vertical-align: 2px; }

.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  animation: pulse 2s ease-out infinite;
}
.pulse-dot--sm { width: 6px; height: 6px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 187, 166, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(20, 187, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 187, 166, 0); }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 16px 30px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 11px 30px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__logo:hover { text-decoration: none; }
.nav__mark { width: 30px; height: 30px; }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }

.nav__cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--grad);
  padding: 9px 20px;
  border-radius: 999px;
  transition: filter 0.15s ease;
}
.nav__cta:hover { filter: brightness(1.12); text-decoration: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.nav__drawer {
  display: none;
  position: fixed;
  top: 58px; left: 0; right: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 28px 22px;
  flex-direction: column;
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a {
  color: var(--text);
  padding: 13px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav__drawer a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__map, .hero__fallback {
  position: absolute;
  inset: 0;
}
/* The fallback gradient must sit BEHIND the live map (it's only a backdrop for
   while tiles load / if WebGL is unavailable). Without these z-indexes, DOM
   order paints it on top and hides the map entirely. */
.hero__map { z-index: 1; }
.hero__scrim { z-index: 1; }
.hero__fallback {
  background:
    radial-gradient(120% 90% at 75% 30%, #1b2c52 0%, #14213e 45%, var(--base) 100%);
}
.hero__fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 30% at 68% 42%, rgba(45, 87, 78, 0.7) 0%, transparent 70%),
    radial-gradient(30% 26% at 82% 64%, rgba(34, 58, 55, 0.8) 0%, transparent 70%);
}
.hero__map { opacity: 0; transition: opacity 1.4s ease; }
.hero__map.is-ready { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 34%, rgba(15, 23, 42, 0.05) 58%, rgba(15, 23, 42, 0) 72%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0) 20%, rgba(15, 23, 42, 0) 72%, rgba(15, 23, 42, 0.75) 100%);
}
.hero.is-exploring .hero__scrim {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0) 18%, rgba(15, 23, 42, 0) 78%, rgba(15, 23, 42, 0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 120px 28px 90px;
  transition: opacity 0.5s ease;
  /* The content box invisibly spans most of the hero and sat above the map,
     swallowing clicks meant for the pins. Let clicks fall through to the map
     everywhere except the actual interactive elements. */
  pointer-events: none;
}
.hero__content a { pointer-events: auto; }
.hero.is-exploring .hero__content { opacity: 0; pointer-events: none; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--teal);
  background: rgba(20, 187, 166, 0.1);
  border: 1px solid rgba(20, 187, 166, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(15, 23, 42, 0.5);
}
/* the brand moment: the emphasized line wears the teal→purple gradient */
.hero__title em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero__sub {
  max-width: 560px;
  font-size: 19px;
  color: #c3cdd0;
  margin-bottom: 36px;
  text-shadow: 0 1px 16px rgba(15, 23, 42, 0.6);
}
.hero__sub strong { color: var(--text); }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero__note {
  font-size: 14px;
  color: var(--text-2);
  max-width: 420px;
}
.hero__note strong { color: var(--teal); }

@media (min-width: 1600px) {
  .hero__title { font-size: clamp(38px, 4.8vw, 100px); }
  .hero__sub { max-width: 660px; font-size: 22px; }
  .hero__note { font-size: 15px; max-width: 480px; }
}

.hero__explore {
  position: absolute;
  right: 26px;
  bottom: 64px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hero__explore:hover { background: var(--teal); color: #08211e; }
.hero__explore.is-on { background: var(--teal); color: #08211e; }

.hero__attrib {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  font-size: 11px;
  color: rgba(242, 245, 244, 0.55);
}
.hero__attrib a { color: rgba(242, 245, 244, 0.75); }

.hero__scrollcue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 2px solid rgba(242, 245, 244, 0.35);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.hero__scrollcue span {
  width: 4px; height: 9px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--teal);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(13px); opacity: 0.2; }
}
.hero.is-exploring .hero__scrollcue { display: none; }

/* Hero map pins and rings are drawn inside the map canvas (symbol layers in
   hero-map.js), not as HTML markers — HTML lags a frame behind the camera and
   appears to swim. Only the popups remain DOM elements. */

.maplibregl-popup.rf-popup .maplibregl-popup-content {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 16px;
  font-family: var(--font-body);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  min-width: 210px;
}
.maplibregl-popup.rf-popup .maplibregl-popup-tip { border-top-color: var(--surface); border-bottom-color: var(--surface); }
.maplibregl-popup.rf-popup .maplibregl-popup-close-button { color: var(--text-2); font-size: 18px; right: 6px; top: 4px; }
.rf-popup__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--purple);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 3px 9px;
  border-radius: 999px;
  margin: 2px 0 6px;
  white-space: nowrap;
}
.rf-popup__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 4px 0 2px; }
.rf-popup__meta { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.rf-popup__videos { font-size: 12.5px; color: var(--purple); font-weight: 600; }

/* ==========================================================================
   THE IDEA — loop
   ========================================================================== */
.loop {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.loop__step {
  flex: 1 1 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.loop__step:hover { border-color: rgba(20, 187, 166, 0.4); transform: translateY(-4px); }
.loop__step--go { border-color: rgba(255, 107, 138, 0.35); }
.loop__step--go:hover { border-color: rgba(255, 107, 138, 0.6); }
.loop__step--go strong { color: var(--coral); }
.loop__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 12px;
}
.loop__num--go { color: var(--coral); }
.loop__step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 7px;
}
.loop__step p { font-size: 15px; color: var(--text-2); }
.loop__arrow {
  align-self: center;
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
  opacity: 0.7;
}
@media (max-width: 920px) {
  .loop__arrow { display: none; }
  .loop__step { flex-basis: 44%; }
}
@media (max-width: 560px) { .loop__step { flex-basis: 100%; } }

/* ---------- how it compares ---------- */
.vs { margin-top: 64px; }
.vs__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
}
.vs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 880px) { .vs__grid { grid-template-columns: 1fr; } }
.vs__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease;
}
.vs__card:hover { border-color: rgba(20, 187, 166, 0.4); }
.vs__card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.vs__card > p { font-size: 15px; color: var(--text-2); margin-bottom: 14px; }
p.vs__rf {
  font-size: 15px;
  color: var(--text-2);
  border-left: 3px solid var(--teal);
  padding: 2px 0 2px 14px;
  margin-bottom: 0;
}
.vs__rf strong { color: var(--teal); }

/* ==========================================================================
   PHONE DEMO
   ========================================================================== */
.wrap--demo {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 980px) {
  .wrap--demo { grid-template-columns: 1fr; gap: 50px; }
}

.demo__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.demo__steps li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.5);
  counter-increment: step;
  transition: border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
}
.demo__steps li.is-active {
  opacity: 1;
  border-color: rgba(20, 187, 166, 0.5);
  background: rgba(20, 187, 166, 0.07);
}
.demo__steps strong { font-family: var(--font-display); font-size: 16.5px; }
.demo__steps span { font-size: 14.5px; color: var(--text-2); }

.demo__reset {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 14.5px;
  cursor: pointer;
  padding: 4px 0;
}
.demo__reset:hover { color: var(--teal); }

.demo__phone-wrap { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 320px;
  height: 660px;
  border-radius: 46px;
  background: #060b18;
  border: 1px solid #2f3c55;
  box-shadow:
    0 0 0 10px #121b2e,
    0 0 0 11px #2f3c55,
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 120px rgba(124, 58, 237, 0.09);
  overflow: hidden;
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 26px;
  background: #060b18;
  border-radius: 999px;
  z-index: 40;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(1.02);
}
.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* --- screen 1: map --- */
.mini-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-map__label {
  font-family: var(--font-body);
  font-size: 11px;
  fill: #aebfbb;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.mini-map__label--water { fill: #9db8d4; font-style: italic; }

.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  width: 52px; height: 52px;
  z-index: 5;
}
.pin__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(20, 187, 166, 0.3);
  animation: pulse 2s ease-out infinite;
}
.pin__body {
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}
.pin--iceberg:hover .pin__body { transform: scale(1.14); }
.pin--static { pointer-events: none; width: 34px; height: 34px; }
.pin__body--small { inset: 3px; font-size: 13px; border-width: 1.5px; opacity: 0.9; }

.phone__search {
  position: absolute;
  top: 52px; left: 16px; right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--text-2);
  z-index: 10;
}

.phone__dock {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  justify-content: space-around;
  background: rgba(30, 41, 59, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 10px 6px 8px;
  z-index: 10;
}
.phone__dock span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  opacity: 0.5;
}
.phone__dock span.is-on { opacity: 1; }
.phone__dock i {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2);
}
.phone__dock span.is-on i { color: var(--teal); }

.phone__hint {
  position: absolute;
  bottom: 84px; left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 187, 166, 0.94);
  color: #08211e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  z-index: 12;
  animation: hintbob 2.2s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes hintbob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
.phone__hint--inline {
  position: static;
  transform: none;
  display: inline-block;
  margin-top: 14px;
  animation: none;
}

/* --- screen 2: place sheet --- */
.screen--place__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #16233e 0%, #1b2c52 60%),
    #1b2c52;
}
.screen--place__backdrop::after {
  content: "🧊";
  position: absolute;
  top: 22%; left: 50%;
  transform: translateX(-50%);
  font-size: 64px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.4));
}

.sheet__back {
  position: absolute;
  top: 50px; left: 16px;
  z-index: 20;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(30, 41, 59, 0.9);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sheet__back--video { background: rgba(5, 8, 10, 0.55); }

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-radius: 30px 30px 0 0;
  border-top: 1px solid var(--line-strong);
  padding: 12px 18px 22px;
  z-index: 15;
  animation: sheetup 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes sheetup {
  from { transform: translateY(60%); }
  to { transform: none; }
}
.sheet__grab {
  width: 42px; height: 4px;
  border-radius: 3px;
  background: var(--line-strong);
  margin: 0 auto 16px;
}
.sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sheet__head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  margin: 8px 0 3px;
}
.sheet__meta { font-size: 12.5px; color: var(--text-2); }
.sheet__cat {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: rgba(20, 187, 166, 0.12);
  border: 1px solid rgba(20, 187, 166, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.sheet__videos {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.vthumb {
  position: relative;
  flex: 1;
  height: 108px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.vthumb--a { background: linear-gradient(160deg, #2f6ba8 0%, #1d3a6b 55%, #142348 100%); }
.vthumb--b { background: linear-gradient(160deg, #1f6b60 0%, #113c3f 60%, #0a2530 100%); cursor: default; }
.vthumb__play {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding-left: 3px;
}
.vthumb--a:hover .vthumb__play { background: rgba(20, 187, 166, 0.75); }
.vthumb__by {
  position: absolute;
  bottom: 7px; left: 9px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
}
.vthumb--add {
  background: rgba(139, 92, 246, 0.08);
  border: 1.5px dashed rgba(139, 92, 246, 0.45);
  color: var(--purple);
  flex-direction: column;
  gap: 4px;
  font-size: 20px;
  cursor: default;
}
.vthumb--add span { font-size: 11px; font-weight: 600; }

.sheet__actions { display: flex; gap: 10px; }
.sheet__actions .btn { font-size: 15px; padding: 13px 18px; }

/* --- screen 3: video --- */
.video__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, #2f6ba8 0%, #1d3a6b 45%, #121f42 80%, #080e22 100%);
}
.video__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 60% 30%, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
  animation: shine 5s ease-in-out infinite alternate;
}
@keyframes shine {
  from { transform: translateX(-20px); opacity: 0.7; }
  to { transform: translateX(24px); opacity: 1; }
}

.video__rail {
  position: absolute;
  right: 12px;
  bottom: 130px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
  text-align: center;
}
.video__rail span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 24px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.video__rail i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #e8eef0;
}

.video__meta {
  position: absolute;
  left: 16px; right: 70px; bottom: 34px;
  z-index: 10;
}
.video__user {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.video__caption {
  font-size: 13.5px;
  color: #e8eef0;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.video__place {
  display: inline-block;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(139, 92, 246, 0.55);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.video__place em { color: var(--purple); }
.video__place:hover { background: rgba(139, 92, 246, 0.25); }

.video__progress {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
  overflow: hidden;
}
.video__progress span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: var(--purple);
  animation: vprog 6s linear infinite;
}
@keyframes vprog { from { width: 0; } to { width: 100%; } }

/* ==========================================================================
   FEATURES
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: none; }
.feature--flip .feature__copy { order: 2; }
.feature--flip .feature__visual { order: 1; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: 34px; }
  .feature--flip .feature__copy { order: 1; }
  .feature--flip .feature__visual { order: 2; }
}

.feature__copy h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.feature__copy p { color: var(--text-2); margin-bottom: 14px; }
.feature__copy strong { color: var(--text); }
.feature__detail {
  font-size: 14.5px;
  padding: 13px 17px;
  border-left: 3px solid var(--teal);
  background: rgba(20, 187, 166, 0.06);
  border-radius: 0 12px 12px 0;
}

/* sightings visual */
.feature__visual { display: flex; flex-direction: column; gap: 12px; }

.sighting-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.sighting-card > div { flex: 1; display: flex; flex-direction: column; }
.sighting-card strong { font-family: var(--font-display); font-size: 16px; }
.sighting-card__meta { font-size: 13px; color: var(--text-2); }
.sighting-card--expired { opacity: 0.55; }

/* car card visual */
.carcard {
  background: #0a101f;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 18px;
  overflow: hidden;
}
.carcard__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.carcard__bar span { width: 34px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.carcard__toast {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid rgba(20, 187, 166, 0.4);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.is-in .carcard__toast { opacity: 1; transform: none; }
.carcard__toast > div { flex: 1; display: flex; flex-direction: column; }
.carcard__toast strong { font-family: var(--font-display); font-size: 15.5px; }
.carcard__toast span { font-size: 13px; color: var(--text-2); }
.carcard__go {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  background: var(--coral);
  color: #2b0d0d;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}
.carcard__road {
  position: relative;
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(180deg, #141d32 0%, #0d1426 100%);
  overflow: hidden;
}
.carcard__lane {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--text-2) 0 14px, transparent 14px 30px);
  opacity: 0.5;
  animation: lane 1.1s linear infinite;
}
@keyframes lane { from { background-position-y: 0; } to { background-position-y: 30px; } }
.carcard__chev {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%) rotate(-90deg);
  color: var(--teal);
  font-size: 34px;
  font-weight: 700;
}

/* offline visual */
.offline-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.offline-demo__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.offline-demo__nosig { font-size: 14px; font-weight: 600; color: var(--coral); }
.offline-demo__map { width: 100%; height: auto; display: block; }
.is-in #routePath { animation: drawroute 2.2s ease 0.4s forwards; }
@keyframes drawroute { to { stroke-dashoffset: 0; } }
.offline-demo__cap {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-2);
  text-align: center;
}

/* ==========================================================================
   TECH
   ========================================================================== */
.receipts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 70px;
}
@media (max-width: 880px) { .receipts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .receipts { grid-template-columns: 1fr; } }

.receipt {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.receipt strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.01em;
}
.receipt span { font-size: 14px; color: var(--text-2); }

.pipeline { margin-bottom: 70px; }
.pipeline__title, .modules__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}
.pipeline__sub {
  color: var(--text-2);
  max-width: 720px;
  font-size: 16px;
  margin-bottom: 28px;
}

.pipeline__flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.pnode {
  flex: 1 1 150px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pnode em { font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--text-2); }
.pnode__tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 5px;
}
.pnode--core { border-color: rgba(20, 187, 166, 0.55); background: rgba(20, 187, 166, 0.08); }
.pnode--core .pnode__tag { color: var(--teal); }
.pnode--user { border-color: rgba(255, 107, 138, 0.4); }
.pnode--user .pnode__tag { color: var(--coral); }
.parrow { align-self: center; color: var(--teal); font-weight: 700; opacity: 0.7; }
@media (max-width: 920px) {
  .parrow { display: none; }
  .pnode { flex-basis: 45%; }
}
@media (max-width: 560px) { .pnode { flex-basis: 100%; } }

.pipeline__foot {
  margin-top: 20px;
  font-size: 15px;
  color: var(--teal);
  font-weight: 500;
}

.modules { margin-bottom: 70px; }
.modules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 880px) { .modules__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .modules__grid { grid-template-columns: 1fr; } }

.module {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s ease;
}
.module:hover { border-color: rgba(20, 187, 166, 0.45); }
.module code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14.5px;
  color: var(--teal);
  font-weight: 600;
}
.module span { font-size: 13.5px; color: var(--text-2); }

.stack__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.tchip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  border-radius: 999px;
}
.tchip i {
  font-style: normal;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
  margin-left: 5px;
}
.stack__note {
  max-width: 660px;
  color: var(--text-2);
  font-size: 15.5px;
  border-left: 3px solid var(--coral);
  padding: 4px 0 4px 18px;
}
.stack__note em { color: var(--coral); }

/* ==========================================================================
   ROADMAP
   ========================================================================== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--line-strong);
}
.tl {
  position: relative;
  padding: 16px 0 26px;
}
.tl__dot {
  position: absolute;
  left: -31px; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--base);
  border: 2px solid var(--text-2);
}
.tl.done .tl__dot { background: var(--teal); border-color: var(--teal); }
.tl.done .tl__dot::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #08211e;
}
.tl.next .tl__dot { border-color: var(--teal); animation: pulse 2s ease-out infinite; }
.tl h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 5px;
}
.tl p { color: var(--text-2); font-size: 15.5px; max-width: 620px; }
.tl:not(.done):not(.next) { opacity: 0.6; }

/* ==========================================================================
   BUILDER + FOOTER
   ========================================================================== */
.builder__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.builder__note { color: var(--text-2); font-size: 15px; }

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}
.footer__legal { font-size: 13px; color: var(--text-2); }
.footer__legal a { color: var(--text-2); text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE — phones & small tablets
   (kept last so these override the component defaults above)
   ========================================================================== */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section--page { padding-top: 120px; }
  .section__lead { font-size: 17px; margin-bottom: 36px; }
  .section__foot { margin-top: 32px; font-size: 15.5px; }

  .nav { padding: 14px 18px; }
  .nav.is-scrolled { padding: 10px 18px; }
  .nav__drawer { padding: 10px 20px 18px; }

  .hero__content { padding: 108px 20px 96px; }
  .hero__badge { font-size: 12.5px; padding: 6px 13px; margin-bottom: 20px; }
  .hero__sub { font-size: 17px; margin-bottom: 28px; }
  .hero__actions { gap: 10px; margin-bottom: 24px; }
  .hero__actions .btn { font-size: 15px; padding: 13px 22px; }
  .hero__note { font-size: 13px; }
  .hero__explore { right: 16px; bottom: 88px; padding: 10px 16px; font-size: 13px; }

  .feature { padding: 40px 0; }
  .feature__copy h3 { font-size: 23px; }

  .timeline { padding-left: 28px; }
  .tl__dot { left: -26px; }

  .footer__row { flex-direction: column; text-align: center; }
}

/* The phone mockup is designed at 320×660; shrink it proportionally when the
   viewport (minus page padding and its own 11px bezel shadow) can't fit it. */
@media (max-width: 420px) {
  .phone {
    width: min(320px, calc(100vw - 62px));
    height: auto;
    aspect-ratio: 32 / 66;
  }
}

/* Landscape phones: the hero is height-constrained, not width-constrained */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 480px; }
  .hero__content { padding: 84px 28px 60px; }
  .hero__badge { margin-bottom: 12px; }
  .hero__title { font-size: clamp(28px, 7vh, 44px); margin-bottom: 12px; }
  .hero__sub { font-size: 15px; margin-bottom: 18px; }
  .hero__note { display: none; }
  .hero__scrollcue { display: none; }
}
