/* ================================================================
   DARTIST — Cinematic Landing (Flighty-grade)
   Dark stage, one emerald accent, glowing throw-trail motif.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max: 1180px;

  --ink: #000000;
  --ink-1: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #18181b;
  --on: #ffffff;
  --on-2: rgba(255, 255, 255, 0.66);
  --on-3: rgba(255, 255, 255, 0.40);
  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.16);

  --accent: #10D98C;
  --accent-2: #28e29b;
  --accent-soft: rgba(16, 217, 140, 0.14);
  --accent-glow: rgba(16, 217, 140, 0.45);
  --warn: #ffb020;

  --r: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font);
  background: var(--ink);
  background-image: none;
  background-attachment: scroll;
  color: var(--on);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { padding-bottom: 0; }

img { max-width: 100%; }

/* Film-grain overlay across the whole page — inline SVG noise
   (feTurbulence), no image file needed, crisp at any DPI */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
  mix-blend-mode: overlay;
}

/* ================================================================
   SECTION SHELL + SHARED TYPE
   ================================================================ */
.section-inner,
.story-inner,
.deep-inner,
.stats-inner,
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(1.1rem, 5vw, 2rem);
  padding-right: clamp(1.1rem, 5vw, 2rem);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  color: var(--on) !important;
  margin: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  display: block !important;
  line-height: 1.08 !important;
}
.section-title::before { display: none !important; }
/* Kill the global h2::before green accent bar (from styles.css) on every
   landing headline — phase titles, deep-dive titles, etc. */
.phase-title::before,
.deep-copy .section-title::before,
.hero-headline::before,
.cta-title::before { display: none !important; content: none !important; }

.accent-text { color: var(--accent); }

/* Reveal initial state — only hidden when JS is running, so a
   no-JS / failed-observer load still shows everything. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ================================================================
   NAV — airy edge-to-edge at top; collapses to a floating glass
   pill on scroll (Flighty-style).
   ================================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  margin: 0;
  z-index: 100;
  /* taller, airier when at the top of the page */
  padding: clamp(1rem, 2.2vw, 1.6rem) clamp(1.1rem, 5vw, 2.5rem);
  display: flex;
  justify-content: center;
  pointer-events: none;            /* only the inner bar is interactive */
  transition: padding 0.4s var(--ease);
}
.site-nav > * { pointer-events: auto; }

.nav-inner {
  width: 100%;
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* glass chrome — transparent & flush at the top... */
  padding: 0.5rem clamp(0.5rem, 1.5vw, 1rem);
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition:
    max-width 0.45s var(--ease),
    padding 0.45s var(--ease),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}

/* ...condenses into a floating frosted pill once scrolled */
.site-nav.scrolled {
  padding-top: clamp(0.6rem, 1.2vw, 0.9rem);
  padding-bottom: clamp(0.6rem, 1.2vw, 0.9rem);
}
.site-nav.scrolled .nav-inner {
  max-width: 880px;
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  background: rgba(16,16,21,0.82);
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    0 0 0 1px rgba(16,217,140,0.06),
    0 16px 40px -12px rgba(0,0,0,0.7);
}

.nav-brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.02em; color: var(--on);
}
.nav-brand:hover { text-decoration: none; }
.nav-logo { width: 28px; height: 28px; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.nav-brand-name { color: var(--on); }

.nav-links { display: flex; gap: 0.3rem; }
.nav-link {
  padding: 0.4rem 0.85rem; border-radius: var(--r-pill);
  color: var(--on-2); font-size: 0.86rem; font-weight: 600;
  text-decoration: none; transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: var(--on); background: rgba(255,255,255,0.06); text-decoration: none; }
.nav-link.is-active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 760px) { .nav-links { display: none; } }

.nav-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 600;
  font-family: var(--font); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
