/* ============================================================
   RESPIRA — marketing site
   Design tokens pulled from the real app (constants/theme.ts,
   design-tokens.json). Deep-forest atmosphere, mint→lime accents,
   serif display + clean sans, glass surfaces, breathing rhythm.
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
:root {
  /* surfaces */
  --bg:        #06110c;   /* base, a touch deeper than app #071510 for contrast */
  --bg-raise:  #071510;
  --bg-2:      #0a1c14;
  --glass:     rgba(255,255,255,0.035);
  --glass-2:   rgba(255,255,255,0.055);
  --stroke:    rgba(255,255,255,0.09);
  --stroke-2:  rgba(255,255,255,0.14);
  --line:      rgba(143,180,133,0.16);

  /* ink */
  --ink:       #EFF5EC;
  --ink-soft:  rgba(239,245,236,0.72);
  --ink-mute:  rgba(239,245,236,0.52);
  --ink-faint: rgba(239,245,236,0.34);

  /* brand */
  --mint:      #7AE0B0;
  --sage:      #8FB485;
  --lime:      #C8FF7A;
  --mint-dim:  rgba(122,224,176,0.14);
  --mint-glow: rgba(122,224,176,0.30);
  --amber:     #F5B041;
  --danger:    #E05A5A;
  --grad:      linear-gradient(105deg, var(--sage) 0%, var(--mint) 46%, var(--lime) 100%);

  /* type */
  --serif: "Fraunces", "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* metrics */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 22px;
  --radius-lg: 34px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* ---- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Full-page deck: each section is exactly one viewport and snaps edge-to-edge,
     so the next view never bleeds into the current one. */
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; scroll-snap-type: none; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(122,224,176,0.28); color: #fff; }

/* Ambient page grain + vignette layer */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(122,224,176,0.10), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(143,180,133,0.06), transparent 60%);
}

/* ---- Typography -------------------------------------------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.55rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}
.h2 { font-size: clamp(1.85rem, 3.7vw, 3rem); line-height: 1.04; letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.08; }
.serif-i { font-style: italic; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mint { color: var(--mint); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mint);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--mint); opacity: 0.6;
}
.eyebrow.center::before { display: none; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }
.kicker { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-mute); }

/* ---- Layout ------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }
/* Every section is one full screen; content is vertically centered inside it. */
.hero, .section, .final {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(78px, 7vh, 90px); /* clears the fixed nav; content is centered */
  position: relative;
  z-index: 1;
}
main > section, .footer { scroll-snap-align: start; scroll-snap-stop: always; }
/* The container is the flex child that holds each view's content */
.hero > .container, .section > .container, .final > .container { width: 100%; }
.section--tight { padding-block: clamp(44px, 6vh, 80px); }
.stack > * + * { margin-top: var(--gap, 1.25rem); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.95em 1.5em; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.4s, border-color 0.3s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--grad); color: #06231a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 34px -12px rgba(122,224,176,0.65);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 18px 44px -12px rgba(122,224,176,0.8); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--stroke-2); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--mint); background: var(--mint-dim); transform: translateY(-2px); }
.btn--lg { padding: 1.1em 1.9em; font-size: 1.05rem; }

/* App Store button */
.appstore {
  display: inline-flex; align-items: center; gap: 0.8em;
  padding: 0.5em 1.2em 0.5em 1.1em; border-radius: 14px;
  background: var(--ink); color: #06110c;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
  text-align: left;
}
.appstore:hover { transform: translateY(-2px); }
.appstore__text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.appstore svg { width: 32px; height: 32px; flex: none; }
.appstore .as-top { font-size: 0.65rem; letter-spacing: 0.02em; opacity: 0.8; line-height: 1.2; text-transform: uppercase; font-weight: 500; }
.appstore .as-big { font-family: var(--sans); font-size: 1.3rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-top: 1px; }
.appstore--dark { 
  background: rgba(255,255,255,0.04); color: var(--ink); 
  border: 1px solid rgba(255,255,255,0.12); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.appstore--dark:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---- Glass card -------------------------------------------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  position: relative;
}
.glass::after { /* top inner highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(6,17,12,0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6em; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px -6px rgba(122,224,176,0.6); }
.brand__word { font-family: var(--sans); font-weight: 700; letter-spacing: 0.16em; font-size: 0.92rem; text-transform: uppercase; }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.25s; position: relative; }
.nav__links a::after { content:""; position:absolute; left:0; right:100%; bottom:-6px; height:1px; background:var(--mint); transition: right 0.3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--stroke-2); align-items: center; justify-content: center; }
.nav__burger span { width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav__burger span::before, .nav__burger span::after { content:""; position:absolute; left:0; width:16px; height:1.5px; background:var(--ink); }
.nav__burger span::before { top: -5px; } .nav__burger span::after { top: 5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(84px, 11vh, 108px); padding-bottom: clamp(40px, 6vh, 64px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero__copy { position: relative; z-index: 3; }
.hero h1 { margin-top: 1.1rem; }
.hero__sub { margin-top: 1.6rem; max-width: 40ch; }
.hero__actions { margin-top: 2.2rem; }
.hero__meta { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.8rem; color: var(--ink-mute); font-size: 0.86rem; }
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* breathing stage */
.hero__stage { position: relative; z-index: 2; display: grid; place-items: center; min-height: min(78vh, 640px); }
.orb { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orb__glow {
  position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--mint-glow) 0%, rgba(143,180,133,0.10) 42%, transparent 68%);
  filter: blur(6px);
}
.orb__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(122,224,176,0.22); }
.orb__ring--1 { width: 96%; aspect-ratio: 1; }
.orb__ring--2 { width: 72%; aspect-ratio: 1; border-color: rgba(122,224,176,0.30); }
.orb__core {
  position: absolute; width: 44%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(200,255,122,0.55), transparent 55%),
    conic-gradient(from 210deg, var(--sage), var(--mint) 40%, var(--lime) 68%, var(--sage));
  box-shadow: 0 0 60px -6px var(--mint-glow), inset 0 0 40px rgba(255,255,255,0.15);
  filter: saturate(1.05);
}
.orb__cue {
  position: absolute; z-index: 4; font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.35rem); color: #06231a; letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(255,255,255,0.35);
}
.hero__device { position: relative; z-index: 3; }

