/*
  Hale & Hearty Food Diary: website styles.

  Dark "night garden" canvas with the app's spectrum as the one bright
  thing, cream paper slabs for rhythm. Every page reads in full without
  JavaScript; motion is layered on by /js/*.js, and anything JS hides
  until it plays is gated on html.js / html.motion (set by boot.js).
*/

@font-face {
  font-family: "Fraunces";
  src: url(/fonts/fraunces-soft.woff2) format("woff2-variations"), url(/fonts/fraunces-soft.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url(/fonts/fraunces-soft-italic.woff2) format("woff2-variations"), url(/fonts/fraunces-soft-italic.woff2) format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0d0319;
  --ink-2: #140726;
  --plum: #1d0b35;
  --plum-2: #2a1250;
  --surface: #3a0d6f;
  --lilac: #cbb8ff;
  --cream: #f6f0e8;
  --cream-2: #efe6da;
  --paper-ink: #1b0f26;
  --paper-muted: #5f5169;
  --orange: #ff7324;
  --text: #f6f1ff;
  --muted: rgb(246 241 255 / 0.66);
  --faint: rgb(246 241 255 / 0.4);
  --line: rgb(255 255 255 / 0.1);
  --line-2: rgb(255 255 255 / 0.16);
  --magenta: #c026d3;
  --red: #ef4444;
  --yellow: #eab308;
  --green: #22c55e;
  --spectrum: linear-gradient(90deg, #d946ef, #ef4444 34%, #f5b400 67%, #22c55e);
  --spectrum-text: linear-gradient(90deg, #e879f9, #ff6b6b 30%, #ffc53d 62%, #4ade80 88%, #e879f9);

  --display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --radius-xl: clamp(28px, 3.6vw, 52px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  color-scheme: dark;
}

/* ─────────────────────────── Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: #ff7324; color: #140726; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 10001;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ─────────────────────────── Type */
h1, h2, .display {
  font-family: var(--display);
  font-weight: 420;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}
h2 { font-size: clamp(2.5rem, 5.6vw, 5.4rem); }
h2 em, h1 em, .manifesto-text em, .pattern-quote em {
  font-style: italic;
  font-weight: 380;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lilac);
}
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--spectrum);
}
.section-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-lede {
  max-width: 40rem; margin-top: 26px;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--muted);
}
.section-head.center .section-lede { margin-inline: auto; }

