/* ============================================================================
   MindBlink — marketing site
   Aesthetic: "calm void with living light"
   Dark-first, atmospheric, minimal-but-magical — an extension of the app.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* surfaces */
  --void:        #06070F;
  --void-2:      #090B16;
  --surface:     #0D0F1E;
  --card:        rgba(255, 255, 255, 0.035);
  --card-2:      rgba(255, 255, 255, 0.06);
  --hair:        rgba(255, 255, 255, 0.09);
  --hair-strong: rgba(255, 255, 255, 0.16);

  /* brand */
  --blue:   #007AFF;
  --indigo: #5856D6;

  /* signature glow wheel (CaptureGlowView) */
  --c-orange: #FF9F45;
  --c-pink:   #FF4D8D;
  --c-purple: #A24CFF;
  --c-blue:   #3C7BFF;
  --c-teal:   #19E0D6;

  /* text */
  --text:   #F2F3FF;
  --text-2: rgba(233, 235, 255, 0.64);
  --text-3: rgba(233, 235, 255, 0.40);

  /* status (urgency scale from the app) */
  --red:    #FF453A;
  --orange: #FF9F0A;
  --amber:  #FFB84D;
  --green:  #32D74B;

  /* type */
  --sans:  "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  /* motion — approximations of the app's SwiftUI springs */
  --spring:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.30, 1);

  /* layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--void);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  text-rendering: optimizeLegibility;
}

/* atmospheric base: indigo void with faint corner auras + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(88, 86, 214, 0.16), transparent 55%),
    radial-gradient(110% 90% at 92% 4%, rgba(0, 122, 255, 0.12), transparent 52%),
    radial-gradient(140% 120% at 50% 120%, rgba(162, 76, 255, 0.10), transparent 60%),
    var(--void);
}

/* fine grain overlay for premium texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
::selection { background: rgba(60, 123, 255, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 880px; }

section { position: relative; }
.section { padding-block: clamp(80px, 12vw, 150px); }
.section--tight { padding-block: clamp(60px, 8vw, 100px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-blue), transparent);
}

.section-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }

.h-display {
  font-size: clamp(2.7rem, 7vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
}

/* literary serif accent — the poetic voice */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.grad-text {
  background: linear-gradient(102deg, var(--c-teal), var(--c-blue) 32%, var(--c-purple) 64%, var(--c-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: 100px;
  transition: transform 0.4s var(--spring), background 0.3s, border-color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-glow {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--indigo));
  box-shadow:
    0 8px 30px rgba(60, 123, 255, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 44px rgba(88, 86, 214, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--hair);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--hair-strong); transform: translateY(-2px); }

/* Apple-style App Store badge (hand-built) */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 18px;
  border-radius: 14px;
  background: #fff;
  color: #06070F;
  transition: transform 0.4s var(--spring), box-shadow 0.4s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.appstore .as-sm { font-size: 0.62rem; letter-spacing: 0.02em; opacity: 0.7; }
.appstore .as-lg { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { font-size: 0.85rem; color: var(--text-3); }

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 15, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; flex: none; border-radius: 7px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-2);
  padding: 9px 14px;
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.9rem; }
.nav-mobile { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 18px; height: 1.5px; background: var(--text); transition: 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: 0.3s var(--spring); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(120px, 17vw, 180px);
  padding-bottom: clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 9px;
  border-radius: 100px;
  background: var(--card-2);
  border: 1px solid var(--hair);
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-pill b { color: var(--text); font-weight: 500; }
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(25, 224, 214, 0.18);
}

.hero h1 { margin-bottom: 26px; }
.hero h1 .line2 { display: block; }
.hero .lede { max-width: 30ch; margin-bottom: 36px; }
.hero .cta-row { margin-bottom: 22px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--text-2); }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; }

/* the living-light aura behind the phone */
.hero-aura {
  position: absolute;
  width: min(120%, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--c-orange), var(--c-pink), var(--c-purple),
    var(--c-blue), var(--c-teal), var(--c-blue),
    var(--c-purple), var(--c-pink), var(--c-orange));
  filter: blur(95px) saturate(1.15);
  opacity: 0.30;
  mix-blend-mode: screen;
  animation: spin 32s linear infinite;
  z-index: 0;
}
.hero-stage .device { z-index: 1; }