/* device frame (reused) */
.device {
  --dw: 300px;
  width: var(--dw); aspect-ratio: 296 / 620;
  border-radius: 44px; padding: 9px;
  background: linear-gradient(160deg, #1d2a22, #060d09 60%);
  box-shadow:
    0 2px 2px rgba(255,255,255,0.08) inset,
    0 40px 90px -30px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.device::before { /* notch */
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #05100a; border-radius: 0 0 14px 14px; z-index: 3;
}
.device__screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #05100a; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device--float { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-16px) rotate(0.4deg); } }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4; display: grid; place-items: center; gap: 8px; color: var(--ink-faint); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.hero__scroll .mouse { width: 22px; height: 34px; border: 1px solid var(--stroke-2); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:3px; height:6px; border-radius:2px; background:var(--mint); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity:0; transform: translate(-50%, 0); } 30% { opacity:1; } 100% { opacity:0; transform: translate(-50%, 10px); } }

/* ============================================================
   MARQUEE / claim strip
   ============================================================ */
.strip { border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden; }
.marquee { display: flex; gap: 3.5rem; width: max-content; animation: slide 34s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.7rem); color: var(--ink-mute); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee span::after { content: "◦"; color: var(--mint); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ============================================================
   INSIGHT / philosophy
   ============================================================ */
.insight__lead { max-width: 20ch; }
.insight__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.contrast {
  border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--stroke); position: relative; overflow: hidden;
}
.contrast__tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.contrast h3 { margin-top: 1rem; font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.contrast p { margin-top: 0.9rem; color: var(--ink-mute); max-width: 34ch; }
.contrast--old { background: rgba(224,90,90,0.05); }
.contrast--old .contrast__tag { color: rgba(224,90,90,0.85); }
.contrast--old h3 { color: var(--ink-soft); }
.contrast--new { background: linear-gradient(160deg, rgba(122,224,176,0.12), rgba(122,224,176,0.02)); border-color: rgba(122,224,176,0.28); }
.contrast--new .contrast__tag { color: var(--mint); }
.contrast--new::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 60% at 90% 0%, rgba(200,255,122,0.14), transparent 60%); pointer-events:none; }

/* ============================================================
   CRAVING — ride the wave
   ============================================================ */
.wave-sec { position: relative; overflow: hidden; }
.wave-sec .container { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.wave-visual { position: relative; display: grid; place-items: center; gap: 8px; }
.wave-svg { width: 100%; height: auto; overflow: visible; }
.wave-devices { position: relative; display: grid; place-items: center; }
.wave-devices .device { --dw: 264px; }
.timeline-pill { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.5em 1em; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-soft); }
.timeline-pill b { color: var(--mint); font-weight: 600; }

/* ============================================================
   HEALING — recovery timeline + quit clock
   ============================================================ */
.healing__head { max-width: 52ch; }
.healing__body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); margin-top: clamp(40px, 6vw, 72px); align-items: center; }

/* quit clock counters */
.clock { display: grid; gap: 14px; }
.clock__card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; }
.clock__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--mint-dim); color: var(--mint); flex: none; }
.clock__icon svg { width: 22px; height: 22px; }
.clock__num { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; }
.clock__num .unit { font-size: 0.5em; color: var(--mint); margin-left: 0.15em; }
.clock__label { font-size: 0.8rem; color: var(--ink-mute); letter-spacing: 0.04em; margin-top: 4px; }
.clock__foot { font-size: 0.82rem; color: var(--ink-faint); margin-top: 4px; font-style: italic; font-family: var(--serif); }

