/* ============================================================
   Localabs — Marketing site
   iOS 26 Liquid Glass · light → dark scroll transition
   ============================================================ */

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

:root {
  /* Brand */
  --blue-100: #E6F0FF;
  --blue-200: #BFD9FF;
  --blue-400: #5AC8FA;
  --blue-500: #2A8CF7;
  --blue-600: #007AFF;
  --blue-700: #0058C7;
  --blue-800: #003B8E;

  --green-500: #34C759;
  --orange-500: #FF9F0A;
  --pink-500: #FF2D55;

  /* Theme — start light, scroll-driven shift toward dark */
  --bg: oklch(98% 0.005 240);
  --bg-2: oklch(97% 0.012 240);
  --ink: oklch(15% 0.020 250);
  --ink-2: oklch(45% 0.015 250);
  --ink-3: oklch(60% 0.012 250);
  --glass-tint: 255, 255, 255;
  --glass-tint-alpha: 0.6;
  --glass-border: rgba(10, 18, 35, 0.07);
  --glass-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 -1px 0 rgba(10,18,35,0.04) inset, 0 12px 36px -12px rgba(10,18,35,0.18);
  --card-shadow: 0 1px 2px rgba(10,18,35,0.04), 0 18px 48px -20px rgba(10,18,35,0.22);
  --accent: var(--blue-600);

  /* Type — prefer San Francisco when available */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* Scroll-driven dark mode controlled via JS setting --dark (0..1) on <html> */
html {
  --dark: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Fixed background layer — interpolated by scroll to go dark */
.world {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 700px at 75% -10%, rgba(90, 200, 250, calc(0.28 * (1 - var(--dark)))), transparent 60%),
    radial-gradient(900px 600px at 15% 110%, rgba(0, 122, 255, calc(0.22 * (1 - var(--dark)))), transparent 55%),
    radial-gradient(1000px 700px at 90% 110%, rgba(0, 58, 142, calc(0.55 * var(--dark))), transparent 65%),
    radial-gradient(900px 600px at 5% 0%, rgba(10, 50, 130, calc(0.45 * var(--dark))), transparent 60%),
    linear-gradient(180deg,
      oklch(calc(98% - 92% * var(--dark)) 0.005 240) 0%,
      oklch(calc(96% - 90% * var(--dark)) 0.020 245) 100%);
  transition: background 0.05s linear;
}

/* Grain overlay to keep large flat areas alive */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Live theme variables driven by --dark — must be `:root` to beat the
   initial `:root` declarations above on specificity. */
:root {
  --ink:    color-mix(in oklab, oklch(15% 0.02 250) calc((1 - var(--dark)) * 100%), oklch(97% 0.005 240) calc(var(--dark) * 100%));
  --ink-2:  color-mix(in oklab, oklch(45% 0.015 250) calc((1 - var(--dark)) * 100%), oklch(75% 0.020 240) calc(var(--dark) * 100%));
  --ink-3:  color-mix(in oklab, oklch(60% 0.012 250) calc((1 - var(--dark)) * 100%), oklch(60% 0.015 240) calc(var(--dark) * 100%));
  --bg:     color-mix(in oklab, oklch(98% 0.005 240) calc((1 - var(--dark)) * 100%), oklch(8% 0.025 250) calc(var(--dark) * 100%));
  --bg-2:   color-mix(in oklab, oklch(96% 0.012 240) calc((1 - var(--dark)) * 100%), oklch(12% 0.030 250) calc(var(--dark) * 100%));
  --glass-tint: 255, 255, 255;
  --glass-tint-alpha: calc(0.6 - 0.55 * var(--dark));
  --glass-border: color-mix(in oklab, rgba(10,18,35,0.08) calc((1 - var(--dark)) * 100%), rgba(255,255,255,0.10) calc(var(--dark) * 100%));
  --hairline: color-mix(in oklab, rgba(10,18,35,0.10) calc((1 - var(--dark)) * 100%), rgba(255,255,255,0.10) calc(var(--dark) * 100%));
}

/* When in dark territory, glass tint shifts to blueish-white at very low alpha */
:root[data-dark="1"] {
  --glass-tint: 200, 222, 255;
}

::selection { background: rgba(0,122,255,0.25); color: inherit; }

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.02;
}

h1, .h1 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

h2, .h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.038em;
  line-height: 1.03;
}