/* phone-shaped glow that PULSES OUTWARD past the device edges (Siri-style).
   A separate centered layer behind the phone; blur + a growing scale push the
   colored light out beyond the frame as it breathes. */
.hero-halo {
  position: absolute;
  width: 308px;
  aspect-ratio: 390 / 844;
  border-radius: 60px;
  background: conic-gradient(from var(--glow-angle, 212deg),
    var(--c-orange), var(--c-pink), var(--c-purple),
    var(--c-blue), var(--c-teal), var(--c-blue),
    var(--c-purple), var(--c-pink), var(--c-orange));
  filter: blur(36px) saturate(1.45);
  opacity: 0.55;
  z-index: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transform-origin: center;
  animation: floaty 7s ease-in-out infinite,
             glowSway 12s ease-in-out infinite,
             haloPulse 3.6s ease-in-out infinite;
}

/* ============================================================================
   DEVICE MOCKUPS
   ========================================================================== */
.device {
  width: var(--dev-w, 300px);
  aspect-ratio: 390 / 844;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(150deg, #23252e, #0d0e15 42%, #1a1c24);
  box-shadow:
    0 2px 1px rgba(255, 255, 255, 0.18) inset,
    0 -1px 2px rgba(0, 0, 0, 0.6) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 20px 50px -20px rgba(88, 86, 214, 0.35);
  position: relative;
}
.device-screen {
  position: relative;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: var(--void);
  isolation: isolate;
}
.island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 31%; height: 26px;
  background: #000;
  border-radius: 100px;
  z-index: 30;
}

/* --- recreated capture screen (hero) --- */
.scr-capture {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  background:
    linear-gradient(155deg, rgba(0, 122, 255, 0.14), rgba(88, 86, 214, 0.20));
}
/* signature edge glow — a multicolor rim masked to the screen edge that
   breathes (brightness pulse) + sways gently, mirroring the app's
   CaptureGlowView "listening" bloom. No full rotation. */
.cap-rim, .cap-bloom {
  position: absolute; inset: 0;
  border-radius: 44px;
  --glow-angle: 212deg;
  background: conic-gradient(from var(--glow-angle),
    var(--c-orange), var(--c-pink), var(--c-purple),
    var(--c-blue), var(--c-teal), var(--c-blue),
    var(--c-purple), var(--c-pink), var(--c-orange));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
/* Crisp inner rim — gently breathes brighter/dimmer (the app's 0.80–1.0 "breath"). */
.cap-rim {
  padding: 2px;
  filter: saturate(1.3) brightness(1.1);
  animation: glowSway 12s ease-in-out infinite, rimBreath 3.6s ease-in-out infinite;
}
/* Soft outer bloom — blooms in and out along the edge, like Siri listening. */
.cap-bloom {
  padding: 10px;
  mix-blend-mode: plus-lighter;
  animation: glowSway 12s ease-in-out infinite, bloomBreath 3.6s ease-in-out infinite;
}
.cap-logo {
  width: 120px; height: 120px;
  object-fit: contain;
  position: relative; z-index: 2;
  filter: drop-shadow(0 6px 34px rgba(120, 160, 255, 0.45));
}
.cap-caption { position: relative; z-index: 2; text-align: center; }
.cap-caption .rec { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: rgba(255,255,255,0.9); font-weight: 500; }
.cap-caption .rec .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pip 1.4s ease-in-out infinite; }
.cap-words { font-size: 0.8rem; color: rgba(255,255,255,0.62); margin-top: 12px; max-width: 78%; margin-inline: auto; line-height: 1.5; }
.cap-glyph { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); opacity: 0.18; color: #fff; }