/* On desktop the icon is hidden, the label shows */
.nav-btn-icon { width: 18px; height: 18px; flex-shrink: 0; display: none; }
.nav-btn-label { display: inline; }
.nav-btn-ghost { color: var(--on); border: 1px solid var(--hair-2); background: transparent; }
.nav-btn-ghost:hover { border-color: var(--on); background: rgba(255,255,255,0.06); color: var(--on); text-decoration: none; }
.nav-btn-primary { color: var(--ink); background: var(--accent); border: 1px solid var(--accent); box-shadow: 0 0 24px -6px var(--accent-glow); }
.nav-btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); transform: translateY(-1px); text-decoration: none; }

/* ================================================================
   HERO — cinematic stage
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(64px + clamp(2.5rem, 6vw, 4.5rem)) clamp(1.1rem, 5vw, 2rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* CSS-only radial glow */
.hero-glow {
  position: absolute;
  top: 0; right: 2%;
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(16,217,140,0.06) 38%, transparent 70%);
  filter: blur(50px);
  opacity: 0.5;
}

/* Centered hero — rating pill + title + subtitle + store badges */
.hero-center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.award-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.03);
  font-size: 0.8rem; font-weight: 600; color: var(--on-2);
  margin-bottom: 1.6rem;
}
.award-star { color: var(--accent); }

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: var(--on);
  margin: 0 0 1.4rem;
  font-family: var(--font);
}

.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--on-2);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.1rem;
  font-weight: 400;
}

.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}

.store-link { display: inline-block; text-decoration: none; border-radius: 12px; transition: transform 0.18s ease, opacity 0.18s ease; }
.store-link:hover { transform: translateY(-2px); opacity: 0.92; text-decoration: none; }
.store-badge-img { height: 54px; border-radius: 10px; display: block; }
.store-badge-google { height: 78px; margin: -12px 0; }


.fc-row { display: flex; align-items: center; gap: 0.5rem; }
.fc-label { font-size: 0.72rem; color: var(--on-2); font-weight: 600; }
.fc-big { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.2rem; }
.fc-mic { font-size: 1.5rem; }
.fc-quote { font-size: 0.86rem; font-weight: 600; font-style: italic; }
.fc-meta { font-size: 0.68rem; color: var(--accent); font-weight: 600; margin-top: 0.15rem; }
.fc-chips { display: flex; gap: 0.35rem; margin-top: 0.4rem; }
.fc-chips span { font-size: 0.72rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(16,217,140,0.3); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status-dot.ok { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.status-dot.warn { background: var(--warn); box-shadow: 0 0 10px rgba(255,176,32,0.5); }

/* ================================================================
   STAT COUNTER STRIP
   ================================================================ */
.stats-strip { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--ink-1); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: clamp(2rem,4vw,3rem); padding-bottom: clamp(2rem,4vw,3rem); }
.stat { text-align: center; }
.stat-value { display: block; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--on); line-height: 1; }
.stat-label { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--on-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ================================================================
   ★ PINNED 3-PHASE SCRUB SECTION — the centerpiece
   Tall track + sticky 2-col stage: copy left, phone+cards right.
   Screen morphs Setup→Live→Result; cards pop in per phase.
   ================================================================ */
.scrolly {
  position: relative;
  height: 320vh;                 /* scrub length: ~100vh per phase + lead */
  border-top: 1px solid var(--hair);
}

/* invisible scroll waypoints */
.scrolly-spine { position: absolute; inset: 0; pointer-events: none; }
.sentinel { position: absolute; left: 0; width: 1px; height: 1px; }
#setup  { top: 16%; }
#live   { top: 50%; }
#result { top: 84%; }

/* pinned host */
.scrolly-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* clear the floating nav at the top so the stage centres in the
     space BETWEEN the nav and the section bottom */
  padding-top: 96px;
  box-sizing: border-box;
  /* atmosphere defaults (JS scrubs these per scroll progress) */
  --atmos-bg: #060607;
  --atmos-glow: rgba(16,217,140,0.16);
  --atmos-glow-x: 70%;
  --atmos-glow-y: 38%;
  background: var(--atmos-bg);
}
/* full-bleed radial glow that shifts colour + position per phase */
.scrolly-pin::before {
  content: '';
  position: absolute; inset: -10%;
  z-index: 0; pointer-events: none;
  background: radial-gradient(
    closest-side circle at var(--atmos-glow-x) var(--atmos-glow-y),
    var(--atmos-glow) 0%, transparent 70%);
  filter: blur(30px);
}
.scrolly-stage { position: relative; z-index: 2; }

