/* ============================================================
   Fradar — fradar.app
   Design system derived from the app's RadarTheme (obsidian).
   Fonts: Space Grotesk (var 300–700) + JetBrains Mono (var 400–800),
   self-hosted. No external requests.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* RadarTheme (dark) */
  --bg: #06100f;
  --bg-bottom: #04090c;
  --glow: #0c1d1d;
  --glow-find: #0e2422;
  --ink: #eaf4ef;
  --muted: #8aa49b;
  --mono-ink: #7e948d;
  --line: #54f5b2;
  --sweep: #4ff5b0;
  --cyan: #2bd7df;
  --amber: #ffb83d;
  --amber-deep: #ff9e3d;
  --warning: #ff6159;
  --member-green: #5cff8f;
  --member-blue: #42d1ff;
  --member-violet: #b88cff;
  --accent-ink: #04130d;

  --r-button: 16px;
  --r-card: 18px;
  --r-input: 14px;
  --r-chip: 12px;
  --r-badge: 8px;

  --font-display: 'Space Grotesk', 'Avenir Next', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  --glass-hi: rgba(255, 255, 255, 0.07);
  --glass-lo: rgba(255, 255, 255, 0.02);
  --glass-hi-raised: rgba(255, 255, 255, 0.10);
  --glass-lo-raised: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.09);

  --measure: 62ch;
  --section-pad: clamp(88px, 14vh, 160px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Pre-reveal transforms (translateX) must never open a horizontal scroll:
     clip on the root — unlike hidden on body — kills viewport panning too. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-bottom);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient stage: the app's ObsidianScreenBackground, translated to the page. */
.stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 78% at 50% 18%, var(--glow) 0%, var(--bg) 48%, var(--bg-bottom) 100%);
}

.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(84, 245, 178, 0.028) 0 1px,
    transparent 1px 9px
  );
}

.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  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%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(84, 245, 178, 0.28);
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

img { max-width: 100%; display: block; }

/* ---------- typography ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--line);
  margin: 0 0 18px;
}

.eyebrow .idx {
  color: var(--mono-ink);
  margin-right: 10px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 700;
}

h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 700;
}

h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: var(--measure);
  text-wrap: pretty;
}

.accent { color: var(--line); }
.accent-amber { color: var(--amber); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- layout ---------- */

.wrap {
  width: min(1180px, calc(100% - clamp(32px, 6vw, 80px)));
  margin-inline: auto;
}

section {
  padding-block: var(--section-pad);
  position: relative;
}

/* ---------- obsidian glass ---------- */

.glass {
  position: relative;
  background: linear-gradient(135deg, var(--glass-hi), var(--glass-lo));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass::before {
  /* Top-edge light, as in the app's obsidianGlass modifier. */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass.raised {
  background: linear-gradient(135deg, var(--glass-hi-raised), var(--glass-lo-raised));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--r-button);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.44, 1), box-shadow 0.3s ease;
}

.btn:active { transform: scale(0.985); }

.btn-primary {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--line), var(--cyan));
  box-shadow: 0 12px 26px rgba(43, 215, 223, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px rgba(43, 215, 223, 0.5);
  transform: translateY(-1px);
}