/* --- recreated widget --- */
.scr-widget {
  position: absolute; inset: 0;
  padding: 60px 18px 24px;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgb(36, 51, 95), rgb(46, 41, 95));
}
.wdgt-card {
  background: linear-gradient(160deg, rgba(56, 66, 120, 0.9), rgba(40, 36, 86, 0.92));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; max-height: 200px;
}
.wdgt-top { display: flex; align-items: center; justify-content: space-between; }
.wdgt-why { display: inline-flex; align-items: center; gap: 6px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); }
.wdgt-why .sq { width: 6px; height: 6px; border-radius: 2px; background: var(--orange); }
.wdgt-done { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--green); background: rgba(50,215,75,0.12); }
.wdgt-title { font-size: 1.02rem; font-weight: 600; color: #F4F4FF; line-height: 1.25; letter-spacing: -0.01em; }
.wdgt-foot { margin-top: auto; font-size: 0.66rem; color: rgba(220, 224, 245, 0.7); display: flex; align-items: center; gap: 6px; }
.wdgt-foot svg { width: 12px; height: 12px; }
.wdgt-label { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(220,224,245,0.45); margin-bottom: 10px; padding-left: 2px; }

/* --- recreated digest --- */
.scr-digest {
  position: absolute; inset: 0;
  padding: 56px 16px 20px;
  display: flex; flex-direction: column; gap: 11px;
  background: linear-gradient(165deg, rgb(28, 32, 54), rgb(40, 28, 64));
  overflow: hidden;
}
.dg-greet { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; }
.dg-greet .sub { display: block; font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; margin-top: 3px; }
.dg-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 13px 14px; }
.dg-card .k { font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 7px; display: flex; align-items: center; gap: 5px; }
.dg-card .k .accent { width: 5px; height: 5px; border-radius: 50%; }
.dg-card .v { font-size: 0.82rem; line-height: 1.45; color: rgba(255,255,255,0.92); }
.dg-card.lead { background: rgba(255,255,255,0.09); }
.dg-echo { display: flex; align-items: center; gap: 10px; }
.dg-echo .ic { width: 30px; height: 30px; border-radius: 50%; background: rgba(162,76,255,0.18); color: var(--c-purple); display: grid; place-items: center; flex: none; }
.dg-echo .ic svg { width: 15px; height: 15px; }
.dg-echo .tx { font-size: 0.72rem; line-height: 1.35; }
.dg-echo .tx b { color: #fff; font-weight: 600; }
.dg-echo .tx span { color: rgba(255,255,255,0.55); }

/* ============================================================================
   PHILOSOPHY / QUOTE
   ========================================================================== */
.philosophy { text-align: center; }
.philosophy .quote {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 17ch;
  margin: 0 auto 30px;
}
.philosophy .quote em { font-style: italic; }
.philosophy .sub { max-width: 56ch; margin: 0 auto; color: var(--text-2); font-size: 1.08rem; }

.loss-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(48px, 7vw, 80px);
  text-align: left;
}
.loss-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.loss-card .num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--text-3); margin-bottom: 16px; }
.loss-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.loss-card p { font-size: 0.93rem; color: var(--text-2); }
.loss-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--c-blue)), transparent);
  opacity: 0.5;
}

/* ============================================================================
   HOW IT WORKS — steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hair);
  transition: transform 0.5s var(--spring), border-color 0.4s, background 0.4s;
}
.step:hover { transform: translateY(-4px); border-color: var(--hair-strong); background: var(--card-2); }
.step .step-n {
  font-family: var(--serif); font-style: italic;
  font-size: 2.6rem; line-height: 1;
  background: linear-gradient(135deg, var(--c-teal), var(--c-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 22px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 11px; }
.step p { color: var(--text-2); font-size: 0.96rem; }
.step .timing { display: inline-block; margin-top: 18px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); }

/* capture method chips */
.methods { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; justify-content: center; }
.method {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 100px;
  background: var(--card-2); border: 1px solid var(--hair);
  font-size: 0.9rem; color: var(--text-2);
  transition: transform 0.4s var(--spring), color 0.3s, border-color 0.3s;
}
.method:hover { transform: translateY(-3px); color: var(--text); border-color: var(--hair-strong); }
.method svg { width: 17px; height: 17px; color: var(--c-blue); }

/* ============================================================================
   FEATURES — bento grid
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.feat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.5s var(--spring), border-color 0.4s, background 0.4s;
}
.feat:hover { transform: translateY(-4px); border-color: var(--hair-strong); background: var(--card-2); }
.feat::before {
  content: ""; position: absolute; width: 220px; height: 220px;
  top: -110px; right: -80px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(60,123,255,0.22)), transparent 70%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.feat:hover::before { opacity: 1; }
.feat-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--ic-bg, rgba(60,123,255,0.12));
  color: var(--ic, var(--c-blue));
  border: 1px solid rgba(255,255,255,0.06);
}
.feat-icon svg { width: 23px; height: 23px; }
.feat h3 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.feat p { color: var(--text-2); font-size: 0.94rem; }
.feat .feat-tag { display: inline-block; margin-top: 16px; font-size: 0.72rem; color: var(--text-3); font-weight: 500; }

/* spans */
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