h3, .h3 {
  font-size: clamp(1.3rem, 2.0vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  color: var(--ink-2);
  line-height: 1.5;
  letter-spacing: -0.012em;
  max-width: 36ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.16);
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-600) 50%, var(--blue-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(0,122,255,0.30)) drop-shadow(0 0 6px rgba(90,200,250,0.35));
}

/* Glow on accent inline phrases */
.glow-text {
  color: var(--blue-600);
  text-shadow:
    0 0 14px rgba(0,122,255,0.45),
    0 0 28px rgba(90,200,250,0.30);
}

p { color: var(--ink-2); }

/* ============================================================
   Glass primitive
   ============================================================ */

.glass {
  /* Top layer is the dark-mode top-edge refraction — a dim cool-blue
     glint that scales with --dark, so it's invisible in light mode
     and quietly visible against dark backgrounds. Bottom layer is
     the existing tint. */
  background:
    linear-gradient(180deg,
      rgba(120, 170, 230, calc(0.13 * var(--dark))) 0%,
      rgba(120, 170, 230, 0) 38%),
    rgba(var(--glass-tint), var(--glass-tint-alpha));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Specular highlight + bottom shadow inset on glass.
   The radial / linear gradient here is the bright white refraction
   used in LIGHT mode. We fully fade it out as --dark approaches 1
   (was 0.55), because mix-blend-mode: screen against a dark
   background produces a smudgy bright halo otherwise. The cool-blue
   dark-mode refraction lives on .glass's background layer above. */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(140% 60% at 50% -10%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.04) 100%);
  mix-blend-mode: screen;
  opacity: calc(1 - var(--dark));
}

.glass-thin {
  background: rgba(var(--glass-tint), calc(var(--glass-tint-alpha) - 0.15));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

/* ============================================================
   Top nav — floating glass pill
   ============================================================ */

.nav-shell {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(var(--glass-tint), calc(var(--glass-tint-alpha) + 0.15));
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset, 0 12px 28px -12px rgba(10,18,35,0.22);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.3s ease;
}
.nav.hidden { transform: translateY(-160%); }

.nav-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.025em; font-size: 16px;
  padding: 6px 10px 6px 0;
}
.nav-brand img { width: 22px; height: 22px; display: block; }
.nav-brand .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(0,122,255,0.18);
  margin-left: 4px;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  padding: 0 6px;
}
.nav-links a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(var(--glass-tint), 0.4); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(10,18,35,0.35); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding-left: 12px; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  position: relative;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-top: 18px;
}
.hero h1 .line { display: block; }
/* Reserve space for descenders (the "g" in "English") on the tight
   0.98 line-height h1 — without this the gradient-text's drop-shadow
   filter clips the bottom of the last line. */
.hero h1 .gradient-text { padding-bottom: 0.14em; }

.hero .lead {
  margin-top: 28px;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  max-width: 42ch;
}

.cta-row {
  margin-top: 36px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  color: white; font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.30) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 10px 30px -8px rgba(0, 90, 200, 0.55),
    0 2px 6px -1px rgba(0, 90, 200, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.30) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 14px 34px -8px rgba(0, 90, 200, 0.65),
    0 2px 6px -1px rgba(0, 90, 200, 0.35);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(var(--glass-tint), calc(var(--glass-tint-alpha) + 0.10));
  backdrop-filter: blur(18px);
  color: var(--ink); font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn-ghost:hover { background: rgba(var(--glass-tint), calc(var(--glass-tint-alpha) + 0.22)); transform: translateY(-1px); }

.hero-meta {
  margin-top: 28px;
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--blue-600); flex-shrink: 0; }

/* Hero visual — floating chip + drifting phone */
.hero-stage {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 560px;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.75;
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 540px; height: 540px;
  background: radial-gradient(closest-side, rgba(90,200,250,0.85), rgba(90,200,250,0));
  top: -8%; right: -10%;
  animation: drift1 16s ease-in-out infinite alternate;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(0,122,255,0.7), rgba(0,122,255,0));
  bottom: -10%; left: -8%;
  animation: drift2 18s ease-in-out infinite alternate;
}
.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(255,45,85,0.30), rgba(255,45,85,0));
  bottom: 18%; right: 8%;
  animation: drift3 22s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, -20px, 0) scale(1.12); }
}
@keyframes drift3 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-30px, -40px, 0); }
}

