/* ============================================================
   style-home-figma.css
   Home page — scroll-driven phased hero animation
   Figma: RenLxKgFdYncI1ta6oJaZC  (initial 4142:3429 → end 4144:3663)

   Phases (driven by --p, 0..1):
     Phase 1  0.00 → 0.22   Title scrolls UP from center to header
     Phase 2  0.20 → 0.50   Phone card slides UP from below
     Phase 3  0.50 → 0.80   Typewriter text reveals (left + right)
     Phase 4  0.75 → 1.00   Arrows draw toward phone regions + stats bar rises

   --q1..--q4 are phase-local progress (0..1) derived from --p.
   Background grid moves only a hair — all motion is in the foreground.
   ============================================================ */

html, body {
  margin: 0; padding: 0;
  background: #060606;
  color: var(--color-neutral-white);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: 1.25;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Scroll stage ---------- */
.hero-stage-wrap {
  position: relative;
  z-index: 1;             /* above the fixed background grid (z-index 0) */
  height: 320vh;          /* scroll range for full 4-phase animation (slower) */
}
.hero-stage {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  min-height: 720px;
  z-index: 1;
  /* Pinned to viewport so phone + content never scroll off.
     JS adds .hero-stage--done to hide it once the wrap exits viewport. */

  --p: 0;                                       /* set by home-animation.js */
  /* 6-step click-driven animation */
  --q1:  max(0, min(1, calc(var(--p) / 0.15)));                  /* 0.00–0.15  title          */
  --q2:  max(0, min(1, calc((var(--p) - 0.10) / 0.20)));         /* 0.10–0.30  phone          */
  --q3a: max(0, min(1, calc((var(--p) - 0.30) / 0.15)));         /* 0.30–0.45  left text      */
  --q3b: max(0, min(1, calc((var(--p) - 0.45) / 0.10)));         /* 0.45–0.55  right eyebrow  */
  --q3c: max(0, min(1, calc((var(--p) - 0.55) / 0.10)));         /* 0.55–0.65  right caption  */
  --q4:  max(0, min(1, calc((var(--p) - 0.65) / 0.35)));         /* 0.65–1.00  arrows+stats   */
  /* legacy q3 kept for any code that still references it */
  --q3:  max(0, min(1, calc((var(--p) - 0.30) / 0.35)));
}
.hero-stage--done { display: none; }

/* ============================================================
   Click-to-advance "Next ↓" control — fixed at bottom of viewport
   while the hero stage is active. Auto-hides at the final phase.
   ============================================================ */
.hero-next-btn {
  position: fixed;
  bottom: 80px;                                 /* clear of the fixed site-footer */
  left: 50%;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid var(--color-primary-cyan500);
  color: var(--color-primary-cyan500);
  font-family: var(--font-family-primary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.3s ease, transform 0.25s ease, background 0.18s ease;
  text-shadow: 0 0 8px rgba(165, 227, 232, 0.4);
  box-shadow: 0 0 20px rgba(165, 227, 232, 0.15);
}
.hero-next-btn:hover {
  background: rgba(165, 227, 232, 0.15);
  transform: translateX(-50%) translateY(-2px);
}
.hero-next-btn[hidden] {
  display: inline-flex;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}
.hero-next-btn__arrow {
  display: inline-block;
  animation: hero-next-pulse 1.6s ease-in-out infinite;
}
@keyframes hero-next-pulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(3px); opacity: 0.55; }
}
@media (max-width: 768px) { .hero-next-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-next-btn__arrow { animation: none; } }

/* ---------- Background — fixed to viewport, never moves ---------- */
.hero-bg {
  position: fixed; inset: 0; z-index: 0;
  background: #060606;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg__image {
  position: absolute; inset: 0;
  width: 106.67%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-bg__overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.55;
}
.hero-bg__floor {
  position: absolute;
  left: 50%; bottom: -160px;
  transform: translateX(-50%);
  width: 6333px; height: 1270px;
  max-width: none;
  opacity: 0.9;
  transform-origin: center bottom;
}
.hero-bg__glow {
  position: absolute;
  width: 90px; height: 3px;
  pointer-events: none;
  opacity: 0.9;
}
.hero-bg__glow--a { top: 62%; left: 20%; }
.hero-bg__glow--b { top: 63%; left: 44%; transform: rotate(180deg); }
.hero-bg__glow--c { top: 70%; left: 7%; transform: rotate(112deg); }

/* ---------- Top Nav — fixed; semi-transparent so title shows through ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;                                /* 3-col grid → links truly centred */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-sm) var(--spacing-3xl);
  border-bottom: 1px solid #383c43;
  background: rgba(10, 10, 10, 0.55);           /* ≈45% transparent */
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 5px 12px 0 rgba(165, 227, 232, 0.05);
}
.nav__desktop      { grid-column: 2; justify-self: center; }
.nav__desktop-cta  { grid-column: 3; justify-self: end; }
.nav__links {
  display: flex; align-items: center; gap: var(--spacing-xs);
  list-style: none; margin: 0; padding: 0;
  justify-content: center;
}
.nav__link {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 4px; height: 34px; padding: 8px 16px; width: 98px;
  font-family: var(--font-family-primary);
  font-weight: 500; font-size: 14px; line-height: 18px;
  text-transform: uppercase;
  color: var(--color-neutral-gray);
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--color-primary-cyan500); }
.nav__link--active { color: var(--color-primary-red); }
.nav__link--active .nav__corners { position: absolute; inset: 0; pointer-events: none; }
.nav__link--active .nav__corners img { width: 100%; height: 100%; }