/* big feature with embedded mini-list */
.feat-list { margin-top: 18px; display: grid; gap: 11px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); }
.feat-list svg { width: 17px; height: 17px; color: var(--c-teal); flex: none; margin-top: 2px; }

/* ============================================================================
   SHOWCASE — device trio
   ========================================================================== */
.showcase-stage {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(-40px, -3vw, 0px);
  position: relative;
  margin-top: 30px;
  min-height: 600px;
}
.showcase-stage .device { --dev-w: 270px; }
.showcase-stage .dev-side { --dev-w: 240px; opacity: 0.92; }
.showcase-stage .dev-l { transform: translateX(40px) translateY(20px) rotate(-5deg); z-index: 1; }
.showcase-stage .dev-c { z-index: 3; }
.showcase-stage .dev-r { transform: translateX(-40px) translateY(20px) rotate(5deg); z-index: 2; }
.showcase-aura {
  position: absolute; bottom: -10%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 420px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(88,86,214,0.35), transparent 70%);
  filter: blur(60px); z-index: 0;
}

.showcase-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.legend { text-align: center; }
.legend h3 { font-size: 1.05rem; margin-bottom: 6px; }
.legend p { font-size: 0.88rem; color: var(--text-2); }

/* ============================================================================
   PERSONAS
   ========================================================================== */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.persona {
  border-radius: var(--r-lg);
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--hair);
  transition: transform 0.5s var(--spring), border-color 0.4s;
}
.persona:hover { transform: translateY(-4px); border-color: var(--hair-strong); }
.persona .p-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; background: var(--ic-bg); color: var(--ic); }
.persona .p-ic svg { width: 22px; height: 22px; }
.persona h3 { font-size: 1.12rem; margin-bottom: 9px; }
.persona p { font-size: 0.9rem; color: var(--text-2); }

/* ============================================================================
   PRIVACY
   ========================================================================== */
.privacy-wrap {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(25,224,214,0.10), transparent 50%),
    radial-gradient(120% 120% at 100% 100%, rgba(88,86,214,0.14), transparent 50%),
    var(--surface);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.privacy-points { display: grid; gap: 22px; }
.ppoint { display: flex; gap: 16px; }
.ppoint .pp-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(25,224,214,0.12); color: var(--c-teal); border: 1px solid rgba(255,255,255,0.06); }
.ppoint .pp-ic svg { width: 21px; height: 21px; }
.ppoint h3 { font-size: 1.04rem; margin-bottom: 5px; }
.ppoint p { font-size: 0.9rem; color: var(--text-2); }
.privacy-badge {
  display: grid; place-items: center; gap: 18px; text-align: center;
  padding: 40px;
}
.privacy-shield {
  width: 130px; height: 130px; border-radius: 36px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(25,224,214,0.18), rgba(88,86,214,0.22));
  border: 1px solid var(--hair-strong);
  color: #fff;
  box-shadow: 0 20px 50px -18px rgba(25,224,214,0.4);
}
.privacy-shield svg { width: 64px; height: 64px; }

/* ============================================================================
   TESTIMONIALS
   ========================================================================== */
.tnote { text-align: center; font-size: 0.8rem; color: var(--text-3); margin-bottom: 36px; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
}
.tcard .stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--amber); }
.tcard .stars svg { width: 15px; height: 15px; }
.tcard blockquote { font-size: 1rem; line-height: 1.55; color: var(--text); margin-bottom: 22px; flex: 1; letter-spacing: -0.01em; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--c-blue), var(--c-purple)); display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; color: #fff; }
.tcard .who .n { font-size: 0.9rem; font-weight: 500; }
.tcard .who .r { font-size: 0.78rem; color: var(--text-3); }

/* ============================================================================
   PRICING
   ========================================================================== */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 860px; margin-inline: auto; }