/* Floating chip logo in hero */
.hero-chip {
  position: absolute;
  top: 6%; left: 18%;
  width: 38%;
  filter: drop-shadow(0 28px 50px rgba(0, 90, 200, 0.35));
  animation: floaty 6.5s ease-in-out infinite;
  z-index: 3;
}
.hero-chip img { width: 100%; display: block; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-14px) rotate(-1deg); }
}

/* Phone — uses real screenshot */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 46px;
  background: #0a0f1c;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 36px 80px -24px rgba(10, 18, 35, 0.45),
    0 12px 30px -10px rgba(0, 90, 200, 0.35);
}
.phone::before {
  content: ""; position: absolute; inset: 0; border-radius: 46px;
  border: 1px solid rgba(255,255,255,0.08); pointer-events: none;
}
.phone .notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 999px;
  background: #000; z-index: 4;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
}
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero-phone {
  position: absolute;
  bottom: 4%; right: 4%;
  width: 64%; max-width: 320px;
  z-index: 2;
  transform: rotate(4deg);
  animation: floaty-phone 8s ease-in-out infinite;
}
.hero-phone .phone { width: 100%; }

/* Smaller phone variant used in How-it-works tiles. The bezel and notch
   scale down so the dynamic island doesn't dominate the tile. */
.phone-sm {
  border-radius: 36px;
  padding: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 24px 60px -20px rgba(10, 18, 35, 0.40),
    0 8px 22px -8px rgba(0, 90, 200, 0.30);
}
.phone-sm::before { border-radius: 36px; }
.phone-sm .phone-screen { border-radius: 30px; }
.phone-sm .notch {
  top: 10px;
  width: 58px; height: 18px;
  border-radius: 999px;
}

@keyframes floaty-phone {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50%      { transform: rotate(3.4deg) translateY(-12px); }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-stage { min-height: 500px; max-width: 480px; margin: 0 auto; }
  .hero { padding-top: 110px; }
}

/* ============================================================
   "Promise" — band
   ============================================================ */

.promise {
  padding: 120px 0 60px;
  text-align: center;
}
.promise h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0 auto;
}
.promise .lead {
  margin: 28px auto 0;
  max-width: 50ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}
.promise .scribble {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 700;
}

/* ============================================================
   Demo viewer — animated app dashboard sample
   ============================================================ */

.demo {
  padding: 60px 0 120px;
}
.demo-card {
  border-radius: 36px;
  padding: 24px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}
.demo-card .copy { padding: 24px 12px 24px 24px; }
.demo-card .eyebrow { margin-bottom: 18px; }
.demo-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.demo-card p { margin-top: 16px; max-width: 42ch; color: var(--ink-2); }

.demo-stage {
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(230, 240, 255, 0.6), rgba(191, 217, 255, 0.4));
}
.demo-stage .orb { filter: blur(60px); opacity: 0.85; }
.demo-stage .orb-a { width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(0,122,255,0.65), transparent); top: 10%; left: -10%; }
.demo-stage .orb-b { width: 320px; height: 320px; background: radial-gradient(closest-side, rgba(90,200,250,0.7), transparent); bottom: -10%; right: -10%; }
.demo-stage .phone { width: 60%; max-width: 280px; z-index: 2; }

@media (max-width: 900px) {
  .demo-card { grid-template-columns: 1fr; padding: 18px; }
  .demo-card .copy { padding: 8px; }
}

/* ============================================================
   How it works — compact 3-tile horizontal layout
   ============================================================ */

.how {
  padding: 100px 0;
}
.how .section-head {
  text-align: center; max-width: 720px; margin: 0 auto 64px;
}
.how .section-head h2 { margin-top: 18px; }
.how .section-head p { margin-top: 18px; color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.18rem); max-width: 52ch; margin-left: auto; margin-right: auto; }