/* 2-column stage */
.scrolly-stage {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
  max-width: var(--max);
  padding: 0 clamp(1.1rem, 5vw, 2rem);
}

/* left: phase copy */
.phase-copy { max-width: 460px; }
.phase-meta { display: block; }
.phase-step {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--on-3); margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
/* Each line eases opacity + a soft vertical slide. Different durations
   per line give a gentle staggered "settle" as the new copy arrives. */
.phase-eyebrow {
  font-size: 0.74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--accent); margin: 0 0 0.7rem;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.phase-title {
  font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.06; color: var(--on);
  margin: 0 0 0.9rem;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: 0.04s;
}
.phase-sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--on-2);
  line-height: 1.6; margin: 0; max-width: 440px;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: 0.08s;
}
/* OUT state — current copy lifts up and fades just before the swap.
   `swap-dir-up` (default) exits upward; new copy enters from below. */
.phase-copy.swapping .phase-eyebrow { opacity: 0; transform: translateY(-10px); }
.phase-copy.swapping .phase-title   { opacity: 0; transform: translateY(-14px); }
.phase-copy.swapping .phase-sub     { opacity: 0; transform: translateY(-10px); }
/* ENTER state — set by JS for one frame so the new copy rises in from below */
.phase-copy.entering .phase-eyebrow,
.phase-copy.entering .phase-title,
.phase-copy.entering .phase-sub { opacity: 0; transform: translateY(14px); transition: none; }

/* progress dots */
.phase-dots { display: flex; gap: 0.5rem; margin-top: 1.75rem; }
.pdot {
  width: 28px; height: 4px; border-radius: var(--r-pill);
  background: var(--hair-2); transition: background 0.3s var(--ease);
}
.pdot.is-active { background: var(--accent); }
/* desktop shows the in-copy dots; the below-phone set is mobile-only */
.phase-dots-mobile { display: none; }

/* right: phone wrapper (cards positioned relative to THIS, can overflow) */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;            /* 3D depth for the phone tilt */
  perspective-origin: center center;
}

.phone {
  position: relative;
  /* Height-driven so it always fits the pinned space with even margins
     between the nav and the section bottom; width follows the ratio. */
  height: min(560px, calc(100vh - 220px));
  aspect-ratio: 0.462;            /* 924/2003 */
  width: auto;
  border-radius: 40px;
  background: #000;
  border: 1px solid var(--hair-2);
  box-shadow:
    0 0 0 1px rgba(16,217,140,.06),
    0 40px 80px -20px rgba(0,0,0,.7),
    0 20px 40px -20px rgba(16,217,140,.3);
  z-index: 2;
  transform-style: preserve-3d;
  /* JS scrubs --tilt (deg) per scroll frame; small Y-rotation = 3D feel.
     No CSS transition — rAF drives it every frame for a smooth scrub. */
  transform: rotateY(var(--tilt, -12deg)) rotateX(2deg);
}
/* subtle screen sheen that shifts with the tilt for a glassy 3D read */
.phone::after {
  content: '';
  position: absolute; inset: 5px;
  border-radius: 35px;
  background: linear-gradient(115deg, rgba(255,255,255,0.1) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.04) 100%);
  z-index: 7; pointer-events: none;
  opacity: 0.6;
}
.phone-bloom {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 120%; aspect-ratio: 1; z-index: 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px); opacity: 0.45;
}