.spectrum-text {
  background: var(--spectrum-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-right: 0.06em;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--line-2);
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid #4ade80; opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.text-link:hover { background-size: 100% 1.5px; }
.text-link span { transition: transform 0.4s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ─────────────────────────── App Store badge: Apple's artwork, untouched, never animated. */
.badge { display: inline-block; line-height: 0; }
.badge img { height: 48px; width: auto; }
.badge.large img { height: 60px; }
.soon { margin-top: 12px; font-size: 0.9rem; color: var(--faint); }

/* ─────────────────────────── Devices */
.iphone { position: relative; aspect-ratio: 1350 / 2760; }
.iphone .screen {
  position: absolute; left: 5.2593%; top: 2.4638%; width: 89.4815%; height: 95.0725%;
  object-fit: cover; object-position: top;
  background: #10041e;
  -webkit-mask: url(/assets/devices/iphone-screen-mask.png) 0 0 / 100% 100% no-repeat;
  mask: url(/assets/devices/iphone-screen-mask.png) 0 0 / 100% 100% no-repeat;
}
.iphone .bezel, .watch .bezel {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.watch { position: relative; aspect-ratio: 600 / 940; }
.iphone .screen-layer {
  position: absolute; left: 5.2593%; top: 2.4638%; width: 89.4815%; height: 95.0725%;
  overflow: hidden; pointer-events: none;
  -webkit-mask: url(/assets/devices/iphone-screen-mask.png) 0 0 / 100% 100% no-repeat;
  mask: url(/assets/devices/iphone-screen-mask.png) 0 0 / 100% 100% no-repeat;
}
.screen-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The Movement streak, as ActivityStreakView draws it: a 5pt arc on the
   track, a filled disc once the goal is met, a bridge between met days. */
.streak .met, .streak .bridge { fill: #fd4013; }
.streak .arc { fill: none; stroke: #fd4013; stroke-width: 9; stroke-linecap: round; }
.streak text {
  font: 500 32px var(--sans); fill: #363636;
  text-anchor: middle; dominant-baseline: central;
}
/* The water card, over the capture's own card (x 29, y 465.5, 658 x 392.5). */
.water-card {
  position: absolute; left: 4.0446%; top: 29.8397%; width: 91.7713%; height: 25.1603%;
  pointer-events: auto; cursor: pointer;
}

/* ─────────────────────────── Loader (first visit only) */
.loader { display: none; }
html.intro .loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--ink);
  animation: loader-out 0.9s 3.2s var(--ease) forwards; /* safety net if JS never arrives */
}
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.loader-band { width: min(260px, 60vw); height: 6px; border-radius: 6px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.loader-band span { display: block; height: 100%; background: var(--spectrum); transform-origin: left; transform: scaleX(0); }
html.intro .loader-band span { animation: load 1.3s var(--ease) 0.1s forwards; }
@keyframes load { to { transform: scaleX(1); } }
.loader-word { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; }
.loader-word em { font-style: italic; color: var(--lilac); }

/* ─────────────────────────── Aurora (WebGL, /js/aurora.js) */
.aurora-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 18% 78%, rgb(217 70 239 / 0.32), transparent 70%),
    radial-gradient(50% 36% at 50% 82%, rgb(239 68 68 / 0.22), transparent 70%),
    radial-gradient(50% 40% at 80% 76%, rgb(234 179 8 / 0.18), transparent 70%),
    radial-gradient(40% 40% at 96% 70%, rgb(34 197 94 / 0.18), transparent 70%),
    var(--ink);
  transition: opacity 0.6s;
}
html.webgl .aurora-layer { background: var(--ink); }
.aurora-layer canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
html.webgl .aurora-layer canvas { opacity: 1; }
main, .site-footer { position: relative; z-index: 1; }

/* ─────────────────────────── Scroll meter */
.scroll-meter { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 1002; pointer-events: none; }
.scroll-meter span { display: block; height: 100%; background: var(--spectrum); transform-origin: left; transform: scaleX(0); }

/* ─────────────────────────── Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px var(--gutter);
  transition: transform 0.6s var(--ease);
}
.site-header.is-hidden { transform: translateY(-120%); }
.nav {
  display: flex; align-items: center; gap: 24px;
  width: min(1280px, 100%); margin-inline: auto;
  padding: 10px 10px 10px 16px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), max-width 0.7s var(--ease);
}
html:not(.js) .site-header .nav,
.site-header.is-scrolled .nav {
  max-width: 920px;
  background: rgb(20 7 38 / 0.62);
  border-color: var(--line-2);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; color: var(--muted); text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / 0.07); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--ink);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}
.nav-cta svg { width: 14px; height: 17px; fill: currentColor; margin-top: -2px; }
.nav-cta:hover { background: var(--orange); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; padding: 9px 14px; }
  html.js .nav-toggle {
    position: relative; display: grid; place-content: center; gap: 6px;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
    background: rgb(255 255 255 / 0.06); cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; width: 16px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
  html.nav-open .nav-toggle span:first-child { transform: translateY(3.9px) rotate(45deg); }
  html.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.9px) rotate(-45deg); }
  html.js .nav-links {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 100px var(--gutter) 60px;
    background: rgb(13 3 25 / 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  html.nav-open .nav-links { opacity: 1; visibility: visible; }
  html.js .nav-links a {
    font-family: var(--display); font-variation-settings: "SOFT" 100;
    font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: 420; letter-spacing: -0.03em;
    color: var(--text); padding: 4px 0; background: none;
    transform: translateY(24px); opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  }
  html.nav-open .nav-links a { transform: none; opacity: 1; }
  html.nav-open .nav-links li:nth-child(2) a { transition-delay: 0.04s; }
  html.nav-open .nav-links li:nth-child(3) a { transition-delay: 0.08s; }
  html.nav-open .nav-links li:nth-child(4) a { transition-delay: 0.12s; }
  html.nav-open .nav-links li:nth-child(5) a { transition-delay: 0.16s; }
  html.nav-open .site-header .nav { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 420px) { .nav-cta span { display: none; } .nav-cta { padding: 12px; } .nav-cta svg { margin: -2px 0 0; } }

/* ─────────────────────────── Custom cursor (fine pointers, motion on) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s, opacity 0.3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-label {
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  background: var(--orange); mix-blend-mode: normal;
}
.cursor b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  opacity: 0; transition: opacity 0.25s;
}
.cursor.is-label b { opacity: 1; }
.cursor.is-down { transform: scale(0.8); }
html.has-cursor [data-cursor], html.has-cursor [data-cursor] * { cursor: none; }

/* ─────────────────────────── Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: clip;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18vh; pointer-events: none;
  background: linear-gradient(transparent, var(--ink));
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero-title {
  margin: 28px 0 30px;
  font-size: clamp(3.2rem, 7.6vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.02em 0.1em 0.2em 0; margin: 0 -0.1em -0.2em 0; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-weight: 360; }
.hero-lede { max-width: 32rem; font-size: clamp(1.08rem, 1.4vw, 1.28rem); color: var(--muted); }
.hero-cta { margin-top: 38px; }

.hero-stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.hero-phone-wrap { position: relative; width: clamp(250px, 25vw, 360px); perspective: 1200px; }
.hero-phone-wrap::before {
  content: ""; position: absolute; inset: 10% -30% -10%; z-index: -1;
  background: radial-gradient(closest-side, rgb(160 90 255 / 0.45), transparent);
  filter: blur(30px);
}
.hero-phone { filter: drop-shadow(0 50px 60px rgb(0 0 0 / 0.55)); }

.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 20px;
  background: rgb(38 16 70 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: 0 24px 50px -18px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  font-size: 0.92rem; white-space: nowrap;
}
.chip-nsi { top: 12%; left: -2%; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 18px; }
.chip-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.chip-nsi strong { font-size: 1.05rem; }
.mini-band { position: relative; width: 150px; height: 8px; border-radius: 8px; background: var(--spectrum); box-shadow: 0 0 18px rgb(234 179 8 / 0.4); }
.mini-band i { position: absolute; top: -4px; left: 68%; width: 5px; height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 0 10px #fff; }
.chip-food { top: 46%; right: -6%; padding: 8px 18px 8px 8px; }
.chip-food img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: rgb(255 255 255 / 0.08); padding: 4px; }
.chip-food span { display: grid; line-height: 1.2; }
.chip-food small { color: var(--orange); font-weight: 700; font-size: 0.78rem; }
.chip-ask { bottom: 12%; left: -10%; font-weight: 600; }
/* The app's `sparkles` symbol, three stars; the chips mask the same drawing from assets/icons/sparkles.svg. */
.spark { width: 1.35em; height: 1.35em; flex: none; fill: var(--orange); stroke: var(--orange); stroke-width: 14; stroke-linejoin: round; vertical-align: -0.28em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2;
  width: 26px; height: 42px; margin-left: -13px; border-radius: 20px;
  border: 1.5px solid var(--line-2);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--text); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Intro hide: only while JS is expected to play it (boot.js adds .is-ready after, or after a timeout). */
html.js.motion:not(.is-ready) .hero-title .line > span,
html.js.motion:not(.is-ready) [data-intro],
html.js.motion:not(.is-ready) .hero-phone-wrap,
html.js.motion:not(.is-ready) .float-chip { opacity: 0; }

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-stage { margin-top: 20px; }
  .hero-phone-wrap { width: min(64vw, 290px); }
  .chip-nsi { left: 0; top: 8%; }
  .mini-band { width: 110px; }
  .chip-food { right: 0; }
  .chip-ask { left: 0; bottom: 8%; font-size: 0.82rem; }
  .scroll-cue { display: none; }
}

/* ─────────────────────────── Ticker */
.ticker {
  position: relative; overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--ink);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker-list { display: flex; flex-shrink: 0; }
.ticker-list li {
  display: flex; align-items: center; gap: 14px; padding-right: 56px;
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.02em; white-space: nowrap;
  color: rgb(246 241 255 / 0.85);
}
.ticker-list li::after { content: "\2726"; margin-left: 42px; font-size: 0.5em; color: var(--orange); }
.ticker-list em { font-style: italic; color: var(--lilac); }
.ticker-list svg { width: 0.9em; height: 0.9em; fill: currentColor; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ─────────────────────────── Manifesto */
.manifesto { position: relative; padding: clamp(120px, 20vh, 220px) 0; background: var(--ink); }
.manifesto-text {
  max-width: 17em;
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-size: clamp(2.2rem, 5vw, 4.8rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.03em;
}
.manifesto-text em { color: var(--lilac); }
.manifesto-text .w { display: inline-block; }
[data-split] .split-line-mask { padding: 0 0.12em 0.2em 0; margin: 0 -0.12em -0.2em 0; }

/* ─────────────────────────── Paper slabs */
.paper {
  position: relative; z-index: 1;
  border-radius: var(--radius-xl);
  background: var(--cream);
  color: var(--paper-ink);
  color-scheme: light;
  padding: clamp(90px, 12vw, 160px) 0;
  isolation: isolate;
}
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: url(/assets/grain.png) 0 0 / 180px 180px;
  opacity: 0.6; mix-blend-mode: multiply; pointer-events: none;
}
.paper .kicker { color: #6b3fd6; }
.paper .section-lede { color: var(--paper-muted); }
.paper h2 em { color: #5b21b6; }
.paper:has(+ .paper) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: clamp(50px, 6vw, 80px); }
.paper + .paper { border-top-left-radius: 0; border-top-right-radius: 0; padding-top: clamp(40px, 5vw, 70px); }

/* ─────────────────────────── Story (How it works) */
.story { margin-top: 0; }
.story-grid { display: block; }
.story-steps { display: grid; gap: 56px; counter-reset: step; }
.story-step { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; }
.step-num {
  font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 100;
  font-size: 1.1rem; color: #6b3fd6; padding-top: 4px;
}
.story-step h3 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 440; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 14px; }
.story-step p { color: var(--paper-muted); max-width: 30rem; font-size: 1.08rem; }
.step-shot { grid-column: 1 / -1; width: min(72vw, 300px); margin: 22px auto 0; filter: drop-shadow(0 30px 40px rgb(40 12 80 / 0.25)); }
.story-stage { display: none; }

@media (min-width: 900px) {
  .story-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .story-step { grid-template-columns: 1fr; }
  .step-shot { width: 100%; max-width: 300px; margin-inline: 0; }
  html.scenes .story-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 6vw;
    min-height: 100vh; padding-block: 8vh;
  }
  html.scenes .story-steps { grid-template-columns: 1fr; gap: 10px; }
  html.scenes .story-step {
    grid-template-columns: 56px 1fr; padding: 26px 28px; border-radius: 28px;
    opacity: 0.32; transition: opacity 0.6s var(--ease), background-color 0.6s var(--ease), transform 0.6s var(--ease);
  }
  html.scenes .story-step.is-active { opacity: 1; background: #fff; box-shadow: 0 30px 60px -30px rgb(60 20 110 / 0.35); }
  html.scenes .story-step h3 { margin-bottom: 8px; }
  html.scenes .story-step .step-shot { display: none; }
  html.scenes .story-step p { font-size: 1rem; }
  html.scenes .story-stage { position: relative; display: grid; place-items: center; }
}
.story-glow {
  position: absolute; inset: 8% 10%; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 200deg, #d946ef55, #ef444455, #f5b40055, #22c55e55, #d946ef55);
  filter: blur(60px);
}
.story-phone { width: clamp(270px, 25vw, 360px); filter: drop-shadow(0 50px 60px rgb(40 12 80 / 0.35)); }
.story-phone .s1, .story-phone .s2 { clip-path: inset(100% 0 0 0); }
.story-over {
  position: absolute; z-index: 3; left: 50%;
  width: clamp(320px, 30vw, 430px); max-width: none;
  translate: -50% 0;
  box-shadow: 0 30px 60px -24px rgb(16 4 30 / 0.55);
}
.over-0 {
  top: 34%;
  padding: 18px 20px; border-radius: 24px;
  background: #1c0f2e; color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 60px -24px rgb(16 4 30 / 0.6);
}
.typed { font-size: 1.12rem; font-weight: 500; line-height: 1.4; min-height: 3.1em; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.parsed { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.parsed li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.85rem; font-weight: 600;
}
.over-1 { top: 40%; border-radius: 24px; }
.over-2 { top: 34%; padding: 5% 0 4%; border-radius: 24px; background: #0b0328; }
html.scenes .story-over { opacity: 0; }
.story-dots { position: absolute; bottom: -36px; display: flex; gap: 8px; }
.story-dots i { width: 8px; height: 8px; border-radius: 8px; background: rgb(27 15 38 / 0.2); transition: width 0.5s var(--ease), background-color 0.5s; }
.story-dots i.on { width: 28px; background: var(--paper-ink); }

/* ─────────────────────────── NSI */
.nsi { position: relative; padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); background: var(--ink); }
.nsi::before {
  content: ""; position: absolute; left: 50%; top: 18%; width: 90vw; height: 50vh; translate: -50% 0;
  background: radial-gradient(closest-side, rgb(120 50 220 / 0.22), transparent);
  pointer-events: none;
}
.nsi-pin { position: relative; }
.nsi-inner { display: flex; flex-direction: column; align-items: center; }
.nsi .section-head { margin-bottom: 30px; }
.nsi-visual { position: relative; width: min(980px, 100%); }
@media (min-width: 900px) {
  html.scenes .nsi-visual { width: clamp(440px, calc((100vh - 500px) * 1.57), 900px); }
  html.scenes .nsi .section-head { margin-bottom: 10px; }
  html.scenes .nsi .section-lede { margin-top: 16px; }
  html.scenes .nsi-readout { margin-top: 26px; }
  html.scenes .nsi-note { margin-top: 22px; }
  html.scenes .nsi h2 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); }
}
.nsi-band { width: 100%; height: auto; overflow: visible; }
.nsi-tiers {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -2%;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; color: var(--faint);
}
.nsi-tiers li { transition: color 0.5s; }
.nsi-tiers li.on { color: var(--text); }
.nsi-readout {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 5vw, 80px);
  width: min(980px, 100%); margin-top: 48px;
}
.nsi-word {
  min-width: 7.2em;
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem); letter-spacing: -0.035em; line-height: 1;
}
.nsi-word span { display: inline-block; }
.nsi-log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nsi-log li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 18px;
  background: rgb(255 255 255 / 0.05); border: 1px solid var(--line);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s, background-color 0.5s;
}
.nsi-log li img, .water-drop { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.water-drop { display: grid; place-items: center; border-radius: 12px; background: linear-gradient(160deg, #5eead4, #0e7490); }
.water-drop svg { width: 22px; height: 22px; fill: rgb(255 255 255 / 0.92); filter: drop-shadow(0 2px 3px rgb(6 60 70 / 0.35)); }
.water-drop svg .shine { fill: #7ad8df; }
.nsi-log span { display: grid; line-height: 1.25; }
.nsi-log strong { font-size: 0.98rem; }
.nsi-log small { color: var(--orange); font-weight: 700; font-size: 0.8rem; }
html.scenes .nsi-log li:not(.on) { opacity: 0.25; transform: translateY(6px); }
.nsi-log li.on { border-color: rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.08); }
.nsi-note { display: none; margin-top: 36px; color: var(--faint); font-size: 0.95rem; }
html.scenes .nsi-note { display: inline-flex; gap: 8px; align-items: center; }
.nsi-note-icon { font-size: 1.2rem; color: var(--orange); }
.nsi-note { transition: color 0.5s; }
.nsi-note.is-lit { color: var(--text); }
@media (min-width: 900px) {
  html.scenes .nsi-pin { min-height: 100vh; display: flex; align-items: center; }
}
@media (max-width: 700px) {
  .nsi-readout { grid-template-columns: 1fr; text-align: center; }
  .nsi-log { grid-template-columns: 1fr; text-align: left; }
  .nsi-tiers { font-size: 0.6rem; letter-spacing: 0.06em; }
}

.nsi-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(80px, 10vw, 140px); }
.card {
  position: relative; padding: 16px 16px 30px; border-radius: 32px;
  background: linear-gradient(180deg, #1a0b31, #120625);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.card:hover { border-color: var(--line-2); }
.card h3 { margin: 26px 14px 8px; font-size: 1.35rem; }
.card p { margin: 0 14px; color: var(--muted); }
.card-visual {
  position: relative; height: 320px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #3b1675, #1b0a33 70%);
}
.card-visual.zoom { display: grid; place-items: center; padding: 26px 20px; }
.card-visual.zoom.top { place-items: start center; }
.zoom-shot.fade {
  -webkit-mask: linear-gradient(#000 52%, transparent 88%);
  mask: linear-gradient(#000 52%, transparent 88%);
}
.zoom-shot {
  width: 100%; border-radius: 20px;
  box-shadow: 0 30px 50px -24px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.12);
  transition: transform 0.8s var(--ease);
}
.card:hover .zoom-shot { transform: scale(1.04) translateY(-6px); }
.statuses-visual { display: grid; place-items: center; padding: 16px; }
.statuses { width: 100%; display: grid; gap: 8px; }
.statuses li {
  display: grid; grid-template-columns: 24px 1fr 18px; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 16px; cursor: pointer;
  background: rgb(255 255 255 / 0.04); border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem;
  transition: background-color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.statuses li:hover { background: rgb(255 255 255 / 0.08); }
.statuses li small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--faint); }
.statuses svg { width: 22px; height: 22px; fill: none; stroke: var(--lilac); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.statuses .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border 0.3s, background-color 0.3s; }
.statuses li.on { background: rgb(255 115 36 / 0.12); border-color: rgb(255 115 36 / 0.5); }
.statuses li.on .dot { border: 5px solid var(--orange); background: #fff; }
@media (max-width: 980px) { .nsi-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ─────────────────────────── Ask Hale */
.ask { position: relative; padding: clamp(110px, 14vw, 190px) 0; background: linear-gradient(180deg, var(--ink), #170833 40%, var(--ink)); overflow: clip; }
.ask-glow {
  position: absolute; right: -10vw; top: 10%; width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(124 58 237 / 0.35), transparent);
  filter: blur(40px); pointer-events: none;
}
.ask-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.ask-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 36px; }
.ask-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  background: rgb(255 255 255 / 0.05); border: 1px solid var(--line-2);
  font-weight: 600; text-align: left;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.ask-chip::before {
  content: ""; flex: none; width: 1.3em; height: 1.3em; background: var(--orange);
  -webkit-mask: url(/assets/icons/sparkles.svg) center / contain no-repeat;
  mask: url(/assets/icons/sparkles.svg) center / contain no-repeat;
}
.ask-chip:hover { background: rgb(255 255 255 / 0.1); transform: translateX(4px); }
.ask-chip.is-on { background: var(--text); color: var(--ink); border-color: var(--text); }
.fine { margin-top: 26px; font-size: 0.85rem; color: var(--faint); }
.ask-stage { position: relative; min-height: 600px; display: flex; align-items: center; }
.ask-phone {
  position: absolute; right: -2%; top: 50%; width: clamp(240px, 21vw, 300px);
  translate: 0 -50%; rotate: 7deg; opacity: 0.55;
  filter: drop-shadow(0 40px 60px rgb(0 0 0 / 0.5)) saturate(0.9);
}
.chat {
  position: relative; z-index: 2;
  width: min(540px, 100%);
  border-radius: 34px; overflow: hidden;
  background: rgb(24 9 46 / 0.78);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 100px -40px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat-head small { margin-left: auto; font-weight: 600; color: var(--faint); }
.chat-log { display: flex; flex-direction: column; gap: 16px; padding: 22px; min-height: 420px; }
.bubble { max-width: 88%; font-size: 1rem; line-height: 1.5; }
.bubble.me {
  align-self: flex-end; padding: 11px 16px; border-radius: 20px 20px 6px 20px;
  background: linear-gradient(135deg, #6d3bd8, #5327b0); font-weight: 600;
}
.bubble.hale { align-self: flex-start; max-width: 100%; }
.bubble.hale > * + * { margin-top: 10px; }
.bubble.hale ul.list { display: grid; gap: 6px; }
.bubble.hale ul.list li { position: relative; padding-left: 18px; }
.bubble.hale ul.list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); }
.bubble.hale strong { color: #fff; }
.tier { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }
.tier.ok { background: rgb(34 197 94 / 0.16); color: #86efac; }
.tier.ask { background: rgb(234 179 8 / 0.16); color: #fde047; }
.tier.flag { background: rgb(255 115 36 / 0.16); color: #fdba74; }
.carried { margin-top: 14px; padding: 16px; border-radius: 18px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--line); }
.carried-title { font-size: 0.78rem; font-weight: 700; color: var(--faint); margin-bottom: 10px; }
.carried ul { display: grid; gap: 10px; }
.carried li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 0.92rem; }
.carried li::after { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 4px; width: var(--w); background: linear-gradient(90deg, #ff7324, #ffb37a); transform-origin: left; }
.carried b { font-weight: 600; color: var(--muted); }
.recipe { margin-top: 14px; padding: 16px; border-radius: 18px; background: rgb(58 13 111 / 0.45); font-size: 0.92rem; }
.recipe-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.recipe-glyph { flex: none; display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.6rem; line-height: 1; }
.recipe-title { font-size: 1rem; font-weight: 700; }
.recipe-meta { font-size: 0.8rem; color: var(--faint); }
.recipe-label { margin: 12px 0 6px; font-size: 0.78rem; font-weight: 700; color: var(--faint); }
.recipe-ing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.recipe-ing li { position: relative; padding-left: 14px; }
@media (max-width: 520px) { .recipe-ing { grid-template-columns: 1fr; } }
.recipe-ing li::before { content: "•"; position: absolute; left: 0; color: var(--faint); }
.recipe-method { display: grid; gap: 4px; padding-left: 1.3em; list-style: decimal; }
.recipe-method li::marker { color: var(--faint); font-weight: 700; }
.recipe-cta { display: block; margin-top: 14px; padding: 11px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 700; text-align: center; font-size: 0.9rem; }
.thinking { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; align-self: flex-start; }
.thinking canvas { flex-shrink: 0; }
.thinking-line { font-size: 0.95rem; color: rgb(246 241 255 / 0.85); transition: opacity 0.35s ease; }
.chat-bar {
  display: flex; align-items: center; margin: 0 16px 16px; padding: 12px 12px 12px 18px; border-radius: 999px;
  background: rgb(255 255 255 / 0.06); border: 1px solid var(--line); color: var(--faint);
}
.send { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-style: normal; font-weight: 800; }
@media (max-width: 1100px) { .ask-phone { display: none; } }
@media (max-width: 900px) {
  .ask-grid { grid-template-columns: 1fr; }
  .ask-stage { min-height: 0; }
  .chat { width: 100%; }
  .chat-log { min-height: 380px; }
}

/* ─────────────────────────── Whole you (horizontal) */
.whole { position: relative; padding: clamp(90px, 10vw, 140px) 0 clamp(80px, 8vw, 120px); background: var(--ink); overflow: clip; }
.whole-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 40px; margin-bottom: 50px; }
.whole-head .section-lede { margin-top: 0; }
.whole-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 6px;
}
.whole-viewport::-webkit-scrollbar { display: none; }
.whole-track { display: flex; gap: 20px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - 1280px) / 2)); }
.panel {
  position: relative; flex-shrink: 0; scroll-snap-align: center;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(86vw, 1080px); height: min(68vh, 640px); min-height: 520px;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--line);
}
.panel-copy { position: relative; z-index: 1; align-self: center; padding: clamp(28px, 4vw, 56px); }
.panel-tag { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.12); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.panel h3 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 420; font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 16px; }
.panel-copy p { color: rgb(255 255 255 / 0.74); max-width: 26rem; }
.panel-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 44px; }
.panel-phones .iphone { width: clamp(220px, 20vw, 290px); filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.5)); }
.panel-phones.duo .iphone:first-child { rotate: -5deg; margin-right: -10%; margin-top: 30px; }
.panel-phones.duo .iphone:last-child { rotate: 4deg; z-index: 1; }
.p-sleep { background: radial-gradient(120% 90% at 80% 0%, #3346a8, #151c58 50%, #0b0e2e); }
.p-move { background: radial-gradient(120% 90% at 80% 0%, #a3401f, #5a1d10 50%, #260a05); }
.p-water { background: radial-gradient(120% 90% at 80% 0%, #2aa7a8, #0f5a5e 50%, #062329); }
.p-cycle { background: radial-gradient(120% 90% at 80% 0%, #f6a4c6, #b1497d 45%, #4a1034); }
.whole-progress { height: 3px; margin-top: 36px; border-radius: 3px; background: var(--line); overflow: hidden; display: none; }
.whole-progress span { display: block; height: 100%; background: var(--spectrum); transform-origin: left; transform: scaleX(0); }
@media (min-width: 900px) {
  html.scenes .whole { padding: 0; }
  html.scenes .whole-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 36px; }
  html.scenes .whole-viewport { overflow: visible; scroll-snap-type: none; }
  html.scenes .whole-progress { display: block; }
  html.scenes .whole-head { margin-bottom: 28px; }
  html.scenes .whole-head h2 { font-size: clamp(2.2rem, 4.2vw, 4.4rem); }
  html.scenes .panel { height: clamp(380px, calc(100vh - 360px), 640px); min-height: 0; }
  html.scenes .whole-progress { margin-top: 24px; }
}
@media (max-width: 900px) {
  .whole-head { grid-template-columns: 1fr; gap: 0; }
  .whole-head .section-lede { margin-top: 22px; }
  .panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 0; }
  .panel-copy { align-self: start; padding-bottom: 0; }
  .panel-phones { padding-top: 28px; height: 380px; overflow: hidden; }
  .panel-phones .iphone { width: 200px; }
}

/* ─────────────────────────── Feel (symptoms) */
.fan { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); perspective: 1600px; }
.fan-item { width: clamp(200px, 22vw, 300px); }
.fan-item .iphone { filter: drop-shadow(0 40px 50px rgb(40 12 80 / 0.25)); }
.f1 { rotate: -6deg; translate: 0 30px; }
.f3 { rotate: 6deg; translate: 0 30px; }
.fan-item figcaption { margin-top: 30px; font-size: 0.98rem; color: var(--paper-muted); text-align: center; padding-inline: 6px; }
.fan-item figcaption strong { display: block; color: var(--paper-ink); font-size: 1.05rem; margin-bottom: 2px; }
.pattern-quote { max-width: 900px; margin: clamp(80px, 10vw, 130px) auto 0; text-align: center; }
.pattern-quote p { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: clamp(1.9rem, 4vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.08; }
.pattern-quote em { color: #5b21b6; }
.pattern-quote footer { margin-top: 20px; color: var(--paper-muted); }
@media (max-width: 760px) {
  .fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 20px var(--gutter) 10px; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .fan-item { flex-shrink: 0; width: 64vw; scroll-snap-align: center; }
  .f1, .f3 { rotate: none; translate: none; }
}

/* ─────────────────────────── Recommended */
.recs { position: relative; padding: clamp(110px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); background: var(--ink); overflow: clip; }
.recs-stage { position: relative; display: grid; place-items: center; height: clamp(520px, 52vw, 640px); }
.recs-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 115 36 / 0.28), transparent); filter: blur(20px);
}
.food-rail-wrap {
  position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.food-rail-wrap::-webkit-scrollbar { display: none; }
.food-rail-wrap.rail-live { overflow: hidden; touch-action: pan-y; cursor: grab; }
.food-rail-wrap.rail-live:active { cursor: grabbing; }
.food-rail { display: flex; gap: 20px; width: max-content; padding: 30px var(--gutter); user-select: none; -webkit-user-select: none; }
.food {
  flex-shrink: 0; width: 250px; padding: 22px 22px 26px; border-radius: 30px;
  background: linear-gradient(180deg, #221040, #150829);
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.food:hover { border-color: rgb(255 115 36 / 0.45); transform: translateY(-6px); }
.food img { width: 110px; height: 110px; object-fit: contain; margin-bottom: 18px; filter: drop-shadow(0 16px 18px rgb(0 0 0 / 0.45)); pointer-events: none; transition: transform 0.6s var(--ease); }
.food:hover img { transform: rotate(-8deg) scale(1.08); }
.food h3 { font-size: 1.2rem; }
.food .why { display: inline-block; margin: 8px 0 10px; padding: 4px 10px; border-radius: 999px; background: rgb(255 115 36 / 0.14); color: #ffa36b; font-size: 0.8rem; font-weight: 700; }
.food p { color: var(--muted); font-size: 0.94rem; line-height: 1.45; }
.recs-phone { position: relative; z-index: 2; width: clamp(230px, 21vw, 290px); pointer-events: none; filter: drop-shadow(0 50px 60px rgb(0 0 0 / 0.7)); }
.recs-foot { max-width: 44rem; margin: 40px auto 0; text-align: center; color: var(--muted); font-size: 1.1rem; }
.recs-foot strong { color: var(--text); }
@media (max-width: 700px) { .recs-phone { width: 210px; } .food { width: 220px; } }

/* ─────────────────────────── Watch */
.watch-sec { position: relative; padding: clamp(100px, 12vw, 160px) 0; background: var(--ink); overflow: clip; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.watch-list { margin-top: 32px; display: grid; gap: 0; counter-reset: w; }
.watch-list button {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 10px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -0.02em;
  color: var(--faint); transition: color 0.4s, transform 0.5s var(--ease);
}
.watch-list button::before {
  counter-increment: w; content: "0" counter(w);
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; color: var(--faint);
  width: 26px;
}
.watch-list button:hover { color: var(--muted); }
.watch-list li.is-on button { color: var(--text); transform: translateX(10px); }
.watch-list li.is-on button::before { color: var(--orange); }
.watch-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.watch-halo {
  position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 90deg, #d946ef, #ef4444, #f5b400, #22c55e, #d946ef);
  filter: blur(80px); opacity: 0.35;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.big-watch { width: clamp(260px, 27vw, 380px); filter: drop-shadow(0 50px 60px rgb(0 0 0 / 0.6)); }
.watch-screens {
  position: absolute; z-index: 1; left: 13.1667%; top: 21.5957%; width: 73.6667%; height: 56.9149%;
  background: #10041e; overflow: hidden;
  -webkit-mask: url(/assets/devices/watch-display-mask.png) 0 0 / 100% 100% no-repeat;
  mask: url(/assets/devices/watch-display-mask.png) 0 0 / 100% 100% no-repeat;
}
.watch-screens .ws {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.06); filter: blur(6px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.watch-screens .ws.is-on { opacity: 1; transform: none; filter: none; }
.ws-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { html.scenes .watch-sec { padding: 0; } html.scenes .watch-pin { min-height: 100vh; display: flex; align-items: center; padding: 100px 0 60px; } }
@media (max-width: 900px) {
  .watch-grid { grid-template-columns: 1fr; }
  .watch-stage { min-height: 460px; order: -1; }
  .watch-list button { font-size: 1.2rem; padding: 8px 0; }
}

/* ─────────────────────────── Widgets */
.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: center; gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(16px, 2.6vw, 36px); border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 80% at 10% 10%, #5b2bb5 0%, transparent 60%),
    radial-gradient(60% 80% at 90% 90%, #b1497d 0%, transparent 60%),
    linear-gradient(160deg, #2a0f52, #130627);
  box-shadow: 0 50px 90px -50px rgb(40 12 80 / 0.7);
  perspective: 1200px;
}
.bento li { border-radius: clamp(18px, 2.2vw, 30px); transition: transform 0.6s var(--ease); transform-style: preserve-3d; will-change: transform; }
.bento li img { width: 100%; height: auto; border-radius: inherit; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.35)); }
.bento .m { grid-column: span 2; }
.bento .s { grid-column: span 1; }
.siri-phrases { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.siri-phrases li { padding: 12px 20px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -18px rgb(40 12 80 / 0.5); font-weight: 600; color: var(--paper-ink); }
@media (max-width: 700px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ─────────────────────────── Insights */
.insights { padding-bottom: clamp(70px, 8vw, 120px); }
.ins-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; }
/* The card grows to hold its phones, and the bottom padding covers the duo's
   tilt and the parallax drift, so no phone is ever cut off at the foot. */
.ins-card { position: relative; display: flex; flex-direction: column; min-height: clamp(600px, 58vw, 820px); padding-bottom: clamp(40px, 4.4vw, 64px); border-radius: var(--radius-xl); overflow: hidden; }
.ins-card.week { background: linear-gradient(170deg, #e8defd, #d6c6fb); }
.ins-card.month { background: linear-gradient(170deg, #ffe9da, #fdd2b8); }
.ins-copy { padding: clamp(28px, 3.4vw, 46px); }
.ins-copy h3 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 440; letter-spacing: -0.025em; margin-bottom: 10px; }
.ins-copy p { color: var(--paper-muted); max-width: 28rem; }
.ins-card .iphone { width: clamp(220px, 20vw, 290px); filter: drop-shadow(0 30px 40px rgb(40 12 80 / 0.3)); }
.ins-card.week > .iphone { margin: auto auto 0; }
.ins-duo { margin-top: auto; display: flex; justify-content: center; gap: 4%; }
.ins-duo .iphone:first-child { rotate: -4deg; }
.ins-duo .iphone:last-child { rotate: 4deg; margin-top: -24px; }
@media (max-width: 900px) { .ins-grid { grid-template-columns: 1fr; } .ins-duo .iphone { width: 44%; } }

.learn { margin-top: clamp(90px, 10vw, 140px); }
.learn-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 30px; }
.learn-head h3 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 420; letter-spacing: -0.03em; }
.learn-head p { max-width: 28rem; color: var(--paper-muted); }
.learn-rail {
  overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter));
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.learn-rail::-webkit-scrollbar { display: none; }
.articles { display: flex; gap: 16px; width: max-content; padding: 10px var(--gutter); }
.learn-rail.is-live { overflow: hidden; }
.articles.is-looping { padding-inline: 0; gap: 0; animation: ticker 70s linear infinite; }
.articles.is-looping li { margin-right: 16px; }
.learn-rail.is-live:hover .articles { animation-play-state: paused; }
.articles li {
  flex-shrink: 0; width: 220px; padding: 14px 14px 20px; border-radius: 26px;
  background: var(--tint);
  box-shadow: 0 1px 2px rgb(40 12 80 / 0.04), 0 14px 34px -12px rgb(40 12 80 / 0.14);
  transition: transform 0.5s var(--ease);
}
.articles li:hover { transform: translateY(-8px) rotate(-1deg); }
.art-icon { display: block; margin-bottom: 14px; filter: drop-shadow(0 10px 16px rgb(40 12 80 / 0.14)) drop-shadow(0 2px 3px rgb(40 12 80 / 0.06)); }
.art-icon img {
  width: 100%; aspect-ratio: 1;
  -webkit-mask: url(/assets/articles/icon-mask.png) 0 0 / 100% 100% no-repeat;
  mask: url(/assets/articles/icon-mask.png) 0 0 / 100% 100% no-repeat;
}
.articles span { display: block; padding-inline: 4px; font-weight: 700; line-height: 1.3; }

/* ─────────────────────────── Privacy */
.privacy { position: relative; padding: clamp(120px, 14vw, 200px) 0; background: var(--ink); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.lock { position: relative; justify-self: center; width: clamp(180px, 22vw, 300px); }
.lock::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(closest-side, rgb(217 70 239 / 0.3), transparent); filter: blur(20px); }
.lock svg { position: relative; overflow: visible; }
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 36px 0 30px; max-width: 32rem; }
.promises li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 20px;
  background: rgb(255 255 255 / 0.05); border: 1px solid var(--line); font-weight: 700;
}
.promises svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: #4ade80; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px) { .privacy-grid { grid-template-columns: 1fr; } .lock { width: 150px; } }

/* ─────────────────────────── Closing */
.closing {
  position: relative; min-height: 110vh; display: grid; place-items: center;
  padding: 140px 0 120px; text-align: center; overflow: clip;
}
.closing::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30vh; background: linear-gradient(var(--ink), transparent); pointer-events: none; }
.closing-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.closing-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 30px 80px -10px rgb(124 58 237 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.12); margin-bottom: 40px; }
.closing h2 { max-width: 13em; font-size: clamp(2.8rem, 7vw, 7rem); letter-spacing: -0.045em; }
.closing .section-lede { margin-inline: auto; }
.closing-cta { margin-top: 44px; }
.closing-foods { position: absolute; left: 50%; top: 50%; z-index: 1; width: 0; height: 0; }
.closing-foods img {
  position: absolute; left: 0; top: 0; width: clamp(80px, 9vw, 150px); max-width: none;
  transform: translate(-50%, -50%)
    translate(calc(var(--x) * var(--spread, 1) + var(--mx, 0px)), calc(var(--y) * var(--spread, 1) + var(--my, 0px) + var(--fy, 0px)))
    rotate(var(--r)) scale(var(--s));
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.5));
  opacity: 0.95;
}
@media (max-width: 700px) {
  .closing-foods img { width: 70px; opacity: 0.6; }
  .closing-foods img:nth-child(5), .closing-foods img:nth-child(6) { display: none; }
}

/* ─────────────────────────── Footer */
.site-footer { padding: 90px 0 30px; background: var(--ink); border-top: 1px solid var(--line); overflow: clip; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 22rem; }
.footer-brand p { margin-top: 16px; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 7vw, 100px); }
.footer-cols h2 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-cols a:hover { color: var(--text); }
.footer-mark {
  margin: 70px 0 20px; text-align: center; white-space: nowrap;
  font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 420;
  font-size: 15.2vw; line-height: 0.82; letter-spacing: -0.055em;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.02));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-mark em { font-style: italic; }
.footer-mark .char {
  display: inline-block;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.02));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.02em;
}
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem; color: var(--faint); }