/* Logo as the active "Home" slot in nav__links — replaces the text Home button */
.nav__link--logo {
  padding: 2px 16px;
  width: 98px;                                  /* match other nav links */
}
.nav__link-logo-img {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(165, 227, 232, 0.35));
}
.btn-download {
  display: inline-flex;
  align-items: center; justify-content: center;
  height: 40px; padding: 8px 12px;
  font-family: var(--font-family-primary);
  font-size: 14px; line-height: 18px;
  letter-spacing: 1px;
  color: var(--color-neutral-white);
  background: var(--color-primary-red);
  border: 1px solid #851c15;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-download:hover { background: var(--color-primary-red-hover); }

/* ---------- Stage inner ---------- */
.hero-stage__inner {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-stage__inner > * { pointer-events: auto; }

/* ============================================================
   Phase 1 — Hero Title scroll UP (--q1)
   Initial: centered vertically, 1.4× scale
   End:     100px from top, 1× scale (tight to phone)
   ============================================================ */
.hero-title {
  position: absolute;
  left: 50%;
  top: calc(50vh - (50vh - 100px) * var(--q1));
  transform:
    translate(-50%, -50%)
    scale(calc(1.4 - 0.4 * var(--q1)));
  transform-origin: center center;
  margin: 0;
  font-family: var(--font-family-hero);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.05;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
  text-align: center;
  width: min(92vw, 1280px);
  text-shadow:
    0 0 calc(12px + 14px * (1 - var(--q1))) rgba(165, 227, 232, calc(0.35 + 0.2 * (1 - var(--q1)))),
    0 0 2px rgba(165, 227, 232, 0.4);
  white-space: nowrap;
  will-change: transform, top;
}

/* ============================================================
   Phase 2 — Phone card slides UP from below (--q2)

   Sizing model — EVERYTHING IS PERCENTAGES so the phone scales
   gracefully at any viewport size:

     phone-card        : aspect-ratio 469/480 of card itself
     phone-card__inner : 67.16% × 91.04% of card  (315/469 × 437/480)
     phone-card__frame : fills inner via preserveAspectRatio="none"
     phone-card__screen: positioned to match the frame SVG's
                         inner-stroke rect (the rounded screen-hole):
                           viewBox 0 0 319.049 629.505
                           inner-stroke x=11.458 y=6.747 w=296.135 h=616.011
                         → 3.59% / 1.07% / 92.82% / 97.86% of frame
   ============================================================ */
.phone-card {
  position: absolute;
  top: 200px;                                   /* tight to title (ends ~168px) */
  left: 50%;
  transform:
    translateX(-50%)
    translateY(calc((75vh) * (1 - var(--q2)))); /* shorter travel */
  width: min(469px, 90vw);
  aspect-ratio: 469 / 480;                       /* derives height; never deforms */
  height: auto;
  background: rgba(21, 21, 21, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid #24282e;
  will-change: transform;
}
.phone-card__corner {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
  opacity: var(--q2);
}
.phone-card__corner--tl { top: -10px; left: -10px; }
.phone-card__corner--tr { top: -10px; right: -10px; transform: scaleX(-1); }
.phone-card__corner--br { bottom: -10px; right: -10px; transform: scale(-1, -1); }
.phone-card__corner--bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
/* CSS-built iPhone bezel — strict aspect-ratio so it ALWAYS looks like a real
   iPhone regardless of card or viewport size. */
.phone-card__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 96%;                                  /* nearly full card height */
  aspect-ratio: 9 / 19.5;                       /* real iPhone 15 portrait */
  width: auto;
  background: linear-gradient(180deg, #1c1f24 0%, #0f1216 100%);
  border-radius: 13% / 6%;                       /* iPhone-style rounded corners */
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.07),
    inset 0 0 0 2px #2a2d33,
    0 14px 36px rgba(0, 0, 0, 0.6);
  overflow: visible;                             /* let side buttons stick out */
}
/* Side buttons — silent switch + volume on left, power on right */
.phone-frame__btn {
  position: absolute;
  background: #15181c;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.6);
  border-radius: 1.5px;
  z-index: 4;
  pointer-events: none;
}
.phone-frame__btn--silent  { left: -1.4%;  top: 10.5%; width: 1.4%; height: 3.4%; }
.phone-frame__btn--volup   { left: -1.4%;  top: 16.5%; width: 1.4%; height: 6.5%; }
.phone-frame__btn--voldown { left: -1.4%;  top: 24.5%; width: 1.4%; height: 6.5%; }
.phone-frame__btn--power   { right: -1.4%; top: 18.0%; width: 1.4%; height: 8.5%; }
.phone-card__screen {
  position: absolute;
  /* Inset from the iPhone bezel — small uniform margin all sides */
  top: 1.5%;
  left: 3.5%;
  width: 93%;
  height: 97%;
  border-radius: 11.5% / 5%;                    /* matches bezel curve, slightly smaller */
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(165, 227, 232, 0.10), transparent 60%),
    linear-gradient(180deg, #05080c 0%, #0a0f17 50%, #060a10 100%);
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-primary);
  color: var(--color-neutral-white);
}

/* ============================================================
   iPhone Dynamic Island — pill at top center
   ============================================================ */
.ios-island {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4.2%;
  min-height: 14px;
  background: #000;
  border-radius: 999px;
  z-index: 6;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

/* ============================================================
   iOS Status Bar — time + signal/wifi/battery (split around island)
   ============================================================ */
.ios-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5% 7% 1%;
  flex-shrink: 0;
  z-index: 4;
  font-weight: 600;
  font-size: clamp(7px, 1.75cqw, 11px);
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.2px;
}
.ios-status__time { font-variant-numeric: tabular-nums; }
.ios-status__icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* Signal: 4 ascending bars drawn as a CSS gradient strip */
.ios-status__signal {
  display: inline-block;
  width: 16px; height: 8px;
  background:
    linear-gradient(to top, currentColor 30%, transparent 30%) 0 0 / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 50%, transparent 50%) 4px 0 / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 75%, transparent 75%) 8px 0 / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 100%, transparent 100%) 12px 0 / 3px 100% no-repeat;
}
/* WiFi: 3 nested arcs via inline SVG */
.ios-status__wifi {
  display: inline-block;
  width: 13px; height: 9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'><path d='M8 11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0-5.5a4 4 0 0 1 3 1.4l-1.4 1.4A2 2 0 0 0 8 7.5a2 2 0 0 0-1.6.8L5 6.9a4 4 0 0 1 3-1.4ZM8 1a8 8 0 0 1 6 2.7L12.6 5.1A6 6 0 0 0 8 3a6 6 0 0 0-4.6 2.1L2 3.7A8 8 0 0 1 8 1Z' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'><path d='M8 11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0-5.5a4 4 0 0 1 3 1.4l-1.4 1.4A2 2 0 0 0 8 7.5a2 2 0 0 0-1.6.8L5 6.9a4 4 0 0 1 3-1.4ZM8 1a8 8 0 0 1 6 2.7L12.6 5.1A6 6 0 0 0 8 3a6 6 0 0 0-4.6 2.1L2 3.7A8 8 0 0 1 8 1Z' fill='black'/></svg>") no-repeat center / contain;
}
/* Battery: outline + fill + cap */
.ios-status__battery {
  position: relative;
  display: inline-block;
  width: 22px; height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-left: 2px;
}
.ios-status__battery::before {
  content: "";
  position: absolute;
  top: 1px; left: 1px;
  width: calc(82% - 2px); height: calc(100% - 2px);
  background: currentColor;
  border-radius: 1px;
}
.ios-status__battery::after {
  content: "";
  position: absolute;
  right: -3px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

/* ============================================================
   App Header — title + LIVE pill
   ============================================================ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4% 6% 3%;
  flex-shrink: 0;
}
.app-header__title {
  font-family: var(--font-family-hero);
  font-weight: 700;
  font-size: clamp(13px, 4.2cqw, 22px);
  letter-spacing: 1.5px;
  color: var(--color-primary-cyan500);
  text-shadow: 0 0 8px rgba(165, 227, 232, 0.5);
}
.app-header__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  font-size: clamp(7px, 1.9cqw, 10px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary-red);
  background: rgba(195, 39, 28, 0.15);
  border: 0.5px solid var(--color-primary-red);
  border-radius: 999px;
}
.app-header__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary-red);
  box-shadow: 0 0 6px rgba(195, 39, 28, 0.9);
  animation: phenom-pulse 1.4s ease-in-out infinite;
}
@keyframes phenom-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================================
   Endless-scroll Feed
   The track holds two copies of the event list and translates
   from 0 to -50% to loop seamlessly.
   ============================================================ */
.app-feed {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.app-feed__track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 6% 0;
  animation: feed-scroll 28s linear infinite;
  will-change: transform;
}
@keyframes feed-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.ev {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: rgba(21, 25, 32, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.8);
  border-radius: 6px;
  flex-shrink: 0;
  backdrop-filter: blur(2px);
}
.ev__thumb {
  width: 14%;
  aspect-ratio: 1 / 1;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: clamp(11px, 3.5cqw, 16px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px currentColor;
  flex-shrink: 0;
}
.ev__thumb--c1 { background: linear-gradient(135deg, #1d3a5f 0%, #2d5a8f 100%); color: #6cb8ff; }
.ev__thumb--c2 { background: linear-gradient(135deg, #4a1d3f 0%, #7a2d6a 100%); color: #ff8ad4; }
.ev__thumb--c3 { background: linear-gradient(135deg, #5f3a1d 0%, #8f6a2d 100%); color: #ffce6c; }
.ev__thumb--c4 { background: linear-gradient(135deg, #1d5f3a 0%, #2d8f5a 100%); color: #6cffa8; }
.ev__thumb--c5 { background: linear-gradient(135deg, #3a1d5f 0%, #5a2d8f 100%); color: #b08aff; }
.ev__thumb--c6 { background: linear-gradient(135deg, #5f1d1d 0%, #8f2d2d 100%); color: #ff8a8a; }
.ev__thumb--c7 { background: linear-gradient(135deg, #1d5f5f 0%, #2d8f8f 100%); color: #6cffff; }
.ev__thumb--c8 { background: linear-gradient(135deg, #3a3a1d 0%, #5a5a2d 100%); color: #ffff8a; }
.ev__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}
.ev__title {
  font-size: clamp(8px, 2.4cqw, 12px);
  font-weight: 600;
  color: #e3e5ea;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev__sub {
  font-size: clamp(6px, 1.9cqw, 10px);
  color: #9aa1ad;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev__tag {
  font-size: clamp(6px, 1.7cqw, 9px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev__tag--ok      { color: var(--color-primary-cyan500); }
.ev__tag--pending { color: #d4a843; }

/* ============================================================
   Bottom Tab Bar
   ============================================================ */
.app-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4% 4% 5%;
  border-top: 0.5px solid rgba(56, 62, 70, 0.6);
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.app-tab {
  font-size: clamp(6px, 1.9cqw, 10px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
}
.app-tab--active { color: var(--color-primary-cyan500); }

/* Container queries on the screen — sized icons/text scale with screen */
.phone-card__screen { container-type: inline-size; }

/* Looping screen-recording video that lives inside the iPhone screen.
   3% wider than iPhone aspect (620:1280 vs 9:19.5) — `object-fit: cover`
   crops the sides invisibly. Browser handles the loop natively. */
.phone-scene-video,
.features-scene__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  border-radius: inherit;
  display: block;
  z-index: 1;
  transition: opacity 0.45s ease;
}
.phone-card__screen.is-recording .phone-scene-video { opacity: 0; }

/* ============================================================
   REPORT scene — Figma "Reports" dashboard (node 4312:89992).
   Fades in over the live-feed scene when .is-recording is added.
   ============================================================ */
.phone-scene--report {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: #060606;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(0.96);
  z-index: 5;
  overflow: hidden;
}
.phone-scene__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.phone-card__screen > :not(.phone-scene--report) {
  transition: opacity 0.45s ease;
}
.phone-card__screen.is-recording .phone-scene--report {
  opacity: 1;
  transform: scale(1);
}
.phone-card__screen.is-recording > :not(.phone-scene--report) {
  opacity: 0;
}

/* Pause auto-scroll when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .app-feed__track,
  .app-header__live-dot { animation: none; }
}

/* ============================================================
   Phase 3 — Typewriter text reveal (--q3)
   clip-path sweep from left; a blinking cyan caret sits on
   the reveal edge and fades at completion.
   ============================================================ */
/* Text content anchored to PHONE center (always at viewport 50%).
   240px = phone half-width (~234) + small gap.
   Each snippet is hidden until JS adds `.is-armed`; the typewriter
   then runs the full text on its own clock (not scroll-scrubbed). */
.left-content,
.left-content__report,
.right-content__eyebrow,
.right-content__caption {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.left-content.is-armed,
.left-content__report.is-armed,
.right-content__eyebrow.is-armed,
.right-content__caption.is-armed { opacity: 1; }
.left-content__report {
  font-family: var(--font-family-primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-primary-red);
  text-shadow: 0 0 8px rgba(195, 39, 28, 0.4);
  max-width: 356px;
  margin: 8px 0 0;
  text-align: right;
}
.left-content__report .typewriter__cursor {
  color: var(--color-primary-red);
  text-shadow: 0 0 6px rgba(195, 39, 28, 0.8);
}
.left-content,
.right-content {
  position: absolute;
}
.left-content  {
  top: 295px;
  right: calc(50% + 240px);
  width: min(340px, calc(50vw - 260px));
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end;
}
.right-content {
  top: 575px;
  left: calc(50% + 240px);
  width: min(340px, calc(50vw - 260px));
  display: flex; flex-direction: column; align-items: flex-start;
}
/* Real char-by-char typewriter — JS slices full text against scroll progress.
   The .typewriter element holds: a Text node (live emitted chars) + a cursor span. */
.typewriter {
  display: inline;
  white-space: pre-wrap;
}
.typewriter__cursor {
  display: inline-block;
  width: 0.55em;
  margin-left: 1px;
  color: var(--color-primary-cyan500);
  text-shadow: 0 0 6px rgba(165, 227, 232, 0.75);
  animation: typewriter-blink 0.6s steps(2, start) infinite;
  vertical-align: baseline;
  pointer-events: none;
}
.typewriter__cursor[data-done="true"] { animation: none; opacity: 0; }
@keyframes typewriter-blink {
  to { visibility: hidden; }
}
.left-content__text {
  font-family: var(--font-family-primary);
  font-weight: 400; font-size: 16px; line-height: 20px;
  letter-spacing: -1px;
  color: #c5cad2;
  max-width: 356px;
  margin: 0 0 var(--spacing-md);
}
.right-content__eyebrow {
  font-family: var(--font-family-primary);
  font-weight: 700; font-size: 18px; line-height: 26px;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
  margin: 0 0 8px;
}
.right-content__caption {
  font-family: var(--font-family-primary);
  font-weight: 400; font-size: 16px; line-height: 20px;
  letter-spacing: -1px;
  color: #c5cad2;
  margin: 0 0 var(--spacing-md);
}

.qr-code {
  position: relative;
  width: 90px; height: 90px;
  margin-top: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  opacity: var(--q4);
  transform: scale(calc(0.8 + 0.2 * var(--q4)));
  transition: none;
}
.qr-code::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px dashed var(--color-primary-cyan500);
  opacity: 0.9;
}
.qr-code img {
  width: 64px; height: 64px; opacity: 0.9;
}

/* Stats */
.stats {
  position: absolute;
  left: 50%; top: 690px;
  transform:
    translateX(-50%)
    translateY(calc(50px * (1 - var(--q4))));
  width: 469px; height: 116px;
  display: flex; align-items: center; justify-content: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 26px;
  background: rgba(21, 21, 21, calc(0.8 * var(--q4)));
  border: 0.5px solid rgba(36, 40, 46, var(--q4));
  opacity: var(--q4);
  will-change: transform, opacity;
}
.stats__corner {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
}
.stats__corner--bl { bottom: -10px; left: -10px; }
.stats__corner--br { bottom: -10px; right: -10px; transform: scaleX(-1); }
.stats__item {
  flex: 1 0 0; min-width: 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
}
.stats__label {
  font-family: var(--font-family-primary);
  font-weight: 400; font-size: 12px; line-height: 16px;
  text-transform: uppercase; color: #aab1be; margin: 0;
}
.stats__value {
  font-family: var(--font-family-hero);
  font-weight: 700; font-size: 16px; line-height: 28px;
  letter-spacing: 0.32px;
  color: #e3e5ea; margin: 0;
  white-space: nowrap;
}

/* ---------- After-hero content ---------- */
.post-hero {
  position: relative; z-index: 3;
  padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-xl);
  max-width: 960px; margin: 0 auto;
  text-align: center;
  color: #aab1be;
  font-size: 14px; line-height: 22px;
}
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;                                  /* above hero stage, below nav (100) */
  text-align: center;
  padding: 10px var(--spacing-md);
  font-size: 12px; color: #aab1be;
  border-top: 1px solid #24282e;
  background: rgba(6, 6, 6, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 -5px 12px 0 rgba(0, 0, 0, 0.35);
}
.site-footer p { margin: 2px 0; line-height: 1.4; }
.site-footer__hint { color: #c5cad2; font-size: 13px; }
.site-footer__legal { font-size: 11px; }
.site-footer a { color: var(--color-primary-cyan500); }
.site-footer a:hover { text-decoration: underline; }
/* Add bottom padding so page content isn't hidden behind the fixed footer */
body { padding-bottom: 64px; }
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body         { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   PAGE CONTENT — shared layout for non-home pages.
   All non-home pages use <main class="page"> with the same
   nav + .hero-bg fixed background + .site-footer chrome.
   ============================================================ */
.page {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px var(--spacing-3xl) 80px;        /* nav clearance + breathing room */
  font-family: var(--font-family-primary);
}

.page__hero {
  text-align: center;
  margin: 0 0 var(--spacing-3xl);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.page__title {
  margin: 0 0 var(--spacing-md);
  font-family: var(--font-family-hero);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
  text-shadow: 0 0 14px rgba(165, 227, 232, 0.4), 0 0 2px rgba(165, 227, 232, 0.55);
}

.page__lede {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: #c5cad2;
}

.page__h2 {
  margin: 0 0 var(--spacing-md);
  font-family: var(--font-family-hero);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
}

/* Card — the workhorse content container used on every page */
.card {
  position: relative;
  margin: 0 0 var(--spacing-lg);
  padding: var(--spacing-xl);
  background: rgba(15, 18, 22, 0.7);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 0.5px solid rgba(56, 62, 70, 0.8);
  border-radius: 4px;
}
.card h2 {
  margin: 0 0 var(--spacing-md);
  font-family: var(--font-family-hero);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
}
.card h3 {
  margin: var(--spacing-lg) 0 var(--spacing-sm);
  font-family: var(--font-family-primary);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e3e5ea;
}
.card p,
.card li {
  font-size: 15px;
  line-height: 1.65;
  color: #c5cad2;
  margin: 0 0 var(--spacing-sm);
}
.card ul, .card ol { padding-left: 24px; margin: 0 0 var(--spacing-md); }
.card a { color: var(--color-primary-cyan500); text-decoration: underline; }
.card a:hover { color: #fff; }
.card em      { color: #aab1be; font-style: italic; }
.card strong  { color: #e3e5ea; }

.card blockquote {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  border-left: 2px solid var(--color-primary-cyan500);
  color: #aab1be;
  font-style: italic;
}

/* Pillar / feature card grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  margin: 0 0 var(--spacing-xl);
}
.feature-card {
  padding: var(--spacing-lg);
  background: rgba(21, 25, 32, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.6);
  border-radius: 4px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--color-primary-cyan500); }
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--spacing-md);
  border-radius: 4px;
  font-size: 22px;
  font-weight: 700;
}
.feature-card__icon--blue   { background: linear-gradient(135deg, #1d3a5f 0%, #2d5a8f 100%); color: #6cb8ff; }
.feature-card__icon--green  { background: linear-gradient(135deg, #1d5f3a 0%, #2d8f5a 100%); color: #6cffa8; }
.feature-card__icon--pink   { background: linear-gradient(135deg, #5f1d3a 0%, #8f2d5a 100%); color: #ff8ad4; }
.feature-card__icon--red    { background: linear-gradient(135deg, #5f1d1d 0%, #8f2d2d 100%); color: #ff8a8a; }
.feature-card__icon--purple { background: linear-gradient(135deg, #3a1d5f 0%, #5a2d8f 100%); color: #b08aff; }
.feature-card__icon--amber  { background: linear-gradient(135deg, #5f3a1d 0%, #8f6a2d 100%); color: #ffce6c; }
.feature-card h3 {
  margin: 0 0 var(--spacing-sm);
  font-family: var(--font-family-primary);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e3e5ea;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #aab1be;
  margin: 0;
}

/* Team grid (About) — 5 columns */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
  margin: 0 0 var(--spacing-xl);
}
.team-card {
  padding: var(--spacing-lg);
  background: rgba(21, 25, 32, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.6);
  border-radius: 4px;
}
.team-card--partner { background: rgba(13, 26, 20, 0.7); border-color: rgba(29, 95, 58, 0.6); }
.team-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: var(--spacing-md);
  border-radius: 50%;
  font-family: var(--font-family-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.team-card--partner .team-card__avatar { border-radius: 6px; border: 0.5px solid var(--color-primary-cyan500); font-size: 14px; background: linear-gradient(135deg, #1c1f24 0%, #0f1216 100%); color: var(--color-primary-cyan500); }
.team-card__avatar--photo {
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--color-primary-cyan500);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(165, 227, 232, 0.18);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  z-index: 1;
}
.team-card__avatar--photo:hover { border-color: #fff; }
.team-card__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Click-to-zoom: stays enlarged until clicked again. */
.team-card__avatar--photo.is-zoomed {
  transform: scale(1.6);
  z-index: 5;
  border-color: var(--color-primary-cyan500);
}

/* Throb pulse — fires on every click (zoom in OR zoom out). */
.team-card__avatar--photo.is-throbbing {
  animation: avatar-throb 0.65s ease-out;
}
@keyframes avatar-throb {
  0%   { box-shadow: 0 0 0 0 rgba(165, 227, 232, 0.85), 0 0 12px rgba(165, 227, 232, 0.18); }
  60%  { box-shadow: 0 0 0 18px rgba(165, 227, 232, 0),    0 0 22px rgba(165, 227, 232, 0.55); }
  100% { box-shadow: 0 0 0 0  rgba(165, 227, 232, 0),    0 0 12px rgba(165, 227, 232, 0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .team-card__avatar--photo,
  .team-card__avatar--photo.is-zoomed { transition: none; }
  .team-card__avatar--photo.is-throbbing { animation: none; }
}
.team-card--partner .team-card__avatar--photo { border-radius: 50%; }
.team-card__role a {
  color: var(--color-primary-cyan500);
  text-decoration: none;
  border-bottom: 1px dotted rgba(165, 227, 232, 0.5);
  transition: border-color 0.18s ease;
}
.team-card__role a:hover { border-bottom-color: var(--color-primary-cyan500); }
.team-card__name { margin: 0 0 4px; font-family: var(--font-family-primary); font-weight: 700; font-size: 14px; letter-spacing: 0.6px; color: #e3e5ea; text-transform: uppercase; }
.team-card__role { margin: 0 0 var(--spacing-sm); font-family: var(--font-family-primary); font-weight: 700; font-size: 10px; letter-spacing: 1.2px; color: var(--color-primary-cyan500); text-transform: uppercase; }
.team-card__bio  { margin: 0; font-size: 12px; line-height: 1.5; color: #aab1be; }

/* Media list (Media page) */
.media-list { display: flex; flex-direction: column; gap: var(--spacing-md); margin: 0 0 var(--spacing-xl); }
.media-item {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(21, 25, 32, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.6);
  border-radius: 4px;
  align-items: stretch;
}
.media-item__embed {
  position: relative;
  flex: 0 0 280px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.media-item__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.media-item__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.media-item__title { margin: 0; font-family: var(--font-family-primary); font-weight: 700; font-size: 15px; line-height: 1.35; color: #e3e5ea; }
.media-item__desc  { margin: 0; font-size: 13px; line-height: 1.5; color: #aab1be; }
.media-item__meta  { margin: auto 0 0; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--color-primary-cyan500); text-transform: uppercase; }
.media-item__meta a { color: inherit; text-decoration: none; }
.media-item__meta a:hover { text-decoration: underline; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 var(--spacing-xl); }
.faq-item {
  background: rgba(15, 18, 22, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.8);
  border-radius: 4px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-family-primary);
  font-weight: 700;
  font-size: 14px;
  color: #e3e5ea;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "⌄"; color: var(--color-primary-cyan500); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::before { transform: rotate(180deg); }
.faq-item__num { color: var(--color-primary-cyan500); margin-right: 4px; font-variant-numeric: tabular-nums; }
.faq-item__body { padding: 0 20px 18px 36px; }
.faq-item__body p, .faq-item__body li { font-size: 13px; line-height: 1.6; color: #aab1be; margin: 0 0 8px; }
.faq-item__body ul { padding-left: 18px; }

/* Blog post cards */
.blog-list { display: flex; flex-direction: column; gap: var(--spacing-lg); margin: 0 0 var(--spacing-xl); }
.blog-card {
  display: block;
  padding: var(--spacing-xl);
  background: rgba(15, 18, 22, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.8);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.blog-card:hover { border-color: var(--color-primary-cyan500); transform: translateY(-2px); }
.blog-card__meta { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--color-primary-cyan500); text-transform: uppercase; margin-bottom: 10px; }
.blog-card__title { margin: 0 0 10px; font-family: var(--font-family-primary); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.3px; line-height: 1.25; color: #e3e5ea; }
.blog-card__excerpt { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #aab1be; }
.blog-card__more { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--color-primary-cyan500); }

/* Shop product grid */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--spacing-lg); margin: 0 0 var(--spacing-xl); }
.shop-item {
  padding: var(--spacing-lg);
  background: rgba(15, 18, 22, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.8);
  border-radius: 4px;
  text-align: center;
}
.shop-item__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #1d3a5f 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-cyan500);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 12px;
}
.shop-item__image--alt { background: linear-gradient(135deg, #5f1d3a 0%, #0a0a0a 100%); color: #ff8ad4; }
.shop-item__title { margin: 0 0 6px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #e3e5ea; font-size: 14px; }
.shop-item__desc  { margin: 0; font-size: 12px; color: #aab1be; line-height: 1.5; }

/* ============================================================
   Features page — auto-cycling iPhone tour
   ============================================================ */
.features-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-xl) 0;
}
@media (max-width: 900px) {
  .features-stage { grid-template-columns: 1fr; gap: var(--spacing-xl); }
}

.features-phone {
  position: relative;
  justify-self: center;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, #1c1f24 0%, #0f1216 100%);
  border-radius: 13% / 6%;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.07),
    inset 0 0 0 2px #2a2d33,
    0 18px 44px rgba(0, 0, 0, 0.65);
  overflow: visible;
}
.features-phone__screen {
  position: absolute;
  top: 1.5%;
  left: 3.5%;
  width: 93%;
  height: 97%;
  border-radius: 11.5% / 5%;
  overflow: hidden;
  background: linear-gradient(180deg, #05080c 0%, #0a0f17 100%);
  container-type: inline-size;
}

/* Each scene fills the screen; only the .is-active one is visible. */
.features-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.features-scene.is-active {
  opacity: 1;
  transform: scale(1);
}
.features-scene__img { width: 100%; height: 100%; object-fit: cover; }

/* Map mock (placeholder visual) */
.map-mock {
  position: relative;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(165,227,232,0.10) 0%, rgba(0,0,0,0.6) 75%),
    linear-gradient(180deg, #060a10 0%, #0a0f17 100%);
  overflow: hidden;
}
.map-mock__grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg,  transparent 0 14px, rgba(165,227,232,0.06) 14px 15px),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(165,227,232,0.06) 14px 15px);
  mix-blend-mode: screen;
}
.map-mock__pin {
  position: absolute;
  width: 9px; height: 9px;
  background: var(--color-primary-cyan500);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(165,227,232,0.85);
  animation: map-pin-pulse 2s ease-in-out infinite;
}
.map-mock__pin--1 { top: 28%; left: 22%; animation-delay: 0s; }
.map-mock__pin--2 { top: 35%; left: 65%; animation-delay: 0.4s; }
.map-mock__pin--3 { top: 50%; left: 38%; animation-delay: 0.8s; background: var(--color-primary-red); box-shadow: 0 0 12px rgba(195,39,28,0.85); }
.map-mock__pin--4 { top: 60%; left: 70%; animation-delay: 1.2s; }
.map-mock__pin--5 { top: 70%; left: 28%; animation-delay: 1.6s; }
.map-mock__pin--6 { top: 45%; left: 80%; animation-delay: 0.2s; background: var(--color-primary-red); box-shadow: 0 0 12px rgba(195,39,28,0.85); }
@keyframes map-pin-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.55; }
}
.map-mock__label {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-family-primary);
  font-size: clamp(8px, 2.4cqw, 11px);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary-cyan500);
  text-shadow: 0 0 6px rgba(165,227,232,0.5);
}

/* Chat mock */
.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10% 6% 6%;
  height: 100%;
  font-family: var(--font-family-primary);
  font-size: clamp(8px, 2.4cqw, 11px);
}
.chat-mock__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(13, 26, 20, 0.7);
  border: 0.5px solid rgba(29, 95, 58, 0.6);
  border-radius: 4px;
  font-size: clamp(7px, 2cqw, 9px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #6cffa8;
  text-transform: uppercase;
}
.chat-mock__msg {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 6px 8px;
  background: rgba(21, 25, 32, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.6);
  border-radius: 4px;
  max-width: 85%;
}
.chat-mock__msg strong {
  font-size: clamp(7px, 2cqw, 9px);
  font-weight: 700;
  color: var(--color-primary-cyan500);
  letter-spacing: 0.6px;
  flex-shrink: 0;
}
.chat-mock__msg p {
  margin: 0;
  font-size: clamp(8px, 2.3cqw, 10px);
  color: #c5cad2;
  line-height: 1.4;
}
.chat-mock__msg--in  { align-self: flex-start; }
.chat-mock__msg--out { align-self: flex-end; background: rgba(165, 227, 232, 0.08); border-color: rgba(165, 227, 232, 0.3); }
.chat-mock__compose {
  margin-top: auto;
  padding: 8px 10px;
  background: rgba(10, 14, 20, 0.7);
  border: 0.5px solid rgba(56, 62, 70, 0.5);
  border-radius: 4px;
}
.chat-mock__placeholder {
  font-size: clamp(7px, 2cqw, 9px);
  color: #6b7280;
  letter-spacing: 0.4px;
}

/* Description column */
.features-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 460px;
}
.features-desc__eyebrow {
  font-family: var(--font-family-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary-red);
  margin: 0;
  text-transform: uppercase;
}
.features-desc__title {
  font-family: var(--font-family-hero);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
  text-shadow: 0 0 12px rgba(165, 227, 232, 0.4);
  margin: 0 0 8px;
  min-height: 1.1em;
}
.features-desc__body {
  font-family: var(--font-family-primary);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: #c5cad2;
  margin: 0;
  min-height: 4.8em;
}
.features-desc__progress {
  display: flex;
  gap: 8px;
  margin-top: var(--spacing-md);
}
.features-desc__dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(165, 227, 232, 0.18);
  transition: background 0.4s ease;
}
.features-desc__dot.is-active {
  background: var(--color-primary-cyan500);
  box-shadow: 0 0 6px rgba(165, 227, 232, 0.6);
}

/* ============================================================
   Contact page — two big options + FAQ link + progressive signup
   ============================================================ */
.feature-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .feature-grid--two { grid-template-columns: 1fr; }
}
.feature-card--prominent {
  padding: var(--spacing-xl);
  text-align: left;
}
.feature-card--prominent .feature-card__icon {
  width: 56px; height: 56px;
  font-size: 26px;
}
.feature-card--prominent h3 {
  font-size: 18px;
  margin-bottom: var(--spacing-sm);
}
.feature-card--prominent p {
  font-size: 14px;
  line-height: 1.6;
}

.contact-faq-link {
  text-align: center;
  margin: var(--spacing-3xl) 0 var(--spacing-md);
  font-size: 13px;
  color: #aab1be;
}
.contact-faq-link a {
  color: var(--color-primary-cyan500);
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* Quick signup */
.qs {
  max-width: 560px;
  margin: var(--spacing-3xl) auto 0;
  padding: var(--spacing-xl);
  background: rgba(15, 18, 22, 0.7);
  backdrop-filter: blur(8px) saturate(120%);
  border: 0.5px solid rgba(56, 62, 70, 0.8);
  border-radius: 4px;
  text-align: center;
}
.qs__question {
  font-family: var(--font-family-hero);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
  margin: 0 0 var(--spacing-md);
}
.qs__choice {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.qs__pill {
  padding: 12px 22px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid rgba(56, 62, 70, 0.9);
  color: #c5cad2;
  font-family: var(--font-family-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.qs__pill:hover {
  border-color: var(--color-primary-cyan500);
  color: var(--color-primary-cyan500);
  transform: translateY(-1px);
}
.qs__pill.is-active {
  background: var(--color-primary-cyan500);
  border-color: var(--color-primary-cyan500);
  color: #060606;
  box-shadow: 0 0 12px rgba(165, 227, 232, 0.5);
}

.qs__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.qs__form.qs__form--shown {
  opacity: 1;
  transform: translateY(0);
}
.qs__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.qs__row[data-step="email"] { opacity: 1; transform: translateY(0); }
.qs__row.qs__row--shown { opacity: 1; transform: translateY(0); }
.qs__label {
  font-family: var(--font-family-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
}
.qs__input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(10, 14, 20, 0.65);
  border: 1px solid rgba(56, 62, 70, 0.8);
  border-radius: 3px;
  color: #e3e5ea;
  font-family: var(--font-family-primary);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}
.qs__input:focus {
  outline: none;
  border-color: var(--color-primary-cyan500);
  box-shadow: 0 0 0 2px rgba(165, 227, 232, 0.18);
}
.qs__submit {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.qs__submit.qs__submit--shown {
  opacity: 1;
  transform: translateY(0);
}

/* Action choice — appears after lastname is filled */
.qs__action-row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.qs__action-row.qs__row--shown {
  opacity: 1;
  transform: translateY(0);
}
.qs__sub-question {
  font-family: var(--font-family-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
  margin: 0 0 12px;
}
.qs__action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .qs__action-grid { grid-template-columns: 1fr; }
}
.qs__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 16px;
  background: rgba(15, 18, 22, 0.7);
  border: 1px solid rgba(56, 62, 70, 0.9);
  border-radius: 4px;
  color: #c5cad2;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-family-primary);
}
.qs__action:hover {
  border-color: var(--color-primary-cyan500);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.qs__action.is-active {
  border-color: var(--color-primary-cyan500);
  background: rgba(165, 227, 232, 0.10);
  box-shadow: 0 0 0 1px var(--color-primary-cyan500), 0 0 16px rgba(165, 227, 232, 0.25);
}
.qs__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #1d3a5f 0%, #2d5a8f 100%);
  border-radius: 4px;
  color: var(--color-primary-cyan500);
  font-size: 22px;
  font-weight: 700;
}
.qs__action[data-action="drop"] .qs__action-icon {
  background: linear-gradient(135deg, #5f1d3a 0%, #8f2d5a 100%);
  color: #ff8ad4;
}
.qs__action.is-active .qs__action-icon {
  box-shadow: 0 0 12px rgba(165, 227, 232, 0.4);
}
.qs__action-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #e3e5ea;
}
.qs__action.is-active .qs__action-title { color: var(--color-primary-cyan500); }
.qs__action-desc {
  font-size: 12px;
  color: #aab1be;
  line-height: 1.4;
}

/* Message textarea — revealed after Drop a message is chosen */
.qs__textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-family-primary);
}

/* Native handoff card revealed when Drop a media file is chosen.
   (The full inline upload UI is being built; for now this is a clean
   in-page primer that explains what happens next, then the submit
   handler navigates the user into Phenom Drop.) */
.qs__drop-card {
  padding: 20px 22px;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(56, 62, 70, 0.85);
  border-left: 3px solid var(--color-primary-cyan500);
  border-radius: 4px;
}
.qs__drop-card__lead {
  margin: 0 0 12px;
  font-family: var(--font-family-primary);
  font-size: 14px;
  line-height: 1.55;
  color: #e3e5ea;
}
.qs__drop-card__lead strong { color: var(--color-primary-cyan500); }
.qs__drop-card__steps {
  margin: 0 0 12px;
  padding-left: 22px;
  font-family: var(--font-family-primary);
  font-size: 13px;
  line-height: 1.6;
  color: #c5cad2;
}
.qs__drop-card__steps li { margin-bottom: 4px; }
.qs__drop-card__note {
  margin: 0;
  font-family: var(--font-family-primary);
  font-size: 12px;
  font-style: italic;
  color: #aab1be;
}
.qs__status {
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 1em;
}
.qs__status--success { color: #6cffa8; }
.qs__status--error   { color: #ff8a8a; }

/* ============================================================
   Support contact form — Brevo-bound, GDPR consent gated
   ============================================================ */
.support-form { display: flex; flex-direction: column; gap: var(--spacing-md); }
.support-form__row { display: flex; flex-direction: column; gap: 6px; }
.support-form__label {
  font-family: var(--font-family-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
}
.support-form__req { color: var(--color-primary-red); margin-left: 2px; }
.support-form__input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(10, 14, 20, 0.65);
  border: 1px solid rgba(56, 62, 70, 0.8);
  border-radius: 3px;
  color: #e3e5ea;
  font-family: var(--font-family-primary);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}
.support-form__input::placeholder { color: #6b7280; }
.support-form__input:focus {
  outline: none;
  border-color: var(--color-primary-cyan500);
  box-shadow: 0 0 0 2px rgba(165, 227, 232, 0.18);
}
.support-form__textarea { resize: vertical; min-height: 120px; font-family: var(--font-family-primary); }
.support-form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.support-form__consent {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-form__legend {
  font-family: var(--font-family-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-primary-cyan500);
  margin-bottom: 4px;
  padding: 0;
}
.support-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #c5cad2;
  cursor: pointer;
}
.support-form__check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary-cyan500);
  flex-shrink: 0;
}
.support-form__check em { color: #9aa1ad; font-size: 12px; }
.support-form__submit {
  align-self: flex-start;
  margin-top: 6px;
}
.support-form__status {
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 1em;
}
.support-form__status--success { color: #6cffa8; }
.support-form__status--error   { color: #ff8a8a; }

.cta-row { display: flex; justify-content: center; margin: var(--spacing-xl) 0; }
.cta-button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  background: var(--color-primary-red);
  border: 1px solid #851c15;
  color: #fff;
  font-family: var(--font-family-primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.cta-button:hover { background: var(--color-primary-red-hover); }

/* Mobile */
@media (max-width: 768px) {
  .page { padding: 88px 20px 40px; }
  .page__hero { padding: 12px 0; margin-bottom: 24px; }
  .card { padding: 20px; }
  .feature-card { padding: 18px; }
  .team-card { padding: 18px; }
  .media-item { flex-direction: column; gap: 12px; padding: 14px; }
  .media-item__embed { flex: 0 0 auto; width: 100%; }
}

/* ---------- Responsive ---------- */
/* ============================================================
   Responsive — mid-width (desktop-ish, down to 1100px)
   Text + arrows stay anchored to phone via calc(50% ± 240px).
   ============================================================ */
@media (max-width: 1100px) {
  .hero-title { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; }
}

/* ============================================================
   Mobile (portrait phones) — Figma 4168:2993 at 375px.
   Completely replaces the sticky-scroll animation with a normal
   vertically-scrolling stacked layout.
   Triggers at 768px so tablets in portrait also get the clean layout.
   ============================================================ */
.nav__hamburger { display: none; }      /* desktop: no hamburger */
.store-buttons  { display: none; }       /* desktop: QR only */
.title-break    { display: inline; }     /* always 2-line break for the hero title */

@media (max-width: 768px) {
  /* -- Reset scroll-animation -- */
  .hero-stage-wrap { height: auto; z-index: auto; }
  .hero-stage {
    position: relative;
    top: auto; left: auto; right: auto;
    height: auto;
    min-height: 0;
    --p: 1;                              /* force end-state for any calc() */
    --q1: 1; --q2: 1; --q3: 1; --q4: 1;
  }
  .hero-stage--done { display: block !important; }

  /* -- Background: keep fixed grid but shrink the floor for mobile -- */
  .hero-bg__floor {
    width: 300vw;                        /* narrower on small screens */
    height: auto;
    bottom: -40vw;
  }

  /* -- Nav: logo + hamburger only -- */
  .nav {
    display: flex;                             /* override desktop grid */
    grid-template-columns: none;
    padding: 12px 20px;
    gap: 12px;
    justify-content: space-between;
  }
  .nav__desktop,
  .nav__desktop-cta { display: none; }
  .nav__hamburger {
    display: inline-flex;
    position: fixed;
    top: 12px;
    right: max(16px, env(safe-area-inset-right, 16px));
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(21, 21, 21, 0.7);
    border: 1.5px solid var(--color-primary-cyan500);
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(165, 227, 232, 0.2);
    color: var(--color-primary-cyan500);
    -webkit-tap-highlight-color: rgba(165, 227, 232, 0.3);
    z-index: 200;          /* above nav (100) and all stage content */
  }
  .nav__hamburger img {
    width: 22px;
    height: 22px;
    display: block;
    filter: drop-shadow(0 0 2px rgba(165, 227, 232, 0.5));
  }

  /* -- Mobile menu drawer (hidden until toggled) -- */
  .mobile-menu {
    position: fixed;
    top: 64px; left: 0; right: 0;
    z-index: 99;
    background: rgba(6, 6, 6, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #383c43;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu__link {
    font-family: var(--font-family-primary);
    font-size: 16px;
    line-height: 22px;
    color: var(--color-neutral-white);
    text-transform: uppercase;
    padding: 14px 0;
    border-bottom: 1px solid #1f2328;
    min-height: 44px;                    /* iOS touch target */
    display: flex; align-items: center;
  }
  .mobile-menu__link:last-of-type { border-bottom: none; }
  .mobile-menu__cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    height: 48px;
  }

  /* -- Hero stage __inner: vertical flex column, natural flow -- */
  .hero-stage__inner {
    position: relative; inset: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 88px 20px 40px;             /* 64 nav + 24 top gap */
    pointer-events: auto;
  }

  /* -- Title (forced 2-line break on phones via <br class="title-break">) -- */
  .hero-title {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.5px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: 0 0 12px rgba(165, 227, 232, 0.45);
  }
  .title-break { display: inline; }

  /* -- left-content / right-content: merged into a stacked column -- */
  .left-content,
  .right-content {
    position: relative;
    top: auto; left: auto; right: auto;
    width: 100%; max-width: 340px;
    text-align: center;
    align-items: center;
    opacity: 1;
    order: 2;                            /* after title by default */
  }
  .left-content  { order: 2; }           /* description right after title */
  .right-content { order: 4; }           /* CTA block after phone */
  .typewriter {
    -webkit-mask-image: none;
            mask-image: none;            /* no scanline reveal on mobile */
  }
  .typewriter::after { display: none; }
  .left-content__text { max-width: 340px; text-align: center; }
  .right-content__eyebrow { font-size: 16px; line-height: 20px; text-align: center; }
  .right-content__caption { font-size: 14px; line-height: 18px; text-align: center; }

  /* -- QR code: hide on mobile (store buttons do the job) -- */
  .qr-code { display: none; }

  /* -- Store buttons -- */
  .store-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
  }
  .store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    min-height: 44px;
    background: #000;
    border: 1px solid rgba(166, 166, 166, 0.4);
    color: var(--color-neutral-white);
    padding: 8px;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(165, 227, 232, 0.2);
  }
  .store-btn:active { transform: scale(0.98); }
  .store-btn__icon { width: 20px; height: 24px; flex-shrink: 0; }
  .store-btn--google .store-btn__icon { width: 21px; }
  .store-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    width: 82px;
  }
  .store-btn__eyebrow {
    font-size: 8px;
    font-family: var(--font-family-primary);
    color: var(--color-neutral-white);
    margin-bottom: 3px;
  }
  .store-btn__name {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family-primary);
  }
  .store-btn__name-img { height: 15px; width: auto; display: block; }

  /* -- Phone card: scales to viewport; inner/frame/screen percentages cascade -- */
  .phone-card {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%; max-width: 320px;
    aspect-ratio: 469 / 480;                   /* same shape as desktop, just smaller */
    height: auto;
    order: 3;
  }
  .phone-card__corner { opacity: 1; }
  /* No inner/frame/screen overrides needed —
     the desktop percentage layout works at any card size. */


  /* -- Stats: full-width bar below phone -- */
  .stats {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%; max-width: 340px;
    height: auto;
    padding: 16px 12px;
    gap: 8px;
    background: rgba(21, 21, 21, 0.8);
    border: 1px solid #24282e;
    order: 5;
  }
  .stats__corner { opacity: 1; }
  .stats__item { gap: 8px; }

  /* -- Footer breathing room -- */
  .site-footer { padding: 24px 20px; font-size: 11px; }
  .post-hero { padding: 24px 20px; font-size: 13px; }
}

/* ---------- Extra-small (very narrow Androids, < 360px) ---------- */
@media (max-width: 360px) {
  .hero-stage__inner { padding: 80px 16px 32px; gap: 20px; }
  .hero-title { font-size: 26px; line-height: 30px; }
  .phone-card { max-width: 280px; }            /* aspect-ratio handles height */
}

/* ---------- iOS notch / safe-area support ---------- */
@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 768px) {
    .nav {
      padding-top: calc(12px + env(safe-area-inset-top));
      padding-left:  max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
    .mobile-menu {
      top: calc(64px + env(safe-area-inset-top));
      padding-left:  max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
    .hero-stage__inner,
    .site-footer,
    .post-hero {
      padding-left:  max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
    .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  }
}

/* ---------- Reduced motion: skip to end state ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-stage {
    --p: 1 !important;
    --q1: 1 !important; --q2: 1 !important;
    --q3: 1 !important; --q4: 1 !important;
  }
  .hero-stage-wrap { height: 100vh; }
  .typewriter::after { display: none; }
}