.plan {
  position: relative;
  border-radius: var(--r-xl);
  padding: 38px 34px;
  background: var(--card);
  border: 1px solid var(--hair);
  display: flex; flex-direction: column;
}
.plan.feature {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(88,86,214,0.20), transparent 55%),
    var(--surface);
  border-color: var(--hair-strong);
}
.plan-name { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.plan.feature .plan-name { color: var(--c-blue); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.plan-price .amt { font-size: 3rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { font-size: 0.9rem; color: var(--text-3); }
.plan-desc { font-size: 0.9rem; color: var(--text-2); margin-bottom: 26px; }
.plan-feats { display: grid; gap: 13px; margin-bottom: 30px; }
.plan-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; color: var(--text-2); }
.plan-feats svg { width: 18px; height: 18px; color: var(--c-teal); flex: none; margin-top: 1px; }
.plan .btn { width: 100%; margin-top: auto; }
.pill-badge {
  position: absolute; top: 24px; right: 28px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
  background: linear-gradient(120deg, var(--blue), var(--indigo)); color: #fff;
}

/* ============================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--hair);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text); }
.faq .q-ic {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 1px solid var(--hair-strong); position: relative;
  transition: transform 0.4s var(--spring), background 0.3s, border-color 0.3s;
}
.faq .q-ic::before, .faq .q-ic::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--text-2); transition: 0.3s;
}
.faq .q-ic::before { width: 11px; height: 1.5px; }
.faq .q-ic::after { width: 1.5px; height: 11px; }
.faq details[open] .q-ic { transform: rotate(90deg); background: var(--c-blue); border-color: var(--c-blue); }
.faq details[open] .q-ic::before, .faq details[open] .q-ic::after { background: #fff; }
.faq details[open] .q-ic::after { opacity: 0; }
.faq .answer { padding: 0 4px 26px; color: var(--text-2); font-size: 0.98rem; line-height: 1.6; max-width: 64ch; }
.faq .answer a { color: var(--c-blue); }

/* ============================================================================
   FINAL CTA
   ========================================================================== */
.final {
  position: relative;
  text-align: center;
  padding-block: clamp(90px, 14vw, 170px);
  overflow: hidden;
}
.final-aura {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 900px; height: 600px;
  background: conic-gradient(from 0deg,
    var(--c-orange), var(--c-pink), var(--c-purple),
    var(--c-blue), var(--c-teal), var(--c-blue),
    var(--c-purple), var(--c-pink), var(--c-orange));
  filter: blur(120px) saturate(1.1);
  opacity: 0.22; border-radius: 50%;
  mix-blend-mode: screen;
  animation: spin 40s linear infinite;
  z-index: 0;
}
.final .inner { position: relative; z-index: 1; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 24px; letter-spacing: -0.04em; }
.final p { font-size: 1.15rem; color: var(--text-2); max-width: 46ch; margin: 0 auto 38px; }
.final .cta-row { justify-content: center; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--hair); padding-block: 64px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-3); max-width: 32ch; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--text-2); margin-top: 18px; }
.footer-col h4 { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--text-2); padding: 6px 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 30px; border-top: 1px solid var(--hair); }
.footer-bottom p { font-size: 0.84rem; color: var(--text-3); }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; color: var(--text-2); transition: 0.3s; }
.footer-bottom .socials a:hover { color: var(--text); border-color: var(--hair-strong); transform: translateY(-2px); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ============================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { padding-top: clamp(120px, 16vw, 170px); padding-bottom: 100px; }
.legal-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.legal-head .eyebrow { justify-content: flex-start; }
.legal-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 16px; }
.legal-head .updated { color: var(--text-3); font-size: 0.9rem; }
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-size: 1.4rem; margin: 44px 0 14px; letter-spacing: -0.02em; }
.legal-body h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--c-blue); }
.legal-toc {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r);
  padding: 22px 26px; margin-bottom: 40px;
}
.legal-toc h4 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.legal-toc a { display: block; padding: 5px 0; color: var(--text-2); font-size: 0.92rem; }
.legal-toc a:hover { color: var(--c-blue); }

/* ============================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@property --glow-angle { syntax: "<angle>"; inherits: false; initial-value: 212deg; }
/* breathing edge glow — bloom pulses in/out; colours sway gently (no full spin) */
@keyframes rimBreath { 0%, 100% { opacity: 0.70; } 50% { opacity: 1; } }
@keyframes bloomBreath {
  0%, 100% { opacity: 0.30; filter: blur(8px)  saturate(1.2); }
  50%      { opacity: 1;    filter: blur(20px) saturate(1.45); }
}
@keyframes glowSway { 0% { --glow-angle: 190deg; } 50% { --glow-angle: 238deg; } 100% { --glow-angle: 190deg; } }
/* outward halo pulse — animates `scale`/opacity (independent props) so it
   composes with the phone's transform-based floaty bob instead of fighting it */