.how-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.how-tile {
  border-radius: 18px;
  padding: 28px;
  min-height: 460px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.how-tile:hover { transform: translateY(-4px); }

.how-tile .step-num {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 18px;
}
.how-tile .step-num .dot {
  width: 6px; height: 6px; border-radius: 999px; background: currentColor;
  box-shadow: 0 0 0 4px rgba(0,122,255,0.16);
}

.how-tile h3 {
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.how-tile p { font-size: 0.96rem; color: var(--ink-2); margin-bottom: 24px; }

.how-tile .tile-stage {
  flex: 1;
  position: relative;
  display: grid; place-items: center;
  margin-top: auto;
  min-height: 200px;
}
.how-tile .tile-stage .phone { width: 78%; max-width: 220px; }
.how-tile .tile-stage .halo {
  position: absolute; inset: 8%;
  background: radial-gradient(closest-side, rgba(0,122,255,0.20), transparent 70%);
  filter: blur(34px);
}

@media (max-width: 900px) {
  .how-tiles { grid-template-columns: 1fr; }
  .how-tile { min-height: 0; }
}

/* ============================================================
   Features
   ============================================================ */

.features {
  padding: 140px 0;
}
.features .section-head { text-align: left; max-width: 720px; margin-bottom: 60px; }
.features .section-head h2 { margin-top: 14px; max-width: 16ch; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.feat {
  grid-column: span 2;
  border-radius: 18px;
  padding: 28px;
  min-height: 240px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feat:hover { transform: translateY(-4px); }

.feat .feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(0,122,255,0.16), rgba(0,122,255,0.06));
  color: var(--blue-600);
  margin-bottom: 18px;
}

.feat h3 {
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.feat p { font-size: 0.965rem; color: var(--ink-2); }

.feat-wide { grid-column: span 3; }
.feat-tall { grid-column: span 2; grid-row: span 2; min-height: 500px; }
.feat-hero { grid-column: span 4; min-height: 320px; }

/* Bento layout adjustments */
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat, .feat-wide, .feat-hero { grid-column: span 2; }
  .feat-tall { grid-column: span 2; grid-row: auto; min-height: 240px; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat, .feat-wide, .feat-hero, .feat-tall { grid-column: span 1; min-height: 200px; }
}

/* Specific feature visuals */
.feat-hero { padding: 32px; }
.feat-hero .demo-mini {
  margin-top: auto;
  display: flex; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
}
.feat-hero .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 122, 255, 0.10); color: var(--blue-700);
}
.feat-hero .pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green-500); }

/* Inline chip showing on-device */
.feat-chip-vis {
  position: absolute; right: -20px; bottom: -20px;
  width: 180px; opacity: 0.95;
  transform: rotate(-8deg);
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 80, 180, 0.30));
}

/* Health context preview tile */
.metric-tile {
  margin-top: 16px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(var(--glass-tint), calc(var(--glass-tint-alpha) - 0.15));
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 12px;
}
.metric-tile .num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.metric-tile .unit { font-size: 13px; color: var(--ink-3); margin-left: -4px; }
.metric-tile .desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.metric-tile .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: rgba(52, 199, 89, 0.14); color: #1F8A3F;
}
.metric-tile .badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green-500); }
.metric-tile.warn .badge { background: rgba(255, 159, 10, 0.14); color: #B36800; }
.metric-tile.warn .badge .dot { background: var(--orange-500); }

/* Mini bars for trends preview */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin-top: 12px; }
.bars span {
  display: block; flex: 1;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
  border-radius: 3px 3px 0 0;
  min-height: 4px;
}

/* ============================================================
   Privacy section — DARK transition anchor
   ============================================================ */

.privacy-anchor { position: relative; }

.privacy {
  padding: 200px 0 160px;
  position: relative;
}
.privacy .intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}
.privacy .intro .eyebrow { color: var(--blue-400); }
.privacy .intro .eyebrow::before { background: var(--blue-400); box-shadow: 0 0 0 4px rgba(90,200,250,0.18); }
.privacy .intro h2 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.045em;
}
.privacy .intro p {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  max-width: 48ch;
  margin-left: auto; margin-right: auto;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.priv-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.priv-tile {
  border-radius: 16px;
  padding: 24px;
  min-height: 180px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.priv-tile .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(90, 200, 250, 0.18);
  color: var(--blue-400);
  display: grid; place-items: center;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(90, 200, 250, 0.22) inset,
    0 0 22px -2px rgba(90, 200, 250, 0.45);
}
.priv-tile .ico::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 16px;
  background: radial-gradient(closest-side, rgba(90,200,250,0.30), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  opacity: 0.7;
}
.priv-tile h4 {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.priv-tile p { font-size: 0.92rem; color: var(--ink-2); }

.priv-tile.wide { grid-column: span 2; min-height: 0; }

.priv-tile code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(90,200,250,0.12);
  color: var(--blue-400);
  border: 1px solid rgba(90,200,250,0.18);
}

.privacy-visual {
  display: grid; place-items: center;
  position: relative;
}
.privacy-visual .halo {
  position: absolute; inset: 5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 200, 250, 0.30), transparent 70%);
  filter: blur(40px);
}
.privacy-visual .phone { width: 75%; max-width: 320px; z-index: 2; }

