/* ─────────────────────────────────────────────────────────────────────
   landing.css — public landing page (Where Is Tereza?)
   Apple/Sinek-inspired: liquid glass, fluid type, scroll-driven motion.
   Vanilla CSS, no framework. Mobile-first, prefers-reduced-motion safe.
   ───────────────────────────────────────────────────────────────────── */

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

:root {
  --bg:           #07070c;
  --bg-deeper:    #050508;
  --surface-glass: rgba(18,18,28,0.55);
  --surface-solid: #15151a;
  --accent:       #CCA900;
  --accent-soft:  rgba(204,169,0,0.14);
  --accent-strong:rgba(204,169,0,0.32);
  --accent-glow:  rgba(204,169,0,0.45);
  --text:         #e8e8f0;
  --dim:          #8a8a95;
  --faint:        #4a4a55;
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.12);
  --radius:       18px;
  --radius-lg:    24px;
  --radius-pill:  999px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sp-1:         8px;
  --sp-2:         16px;
  --sp-3:         24px;
  --sp-4:         32px;
  --sp-5:         48px;
  --sp-6:         64px;
  --sp-7:         96px;
  --sp-8:         140px;
  --max-w:        1140px;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;  /* anchor for the global trail SVG */
}

/* ───── GLOBAL SCROLL TRAIL ───── */
.trail-bg {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 280px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.trail-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
#trail-path {
  --trail-len: 1100;
  stroke-dasharray: var(--trail-len);
  stroke-dashoffset: calc(var(--trail-len) * (1 - var(--trail-p, 0)));
  filter: drop-shadow(0 0 8px rgba(204,169,0,0.35));
  transition: stroke-dashoffset 0.05s linear;
}
@media (max-width: 720px) {
  .trail-bg { max-width: 180px; opacity: 0.4; }
}
/* Make sure all sections sit above the trail. */
main, .nav, .footer { position: relative; z-index: 1; }

::selection { background: var(--accent-strong); color: #fff; }

a { color: inherit; text-decoration: none; }

/* ───── GLASS UTILITY ───── */
.glass {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -30px rgba(0,0,0,0.6);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(18,18,28,0.92); }
}

/* ───── TYPE ───── */
.display {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  background: linear-gradient(180deg, var(--text) 0%, #b9b9c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: pre-wrap;
}
h1.display { font-size: clamp(40px, 6.4vw + 12px, 84px); }
h2.display { font-size: clamp(28px, 3vw + 14px, 48px); line-height: 1.1; }
.lead {
  font-size: clamp(16px, 0.6vw + 14px, 20px);
  color: var(--dim);
  line-height: 1.6;
  max-width: 640px;
  margin-inline: auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: var(--sp-3);
}

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #101018;
  box-shadow: 0 8px 30px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent-strong); background: var(--accent-soft); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ───── STICKY GLASS NAV ───── */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: var(--max-w);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-3);
  gap: var(--sp-3);
  z-index: 100;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.beta-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
  vertical-align: middle;
  white-space: nowrap;
}
.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: brand-pulse 2.4s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
  font-size: 14px;
  color: var(--dim);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-signin { color: var(--text); }
.nav-cta { padding: 9px 18px; font-size: 13px; }
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  margin-left: auto;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ───── SECTIONS ───── */
main {
  display: flex;
  flex-direction: column;
  position: relative;
  /* Allow the trail SVG to escape any clipping; it's positioned absolute
     against this containing block. */
  overflow: visible;
}

/* ───── GLOBAL TRAIL LINE ─────
   Spans the top of <main> down to roughly the start of the map demo.
   Sits behind every section's content via z-index 0 (sections all have
   their own positioned content above). Pointer-events none so it
   never eats clicks. */
.trail-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Height is set by JS once it knows the document layout. Default
     keeps it visible during initial paint. */
  height: 3000px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
#trail-path {
  fill: none;
  stroke: #CCA900;
  /* 18 px reads as a real "thread of gold" rather than a pencil
     line. Combined with the SVG #trail-glow filter the line is
     unmissable on any background. */
  stroke-width: 18;
  stroke-opacity: 0.95;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--trail-len, 5000);
  stroke-dashoffset: var(--trail-offset, 0);
  transition: stroke-dashoffset 0.05s linear;
}
@media (prefers-reduced-motion: reduce) {
  #trail-path { stroke-dashoffset: 0 !important; --trail-offset: 0 !important; }
}

