/* ==========================================================================
   Vaasi — vaasiway.com
   Order: fonts → tokens → base → layout → components → sections → utilities
   Colour tokens mirror the app theme (vaasi_1/src/theme/colors.ts).
   Only the :root blocks contain raw colour values — use var(--…) everywhere else.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset, SIL OFL) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-700-latin.woff2") format("woff2");
}

/* ---------- Tokens: light (default) ---------- */
:root {
  color-scheme: light;
  --bg: #F3F0FF;
  --bg-grad-end: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: rgba(108, 76, 227, 0.06);
  --border: #E4DFFB;
  --text: #1A1625;
  --text-muted: #5F596B;
  --primary: #6C4CE3;
  --primary-2: #5B8DEF;
  --btn-from: #6C4CE3;
  --btn-to: #5A55DE;
  --btn-text: #FFFFFF;
  --inhale: #5B8DEF;
  --hold: #8E6CF5;
  --exhale: #4CD9A0;
  --inhale-text: #3A6BD4;
  --hold-text: #7149E6;
  --exhale-text: #0F7A54;
  --icon-tile: rgba(108, 76, 227, 0.10);
  --blob-1: rgba(108, 76, 227, 0.16);
  --blob-2: rgba(91, 141, 239, 0.14);
  --glow: rgba(108, 76, 227, 0.35);
  --shadow: rgba(108, 76, 227, 0.12);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.85);
  --header-bg: rgba(243, 240, 255, 0.78);
  --phone-frame: #1A1625;
  --phone-screen: #F7F5FF;
}

/* ---------- Tokens: dark (OS preference, unless user chose light) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121016;
    --bg-grad-end: #171320;
    --surface: #1E1A26;
    --surface-soft: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.10);
    --text: #F3F0FF;
    --text-muted: #A79FC3;
    --primary: #8F73F2; /* app uses #8567F0; nudged lighter for 4.5:1 text contrast on dark cards */
    --primary-2: #6C9CF5;
    --btn-from: #6C4CE3;
    --btn-to: #5A55DE;
    --btn-text: #FFFFFF;
    --inhale: #6C9CF5;
    --hold: #A084F7;
    --exhale: #5EE8B0;
    --inhale-text: #6C9CF5;
    --hold-text: #A084F7;
    --exhale-text: #5EE8B0;
    --icon-tile: rgba(133, 103, 240, 0.18);
    --blob-1: rgba(133, 103, 240, 0.22);
    --blob-2: rgba(108, 156, 245, 0.14);
    --glow: rgba(133, 103, 240, 0.45);
    --shadow: rgba(0, 0, 0, 0.40);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(18, 16, 22, 0.78);
    --phone-frame: #000000;
    --phone-screen: #171320;
  }
}

/* ---------- Tokens: dark (manual toggle) — keep identical to the block above ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121016;
  --bg-grad-end: #171320;
  --surface: #1E1A26;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --text: #F3F0FF;
  --text-muted: #A79FC3;
  --primary: #8F73F2; /* app uses #8567F0; nudged lighter for 4.5:1 text contrast on dark cards */
  --primary-2: #6C9CF5;
  --btn-from: #6C4CE3;
  --btn-to: #5A55DE;
  --btn-text: #FFFFFF;
  --inhale: #6C9CF5;
  --hold: #A084F7;
  --exhale: #5EE8B0;
  --inhale-text: #6C9CF5;
  --hold-text: #A084F7;
  --exhale-text: #5EE8B0;
  --icon-tile: rgba(133, 103, 240, 0.18);
  --blob-1: rgba(133, 103, 240, 0.22);
  --blob-2: rgba(108, 156, 245, 0.14);
  --glow: rgba(133, 103, 240, 0.45);
  --shadow: rgba(0, 0, 0, 0.40);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(18, 16, 22, 0.78);
  --phone-frame: #000000;
  --phone-screen: #171320;
}