/* ─────────────────────────── Legal pages */
.legal-page { background: var(--cream); color: var(--paper-ink); color-scheme: light; }
.legal-page .aurora-layer, .legal-page .scroll-meter { display: none; }
.legal-page .nav-links a { color: var(--paper-muted); }
.legal-page .nav-links a:hover, .legal-page .nav-links a[aria-current="page"] { color: var(--paper-ink); background: rgb(27 15 38 / 0.06); }
html:not(.js) .legal-page .site-header .nav,
.legal-page .site-header.is-scrolled .nav { background: rgb(255 255 255 / 0.72); border-color: rgb(27 15 38 / 0.08); box-shadow: 0 20px 40px -24px rgb(40 12 80 / 0.3); }
.legal-page .nav-cta { background: var(--paper-ink); color: #fff; }
.legal-page .nav-cta:hover { background: var(--orange); }
.legal-page .nav-toggle { border-color: rgb(27 15 38 / 0.15) !important; background: rgb(255 255 255 / 0.6) !important; }
html.nav-open .legal-page .nav-links a { color: var(--text); }
html.nav-open .legal-page .nav-toggle { color: var(--text); }
.legal {
  width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--header-h) + 80px) 0 120px;
  font-size: 1.05rem; line-height: 1.7;
}
.legal h1 { font-size: clamp(3rem, 8vw, 5.6rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.legal .updated { color: var(--paper-muted); margin-bottom: 40px; font-weight: 600; }
.legal h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.025em; margin: 64px 0 16px; line-height: 1.1; }
.legal h3 { font-size: 1.15rem; margin: 30px 0 8px; }
.legal p, .legal ul { margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: #6b3fd6; }
.legal a { color: #5b21b6; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--orange); }
.legal .note {
  margin: 40px 0; padding: 26px 28px; border-radius: 26px;
  background: #fff; box-shadow: 0 24px 50px -34px rgb(40 12 80 / 0.4);
  border: 1px solid rgb(27 15 38 / 0.06);
}
.legal .note h2 { margin: 0 0 10px; font-family: var(--sans); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #6b3fd6; }
.legal .note p:last-child { margin-bottom: 0; }
.legal section { margin-top: 20px; }
.legal .faq { display: grid; gap: 12px; }
.legal .faq article { padding: 22px 24px; border-radius: 22px; background: rgb(255 255 255 / 0.7); border: 1px solid rgb(27 15 38 / 0.06); transition: background-color 0.3s, transform 0.4s var(--ease); }
.legal .faq article:hover { background: #fff; transform: translateY(-2px); }
.legal .faq h3 { margin: 0 0 6px; }
.legal .faq p:last-child { margin-bottom: 0; }
.legal-page .site-footer { background: var(--ink); color: var(--text); color-scheme: dark; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

/* ─────────────────────────── Reduced motion: everything readable, nothing moving */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .spectrum-text { animation: none; }
}

/* ─────────────────────────── Press kit (/press/): reuses .legal, adds a fact list, founder card and image grid. */
.press .press-lede { font-size: 1.2rem; line-height: 1.6; margin-bottom: 24px; }
.legal a.press-download {
  display: inline-flex; align-items: baseline; gap: 12px; padding: 15px 24px; border-radius: 999px;
  background: var(--paper-ink); color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap;
  transition: background-color 0.3s;
}
.legal a.press-download span { font-weight: 600; font-size: 0.85rem; opacity: 0.7; }
.legal a.press-download:hover { background: var(--orange); color: #fff; }
.press .press-contents, .press .press-small { color: var(--paper-muted); font-size: 0.95rem; }
.press-facts {
  display: grid; grid-template-columns: minmax(110px, 170px) 1fr; gap: 12px 24px; margin: 0;
  padding: 24px 26px; border-radius: 22px; background: rgb(255 255 255 / 0.7); border: 1px solid rgb(27 15 38 / 0.06);
}
.press-facts dt { font-weight: 700; color: var(--paper-muted); }
.press-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.press-founder { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.press-founder img { width: 100%; height: auto; border-radius: 22px; display: block; }
.press-founder h3 { margin-top: 0; }
.press-quote { margin: 20px 0; padding-left: 18px; border-left: 3px solid #6b3fd6; font-family: var(--display); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 1.3rem; line-height: 1.45; }
.press-quote p { margin: 0; }
.press-brand { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid rgb(27 15 38 / 0.06); margin-bottom: 14px; }
.press-brand .icon { width: 96px; height: 96px; }
.press-brand .wm { width: min(380px, 100%); height: auto; }
.press-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.press-grid img { width: 100%; height: auto; border-radius: 16px; display: block; }
@media (max-width: 620px) {
  .legal a.press-download { padding: 14px 18px; gap: 8px; font-size: 0.95rem; }
  .press-facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; padding: 20px; }
  .press-facts dd { margin-bottom: 12px; }
  .press-founder { grid-template-columns: 1fr; }
  .press-founder img { max-width: 260px; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .legal a.press-download { flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 22px; }
}