/* ----------------------------------------------------------------
   ATMOSPHERIC FOG — dezenter Bodennebel ums Smartphone, gerendert auf
   einem <canvas> (soft smoke sprites that rise, drift & dissolve).
   Sits between the bloom (z0) and the phone (z2). JS (motion.js) drives
   the particles + a burst on each phase swap; canvas only paints while
   the section is on screen. `mix-blend: screen` lets bg + glow read
   through so it reads as light-smoke, never flat grey.
   ---------------------------------------------------------------- */
.phone-fog {
  position: absolute;
  left: 50%; bottom: -8%;
  transform: translateX(-50%);
  /* low band: smoke hugs the bottom ~28% of the phone, with a little
     room above to dissolve into nothing before the cut */
  width: 150%; height: 52%;
  z-index: 1; pointer-events: none;
}
.phone-fog canvas {
  width: 100%; height: 100%;
  display: block;
  mix-blend-mode: screen;
  opacity: 1;
  /* fade the rendered smoke to nothing toward the top (and a touch at the
     sides) so it dissolves softly instead of ending on a hard cut edge.
     Top fade kicks in early so the band stays low on the phone. */
  -webkit-mask-image:
    linear-gradient(to top, #000 0%, #000 18%, rgba(0,0,0,0.5) 48%, transparent 78%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:
    linear-gradient(to top, #000 0%, #000 18%, rgba(0,0,0,0.5) 48%, transparent 78%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* stacked cross-fading screens */
.screen {
  position: absolute; inset: 5px;
  border-radius: 35px; overflow: hidden;
  z-index: 1;
  opacity: 0;
  /* pure soft cross-dissolve — no zoom, no scale */
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease),
    filter 0.85s var(--ease);
  will-change: opacity, filter;
}
.screen.is-active {
  z-index: 2;                 /* incoming sits on top so there's no gap */
  opacity: 1;
  filter: blur(0);
}
.screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* floating notification cards — positioned relative to .phone-wrap,
   so they sit OUTSIDE the phone edges (Flighty style). */
.phone-cards {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none;
}
.phone-cards:not(.is-active) { visibility: hidden; }
.ncard {
  position: absolute;
  width: 200px; max-width: 70%;
  display: flex; align-items: flex-start; gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: rgba(12,12,18,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  opacity: 0.001;
  transform: translateY(10px);
  /* fade + soft slide only — no scale/zoom, no bounce */
  transition:
    opacity 0.5s var(--ease),
    transform 0.55s var(--ease);
}
.phone-cards.is-active .ncard { opacity: 1; transform: translateY(0); }
/* card 1: top-left, overlapping the phone's left edge */
.ncard:nth-child(1) { top: 8%; left: -8%; }
/* card 2: mid-right, off the right edge */
.ncard:nth-child(2) { top: 44%; right: -10%; }
/* card 3: bottom-left */
.ncard:nth-child(3) { bottom: 8%; left: -4%; }
.phone-cards.is-active .ncard:nth-child(1) { transition-delay: 0.05s; }
.phone-cards.is-active .ncard:nth-child(2) { transition-delay: 0.18s; }
.phone-cards.is-active .ncard:nth-child(3) { transition-delay: 0.31s; }
.ncard b { display: block; font-size: 0.8rem; font-weight: 700; color: var(--on); line-height: 1.2; }
.ncard span:not(.status-dot):not(.fc-mic) { display: block; font-size: 0.72rem; color: var(--on-2); margin-top: 0.15rem; line-height: 1.3; }
.ncard .status-dot { margin-top: 4px; }
.ncard .fc-mic { font-size: 1.1rem; line-height: 1; }

/* Check list (shared) */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.92rem; color: var(--on-2); line-height: 1.5; }
.check-list li::marker { content: ''; }
.check-icon { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; background: var(--accent-soft); border: 1px solid rgba(16,217,140,0.4); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.check-icon svg { width: 10px; height: 10px; }

/* ================================================================
   FEATURE CARDS — 2×2 contained grid (Flighty-style)
   Each card: text block on top, framed media below.
   ================================================================ */
.features-lg { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--hair); }
.features-lg-inner { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.1rem, 5vw, 2rem); }

.fcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(130% 60% at 50% -8%, rgba(var(--tint), 0.13), transparent 60%),
    var(--ink-1);
  border: 1px solid var(--hair);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  --tint: 16, 217, 140;
  --mx: 50%;
  --my: 0%;
}
.fcard:hover {
  border-color: var(--hair-2);
  transform: translateY(-4px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 60px -18px rgba(var(--tint), 0.45);
}
.fcard .eyebrow { color: rgb(var(--tint)); }

/* Per-card identity tint (RGB triplets) — mirrors the app's
   game-mode identity colors. Must come AFTER .fcard so the
   variants win over the default --tint at equal specificity. */
.fcard-01 { --tint: 16, 217, 140; }    /* emerald — live   */
.fcard-02 { --tint: 96, 150, 255; }    /* blue — analytics */
.fcard-03 { --tint: 255, 176, 32; }    /* amber — checkout */
.fcard-04 { --tint: 178, 124, 255; }   /* violet — modes   */

/* Mouse-tracking hairline glow: a 1px gradient ring, masked so only
   the border lights up around the cursor (motion.js feeds --mx/--my) */
.fcard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my),
    rgba(var(--tint), 0.6), rgba(255, 255, 255, 0.08) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