.btn-primary::before {
  /* Top capsule highlight from PrimaryRadarButtonStyle. */
  content: '';
  position: absolute;
  top: 1px;
  left: 18px;
  right: 18px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.btn-primary::after {
  /* Travelling reflection beam — 4.5s loop, 18° tilt, as in the app. */
  content: '';
  position: absolute;
  top: -80%;
  bottom: -80%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: rotate(18deg);
  mix-blend-mode: screen;
  animation: beam 4.5s linear infinite;
  pointer-events: none;
}

@keyframes beam {
  from { left: -45%; }
  to { left: 115%; }
}

.btn-ghost {
  color: var(--ink);
  background: linear-gradient(135deg, var(--glass-hi-raised), var(--glass-lo-raised));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(84, 245, 178, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.btn .btn-note {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 20px 8px 16px;
  border-radius: var(--r-button);
  text-decoration: none;
  background: linear-gradient(135deg, var(--glass-hi-raised), var(--glass-lo-raised));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.store-badge:hover {
  border-color: rgba(84, 245, 178, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.store-badge svg { width: 26px; height: 26px; flex: none; }

.store-badge .sb-lines { display: grid; line-height: 1.16; }

.store-badge .sb-pre {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-badge .sb-name {
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.store-badge.disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(4, 9, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 14.5px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-ink) !important;
  background: linear-gradient(135deg, var(--line), var(--cyan));
}

.lang-menu {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-menu summary::-webkit-details-marker { display: none; }

.lang-menu summary::after {
  content: '▾';
  font-size: 9px;
  color: var(--line);
  transition: transform 0.25s ease;
}

.lang-menu[open] summary {
  color: var(--ink);
  border-color: rgba(84, 245, 178, 0.35);
}

.lang-menu[open] summary::after { transform: rotate(180deg); }

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 160px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(4, 9, 12, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  z-index: 90;
}

.lang-list a {
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12.5px;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-list a:hover {
  background: rgba(84, 245, 178, 0.1);
  color: var(--ink);
}

.lang-list a[aria-current] { color: var(--line); }

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

@media (max-width: 400px) {
  .nav-inner { gap: 10px; }
  .nav-cta { padding: 0 12px; font-size: 13px; min-height: 34px; }
  .brand { font-size: 15.5px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  h1 { font-size: clamp(36px, 11.5vw, 42px); }
  .btn { padding: 0 20px; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* scroll progress hairline */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--line), var(--cyan));
  z-index: 70;
  pointer-events: none;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(120px, 18vh, 190px) clamp(48px, 8vh, 90px);
  position: relative;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 .line {
  display: block;
}

.hero .lede { margin: 26px 0 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}

.hero-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mono-ink);
}

.hero-meta span::before {
  content: '● ';
  color: var(--line);
  font-size: 8px;
  vertical-align: 2px;
}

.hero-radar {
  position: relative;
  aspect-ratio: 1;
  max-width: min(560px, 86vw);
  margin-inline: auto;
  width: 100%;
}

.hero-radar canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-radar::before {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 36, 34, 0.9) 0%, rgba(14, 36, 34, 0.35) 46%, transparent 70%);
  z-index: -1;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: clamp(110px, 16vh, 150px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-radar {
    max-width: min(440px, 88vw);
  }

  .scroll-hint { display: none; }
}

/* HUD chips floating over the radar */
.hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border-radius: var(--r-chip);
  white-space: nowrap;
}

.hud-timer { top: 4%; left: 0; color: var(--amber); }
.hud-live { bottom: 6%; right: 0; color: var(--line); }

.hud .pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px;
  animation: pulse 2.1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(84, 245, 178, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(84, 245, 178, 0); }
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mono-ink);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--line), transparent);
  animation: drop 2s ease-in-out infinite;
}

@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* ---------- problem / scrollytelling ---------- */

.problem {
  text-align: center;
}

.chat-stack {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 54px auto 0;
}

.chat {
  justify-self: start;
  padding: 12px 18px;
  border-radius: 18px 18px 18px 5px;
  background: linear-gradient(135deg, var(--glass-hi-raised), var(--glass-lo-raised));
  border: 1px solid var(--glass-border);
  font-size: 15.5px;
  text-align: left;
  color: var(--muted);
}

.chat.me {
  justify-self: end;
  border-radius: 18px 18px 5px 18px;
  background: rgba(84, 245, 178, 0.12);
  border-color: rgba(84, 245, 178, 0.22);
  color: var(--ink);
}

.chat.fail {
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: rgba(255, 97, 89, 0.07);
  border-color: rgba(255, 97, 89, 0.18);
  justify-self: center;
  border-radius: 12px;
}

.problem .answer {
  margin-top: 60px;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 64px;
}

.step {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 16px;
  align-content: start;
}

.step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--line);
}