/* Floating shield seal */
.shield {
  position: absolute;
  top: 8%; right: 6%;
  width: 92px; height: 92px;
  border-radius: 999px;
  background: rgba(var(--glass-tint), calc(var(--glass-tint-alpha) + 0.10));
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  color: var(--blue-400);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.35);
  animation: floaty 5.5s ease-in-out infinite;
  z-index: 3;
}

@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   Trends — under the dark band, picks up the dark theme
   ============================================================ */

.trends {
  padding: 120px 0;
}
.trends-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center;
}
.trends-grid h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 14px; letter-spacing: -0.04em; }
.trends-grid p { margin-top: 18px; max-width: 44ch; }

.trends-visual { display: grid; place-items: center; position: relative; }
.trends-visual .phone { width: 70%; max-width: 320px; }
.trends-visual .halo {
  position: absolute; inset: 5%;
  background: radial-gradient(closest-side, rgba(0,122,255,0.25), transparent 70%);
  filter: blur(40px);
}

@media (max-width: 900px) {
  .trends-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq { padding: 100px 0; }
.faq .intro { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.faq .intro h2 { margin-top: 14px; }

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border-radius: 14px;
  overflow: hidden;
}
.faq-item details { width: 100%; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(0,122,255,0.10); color: var(--blue-600);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item details[open] summary .chev { transform: rotate(45deg); }

/* Smooth open/close via the grid 0fr → 1fr trick. The UA stylesheet
   hides non-summary children of a closed <details>, so we force
   display:grid to keep .body in the layout tree. Transitioning
   grid-template-rows interpolates against the *actual* content
   height, so the easing curve is honored exactly — no dead zone
   from a fixed max-height ceiling like the old approach had. */
.faq-item .body {
  display: grid !important;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.32s ease;
  will-change: grid-template-rows;
}
.faq-item details[open] .body {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-item .body .inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 0.98rem;
  max-width: 60ch;
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta {
  padding: 140px 0 160px;
  text-align: center;
  position: relative;
}
.final-cta h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 18ch; margin: 0 auto;
  letter-spacing: -0.045em;
}
.final-cta p { margin: 22px auto 0; max-width: 40ch; color: var(--ink-2); font-size: 1.1rem; }
.final-cta .cta-row { justify-content: center; margin-top: 36px; }

.final-cta .badge-row {
  margin-top: 28px;
  display: inline-flex; gap: 18px; align-items: center;
  color: var(--ink-3); font-size: 13px;
}
.final-cta .badge-row .sep { width: 4px; height: 4px; border-radius: 999px; background: currentColor; opacity: 0.4; }

/* App store style badge (pill) */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--ink);
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.appstore:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(10,18,35,0.45); }
.appstore .glyph { width: 28px; height: 28px; display: grid; place-items: center; }
.appstore .tags { display: flex; flex-direction: column; line-height: 1; }
.appstore .tags .sm { font-size: 11px; opacity: 0.7; font-weight: 500; }
.appstore .tags .lg { font-size: 17px; letter-spacing: -0.01em; margin-top: 3px; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 60px 0 80px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; gap: 48px;
}
.footer h5 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-3); margin-bottom: 14px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.footer ul a:hover { color: var(--ink); }
.footer .brand-block { max-width: 280px; }
.footer .brand-block p { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.footer-bottom {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-3);
  border-top: 1px solid var(--hairline); padding-top: 24px;
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   Press / "Featured in" bar
   ============================================================ */

.press {
  padding: 40px 0 0;
}
.press-inner {
  padding: 28px 36px;
  border-radius: 999px;
  display: flex; align-items: center;
  gap: 48px; flex-wrap: wrap;
  justify-content: center;
}
.press .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
}
.press .marks {
  display: flex; align-items: center;
  gap: 44px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.03em;
  font-size: 1.1rem;
  color: var(--ink-2);
  opacity: 0.86;
}
.press .marks .item { display: inline-flex; align-items: center; gap: 8px; }
.press .marks .item svg { color: var(--ink-3); }

@media (max-width: 700px) {
  .press-inner { padding: 18px 22px; }
  .press .marks { gap: 24px; font-size: 0.95rem; }
}