/* milestone ladder */
.ladder { position: relative; padding-left: 12px; }
.ladder__line { position: absolute; left: 30px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ladder__fill { position: absolute; inset: 0; background: var(--grad); transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform 0.1s linear; }
.rung { display: flex; gap: 22px; align-items: flex-start; padding: 14px 0; position: relative; }
.rung__node {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--line); color: var(--ink-faint);
  font-family: var(--serif); font-size: 0.9rem; transition: all 0.5s var(--ease); z-index: 1; position: relative;
}
.rung.is-on .rung__node { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 0 6px var(--mint-dim), 0 0 22px -4px var(--mint-glow); background: var(--bg-raise); }
.rung__label { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.02em; }
.rung__phase { font-size: 0.8rem; color: var(--ink-mute); margin-top: 2px; }
.rung.is-on .rung__phase { color: var(--mint); }
.rung__time { margin-left: auto; font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; align-self: center; }

/* ============================================================
   FEATURES — bento, varied
   ============================================================ */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(18px, 2.4vw, 30px); }
.cell { border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--glass); padding: clamp(18px, 1.9vw, 26px); position: relative; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.4s, transform 0.5s var(--ease); }
.cell:hover { border-color: rgba(122,224,176,0.3); transform: translateY(-4px); }
.cell::after { content:""; position:absolute; inset:0; border-radius:inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); pointer-events:none; }
.cell h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.cell p { color: var(--ink-mute); margin-top: 0.6rem; font-size: 0.94rem; line-height: 1.5; }
.cell .waveform, .cell .privacy-badge { margin-top: auto; }
.cell .privacy-badge { align-self: flex-start; }
.cell__tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }
.cell__head { margin-bottom: 0.9rem; }