/* …and a soft interior spotlight under the cursor */
.fcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my),
    rgba(var(--tint), 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .fcard:hover::before,
  .fcard:hover::after { opacity: 1; }
}

.fcard-text { padding: clamp(1.4rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; }

/* number chip + eyebrow row */
.fcard-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.fcard-top .eyebrow { margin-bottom: 0; }
.fcard-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--on-3);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-pill);
  padding: 0.16rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.fcard:hover .fcard-num { color: rgb(var(--tint)); border-color: rgba(var(--tint), 0.4); }

/* decorative arrow bubble, top-right (examples-style) */
.fcard-arrow {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hair-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-2);
  flex-shrink: 0;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease);
}
.fcard-arrow svg { width: 15px; height: 15px; }
.fcard:hover .fcard-arrow {
  color: var(--on);
  border-color: rgba(var(--tint), 0.5);
  background: rgba(var(--tint), 0.14);
  transform: rotate(45deg);
}

/* HERO ZONE — one compact metric line per card, all at the same
   scale + reserved height so every card's copy starts at the same
   baseline. This is what makes the four cards read as a uniform set. */
.fcard-display,
.fcard-stats { min-height: 2.6rem; }
.fcard-display {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--on);
  margin: 0 0 0.9rem;
}
.fcard-display-sub {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-3);
}
.live-dot {
  align-self: center;
  width: 0.44em; height: 0.44em;
  border-radius: 50%;
  background: rgb(var(--tint));
  box-shadow: 0 0 18px rgba(var(--tint), 0.9);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  50% { opacity: 0.35; box-shadow: 0 0 5px rgba(var(--tint), 0.4); }
}

/* Two stats sharing the hero line (analytics) */
.fcard-stats {
  display: flex; align-items: flex-end; gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0 0 0.9rem;
}
.fstat-v {
  display: block;
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--on);
}
.fstat-l {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-3);
}

/* Detail row that sits under the metric (checkout pills / mode chips) */
.fcard-pillstack,
.fcard-chips { margin-bottom: 1.1rem; }
.fcard-pillstack { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fpill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--on);
}
.fcard-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fcard-chips span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem; font-weight: 600; color: var(--on-2);
}
.fcard-chips i { width: 6px; height: 6px; border-radius: 50%; display: block; }

/* Two-tone copy stack: bold white line flowing into a dimmed
   continuation at the same size */
.fcard-title {
  font-size: 0.98rem; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.5; color: var(--on);
  margin: 0;
}
.fcard-lead {
  font-size: 0.98rem; color: var(--on-2);
  line-height: 1.5; margin: 0; font-weight: 400;
}