/* ============================================================
   Stats counter band
   ============================================================ */

.stats {
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  border-radius: 16px;
  padding: 28px 28px 32px;
  position: relative; overflow: hidden;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(0,122,255,0.30));
}
.stat .label {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-top: 12px;
  max-width: 24ch;
  letter-spacing: -0.01em;
}
.stat .deco {
  position: absolute;
  right: -20px; bottom: -20px;
  width: 110px; height: 110px;
  border-radius: 999px;
  border: 1.5px solid var(--blue-200);
  opacity: 0.55;
  pointer-events: none;
}
.stat .deco::before {
  content: "";
  position: absolute; inset: 12px;
  border-radius: 999px;
  border: 1.5px dashed rgba(0,122,255,0.30);
}

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

/* ============================================================
   Testimonial / quote
   ============================================================ */

.quote-section {
  padding: 100px 0;
}
.quote-card {
  padding: 56px;
  border-radius: 36px;
  position: relative;
  text-align: left;
  max-width: 940px;
  margin: 0 auto;
}
.quote-card .mark {
  position: absolute;
  top: 28px; left: 36px;
  font-family: var(--font-display);
  font-size: 6rem; line-height: 0.7;
  color: var(--blue-600);
  opacity: 0.18;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  position: relative;
  text-wrap: balance;
}
.quote-card blockquote em { font-style: normal; color: var(--blue-600); }
.quote-card .who {
  margin-top: 28px;
  display: flex; align-items: center; gap: 14px;
}
.quote-card .who .avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  color: white;
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
}
.quote-card .who .name { font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }
.quote-card .who .role { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

@media (max-width: 720px) {
  .quote-card { padding: 36px 28px; }
}

/* ============================================================
   Floating decorative shapes (Scale-style ambience)
   ============================================================ */

.float-ring, .float-dashed, .float-grid {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}
.float-ring {
  width: 220px; height: 220px;
  border-radius: 999px;
  border: 1px solid var(--blue-200);
  box-shadow: 0 0 0 1px rgba(0,122,255,0.10) inset;
}
.float-ring::before {
  content: ""; position: absolute; inset: 22px;
  border-radius: 999px;
  border: 1px dashed rgba(0,122,255,0.35);
}
.float-dashed {
  width: 320px; height: 320px;
  border-radius: 999px;
  border: 1.5px dashed rgba(0,122,255,0.22);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-grid {
  width: 220px; height: 220px;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,122,255,0.30) 1px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
}

.float-spark {
  position: absolute; pointer-events: none;
  width: 12px; height: 12px;
  background: var(--blue-500);
  border-radius: 999px;
  box-shadow:
    0 0 12px 2px rgba(0,122,255,0.85),
    0 0 32px 10px rgba(0,122,255,0.45);
  animation: blink 3.2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { transform: scale(1); opacity: 0.85 } 50% { transform: scale(1.6); opacity: 1 } }

/* ============================================================
   Dynamic-island style glow pill (Apple-flashlight vibe)
   ============================================================ */

.glow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #15151a, #0a0a0e);
  color: #f4f7ff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 -1px 0 rgba(0,0,0,0.4) inset,
    0 10px 24px -6px rgba(0, 122, 255, 0.35),
    0 2px 8px -1px rgba(0,0,0,0.30);
}
.glow-pill::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(0,122,255,0.55), transparent 70%);
  filter: blur(18px);
  z-index: -1;
  animation: pulseGlow 2.4s ease-in-out infinite;
  pointer-events: none;
}
.glow-pill .led {
  width: 7px; height: 7px; border-radius: 999px;
  background: #34c759;
  box-shadow:
    0 0 0 2px rgba(52, 199, 89, 0.18),
    0 0 14px 2px rgba(52, 199, 89, 0.80);
  animation: ledBlink 1.6s ease-in-out infinite;
}
.glow-pill .meta { color: #9aa3b2; font-weight: 500; }
.glow-pill code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #e9f0ff;
  background: rgba(255,255,255,0.06);
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.65; transform: scale(0.95); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@keyframes ledBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* Pulsing aura — drop on any element to give it a flashlight halo */
.aura {
  position: relative;
}
.aura::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(0,122,255,0.45), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}