/* Sections must paint above the trail. */
.section, .footer { position: relative; z-index: 1; }
.section {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-7) var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head .lead { margin-top: var(--sp-3); }

/* ───── HERO ───── */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + var(--sp-7));
  padding-bottom: var(--sp-7);
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(204,169,0,0.1), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(204,169,0,0.05), transparent 60%),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  z-index: 0;
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
/* Mirror of .marker-pulse from frontend/css/animations.css — same
   blinking gold cursor as the live tracking map. Solid gold core with
   a ring that scales out and fades, looping on a 2 s cadence. */
/* The hero-pulse markup is preserved for its 60×60 layout slot — the
   trail-tip below is positioned absolutely against <main> using the
   center of this element as the origin point, so the visible dot
   keeps the same anchor without breaking the hero's vertical rhythm. */
.hero-pulse {
  width: 60px;
  height: 60px;
  margin-bottom: var(--sp-3);
  position: relative;
}
.hero-pulse-dot { display: none; }  /* now drawn by .trail-tip below */

/* The travelling pulse — sits at the trail's drawing tip and moves
   along the path as the user scrolls. landing.js sets a transform on
   every scroll frame; CSS handles the look (gold core + expanding
   ring identical to the hero anchor it replaces). */
.trail-tip {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
  /* No CSS transition on transform — the path's stroke-dashoffset
     animates ALONG the curve while a transform transition would lerp
     the tip in a straight line, leaving the dot visually flying off
     the path. We update() at rAF (60fps) so the unanimated jumps are
     imperceptible while keeping the dot welded to the line's end. */
  opacity: 0;
}
.trail-tip[data-ready="1"] { opacity: 1; }
.trail-tip-dot {
  position: absolute;
  /* Center on the parent's (0,0) anchor point. */
  top: -7px;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(204,169,0,0.65);
}
.trail-tip-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: hero-pulse-ring 2s ease-out infinite;
  pointer-events: none;
}
@keyframes hero-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  60%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .trail-tip { transition: none; }
  .trail-tip-dot::after { animation: none; opacity: 0; }
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  opacity: 0.85;
}
.hero h1 {
  margin-bottom: var(--sp-3);
  /* Wide enough that headlines like "Share Your Journey." fit on a single
     line at the largest font-size. The CMS author's hard breaks (\n) are
     preserved by white-space: pre-wrap on .display; text-wrap: balance
     auto-balances any line that does have to wrap, so the extra width
     doesn't produce ugly orphans. */
  max-width: 26ch;
  text-wrap: balance;
}
.hero .lead { margin-bottom: var(--sp-4); max-width: 760px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--sp-3); }
.hero-trust { font-size: 13px; color: var(--faint); }

/* ───── WHY ───── */
.why {
  max-width: 820px;
}
/* Optional admin-uploaded transparent PNG above the section's eyebrow.
   Hidden via the `hidden` attribute by default; landing.js removes the
   attribute only when the why_image slot has been populated, so an
   empty slot doesn't leave a placeholder shape.

   Sized 1:1 — exactly as uploaded. The backend pipeline for the
   why_image slot saves the PNG at native dimensions (no resize, alpha
   preserved), and the CSS keeps it that way: max-width: 100% is the
   ONLY safety so a too-wide upload doesn't horizontally scroll the
   page on narrow viewports. height: auto preserves aspect. */
.why-image {
  display: block;
  margin: 0 auto var(--sp-3);
  max-width: 100%;
  height: auto;
  width: auto;
}
.why .display { margin-bottom: var(--sp-4); }
.why-body {
  font-size: clamp(17px, 0.6vw + 16px, 21px);
  line-height: 1.7;
  color: var(--dim);
  white-space: pre-wrap;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  text-wrap: pretty;
}