/* ---------- Scale ---------- */
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --container: 1120px;
  --gutter: 16px;
  --section-y: 64px;
  --ease: cubic-bezier(0.45, 0, 0.55, 1);
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 96px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-grad-end) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem); letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-3); text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--icon-tile); }
strong { font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 680px; margin-bottom: var(--s-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem); margin-top: var(--s-6); }
.prose h3 { margin-top: var(--s-5); }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--s-3); }
.prose li { margin-bottom: var(--s-2); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--surface); color: var(--text);
  border-radius: var(--r-sm); box-shadow: 0 8px 24px var(--shadow);
}
.skip-link:focus { top: var(--s-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--s-3); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-1); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  border-radius: var(--r-pill);
}
.site-nav a:hover { background: var(--surface-soft); }
.site-nav a[aria-current="page"] { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 859px) {
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: var(--s-2) var(--gutter) var(--s-3); }
  .site-nav a { width: 100%; border-radius: var(--r-sm); }
  .header-actions { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-4);
  border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn-primary {
  color: var(--btn-text);
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  box-shadow: 0 8px 24px var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px var(--glow); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 18px; height: 18px; }

/* Google Play badge (official artwork, unmodified) */
.store { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.play-badge { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; }
.play-badge img { width: 200px; height: auto; margin: -12px -13px; } /* artwork has built-in clear space */
.play-badge .soon { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); padding-top: 12px; }
.trust {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  list-style: none; padding: 0; margin: var(--s-5) 0 0;
  color: var(--text-muted); font-size: 0.9375rem;
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--exhale-text); flex: none; }