/* Glowing ring decoration (concentric, looks like the flashlight UI) */
.glow-ring {
  position: absolute; pointer-events: none;
  width: 200px; height: 200px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 122, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 122, 255, 0.18),
    0 0 40px 6px rgba(0, 122, 255, 0.35),
    0 0 90px 14px rgba(0, 122, 255, 0.25) inset;
  animation: ringPulse 4s ease-in-out infinite;
}
.glow-ring::before {
  content: "";
  position: absolute; inset: 14px;
  border-radius: 999px;
  border: 1px dashed rgba(0, 122, 255, 0.35);
  animation: spin 30s linear infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* Apply a glow halo to feature icons */
.feat .feat-icon {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,122,255,0.20) inset,
    0 6px 16px -6px rgba(0,122,255,0.40),
    0 0 18px -2px rgba(0,122,255,0.25);
}
.feat .feat-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 18px;
  background: radial-gradient(closest-side, rgba(0,122,255,0.32), transparent 70%);
  filter: blur(14px);
  z-index: -1;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.feat:hover .feat-icon::after { opacity: 1; }

/* Stat number sits in a luminous ring */
.stat {
  /* override original .deco to be a true glowing ring */
}
/* Stat decorative ring removed by request — keep blocks clean. */
.stat .deco { display: none; }

/* Glow ring decoration utility */
.glow-orb {
  position: absolute; pointer-events: none;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(90,200,250,0.55), transparent 70%);
  filter: blur(8px);
  animation: glowDrift 6s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(10px, -14px) scale(1.2); opacity: 1; }
}

/* ============================================================
   Scroll reveal — applied to .reveal items via JS
   ============================================================ */

/* Base reveal — slightly more dramatic than v1 (40px instead of
   28px, slower easing curve) so the motion reads as deliberate
   rather than a quick fade. Scale-from-94 adds the extra bit of
   "growing into place" feel that scale.com / linear.app pages
   use heavily. */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slide from the left edge — used for copy columns next to phone
   screenshots so the eye gets a directional sweep across the
   layout instead of only vertical lift. */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left.in { opacity: 1; transform: translateX(0); }

/* Mirror — for the phone column on right side of layouts. */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* Bigger, dramatic scale-up. Good for hero numbers, big cards. */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Blur sharpens on entry. Subtle but expensive — reserve for a
   handful of marquee elements (section titles, primary CTAs)
   rather than every card, since `filter: blur()` is GPU-heavy. */