/* ───── FEATURES ───── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  width: 100%;
  margin-top: var(--sp-2);
}
.feature {
  padding: var(--sp-3);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--accent-strong); }
.feature-hero { grid-column: span 2; grid-row: span 2; padding: var(--sp-4); }
.feature-hero h3 { font-size: 22px; }
.feature-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-strong);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.55;
  margin: 0;
}

/* ───── HOW ───── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  width: 100%;
  list-style: none;
}
.how-step {
  padding: var(--sp-4) var(--sp-3);
  text-align: left;
  position: relative;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-strong);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--sp-2);
}
.how-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.how-step p  { font-size: 14px; color: var(--dim); line-height: 1.55; }

/* ───── MAP DEMO ───── */
.map-stage {
  width: 100%;
  aspect-ratio: 2 / 1;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.map-svg, .map-leaflet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#camino-path {
  --p: 0;
  stroke-dasharray: var(--path-len, 2000);
  stroke-dashoffset: calc(var(--path-len, 2000) * (1 - var(--p)));
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transition: stroke-dashoffset 0.05s linear;
}
.map-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: calc(1 - var(--p, 0));
  transition: opacity 0.2s ease;
}

/* ───── LIVE CONDITIONS (wind / temperature) ─────
   Full-bleed sections that escape the .section max-width container so
   the canvas can breathe edge-to-edge. Content (eyebrow / headline /
   lead) is positioned absolutely on top, anchored top-left or
   bottom-left so it never blocks the canvas's most interesting parts. */
.live-section {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  height: clamp(420px, 56vw, 720px);
  background: #07070c;
}
/* Sticky multi-phase showcase: the section is 3× viewport tall so the
   user can scroll through three phases (wind / temp / rain) without
   the map ever leaving view. The inner stage is `position: sticky` —
   while the section is being scrolled, the map fills 100vh and only
   the headline/lead crossfade. After the third phase the page resumes
   normal scrolling.

   3 phases × 100vh = 300vh. The live-section's clamp height rule above
   is overridden because .live-sticky needs a different model. */
.live-sticky {
  height: 300vh;
  overflow: visible;       /* sticky child relies on the outer scroll context */
}
.live-sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #07070c;
}
.live-sticky .live-map { height: 100%; }
.live-sticky .live-bg-fade { z-index: 1; }
/* Phase content blocks all overlap in the same spot; only the active
   one shows. landing-globe.js toggles .is-active based on scroll.
   Anchored to bottom-left of the stage so the headline doesn't
   overlap the most data-dense part of the map (mid-latitudes). */
.live-content-phase {
  position: absolute;
  bottom: 18%;
  left: max(24px, 6%);
  right: max(24px, 6%);
  max-width: 560px;
  z-index: 3;
  pointer-events: none;
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.live-content-phase.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Three-dot progress indicator at the bottom-center of the stage so
   the user always knows which phase they're on. */
.live-progress {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}
.live-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}
.live-progress-dot.is-active {
  background: var(--accent);
  width: 24px;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(204,169,0,0.6);
}
@media (max-width: 720px) {
  .live-content-phase { top: 24px; left: 16px; right: 16px; max-width: none; }
  .live-sticky { height: 280vh; }
  .live-progress { bottom: 18px; }
}
.live-canvas, .live-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: #07070c;  /* shows during Leaflet tile load */
}
/* Slight tint over the map so the headline + lead read clearly without
   over-darkening the country borders or wind colors. Tighter than the
   canvas version since the Leaflet map is already busy enough. */
.live-bg-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,7,12,0.55) 0%, rgba(7,7,12,0) 12%, rgba(7,7,12,0) 88%, rgba(7,7,12,0.7) 100%),
    linear-gradient(90deg,  rgba(7,7,12,0.55) 0%, rgba(7,7,12,0) 35%, rgba(7,7,12,0) 100%);
  z-index: 1;
}
/* Leaflet's tile attribution + zoom controls shouldn't appear here —
   the map is pure showcase. We disable controls in JS, but also belt-
   and-braces hide leftover bits. */