.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

.step-visual {
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: var(--r-input);
  background: rgba(4, 9, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

/* step 1: duration + capacity chips */
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 13px;
  border-radius: var(--r-chip);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  background: var(--glass-lo);
}

.chip.on {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--line), var(--cyan));
  border-color: transparent;
  font-weight: 700;
}

/* step 2: QR */
.qr {
  width: 116px;
  height: 116px;
  border-radius: 14px;
  background: #f4fffb;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.qr svg { width: 92px; height: 92px; }

/* step 3: mini radar */
.mini-radar {
  width: 150px;
  height: 150px;
}

.mini-radar canvas { width: 100%; height: 100%; }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: 64px;
}

.feature {
  grid-column: span 4;
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(84, 245, 178, 0.28);
}

.feature.wide { grid-column: span 6; }

.feature .f-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mono-ink);
}

.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.feature .f-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-chip);
  display: grid;
  place-items: center;
  background: rgba(84, 245, 178, 0.1);
  border: 1px solid rgba(84, 245, 178, 0.2);
}

.feature .f-icon svg { width: 24px; height: 24px; }

.feature .f-icon.amber {
  background: rgba(255, 184, 61, 0.1);
  border-color: rgba(255, 184, 61, 0.24);
}

@media (max-width: 1020px) {
  .feature, .feature.wide { grid-column: span 6; }
}

@media (max-width: 680px) {
  .feature, .feature.wide { grid-column: span 12; }
}

/* ---------- gallery: scroll-driven sweep of app screens ---------- */

.gallery {
  padding-block: 0;
}

.gallery .g-head {
  padding-top: var(--section-pad);
  text-align: center;
}

.g-scroller {
  /* Tall scroll runway; the stage inside stays pinned. */
  height: 480vh;
  position: relative;
}

.g-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: clip;
}

.g-stage {
  position: relative;
  height: min(62svh, 640px);
  perspective: 1200px;
}

.g-stage::before {
  /* Faint radar ring the phones ride on. */
  content: '';
  position: absolute;
  left: 50%;
  top: 88%;
  width: 150vmin;
  aspect-ratio: 1;
  transform: translate(-50%, 0);
  border-radius: 50%;
  border: 1px solid rgba(84, 245, 178, 0.1);
  box-shadow: 0 0 0 60px rgba(84, 245, 178, 0.025), 0 0 120px rgba(84, 245, 178, 0.05) inset;
  pointer-events: none;
}

.g-shot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(268px, 58vw);
  margin: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.g-shot .g-frame {
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 5px #000, 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  aspect-ratio: 390 / 844;
  background: var(--bg-bottom);
}

.g-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-shot.g-active .g-frame {
  border-color: rgba(84, 245, 178, 0.38);
  box-shadow:
    inset 0 0 0 5px #000,
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 54px rgba(43, 215, 223, 0.18);
}

.g-ui {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 26px 20px calc(30px + env(safe-area-inset-bottom));
  text-align: center;
}

.g-caption {
  display: grid;
  min-height: 76px;
  align-content: start;
}

.g-caption .gc-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.g-caption .gc-item.on {
  opacity: 1;
  transform: none;
}

.g-caption .gc-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--line);
}