.reveal-blur {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Slight 3D tilt-correction on entry. Reads as the element
   "rotating into place" — gives features bento tiles a bit of
   spatial depth as you scroll past. */
.reveal-tilt {
  opacity: 0;
  transform: perspective(1000px) rotateX(8deg) translateY(30px);
  transform-origin: center bottom;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-tilt.in { opacity: 1; transform: perspective(1000px) rotateX(0deg) translateY(0); }

.reveal.delay-1, .reveal-left.delay-1, .reveal-right.delay-1, .reveal-scale.delay-1, .reveal-blur.delay-1, .reveal-tilt.delay-1 { transition-delay: 0.06s; }
.reveal.delay-2, .reveal-left.delay-2, .reveal-right.delay-2, .reveal-scale.delay-2, .reveal-blur.delay-2, .reveal-tilt.delay-2 { transition-delay: 0.12s; }
.reveal.delay-3, .reveal-left.delay-3, .reveal-right.delay-3, .reveal-scale.delay-3, .reveal-blur.delay-3, .reveal-tilt.delay-3 { transition-delay: 0.18s; }
.reveal.delay-4, .reveal-left.delay-4, .reveal-right.delay-4, .reveal-scale.delay-4, .reveal-blur.delay-4, .reveal-tilt.delay-4 { transition-delay: 0.24s; }
.reveal.delay-5, .reveal-left.delay-5, .reveal-right.delay-5, .reveal-scale.delay-5, .reveal-blur.delay-5, .reveal-tilt.delay-5 { transition-delay: 0.30s; }

/* Magnetic CTA — the JS layer handles the actual transform.
   This rule just provides the easing curve for when the cursor
   leaves and the element snaps back to its layout position. */
.magnetic {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Parallax elements get will-change so the GPU keeps a layer
   warm for them — without this, scroll-tied transforms induce
   layout thrash on the first frame. */
[data-parallax] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur, .reveal-tilt {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  [data-parallax] { transform: none !important; }
  .magnetic { transform: none !important; }
  .orb, .hero-chip, .hero-phone, .shield, .glow-ring, .glow-pill::before, .aura::after, .stat .deco { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Tablet (iPad) + mobile responsive overrides
   ============================================================ */

@media (max-width: 1024px) {
  .container { padding: 0 22px; }
  .hero-inner { gap: 36px; }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat, .feat-wide, .feat-hero { grid-column: span 2; }
  .feat-tall { grid-column: span 2; grid-row: auto; min-height: 320px; }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-stage { min-height: 460px; max-width: 480px; margin: 0 auto; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .nav { padding-left: 12px; }
  .how-tiles { grid-template-columns: 1fr; }
  .how-tile { min-height: 0; }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
  .trends-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat, .feat-wide, .feat-hero, .feat-tall { grid-column: span 2; min-height: 200px; }
  section { padding: 80px 0; }
  .privacy { padding: 140px 0 110px; }
}

@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .nav { padding: 6px 6px 6px 12px; gap: 4px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .nav-brand { font-size: 15px; }
  .nav-brand img { width: 20px; height: 20px; }

  .hero { padding: 100px 0 48px; }
  .hero-stage { min-height: 380px; }
  .hero-chip { width: 32%; top: 4%; left: 8%; }
  .hero-phone { width: 60%; right: 2%; bottom: 2%; }
  .phone { width: 100%; }

  section { padding: 60px 0; }
  .promise { padding: 70px 0 40px; }
  .stats { padding: 50px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 20px 18px; min-height: 0; }
  .stat .num { font-size: 2.2rem; }
  .stat .label { font-size: 0.84rem; }
  .stat .deco { width: 80px; height: 80px; right: -16px; bottom: -16px; }

  .how { padding: 60px 0; }
  .how .section-head { margin-bottom: 36px; }
  .how-tiles { gap: 14px; }
  .how-tile { padding: 22px; }
  .how-tile .tile-stage { min-height: 280px; }
  .how-tile .tile-stage .phone { width: 65%; max-width: 200px; }

  .features { padding: 80px 0; }
  .features .section-head { margin-bottom: 32px; }
  .feat-grid { grid-template-columns: 1fr; gap: 14px; }
  .feat, .feat-wide, .feat-hero, .feat-tall { grid-column: span 1; min-height: 0; padding: 22px; }
  .feat-chip-vis { width: 130px; right: -16px; bottom: -16px; }

  .privacy { padding: 110px 0 90px; }
  .privacy .intro { margin-bottom: 48px; }
  .priv-tiles { grid-template-columns: 1fr; gap: 12px; }
  .priv-tile { padding: 20px; min-height: 0; }
  .priv-tile.wide { grid-column: span 1; }
  .shield { width: 64px; height: 64px; top: 0; right: 0; }
  .shield svg { width: 28px; height: 28px; }

  .trends { padding: 80px 0; }

  .faq { padding: 70px 0; }
  .faq-item summary { padding: 18px 20px; font-size: 0.98rem; gap: 12px; }
  .faq-item .body .inner { padding: 0 20px 20px; font-size: 0.92rem; }

  .final-cta { padding: 90px 0 110px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  .press-inner { padding: 18px 20px; gap: 18px; }
  .press .marks { gap: 16px; font-size: 0.92rem; }
  .press .label { font-size: 10px; }

  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .hero-meta { gap: 14px; }
  .hero-meta span { font-size: 12px; }

  .glow-pill { font-size: 12px; padding: 8px 14px 8px 10px; }
}

@media (max-width: 420px) {
  h1, .h1 { font-size: 2.4rem; line-height: 1.0; letter-spacing: -0.04em; }
  h2, .h2 { font-size: 1.85rem; }
  .nav-links { display: none; }
  .promise h2 { font-size: 1.85rem; }
  .final-cta h2 { font-size: 2.3rem; }
}

/* Glass shimmer on hover (cards) */
.glass.shimmer { position: relative; }
.glass.shimmer::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.3s ease;
}
.glass.shimmer:hover::after {
  opacity: 1;
  animation: shimmer 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* "What's notable" mini bar */
.notable {
  margin-top: 16px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.20);
  color: #B36800;
  font-size: 13px;
  display: flex; align-items: center; gap: 12px;
}
.notable .arrow {
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(255, 159, 10, 0.18);
  display: grid; place-items: center;
}
.notable strong { color: #7A4500; }

/* Strikethrough text small */
.muted-strike {
  display: inline-block;
  color: var(--ink-3);
  font-size: 12px;
}