.live-map .leaflet-control-container { display: none; }
.live-map .leaflet-container { background: #07070c; outline: none; }
.live-map .leaflet-tile-pane,
.live-map .leaflet-overlay-pane,
.live-map .leaflet-marker-pane {
  /* Slight contrast lift so the dark CartoDB tiles + speed overlay pop. */
  filter: brightness(1.06) saturate(1.08);
}
/* The colored wind/temp scalar overlay needs nearest-neighbor scaling
   off so it blends smoothly across the globe (same class as in the
   org app). */
.wit-weather-scalar { image-rendering: auto; mix-blend-mode: screen; }

/* Permanent Leaflet tooltips on the temperature globe — styled to look
   like a chip rather than the default Leaflet white box. Borderless
   gold-on-dark, tight padding, no arrow. */
.live-map .leaflet-tooltip.wit-temp-tip {
  background: rgba(7, 7, 12, 0.78);
  color: #e8e8f0;
  border: 1px solid rgba(204, 169, 0, 0.35);
  border-radius: 6px;
  padding: 3px 8px;
  font: 500 11.5px/1.2 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: none;
}
.live-map .leaflet-tooltip.wit-temp-tip::before { display: none; }  /* hide arrow */

/* City temp chip — shown during the temp phase of live-conditions.
   Compact pill with a dot and a degree value, gold-on-dark, no halo. */
.live-map .wit-temp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(7, 7, 12, 0.78);
  border: 1px solid var(--temp-color, var(--accent-strong));
  border-radius: 999px;
  font: 600 11px/1 'Inter', -apple-system, sans-serif;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: border-color 0.4s ease;
}
.live-map .wit-temp-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--temp-color, var(--accent));
  display: inline-block;
}
.live-map .wit-temp-chip-text { color: var(--text); letter-spacing: 0.02em; }

/* L / H pressure pills — same visual language as the org app:
   blue-tinted L for low-pressure, gold-tinted H for high. */
.live-map .wit-pressure-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 7, 12, 0.85);
  border: 2px solid var(--accent);
  font-family: 'Inter', -apple-system, sans-serif;
  pointer-events: none;
  text-align: center;
  line-height: 1;
}
.live-map .wit-pressure-pill-l { border-color: rgba(80, 140, 220, 0.85); }
.live-map .wit-pressure-pill-h { border-color: rgba(220, 150, 0, 0.95); }
.live-map .wit-pressure-letter {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.live-map .wit-pressure-pill-l .wit-pressure-letter { color: rgb(140, 180, 230); }
.live-map .wit-pressure-pill-h .wit-pressure-letter { color: rgb(235, 175, 30); }
.live-map .wit-pressure-val {
  font-size: 8px;
  font-weight: 600;
  color: rgba(232, 232, 240, 0.8);
  margin-top: 1px;
}
.live-content {
  position: absolute;
  /* Anchored to bottom-left so the headline sits below the map's
     most data-dense band rather than competing with it. */
  bottom: 8%;
  top: auto;
  left: max(24px, 6%);
  right: max(24px, 6%);
  max-width: 560px;
  z-index: 2;
  text-align: left;
  pointer-events: none;
}
/* Kept for backwards-compat with any markup that still uses it; the
   new default already places content at the bottom. */
.live-content-bottom { top: auto; bottom: 8%; }
.live-content .eyebrow { margin-bottom: var(--sp-2); }
.live-content .display {
  font-size: clamp(28px, 2.6vw + 12px, 42px);
  margin-bottom: var(--sp-2);
  text-wrap: balance;
}
.live-content .lead {
  margin: 0;
  max-width: 480px;
  font-size: clamp(14px, 0.4vw + 13px, 16px);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .live-section { height: clamp(360px, 96vw, 520px); }
  .live-content { top: 24px; left: 16px; right: 16px; max-width: none; }
  .live-content-bottom { top: auto; bottom: 24px; }
}

/* ───── SCREENSHOTS — desktop screenshots, scroll-snap carousel ───── */
.screens-track {
  display: flex;
  gap: var(--sp-3);
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--sp-3) var(--sp-3);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-strong) transparent;
  scroll-padding: 0 var(--sp-3);
}
.screens-track::-webkit-scrollbar { height: 6px; }
.screens-track::-webkit-scrollbar-thumb { background: var(--accent-strong); border-radius: 3px; }
.screen-panel {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: clamp(540px, 78vw, 920px);
  text-align: left;
}
.screen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #050508;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
}
.screen-frame::before {
  /* Subtle macOS-window chrome at the top */
  content: '';
  display: block;
  position: absolute; top: 0; left: 0; right: 0;
  height: 22px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1;
}
.screen-frame::after {
  content: '';
  position: absolute; top: 6px; left: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  box-shadow:
    14px 0 0 rgba(255,255,255,0.16),
    28px 0 0 rgba(255,255,255,0.16);
  z-index: 2;
}
.screen-frame img {
  position: absolute;
  top: 22px; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: calc(100% - 22px);
  object-fit: cover;
  object-position: top center;
  display: block;
}
.screen-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--dim);
  padding: 0 4px;
}
@media (max-width: 720px) {
  .screen-panel { width: clamp(320px, 88vw, 540px); }
}