.g-caption .gc-title {
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.g-caption .gc-text {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
  max-width: 48ch;
}

.g-dots {
  display: flex;
  gap: 12px;
}

.g-dots .g-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.g-dots .g-dot.on {
  background: var(--line);
  box-shadow: 0 0 12px rgba(84, 245, 178, 0.8);
  transform: scale(1.25);
}

/* Fallback: plain snap scroller (mobile, reduced motion, no JS) */
.g-fallback .g-scroller { height: auto; }

.g-fallback .g-pin {
  position: static;
  height: auto;
  display: block;
}

.g-fallback .g-stage {
  height: auto;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 44px clamp(20px, 8vw, 60px) 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  perspective: none;
}

.g-fallback .g-stage::-webkit-scrollbar { display: none; }

.g-fallback .g-stage::before { display: none; }

.g-fallback .g-shot {
  position: static;
  transform: none !important;
  opacity: 1 !important;
  flex: none;
  scroll-snap-align: center;
}

.g-fallback .g-ui { padding-top: 14px; }

.g-fallback .g-caption { min-height: 92px; }

/* ---------- precision ladder ---------- */

.precision {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.ladder {
  display: grid;
  gap: 12px;
}

.rung {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

.rung .r-range {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--line);
  text-align: right;
}

.rung .r-label { font-weight: 600; font-size: 15.5px; }

.rung .r-sub {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
  margin-top: 3px;
}

.rung .r-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rung .r-bar i {
  display: block;
  height: 100%;
  width: var(--fill, 40%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--line), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.is-visible .rung .r-bar i { transform: scaleX(1); }

@media (max-width: 880px) {
  .precision { grid-template-columns: 1fr; }
}

/* ---------- lock screen / live activity ---------- */

.lockscreen {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.phone {
  width: min(320px, 78vw);
  margin-inline: auto;
  aspect-ratio: 320 / 650;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 70% at 50% 12%, var(--glow-find) 0%, var(--bg) 55%, var(--bg-bottom) 100%);
  box-shadow:
    inset 0 0 0 7px #000,
    0 40px 90px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.island {
  width: 124px;
  height: 36px;
  border-radius: 999px;
  background: #000;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--line);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.island .arrow {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.lock-clock {
  text-align: center;
  margin-top: 42px;
}

.lock-clock .lc-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.lock-clock .lc-time {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 4px;
  color: var(--ink);
}

.lock-actions {
  position: absolute;
  bottom: 20px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
}

.lock-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lock-action svg { width: 18px; height: 18px; }

.la-card {
  margin-top: 48px;
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.la-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.la-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.la-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(84, 245, 178, 0.12);
  border: 1px solid rgba(84, 245, 178, 0.25);
}

.la-arrow svg {
  width: 22px;
  height: 22px;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.la-name { font-weight: 700; font-size: 17px; }

.la-dist {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 21px;
  color: var(--line);
}

.la-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mono-ink);
}

.la-foot .t-left { color: var(--amber); }

@media (max-width: 880px) {
  .lockscreen { grid-template-columns: 1fr; }
}

/* ---------- privacy timeline ---------- */

.privacy-section .lede { margin-inline: auto; }

.timeline {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(84, 245, 178, 0.5),
    rgba(84, 245, 178, 0.5) 62%,
    rgba(255, 97, 89, 0.55) 88%,
    transparent);
}

.t-stop {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding-inline: 10px;
}

.t-dot {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-bottom);
  border: 1px solid rgba(84, 245, 178, 0.4);
  color: var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.t-stop.end .t-dot {
  border-color: rgba(255, 97, 89, 0.5);
  color: var(--warning);
}

.t-stop h3 { font-size: 16px; }

.t-stop p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 24ch;
}

@media (max-width: 880px) {
  .timeline { grid-template-columns: 1fr 1fr; gap: 34px 0; }
  .timeline::before { display: none; }
}

.privacy-claims {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.claim {
  padding: 24px 26px;
  display: grid;
  gap: 8px;
}

.claim strong { font-size: 16px; }

.claim span { color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 880px) {
  .privacy-claims { grid-template-columns: 1fr; }
}

/* ---------- credits / pricing ---------- */

.credits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 64px;
  align-items: start;
}

.packs {
  display: grid;
  gap: 14px;
}

.pack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 20px 22px;
}

.pack .p-label { min-width: 0; flex: 1 1 12ch; }

.pack .p-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--line);
  min-width: 96px;
}

.pack .p-label { color: var(--muted); font-size: 14px; }