/* Clean rows, no row-spanning: 4+2 / 3+3 / 6 — always tiles perfectly. */
.cell--wide { grid-column: span 4; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cell--tall { grid-column: span 2; display: flex; flex-direction: column; }
.cell--half { grid-column: span 3; }
.cell--third { grid-column: span 2; }
.cell--full { grid-column: span 6; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.cell--tall .waveform { margin-top: auto; height: 120px; }

.cell .device { --dw: 210px; margin: 0 auto; }
.cell--half .device { margin-top: 1.5rem; }
.cell--tall .device { --dw: 236px; margin-top: 1.6rem; }

/* privacy badge */
.privacy-badge { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.85em; border-radius: 999px; background: var(--mint-dim); color: var(--mint); font-size: 0.76rem; font-weight: 600; margin-top: 1rem; }

/* sound waveform */
.waveform { display: flex; align-items: center; gap: 4px; height: 54px; margin-top: 1.1rem; }
.waveform i { flex: 1; background: var(--grad); border-radius: 3px; opacity: 0.75; height: 30%; animation: eq 1.6s ease-in-out infinite; }
@keyframes eq { 0%,100% { height: 22%; } 50% { height: 90%; } }
@media (prefers-reduced-motion: reduce) { .waveform i { animation: none; height: 55%; } }

/* mini watch */
.watch { width: 132px; aspect-ratio: 5/6; border-radius: 34px; background: linear-gradient(160deg,#1d2a22,#070f0b); padding: 14px; box-shadow: 0 24px 50px -22px rgba(0,0,0,0.9); margin: 0 auto; }
.watch__face { width: 100%; height: 100%; border-radius: 24px; background: radial-gradient(circle at 50% 40%, #0c1f16, #05100a); display: grid; place-items: center; text-align: center; padding: 8px; }
.watch__face .t { font-family: var(--serif); font-size: 1.5rem; color: var(--mint); line-height: 1; }
.watch__face .l { font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px); margin-top: clamp(44px, 6vw, 72px); }
.step { text-align: center; }
.step__n { font-family: var(--serif); font-size: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mint); color: var(--mint); display: grid; place-items: center; margin: 0 auto 1.4rem; }
.step .device { --dw: 220px; margin: 0 auto 1.8rem; }
.step h3 { font-size: 1.4rem; }
.step p { color: var(--ink-mute); margin-top: 0.6rem; font-size: 0.95rem; max-width: 32ch; margin-inline: auto; }

/* ============================================================
   TRANSFORMATION
   ============================================================ */
.transform { text-align: center; position: relative; overflow: hidden; padding-block: clamp(90px, 13vh, 150px); }
.transform__aura { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(120vw, 900px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(122,224,176,0.16), transparent 60%); animation: breathe-aura 10s var(--ease) infinite; z-index: 0; }
@keyframes breathe-aura { 0%,100% { transform: translate(-50%,-50%) scale(0.85); opacity: 0.6; } 45% { transform: translate(-50%,-50%) scale(1.1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .transform__aura { animation: none; } }
.transform .display { position: relative; z-index: 1; max-width: 16ch; margin-inline: auto; }
.transform .lead { position: relative; z-index: 1; margin: 1.8rem auto 0; max-width: 48ch; }
.transform__quote { position: relative; z-index: 1; margin-top: 3rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,2.4vw,2rem); color: var(--mint); }

/* ============================================================
   TRUST
   ============================================================ */
.trust__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: clamp(40px,5vw,64px); }
.trust__card { border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--glass); padding: 30px; }
.trust__card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mint-dim); color: var(--mint); display: grid; place-items: center; margin-bottom: 1.1rem; }
.trust__card h3 { font-size: 1.3rem; }
.trust__card p { color: var(--ink-mute); margin-top: 0.6rem; font-size: 0.92rem; }
.reserved { margin-top: 24px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 14px; align-items: center; color: var(--ink-mute); font-size: 0.9rem; }
.reserved .stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; margin-top: clamp(36px,5vw,56px); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; font-family: var(--serif); font-size: clamp(1.15rem,1.9vw,1.5rem); letter-spacing: -0.01em; transition: color 0.3s; }
.faq__q:hover { color: var(--mint); }
.faq__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--stroke-2); display: grid; place-items: center; position: relative; transition: border-color 0.3s, background 0.3s; }
.faq__icon::before, .faq__icon::after { content:""; position:absolute; background: var(--ink-soft); transition: transform 0.35s var(--ease), background 0.3s; }
.faq__icon::before { width: 12px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 12px; }
.faq__item.is-open .faq__icon { border-color: var(--mint); background: var(--mint-dim); }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__item.is-open .faq__icon::before { background: var(--mint); }
.faq__a { overflow: hidden; height: 0; }
.faq__a p { color: var(--ink-mute); padding: 0 4px 28px; max-width: 68ch; font-size: 0.98rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { position: relative; overflow: hidden; text-align: center; padding-block: clamp(80px,11vh,140px); }
.final__card { position: relative; z-index: 1; border-radius: var(--radius-lg); padding: clamp(44px,6vw,90px) var(--pad); border: 1px solid rgba(122,224,176,0.24); background: linear-gradient(165deg, rgba(122,224,176,0.10), rgba(7,21,16,0.4)); overflow: hidden; }
.final__card::before { content:""; position:absolute; left:50%; top:-30%; transform:translateX(-50%); width: 70%; aspect-ratio:1; background: radial-gradient(circle, rgba(200,255,122,0.16), transparent 60%); pointer-events:none; }
.final .display { max-width: 18ch; margin: 0 auto; position: relative; z-index: 1; }
.final .lead { margin: 1.5rem auto 2.4rem; max-width: 44ch; }
.final__actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.final__fine { font-size: 0.82rem; color: var(--ink-faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: clamp(56px,8vh,88px) 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { color: var(--ink-mute); font-size: 0.9rem; margin-top: 1.1rem; max-width: 32ch; }
.footer__col h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 1.1rem; }
.footer__col a { display: block; color: var(--ink-soft); font-size: 0.92rem; padding: 0.35em 0; transition: color 0.25s; }
.footer__col a:hover { color: var(--mint); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: clamp(44px,6vw,72px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.82rem; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--stroke); display: grid; place-items: center; color: var(--ink-soft); transition: all 0.3s; }
.footer__socials a:hover { border-color: var(--mint); color: var(--mint); background: var(--mint-dim); }
.footer__disclaimer { color: var(--ink-faint); font-size: 0.78rem; line-height: 1.6; margin-top: 28px; max-width: 80ch; }

/* ============================================================
   REVEAL ANIMATIONS (JS-gated so no-JS shows everything)
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal="fade"] { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .device--float, .orb__core, .hero__scroll .mouse::after { animation: none !important; }
}

/* ============================================================
   ATMOSPHERE — cosmic-forest backdrop (matches the app: starfield + aurora)
   ============================================================ */
/* Isolated onto its own compositor layer so it never repaints on scroll. */
.atmos { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transform: translateZ(0); will-change: transform; }
.atmos__stars {
  position: absolute; inset: -20%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(200,255,122,0.55), transparent),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 44% 14%, rgba(122,224,176,0.5), transparent),
    radial-gradient(1.5px 1.5px at 62% 44%, rgba(255,255,255,0.42), transparent),
    radial-gradient(1px 1px at 78% 26%, rgba(200,255,122,0.4), transparent),
    radial-gradient(1.2px 1.2px at 88% 62%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 8% 82%, rgba(122,224,176,0.4), transparent),
    radial-gradient(1.3px 1.3px at 52% 88%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 34% 40%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 70% 78%, rgba(200,255,122,0.35), transparent);
  background-repeat: repeat;
  background-size: 340px 340px;
  opacity: 0.55;
  animation: twinkle 9s ease-in-out infinite;
}
/* No blur()/mix-blend-mode — the radial gradient's own falloff is the softness
   (blur + screen-blend were re-compositing the whole viewport every scroll frame). */
.atmos__aurora { position: absolute; border-radius: 50%; will-change: transform; }
.atmos__aurora--1 { width: 64vw; height: 64vw; left: -16vw; top: -24vh; background: radial-gradient(circle, rgba(122,224,176,0.20), transparent 58%); animation: drift-a 30s ease-in-out infinite; }
.atmos__aurora--2 { width: 56vw; height: 56vw; right: -18vw; top: 32vh; background: radial-gradient(circle, rgba(143,180,133,0.17), transparent 58%); animation: drift-b 38s ease-in-out infinite; }
.atmos__aurora--3 { width: 48vw; height: 48vw; left: 24vw; bottom: -22vh; background: radial-gradient(circle, rgba(200,255,122,0.11), transparent 58%); animation: drift-a 44s ease-in-out infinite reverse; }
@keyframes twinkle { 0%,100% { opacity: 0.4; } 50% { opacity: 0.7; } }
@keyframes drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,3vh) scale(1.08); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,-2vh) scale(1.06); } }