/* ───── PRICING ───── */
.pricing-toggle {
  display: inline-flex;
  margin-top: var(--sp-3);
  padding: 4px;
  border-radius: var(--radius-pill);
}
.pricing-tab {
  background: transparent;
  border: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pricing-tab.is-active { background: var(--accent); color: #101018; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  width: 100%;
}
.pricing-card {
  padding: var(--sp-4) var(--sp-3);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.pricing-card.is-featured {
  border-color: var(--accent-strong);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px var(--accent-strong),
    0 30px 60px -25px var(--accent-glow);
}
.pricing-name { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.pricing-price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.pricing-price small { font-size: 14px; font-weight: 400; color: var(--dim); }
.pricing-limits {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: var(--sp-1);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--dim);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: var(--sp-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.pricing-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.pricing-card .btn { margin-top: auto; width: 100%; }

/* Tagline below the three pricing cards. Mirrors the same line in
   org-admin's Billing page so the message is consistent. */
.pricing-tagline {
  margin: var(--sp-4) auto 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  max-width: 760px;
  text-align: center;
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.55;
}
/* Gold ✓ via pseudo-element so the CMS-driven textContent never
   accidentally wipes it. */
.pricing-tagline::before {
  content: '✓';
  display: inline-block;
  margin-right: 8px;
  color: #2ecc71;
  font-weight: 700;
}

/* ───── DOCS TEASER ───── */
.docs-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  width: 100%;
}
.docs-card {
  padding: var(--sp-3);
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: block;
}
.docs-card:hover { transform: translateY(-3px); border-color: var(--accent-strong); }
.docs-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.docs-card p  { font-size: 14px; color: var(--dim); line-height: 1.5; }
.docs-browse {
  margin-top: var(--sp-4);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.docs-browse:hover { text-decoration: underline; }

/* ───── CTA ───── */
.cta-sec { padding-top: var(--sp-6); padding-bottom: var(--sp-7); }
.cta-card {
  width: 100%;
  max-width: 720px;
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}
.cta-signin { color: var(--dim); font-size: 13px; }
.cta-signin:hover { color: var(--text); text-decoration: underline; }

/* ───── FOOTER ───── */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-deeper);
  padding: var(--sp-6) var(--sp-3) var(--sp-4);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-5);
}
.footer-brand .nav-brand { margin-bottom: var(--sp-2); }
.footer-tagline { font-size: 13px; color: var(--dim); max-width: 280px; line-height: 1.5; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--dim);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-w);
  margin: var(--sp-5) auto 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

/* ───── SCROLL-DRIVEN PROGRESS  (--p hydrated by landing.js) ───── */
[data-scroll] { opacity: calc(0.3 + var(--p, 0) * 0.7); transform: translateY(calc((1 - var(--p, 0)) * 16px)); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-scroll].is-visible { opacity: 1; transform: none; }

/* ───── REDUCED MOTION ───── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  [data-scroll] { opacity: 1 !important; transform: none !important; }
  #camino-path { stroke-dashoffset: 0 !important; }
  .brand-dot { animation: none; opacity: 1; }
}

/* ───── RESPONSIVE ───── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-hero  { grid-column: span 2; grid-row: auto; }
  .how-steps     { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 480px; }
  .docs-teaser-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7,7,12,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 8px;
    padding: var(--sp-2);
    flex-direction: column;
    gap: var(--sp-1);
    align-items: stretch;
    text-align: center;
  }
  .nav.menu-open .nav-links a { padding: 12px; border-radius: 8px; }
  .nav.menu-open .nav-links a:hover { background: var(--accent-soft); }
  .section { padding: var(--sp-6) var(--sp-2); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-hero  { grid-column: auto; }
  .map-stage { aspect-ratio: 4 / 3; }
  .footer-cols { grid-template-columns: 1fr; }
}