.pack .p-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-badge);
  color: var(--amber);
  border: 1px solid rgba(255, 184, 61, 0.3);
  background: rgba(255, 184, 61, 0.08);
}

.free-note {
  padding: 18px 22px;
  border-radius: var(--r-input);
  border: 1px dashed rgba(84, 245, 178, 0.3);
  color: var(--muted);
  font-size: 14px;
}

.free-note strong { color: var(--ink); }

/* calculator */
.calc {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 26px;
  min-width: 0;
}

.calc-row, .calc-total { min-width: 0; }

.calc-row { display: grid; gap: 12px; }

.calc-row .c-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
  font-weight: 600;
}

.calc-row output {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--line);
  font-size: 16px;
}

input[type='range'] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  height: 32px;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--line) var(--val, 50%), rgba(255, 255, 255, 0.09) var(--val, 50%));
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--line), var(--cyan));
  border: 3px solid var(--bg-bottom);
  box-shadow: 0 0 0 1px rgba(84, 245, 178, 0.4), 0 4px 14px rgba(43, 215, 223, 0.4);
}

input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

input[type='range']::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--line), var(--cyan));
  border: 3px solid var(--bg-bottom);
}

.calc-total {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-total .ct-label { color: var(--muted); font-size: 14px; }

.calc-total .ct-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--line);
  letter-spacing: -0.02em;
}

.calc-total .ct-value small {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--mono-ink);
  letter-spacing: 0.08em;
}

.calc-note {
  font-size: 12.5px;
  color: var(--mono-ink);
  font-family: var(--font-mono);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .credits-grid { grid-template-columns: minmax(0, 1fr); }
  .credits-grid > * { min-width: 0; }
}

/* ---------- faq ---------- */

.faq-list {
  max-width: 780px;
  margin: 56px auto 0;
  display: grid;
  gap: 12px;
}

details.faq {
  border-radius: var(--r-card);
  overflow: hidden;
}

details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-weight: 600;
  font-size: 16.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--line);
  transition: transform 0.3s ease;
  flex: none;
}

details.faq[open] summary::after { transform: rotate(45deg); }

details.faq .faq-body {
  padding: 0 26px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 66ch;
}

details.faq .faq-body a { color: var(--line); }

/* ---------- final cta ---------- */

.final {
  text-align: center;
  position: relative;
  overflow: clip;
}

.final .final-radar {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  opacity: 0.36;
  display: grid;
  place-items: center;
}

.final .final-radar canvas {
  width: min(900px, 130vw);
  aspect-ratio: 1;
}

.final .store-badges { justify-content: center; margin-top: 40px; }

.final .lede { margin: 22px auto 0; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 54px 0 44px;
  font-size: 14px;
  color: var(--muted);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-grid h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mono-ink);
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }

.foot-brand p { margin: 12px 0 0; max-width: 30ch; line-height: 1.55; }

.foot-legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mono-ink);
}

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- reveal system ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal='left'] { transform: translateX(-34px); }
[data-reveal='right'] { transform: translateX(34px); }
[data-reveal='scale'] { transform: scale(0.92); }

.is-visible > [data-reveal],
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- legal pages ---------- */

.legal-main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(104px, 16vh, 140px) 0 90px;
}

.legal-main h1 { font-size: clamp(34px, 5vw, 52px); }

.legal-main .updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mono-ink);
  margin: 14px 0 0;
}

.legal-main h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-top: 52px;
  letter-spacing: -0.02em;
}

.legal-main p, .legal-main li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.legal-main strong { color: var(--ink); }

.legal-main a { color: var(--line); }

.legal-main .card {
  border-radius: var(--r-card);
  padding: 24px 28px;
  margin: 28px 0;
}

.legal-main .btn { margin-top: 6px; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn-primary::after,
  .scroll-hint::after,
  .hud .pulse {
    animation: none !important;
  }

  .is-visible .rung .r-bar i { transition: none; }
}