/* faint grain so surfaces read as material, not flat black */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  transform: translateZ(0); /* own layer — no repaint on scroll */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .atmos__stars, .atmos__aurora { animation: none; }
}

/* ============================================================
   ORB — breath-trace progress ring (the signature moment)
   ============================================================ */
.orb__trace { position: absolute; width: 66%; aspect-ratio: 1; transform: rotate(-90deg); overflow: visible; }
.orb__track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 1.4; }
.orb__prog {
  fill: none; stroke: url(#breathGrad); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 289.03; stroke-dashoffset: 289.03;
  filter: drop-shadow(0 0 7px rgba(122,224,176,0.65));
}
/* strengthen the ambient orb rings + core bloom */
.orb__ring--1 { border-color: rgba(122,224,176,0.16); }
.orb__ring--2 { border-color: rgba(122,224,176,0.24); }
.orb__glow { filter: blur(10px); }

/* ============================================================
   CURSOR-FOLLOW GLOW on cards (premium hover)
   ============================================================ */
.cell, .contrast, .trust__card { --mx: 50%; --my: 50%; }
.cell::before, .contrast::before, .trust__card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(122,224,176,0.12), transparent 62%);
  opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none;
}
.cell:hover::before, .contrast:hover::before, .trust__card:hover::before { opacity: 1; }

/* ============================================================
   SECTION DEPTH — soft directional glows
   ============================================================ */
#insight, #healing, #features { position: relative; }
#insight::before, #healing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 42% at 88% 8%, rgba(122,224,176,0.07), transparent 60%);
}
#features::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 38% at 6% 20%, rgba(143,180,133,0.06), transparent 60%);
}

/* nav scroll-spy active link */
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { right: 0; }

/* ============================================================
   APPLE WATCH section
   ============================================================ */
.watch-sec { position: relative; overflow: hidden; }
.watch-sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(46% 60% at 78% 50%, rgba(122,224,176,0.10), transparent 60%);
}
.watch-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.watch-feats { list-style: none; margin-top: 1.9rem; display: grid; gap: 1.1rem; }
.watch-feats li { display: flex; gap: 0.85rem; color: var(--ink-mute); font-size: 1rem; line-height: 1.5; }
.watch-feats b { color: var(--ink); font-weight: 600; }
.watch-feats__ic { color: var(--mint); flex: none; margin-top: 0.05em; font-size: 0.9em; }

.watch-stage { display: grid; place-items: center; }