@keyframes haloPulse { 0%, 100% { opacity: 0.30; scale: 0.96; } 50% { opacity: 0.80; scale: 1.09; } }
@keyframes pip { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* hero load stagger */
.hero-anim { opacity: 0; transform: translateY(20px); animation: heroIn 0.9s var(--ease-out) forwards; }
.hero-anim.d1 { animation-delay: 0.05s; }
.hero-anim.d2 { animation-delay: 0.15s; }
.hero-anim.d3 { animation-delay: 0.25s; }
.hero-anim.d4 { animation-delay: 0.35s; }
.hero-anim.d5 { animation-delay: 0.45s; }
.hero-stage-anim { opacity: 0; transform: scale(0.94); animation: stageIn 1.2s var(--ease-out) 0.2s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes stageIn { to { opacity: 1; transform: none; } }
.float { animation: floaty 7s ease-in-out infinite; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .cta-row, .hero-meta, .hero-pill { justify-content: center; }
  .hero-stage { order: -1; min-height: 480px; margin-bottom: 20px; }
  .col-4, .col-3, .col-2 { grid-column: span 6; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat.col-6 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .personas { grid-template-columns: repeat(2, 1fr); }
  .tgrid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-badge { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .appstore-mini { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile {
    position: fixed; inset: 68px 0 auto 0;
    background: rgba(8, 9, 18, 0.96);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--hair);
    padding: 16px var(--pad) 28px;
    display: none; flex-direction: column; gap: 4px;
    z-index: 99;
  }
  .nav.open .nav-mobile { display: flex; animation: heroIn 0.4s var(--ease-out) forwards; }
  .nav-mobile a { padding: 14px 8px; font-size: 1.02rem; color: var(--text); border-bottom: 1px solid var(--hair); }
  .nav-mobile .btn { margin-top: 14px; }
  .loss-stages { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .feat.col-6 { grid-column: span 1; }
  .personas { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .showcase-stage { transform: scale(0.92); min-height: 520px; }
  .showcase-legend { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn, .hero .cta-row .appstore { justify-content: center; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-anim, .hero-stage-anim { opacity: 1; transform: none; }
  /* keep the signature glow as a calm static rim (mirrors the app's Reduce Motion path) */
  .cap-rim, .cap-bloom, .hero-aura, .hero-halo, .final-aura { animation: none !important; }
  .cap-rim { opacity: 0.95; }
  .cap-bloom { opacity: 0.85; filter: blur(13px) saturate(1.3); }
  .hero-halo { opacity: 0.5; scale: 1.03; }
}

/* ============================================================================
   SUPPORT PAGE
   ========================================================================== */
.support-contact {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  background: radial-gradient(120% 120% at 0% 0%, rgba(60,123,255,0.12), transparent 55%), var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 56px;
}
.support-contact .sc-text { max-width: 52ch; }
.support-contact h2 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.support-contact p { color: var(--text-2); font-size: 0.96rem; }
.support-contact .sc-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.support-h { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 8px 0 24px; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 64px; }
.support-card {
  background: var(--card); border: 1px solid var(--hair);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform 0.5s var(--spring), border-color 0.4s, background 0.4s;
}
.support-card:hover { transform: translateY(-4px); border-color: var(--hair-strong); background: var(--card-2); }
.support-card .sc-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--ic-bg, rgba(60,123,255,0.12));
  color: var(--ic, var(--c-blue));
  border: 1px solid rgba(255,255,255,0.06);
}
.support-card .sc-ic svg { width: 22px; height: 22px; }
.support-card h3 { font-size: 1.12rem; margin-bottom: 9px; letter-spacing: -0.01em; }
.support-card p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 16px; }
.sc-link { color: var(--c-blue); font-size: 0.9rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; transition: gap 0.3s; }
.support-card:hover .sc-link { gap: 10px; }

.support-faq { max-width: none; margin-bottom: 64px; }

.support-cta {
  text-align: center; border: 1px solid var(--hair); border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 64px);
  background: radial-gradient(120% 120% at 100% 0%, rgba(88,86,214,0.16), transparent 55%), var(--surface);
}
.support-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; letter-spacing: -0.03em; }
.support-cta > p { color: var(--text-2); max-width: 46ch; margin: 0 auto 28px; }
.support-fineprint { margin-top: 22px; font-size: 0.84rem; color: var(--text-3); }

@media (max-width: 1000px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-contact { flex-direction: column; align-items: flex-start; }
}