/* ---------- Background blobs ---------- */
.blobs {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.hero > .blobs, .page-hero > .blobs { bottom: -360px; } /* let the glow fade into the next section instead of being cut off */
.blobs::before, .blobs::after {
  content: ""; position: absolute; border-radius: 50%;
}
.blobs::before { width: 760px; height: 760px; background: radial-gradient(closest-side, var(--blob-1), transparent); top: -300px; right: -260px; }
.blobs::after { width: 640px; height: 640px; background: radial-gradient(closest-side, var(--blob-2), transparent); top: 35%; left: -320px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: var(--s-6) var(--s-7); }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: var(--s-4); }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 34em; margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
@media (min-width: 900px) {
  .hero { padding-top: var(--s-8); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}

/* ---------- Breathing line graph (signature element — mirrors the app's BreathingGraph) ----------
   One 4·4·4·4 cycle = 16s = 300 SVG units. The wave scrolls left one cycle per 16s while the dot,
   fixed at the centre, rides up (inhale) / level (hold) / down (exhale) / level (hold).
   All three animations share the 16s clock and start together, so they stay in sync. */
.wave-wrap { display: grid; justify-items: center; gap: var(--s-3); width: 100%; }
.wave-card {
  width: min(100%, 540px);
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px var(--shadow);
  display: grid; justify-items: center; gap: var(--s-3);
}
.wave-stage { position: relative; width: 100%; aspect-ratio: 340 / 140; }
.wave-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}
.w-base { stroke: var(--border); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.w-line { fill: none; stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.w-in { stroke: url(#wave-grad-in); }
.w-out { stroke: url(#wave-grad-out); }
.w-hold { stroke: var(--hold); }
.ws-in { stop-color: var(--inhale); }
.ws-out { stop-color: var(--exhale); }
.ws-hold { stop-color: var(--hold); }
/* The rail is full-height; translating it by % of its own height moves the dot to a y position. */
.wave-rail { position: absolute; left: 50%; top: 0; width: 0; height: 100%; transform: translateY(78.57%); }
.wave-dot {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--inhale);
  box-shadow: 0 0 0 3px var(--surface), 0 0 18px 4px var(--glow);
}
.wave-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-4); font-size: 0.8125rem; color: var(--text-muted); }
.wave-legend li { display: inline-flex; align-items: center; gap: 6px; }
.wave-legend i { width: 10px; height: 10px; border-radius: 50%; }
.lg-in { background: var(--inhale); } .lg-hold { background: var(--hold); } .lg-out { background: var(--exhale); }

.wave-phase { position: relative; height: 1.4em; width: 100%; margin: 0; text-align: center; font-family: var(--font-head); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.4; }
.wave-phase span { position: absolute; inset: 0; opacity: 0; }
.wave-phase .p-in { color: var(--inhale-text); }
.wave-phase .p-hold, .wave-phase .p-hold2 { color: var(--hold-text); }
.wave-phase .p-out { color: var(--exhale-text); }
.wave-phase .p-static { opacity: 1; position: static; display: none; color: var(--text-muted); font-family: var(--font-body); font-size: 1rem; }
.orb-caption { color: var(--text-muted); font-size: 0.9375rem; margin: 0; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .wave-track { animation: wave-scroll 16s linear infinite; }
  .wave-rail { animation: wave-ride 16s linear infinite; }
  .wave-dot { animation: wave-color 16s linear infinite, wave-pulse 1s ease-in-out infinite alternate; }
  .wave-phase span:not(.p-static) { animation: phase 16s infinite backwards; }
  .wave-phase span.p-hold { animation-delay: 4s; }
  .wave-phase span.p-out { animation-delay: 8s; }
  .wave-phase span.p-hold2 { animation-delay: 12s; }
}
@media (prefers-reduced-motion: reduce) {
  .wave-phase span { display: none; }
  .wave-phase .p-static { display: block; }
}
@keyframes wave-scroll { from { transform: translateX(0); } to { transform: translateX(-300px); } }
/* y: bottom 110/140 = 78.57%, top 20/140 = 14.29% */
@keyframes wave-ride {
  0%   { transform: translateY(78.57%); }
  25%  { transform: translateY(14.29%); }
  50%  { transform: translateY(14.29%); }
  75%  { transform: translateY(78.57%); }
  100% { transform: translateY(78.57%); }
}
@keyframes wave-color {
  0%, 24.9%   { background: var(--inhale); }
  25%, 49.9%  { background: var(--hold); }
  50%, 74.9%  { background: var(--exhale); }
  75%, 100%   { background: var(--hold); }
}
@keyframes wave-pulse { from { scale: 1; } to { scale: 1.25; } }
@keyframes phase {
  0%   { opacity: 0; transform: translateY(4px); }
  3%   { opacity: 1; transform: none; }
  22%  { opacity: 1; transform: none; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-4);
  box-shadow: 0 10px 30px var(--shadow);
}
.card h3 { margin-top: var(--s-4); margin-bottom: var(--s-2); }
.card p { color: var(--text-muted); margin: 0; }
.icon-tile {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--r-md); background: var(--icon-tile); color: var(--primary);
}
.icon-tile svg { width: 24px; height: 24px; }

/* ---------- Journey ---------- */
.journey-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .journey-grid { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-4); counter-reset: step; }
.steps li { position: relative; padding-left: 60px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700;
  color: var(--primary); background: var(--icon-tile);
}
.steps h3 { margin-bottom: var(--s-1); }
.steps p { color: var(--text-muted); margin: 0; }
.levels { display: grid; gap: var(--s-2); }
.level {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: 14px var(--s-3); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
}
.level-name { font-weight: 600; }
.level-name small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.875rem; }
.ratio { display: inline-flex; gap: 6px; }
.ratio span {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  border-radius: var(--r-pill); font-weight: 600; font-size: 0.875rem;
  border: 1.5px solid currentColor;
}
.ratio .r-in { color: var(--inhale-text); }
.ratio .r-hold { color: var(--hold-text); }
.ratio .r-out { color: var(--exhale-text); }
.level.is-soon { background: transparent; border-style: dashed; color: var(--text-muted); }