/* Media block — same 16/11 aspect for ALL four cards so their images
   line up as a set. margin-top:auto sticks it to the card bottom, so
   media bottoms align across a row even when copy lengths differ. */
.fcard-media {
  position: relative;
  margin: auto clamp(1.4rem, 2.4vw, 1.8rem) clamp(1.4rem, 2.4vw, 1.8rem);
  aspect-ratio: 16 / 11;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: radial-gradient(circle at 50% 35%, rgba(var(--tint), 0.12), var(--ink-2) 72%);
}
.fcard-media-wide img { object-fit: cover; object-position: center 45%; }
.fcard-media img,
.fcard-media video {
  display: block; width: 100%; height: 100%;
  transition: transform 0.7s var(--ease);
  transform-origin: center 30%;
}
.fcard:hover .fcard-media img,
.fcard:hover .fcard-media video { transform: scale(1.04); }
.fcard-media { transition: border-color 0.3s ease; }
.fcard:hover .fcard-media { border-color: rgba(var(--tint), 0.26); }

/* All variants keep the shared 16/11 aspect (set on .fcard-media);
   only the crop focus differs per art type. */
.fcard-media-phone img,
.fcard-media-phone video { object-fit: cover; object-position: center top; }
.fcard-media-photo img { object-fit: cover; object-position: center 22%; }

/* Emoji fallback when an asset is missing */
.media-fallback-emoji { display: none; }
.fcard-media.media-fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.fcard-media.media-fallback img,
.fcard-media.media-fallback video { display: none; }
.fcard-media.media-fallback .media-fallback-emoji {
  display: block; font-size: clamp(3rem, 9vw, 5rem);
  filter: grayscale(0.1) drop-shadow(0 0 40px var(--accent-glow));
}

/* ================================================================
   FEATURE GRID
   ================================================================ */
.features { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--hair); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { background: var(--ink-1); border: 1px solid var(--hair); border-radius: var(--r); padding: 1.75rem; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.feature-card:hover { border-color: var(--hair-2); background: var(--ink-2); transform: translateY(-3px); }
.feature-card h3 { font-size: 1.1rem !important; font-weight: 700 !important; letter-spacing: -0.02em !important; margin: 0 0 0.55rem !important; color: var(--on) !important; line-height: 1.3 !important; }
.feature-card p { font-size: 0.92rem; color: var(--on-2); line-height: 1.65; margin: 0 !important; }

/* ================================================================
   FAQ
   ================================================================ */
section[aria-label*="Frequently"] { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--hair); }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--ink-1); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; transition: border-color 0.2s ease, background 0.2s ease; }
.faq-item[open] { border-color: var(--hair-2); background: var(--ink-2); }
.faq-question { padding: 1.2rem 1.35rem; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--on); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; user-select: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron { width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--ink); border: 1px solid var(--hair-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease, border-color 0.2s ease; }
.faq-chevron svg { width: 11px; height: 11px; stroke: var(--on-2); transition: stroke 0.2s ease; }
.faq-item[open] .faq-chevron { border-color: var(--accent); transform: rotate(180deg); }
.faq-item[open] .faq-chevron svg { stroke: var(--accent); }
.faq-answer { padding: 0 1.35rem 1.2rem; font-size: 0.9rem; color: var(--on-2); line-height: 1.72; margin: 0 !important; }

/* ================================================================
   CINEMATIC CTA
   ================================================================ */