/* the watch itself */
.awatch {
  width: clamp(260px, 30vw, 320px); aspect-ratio: 42 / 51;
  border-radius: 26% / 22%; padding: 13px;
  background: linear-gradient(150deg, #33383400, #33383400), linear-gradient(155deg, #2b312d, #0a0f0c 62%);
  box-shadow: 0 44px 100px -34px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.05), inset 0 2px 3px rgba(255,255,255,0.09);
  position: relative;
}
/* digital crown + side button */
.awatch::before { content: ""; position: absolute; right: -4px; top: 34%; width: 5px; height: 34px; border-radius: 3px; background: linear-gradient(#4a524c, #1c211d); box-shadow: inset 0 0 2px rgba(255,255,255,0.2); }
.awatch::after { content: ""; position: absolute; right: -3px; top: 56%; width: 4px; height: 46px; border-radius: 3px; background: linear-gradient(#3a413b, #171b18); }
.awatch__screen {
  width: 100%; height: 100%; border-radius: 20% / 17%; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -6%, #0e241a, #050f0a 72%);
  padding: 14px 15px 12px; display: flex; flex-direction: column; gap: 7px; position: relative;
}
.awatch__screen::before { /* ambient aurora inside */
  content: ""; position: absolute; left: 50%; top: 8%; width: 120%; height: 55%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(122,224,176,0.16), transparent 60%); pointer-events: none;
}
.awatch__top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.awatch__brand { font-family: var(--sans); font-size: 0.5rem; letter-spacing: 0.24em; color: var(--mint); font-weight: 700; }
.awatch__time { font-size: 0.56rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.awatch__milestone { font-size: 0.46rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-mute); text-align: center; position: relative; z-index: 1; }

.coco { position: relative; width: 63%; aspect-ratio: 1; margin: 2px auto; }
.coco__svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.coco__track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 5; }
.coco__arc {
  fill: none; stroke: url(#cocoGrad); stroke-width: 5.5; stroke-linecap: round;
  stroke-dasharray: 270.18; stroke-dashoffset: 124.28; /* 46% remaining of r=43 */
  filter: drop-shadow(0 0 4px rgba(122,224,176,0.6));
}
.coco__orbit { fill: #C8FF7A; filter: drop-shadow(0 0 5px rgba(200,255,122,0.95)); transform-box: view-box; transform-origin: 50px 50px; animation: orbit 7s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.coco__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.coco__num { font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 1.6rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.coco__num span { color: var(--mint); font-size: 0.66em; }
.coco__lbl { font-size: 0.46rem; letter-spacing: 0.18em; color: var(--ink-mute); margin-top: 5px; }
.coco__pct { font-size: 0.46rem; letter-spacing: 0.1em; color: var(--mint); margin-top: 3px; }

.awatch__stats { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 7px 5px; border-radius: 13px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.11); text-align: center; position: relative; z-index: 1; }
.awatch__stats div { display: grid; gap: 2px; font-size: 0.62rem; color: var(--ink); font-weight: 600; }
.awatch__stats span { font-size: 0.42rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .coco__orbit { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  /* deck: tighter vertical rhythm so each view still fits one screen */
  .hero, .section, .final { padding-block: clamp(74px, 5vh, 84px); }
  .hero__grid { grid-template-columns: 1fr; gap: 18px; }
  .hero { padding-top: clamp(84px, 11vh, 100px); }
  .hero__stage { min-height: auto; order: 0; margin-top: 14px; }
  .hero__sub { margin-inline: 0; }
  .hero__scroll { display: none; }
  .wave-sec .container { grid-template-columns: 1fr; gap: 18px; }
  .healing__body { grid-template-columns: 1fr; gap: 18px; margin-top: clamp(22px,4vw,34px); }
  .watch-grid { grid-template-columns: 1fr; gap: 14px; }
  .watch-stage { margin-top: 4px; }
  .insight__cols { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }

  /* How it works — the 3 phone mockups can't fit a phone-height view, so on mobile
     it becomes a compact numbered list (icon + words). */
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 14px; margin-top: clamp(22px,4vw,32px); }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 16px; text-align: left; align-items: center; }
  .step .device { display: none; }
  .step__n { margin: 0; }
  .step h3 { font-size: 1.2rem; }
  .step p { margin-inline: 0; max-width: none; }

  /* watch mockup a touch smaller when stacked */
  .awatch { width: clamp(220px, 58vw, 270px); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .device { border-radius: 20px; padding: 4px; }
  .device__screen { border-radius: 16px; }
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  /* keep the 2×2 bento (single column would be too tall for one view) */
  .bento { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cell { padding: 15px 16px; }
  .cell h3 { font-size: 1.02rem; }
  .cell p { font-size: 0.82rem; margin-top: 0.4rem; }
  .cell__head { margin-bottom: 0.6rem; }
  .waveform { height: 40px; }
  .privacy-badge { font-size: 0.66rem; }
  /* dial section headings down so tall sections fit a phone screen */
  .h2 { font-size: clamp(1.55rem, 5.6vw, 2rem); }
  .lead { font-size: 1rem; }
  .healing__head, .measure { max-width: none; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .contrast p, .cell p { max-width: none; }
  .contrast { padding: 22px; }
  .contrast h3 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  /* compact quit-clock cards */
  .clock__card { padding: 14px 16px; gap: 14px; }
  .clock__num { font-size: 1.5rem; }
  .rung { padding: 9px 0; }

  /* Hero fits one view: store buttons share a row, drop the redundant secondary
     link (it's in the nav), compact the meta, shrink the device. */
  .hero__actions .btn--ghost { display: none; }
  .hero__actions .appstore { flex: 1 1 150px; padding: 0.62em 0.9em; gap: 0.45em; }
  .hero__actions .appstore .as-big { font-size: 0.98rem; white-space: nowrap; }
  .hero__actions .appstore .as-top { font-size: 0.56rem; }
  .hero__actions .appstore svg { width: 22px; height: 22px; }
  .hero__meta { flex-wrap: wrap; gap: 0.3rem 0.7rem; font-size: 0.76rem; margin-top: 1.1rem; }
  .hero__stage { margin-top: 10px; }
  .hero .device { --dw: 162px; }
}
/* ===== Deck-fit for phones: keep every section within one screen ===== */
@media (max-width: 720px) {
  .hero, .section, .final { padding-block: clamp(54px, 3vh, 64px); }
  .hero .device { --dw: 104px; }
  .hero__sub { font-size: 0.94rem; }
  .eyebrow { font-size: 0.66rem; }
  .lead { line-height: 1.5; }

  /* craving: drop the decorative wave curve, shrink the device */
  .wave-svg { display: none; }
  .wave-devices { margin-top: 4px !important; }
  .wave-devices .device { --dw: 138px; }
  .timeline-pill { margin-top: 0.8rem; font-size: 0.76rem; }

  /* healing: counters become a compact 3-across row; tighter ladder */
  .healing__body { margin-top: 20px; }
  .clock { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .clock__card { flex-direction: column; text-align: center; padding: 12px 6px; gap: 7px; }
  .clock__icon { width: 34px; height: 34px; }
  .clock__num { font-size: 1.15rem; }
  .clock__num .unit { display: block; font-size: 0.42em; margin: 2px 0 0; }
  .clock__label { font-size: 0.62rem; }
  .clock__foot { display: none; }
  .rung { padding: 6px 0; }
  .rung__node { width: 30px; height: 30px; }
  .rung__label { font-size: 1rem; }
  .rung__phase { font-size: 0.7rem; }
  .rung__time { display: none; }
  .ladder__line { left: 24px; }

  /* watch: smaller mockup + tighter list */
  .awatch { width: clamp(168px, 46vw, 186px); }
  .watch-feats { gap: 0.5rem; margin-top: 0.9rem; }
  .watch-feats li { font-size: 0.82rem; line-height: 1.38; }
  .watch-sec .privacy-badge { margin-top: 0.9rem; }

  /* trust: icon-left horizontal cards; hide the reserved placeholder */
  .trust__grid { gap: 9px; margin-top: 22px; }
  .trust__card { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; align-items: start; padding: 13px 15px; }
  .trust__card .ico { width: 34px; height: 34px; margin-bottom: 0; grid-row: 1 / span 2; align-self: start; }
  .trust__card h3 { grid-column: 2; font-size: 1.04rem; }
  .trust__card p { grid-column: 2; font-size: 0.81rem; margin-top: 0.3rem; }
  .reserved { display: none; }

  /* footer: 2-column links + compact disclaimer so it reads as one closing view */
  .footer__top { grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__disclaimer { font-size: 0.7rem; margin-top: 18px; }
  .footer__bottom { margin-top: 20px; padding-top: 18px; }

  /* how it works: tighten step rows */
  .steps { gap: 10px; }
  .step p { font-size: 0.86rem; }
}

/* let the hero headline wrap naturally on phones instead of forcing desktop line breaks */
@media (max-width: 560px) {
  .hero h1 br { display: none; }
}
@media (max-width: 420px) {
  .hero__meta { font-size: 0.74rem; }
  .final .btn-row { flex-direction: column; }
  .final .appstore { width: 100%; }
}

/* mobile nav sheet */
.sheet { position: fixed; inset: 0; z-index: 200; background: rgba(6,17,12,0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: grid; align-content: center; justify-items: center; gap: 1.6rem; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.sheet.is-open { opacity: 1; pointer-events: auto; }
.sheet a { font-family: var(--serif); font-size: 2rem; color: var(--ink); }
.sheet a:hover { color: var(--mint); }
.sheet__close { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--stroke-2); font-size: 1.4rem; }

/* ============================================================
   OPENING SPLASH (mirrors the app launch screen)
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 300; padding: 24px;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 90% at 50% 26%, #0c2018, #050f0a 74%);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease), visibility 0.9s;
  animation: introFail 0.01s linear 6s forwards; /* fallback if JS never dismisses it */
}
@keyframes introFail { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro.is-hidden { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
.intro__inner { display: grid; justify-items: center; animation: intro-rise 1.1s var(--ease) both; }
.intro__art {
  width: min(58vw, 280px); aspect-ratio: 1; border-radius: 32px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 40px 100px -34px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.08);
}
.intro__art img { width: 100%; height: 100%; object-fit: cover; animation: intro-breathe 6s var(--ease) infinite; transform-origin: 50% 55%; }
@keyframes intro-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.intro__eyebrow { margin-top: clamp(1.8rem, 4vh, 2.6rem); font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: var(--mint); }
.intro__word { margin-top: 0.6rem; font-family: var(--sans); font-weight: 800; font-size: clamp(2.9rem, 9vw, 4.2rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.intro__sub { margin-top: 0.9rem; max-width: 22ch; color: var(--ink-mute); font-size: clamp(1rem, 2.6vw, 1.12rem); line-height: 1.45; }
.intro__skip { position: absolute; bottom: clamp(28px, 5vh, 44px); left: 50%; transform: translateX(-50%); color: var(--ink-mute); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; gap: 0.55em; align-items: center; transition: color 0.3s; }
.intro__skip:hover { color: var(--mint); }
.intro__skip span { animation: intro-chev 1.6s var(--ease) infinite; }
@keyframes intro-chev { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .intro__art img, .intro__inner, .intro__skip span { animation: none; }
}

/* ============================================================
   SPLASH SECTION (Initial view)
   ============================================================ */
.splash-sec {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.splash__stage {
  width: min(58vw, 240px); aspect-ratio: 1; border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 40px 100px -34px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.08);
  margin: 0 auto;
  position: relative;
  background: rgba(15, 31, 23, 0.95);
}
.splash__glow {
  position: absolute;
  top: 15%; left: 15%; right: 15%; bottom: 15%;
  background: radial-gradient(circle, rgba(155,203,109,0.3) 0%, transparent 70%);
  animation: glowPulse 5s var(--ease) forwards;
}
.splash__lungs, .splash__lungs-lit {
  position: absolute;
  top: 10%; left: 10%; width: 80%; height: 80%;
  object-fit: contain;
  transform-origin: 50% 86%;
}
.splash__lungs {
  animation: lungGrow 5s var(--ease) forwards;
}
.splash__lungs-lit {
  animation: lungPulse 5s var(--ease) forwards;
}
.cig__container {
  position: absolute;
  bottom: 8%; left: 20%; width: 60%; height: 50%;
}
.cig__whole, .cig__left, .cig__right {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  object-fit: contain;
}
.cig__whole {
  animation: cigWhole 5s linear forwards;
}
.cig__left {
  animation: cigLeft 5s var(--ease) forwards;
  opacity: 0;
  transform-origin: 99.8% 33.8%;
}
.cig__right {
  animation: cigRight 5s var(--ease) forwards;
  opacity: 0;
  transform-origin: 0.7% 25.5%;
}
.cig__flash {
  position: absolute;
  left: 50%; top: 50%;
  width: 60px; height: 60px;
  background: rgba(255,248,224,0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: cigFlash 5s var(--ease) forwards;
}
.cig__crumb {
  position: absolute;
  width: 5px; height: 4px; border-radius: 2px;
  background: #7a4e1d;
  left: 50%; top: 50%;
  opacity: 0;
}
.cig__crumb--1 { animation: crumb1 5s var(--ease) forwards; }
.cig__crumb--2 { animation: crumb2 5s var(--ease) forwards; }
.cig__crumb--3 { animation: crumb3 5s var(--ease) forwards; }

@keyframes lungGrow {
  0% { transform: scale(0.6); opacity: 0; }
  15% { transform: scale(0.6); opacity: 0; }
  35% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes lungPulse {
  0%, 30% { opacity: 0; transform: scale(0.6); }
  45% { opacity: 0.8; transform: scale(1.02); }
  100% { opacity: 0.2; transform: scale(1); }
}
@keyframes glowPulse {
  0%, 20% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.6; transform: scale(1); }
}
@keyframes cigWhole {
  0%, 15% { opacity: 1; }
  15.1%, 100% { opacity: 0; }
}
@keyframes cigLeft {
  0%, 15% { opacity: 0; transform: translate(calc(-50% - 4px), calc(-50% + 0px)) rotate(-2deg); }
  15.1% { opacity: 1; transform: translate(calc(-50% - 4px), calc(-50% + 0px)) rotate(-2deg); }
  40%, 100% { opacity: 1; transform: translate(calc(-50% - 11px), calc(-50% + 8px)) rotate(-7deg); }
}
@keyframes cigRight {
  0%, 15% { opacity: 0; transform: translate(calc(-50% + 4px), calc(-50% + 0px)) rotate(2deg); }
  15.1% { opacity: 1; transform: translate(calc(-50% + 4px), calc(-50% + 0px)) rotate(2deg); }
  40%, 100% { opacity: 1; transform: translate(calc(-50% + 13px), calc(-50% + 10px)) rotate(6deg); }
}
@keyframes cigFlash {
  0%, 14% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  30%, 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
@keyframes crumb1 {
  15.1% { opacity: 1; transform: translate(-10px, 0px) rotate(10deg); }
  35%, 100% { opacity: 0; transform: translate(-30px, 40px) rotate(60deg); }
}
@keyframes crumb2 {
  15.1% { opacity: 1; transform: translate(10px, -5px) rotate(-20deg); }
  35%, 100% { opacity: 0; transform: translate(40px, 30px) rotate(-90deg); }
}
@keyframes crumb3 {
  15.1% { opacity: 1; transform: translate(0px, -10px) rotate(45deg); }
  35%, 100% { opacity: 0; transform: translate(-5px, 50px) rotate(120deg); }
}

.mouse-icon {
  width: 22px; height: 34px; border: 1px solid var(--stroke-2); border-radius: 12px; position: relative; margin: 1rem auto 0;
}
.mouse-icon::after {
  content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:3px; height:6px; border-radius:2px; background:var(--mint); animation: wheel 1.8s var(--ease) infinite;
}

/* ============================================================
   ORGANIC BACKDROP (Behind hero device)
   ============================================================ */
.organic-backdrop {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.organic-blob {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  background: var(--grad);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.55;
  filter: blur(24px) saturate(1.2);
  animation: morph 12s ease-in-out infinite alternate;
}
.organic-blob--1 {
  background: radial-gradient(circle at 30% 30%, var(--mint), var(--lime) 80%);
  transform: rotate(0deg);
}
.organic-blob--2 {
  width: 65%;
  background: radial-gradient(circle at 70% 70%, var(--sage), transparent 80%);
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  animation: morph-alt 10s ease-in-out infinite alternate;
  opacity: 0.7;
  filter: blur(16px);
}
.organic-glass {
  position: absolute; inset: 10%; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}
.organic-glow {
  position: absolute; width: 110%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 68%);
  filter: blur(30px);
  z-index: -1;
}
@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: rotate(45deg) scale(1.05); }
}
@keyframes morph-alt {
  0% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; transform: rotate(-20deg) scale(1); }
  100% { border-radius: 30% 70% 70% 30% / 50% 40% 60% 50%; transform: rotate(20deg) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .organic-blob, .splash__art img, .mouse-icon::after { animation: none !important; }
}