/* ---------- Phone mockup (illustration of the practice screen) ---------- */
.phone-figure { margin: 0; display: grid; justify-items: center; gap: var(--s-3); }
.phone {
  width: min(100%, 300px); aspect-ratio: 9 / 16;
  padding: 12px; border-radius: 44px;
  background: var(--phone-frame);
  box-shadow: 0 30px 80px var(--glow);
}
.phone-screen {
  height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--phone-screen); color: var(--text);
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 20px 24px; text-align: center;
}
.ps-level { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.ps-nostril { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.ps-phase { margin-top: 28px; font-family: var(--font-head); font-size: 1.75rem; color: var(--hold-text); line-height: 1.1; }
.ps-count { font-family: var(--font-head); font-size: 3.25rem; line-height: 1.1; }
.ps-graph { width: 100%; margin-top: 18px; }
.ps-progress { width: 100%; margin-top: auto; }
.ps-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: 36%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.ps-time { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.ps-actions { display: flex; gap: 10px; width: 100%; margin-top: 16px; }
.ps-actions span { flex: 1; padding: 10px 0; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 600; }
.ps-actions .pause { background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: var(--btn-text); }
.ps-actions .end { border: 1px solid var(--border); }
.phone-figure figcaption { font-size: 0.875rem; color: var(--text-muted); }

/* ---------- Roots ---------- */
.roots {
  display: grid; gap: var(--s-6); align-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-4);
  box-shadow: 0 20px 60px var(--shadow);
}
.roots picture { justify-self: center; }
.roots img { width: min(100%, 300px); }
@media (min-width: 900px) {
  .roots { grid-template-columns: 0.8fr 1.2fr; padding: var(--s-7); }
}
.roots p { color: var(--text-muted); }
.roots dfn { font-style: italic; font-weight: 600; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: var(--s-3); }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0 var(--s-4);
}
.faq summary {
  list-style: none; cursor: pointer; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  font-weight: 600; padding-block: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding-bottom: var(--s-4); color: var(--text-muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px var(--shadow);
}
.cta-panel .store, .cta-panel .trust { justify-content: center; }
.cta-panel .lead { max-width: 36em; margin-inline: auto; margin-bottom: var(--s-5); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; padding-block: var(--s-7) var(--s-5); }
.page-hero h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.page-meta { color: var(--text-muted); font-size: 0.9375rem; }
.callout {
  border-left: 4px solid var(--primary);
  background: var(--surface-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0;
}
.callout p:last-child { margin-bottom: 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: var(--s-4) 0 var(--s-5); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--s-6) var(--s-5); margin-top: var(--s-6); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer-disclaimer { color: var(--text-muted); max-width: 46ch; margin-top: var(--s-3); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ---------- Reveal on scroll (JS adds .reveal-ready to <html>) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--text-muted); }

/* ---------- Phone mockup graph ---------- */
.g-base { stroke: var(--border); stroke-width: 2; }
.g-line { fill: none; stroke-width: 5; stroke-linecap: round; }
.g-in { stroke: var(--inhale); }
.g-hold { stroke: var(--hold); }
.g-out { stroke: var(--exhale); }
.g-later { opacity: 0.45; }
.g-dot { fill: var(--hold); }
.g-halo { fill: var(--hold); opacity: 0.2; }

/* ---------- Icons inside buttons ---------- */
.btn svg { width: 20px; height: 20px; flex: none; }
.btn { white-space: nowrap; }

/* ---------- Very small phones (≤ 379px) ---------- */
.brand svg { flex: none; }
.contact-card .btn { white-space: normal; text-align: center; max-width: 100%; padding-block: 12px; line-height: 1.3; }
@media (max-width: 379px) {
  .btn.header-cta { display: none; } /* CTA stays reachable in the hero and #get section */
}


/* ---------- Design polish pass ---------- */
/* 1. Status chip (replaces the hero eyebrow while pre-launch) */
.status-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; margin-bottom: var(--s-4);
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 4px 14px var(--shadow);
  font-size: 0.875rem; font-weight: 600; color: var(--text);
}
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--exhale); }
@media (prefers-reduced-motion: no-preference) {
  .status-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--exhale);
    animation: status-ping 2.4s var(--ease) infinite;
  }
}
@keyframes status-ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }

/* 3. Inner pages: header and body text on the same reading column */
.page-hero .container, .container.prose { max-width: 800px; }
.page-hero .lead.prose { max-width: none; }

/* 7. Phone mockup legend (as in the app) */
.ps-legend { display: flex; gap: 12px; justify-content: center; margin-top: 10px; font-size: 0.6875rem; color: var(--text-muted); }
.ps-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ps-legend i { width: 7px; height: 7px; border-radius: 50%; }

/* Roots: a little more presence for the illustration */
.roots img { width: min(100%, 340px); }

/* CTA panel: single clear action, centred */
.cta-panel .store { margin-top: var(--s-2); }
/* Phones: tidy 2×2 trust grid, smaller roots illustration */
@media (max-width: 599px) {
  .trust { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--s-2) var(--s-5); }
  .cta-panel .trust { justify-content: center; }
  .roots img { width: min(70%, 240px); }
}