.cta { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--hair); }
.cta-glow { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 80vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%); filter: blur(40px); opacity: 0.4; pointer-events: none; }
.cta-inner { position: relative; z-index: 2; }
.cta-title { font-size: clamp(2.4rem, 6vw, 4.2rem) !important; font-weight: 800 !important; letter-spacing: -0.045em !important; color: var(--on) !important; margin: 0 0 1rem !important; border-bottom: none !important; padding-bottom: 0 !important; display: block !important; line-height: 1.02 !important; }
.cta-title::before { display: none !important; }
.cta-sub { font-size: 1.1rem; color: var(--on-2); margin: 0 auto 2.25rem; max-width: 540px; line-height: 1.6; }
.cta-stores { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { border-top: 1px solid var(--hair); padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.1rem, 5vw, 2rem); background: var(--ink); position: relative; z-index: 2; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1rem; color: var(--on); text-decoration: none; letter-spacing: -0.02em; }
.footer-logo { width: 24px; height: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.15rem; justify-content: center; margin-top: 0 !important; }
.footer-nav a { color: var(--on-3); text-decoration: none; padding: 0.35rem 0.85rem; border-radius: var(--r-pill); font-size: 0.83rem; font-weight: 500; transition: color 0.15s ease, background 0.15s ease; }
.footer-nav a:hover { color: var(--on); background: rgba(255,255,255,0.06); text-decoration: none; }
.footer-copy { font-size: 0.78rem; color: var(--on-3); margin: 0 !important; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 920px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  /* Feature cards stack to a single column */
  .fcard-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero headline scales down so it never overflows narrow screens */
  .hero { min-height: 0; }
  .hero-headline { font-size: clamp(2rem, 8.5vw, 3rem); }

  /* Scrub stage → single column, copy above phone */
  .scrolly-stage {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    max-width: 480px;
  }
  .phase-copy { max-width: 480px; }
  /* Hide the per-phase subtitle on mobile → more room for the phone */
  .phase-sub { display: none; }
  /* Smaller title so the phone fits fully in the viewport.
     min-height reserves two lines so the phone doesn't jump
     vertically when titles with different line counts swap. */
  .phase-title { font-size: clamp(1.5rem, 6.5vw, 2rem); margin-bottom: 0; min-height: 2.4em; }
  /* No green underline bar on the title (from styles.css h2 border) */
  .phase-title { border-bottom: none !important; padding-bottom: 0 !important; }
  /* Step + eyebrow on a single line */
  .phase-meta { display: flex; align-items: baseline; justify-content: center; gap: 0.6rem; }
  .phase-step { margin-bottom: 0; }
  .phase-eyebrow { margin: 0; }
  /* Dots move below the phone on mobile */
  .phase-dots-desktop { display: none; }
  .phase-dots-mobile { display: flex; justify-content: center; margin-top: 1.25rem; }
  /* Phone fits the column with the freed-up space */
  .phone { height: min(460px, 54vh); }
  /* Floating cards off on mobile (Flighty does the same) — they crowd
     the narrow stage and overlap the screen */
  .phone-cards { display: none !important; }
}

@media (max-width: 600px) {
  /* Header CTAs collapse to round icon-only buttons */
  .nav-btn { padding: 0; width: 42px; height: 42px; justify-content: center; }
  .nav-btn-icon { display: block; }
  .nav-btn-label { display: none; }
  .nav-cta { gap: 0.45rem; }

  /* Hero: single-line pill, shorter sub (full copy stays ≥600px) */
  .award-pill { font-size: 0.72rem; padding: 0.4rem 0.9rem; gap: 0.4rem; }
  .pill-more { display: none; }
  .hero-sub-more { display: none; }
  .hero-sub { font-size: 0.98rem; margin-bottom: 1.9rem; }

  /* Stats strip: tighter 2×2 */
  .stats-inner { gap: 1.4rem 0.75rem; }

  /* Feature cards: slimmer chrome, same uniform 16/11 media */
  .fcard { border-radius: 22px; }
  .fcard-text { padding: 1.3rem 1.2rem; }
  .fcard-media { margin: auto 1.1rem 1.1rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.4rem 1.25rem; }

  .faq-question { padding: 1.05rem 1.1rem; }
  .faq-answer { padding: 0 1.1rem 1.05rem; }

  .cta-sub { font-size: 1rem; }
  .store-badge-img { height: 46px; }
  .store-badge-google { height: 68px; margin: -10px 0; }

  .footer-nav a { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
}

/* Touch devices: no lift/zoom on tap (sticky :hover artifacts) —
   the cards stay calm, spotlight/glow is already hover-gated */
@media (hover: none) {
  .fcard:hover { transform: none; box-shadow: none; }
  .fcard:hover .fcard-media img,
  .fcard:hover .fcard-media video { transform: none; }
  .fcard:hover .fcard-num { color: var(--on-3); border-color: var(--hair-2); }
}

/* ----------------------------------------------------------------
   No-JS / reduced-motion safety for the pinned scrub section.
   Collapse the 340vh track to a normal stacked block; show all three
   screens + their cards in a column so content is never lost.
   ---------------------------------------------------------------- */
.no-js .scrolly,
.reduce-scrolly .scrolly {
  height: auto;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.no-js .scrolly-pin,
.reduce-scrolly .scrolly-pin {
  position: static; height: auto; overflow: visible;
  display: block;
}
.no-js .scrolly-spine,
.reduce-scrolly .scrolly-spine { display: none; }
.no-js .phase-dots,
.reduce-scrolly .phase-dots { display: none; }
.no-js .phase-step,
.reduce-scrolly .phase-step { display: none; }
.no-js .scrolly-stage,
.reduce-scrolly .scrolly-stage {
  grid-template-columns: 1fr; gap: 2.5rem; justify-items: center;
  text-align: center; max-width: 560px;
}
.no-js .phase-copy { max-width: 520px; }
.no-js .phone,
.reduce-scrolly .phone {
  width: min(280px, 68vw);
  margin: 0 auto;
  transform: none !important;
}
/* show only the first screen statically (it's the hero shot) */
.no-js .screen-1, .no-js .screen-2,
.reduce-scrolly .screen-1, .reduce-scrolly .screen-2 { display: none; }
.no-js .screen-0, .reduce-scrolly .screen-0 { opacity: 1 !important; filter: none !important; }
.no-js .phone-cards,
.reduce-scrolly .phone-cards { display: none; }
.no-js .phone-fog,
.reduce-scrolly .phone-fog { display: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .parallax { transform: none !important; }
  .fcard, .fcard:hover { transform: none; box-shadow: none; }
  .fcard:hover .fcard-media img,
  .fcard:hover .fcard-media video { transform: none; }
  .fcard::before, .fcard::after { display: none; }
  .live-dot { animation: none; }
  /* Un-pin scrub: show phase 0 statically, cards visible, no scrub */
  .scrolly { height: auto; padding: clamp(3rem, 7vw, 5rem) 0; }
  .scrolly-pin { position: static; height: auto; overflow: visible; }
  .scrolly-spine { display: none; }
  .phase-tabs { display: none; }
  .phone { transform: none !important; }
  .ncard { opacity: 1 !important; transform: none !important; }
  /* no fog machine when motion is reduced */
  .phone-fog { display: none; }
}

/* ================================================================
   WEBGL PARTICLE LAYER (particles.js) — progressive enhancement.
   Hero: dartboard point-cloud behind the headline.
   Scrolly: annular shapes morphing around the pinned phone.
   Both sit under the content, never intercept the pointer, and are
   hidden wherever motion is off or the pinned scrub doesn't run.
   ================================================================ */
.hero-particles,
.scrolly-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.hero-particles { opacity: 0.9; }
.scrolly-particles { z-index: 1; opacity: 0.85; }   /* above pin glow, below stage */

/* FPS watchdog bailed out → fade the layer away gracefully */
.pfx-off { opacity: 0 !important; }

/* No JS / reduced scrub → no particle layer */
.no-js .hero-particles,
.no-js .scrolly-particles,
.reduce-scrolly .scrolly-particles { display: none; }

/* Small screens: keep the hero board (reduced count via JS), but
   drop the scrolly layer — the section unpins/compresses there */
@media (max-width: 720px) {
  .scrolly-particles { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles,
  .scrolly-particles { display: none; }
}
