/* =========================================================================
   VITALi — Marketing landing page styles
   Dark-first, premium, editorial. Brand tokens mirror the app exactly
   (App/src/constants/theme.ts): cool-neutral surfaces, cyan accent,
   Fraunces serif headings.
   ========================================================================= */

/* ----------------------------------------------------------------------- */
/* Design tokens                                                           */
/* ----------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Dark theme surfaces (default) — from the app's Colors.dark */
  --bg: #131210;
  --card: #161719;
  --elevated: #202124;
  --selected: #2A2B30;
  --border: #292A30;
  --text: #F5F6F8;
  --text-secondary: #A7A9B0;
  --text-muted: #85878F;

  /* Brand accent — cyan-blue */
  --primary: #34D2EC;
  --primary-hover: #1FAFCC;
  --primary-soft: #0F2A32;
  --on-primary: #04222B;
  --success: #3DC585;
  --warning: #E0A943;
  --danger: #FF6369;

  /* Metric accent pops (used sparingly on feature icons) */
  --heart: #E5484D;
  --water: #3B7DD8;
  --sleep: #7C5CFC;
  --activity: #D98A2A;
  --move: #2FA36B;
  --glucose: #D9962A;
  --indigo: #5B5BD6;

  /* Type — Fraunces is the app's real heading serif (HeadingFont) */
  --serif: "Fraunces", Georgia, Constantia, "Cambria Math",
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  /* Radius + elevation (Radius.sm/md/lg/xl in the app) */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 60px -10px rgba(52, 210, 236, 0.32);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;
}

/* Light theme overrides (opt-in via [data-theme="light"] on <html>) */
[data-theme="light"] {
  color-scheme: light;
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --elevated: #F2EFE9;
  --selected: #E8E4DB;
  --border: #E9E5DD;
  --text: #1C1A17;
  --text-secondary: #6E6A62;
  --text-muted: #75706A;

  --primary: #0E97C0;
  --primary-hover: #0B7A9B;
  --primary-soft: #D6F0F8;
  --on-primary: #FFFFFF;
  --success: #2FA36B;
  --warning: #D9962A;
  --danger: #E5484D;

  --shadow-md: 0 10px 30px -12px rgba(28, 26, 23, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(28, 26, 23, 0.22);
  --shadow-glow: 0 0 60px -10px rgba(14, 151, 192, 0.26);
}

/* (#34) Respect the OS colour scheme on first visit. The explicit
   [data-theme] attribute (set from localStorage by the inline head script)
   always overrides this, so the manual toggle still wins both ways. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
  color-scheme: light;
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --elevated: #F2EFE9;
  --selected: #E8E4DB;
  --border: #E9E5DD;
  --text: #1C1A17;
  --text-secondary: #6E6A62;
  --text-muted: #75706A;

  --primary: #0E97C0;
  --primary-hover: #0B7A9B;
  --primary-soft: #D6F0F8;
  --on-primary: #FFFFFF;
  --success: #2FA36B;
  --warning: #D9962A;
  --danger: #E5484D;

  --shadow-md: 0 10px 30px -12px rgba(28, 26, 23, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(28, 26, 23, 0.22);
  --shadow-glow: 0 0 60px -10px rgba(14, 151, 192, 0.26);
  }
}

/* ----------------------------------------------------------------------- */
/* Reset + base                                                            */
/* ----------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ----------------------------------------------------------------------- */
/* Layout helpers                                                          */
/* ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--primary);
  opacity: 0.7;
}
.section-head.center .eyebrow {
  justify-content: center;
}

h2.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.section-sub {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 58ch;
}
.section-head.center .section-sub {
  margin-inline: auto;
}

/* ----------------------------------------------------------------------- */
/* Buttons + badges                                                        */
/* ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Pill tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--elevated);
  border: 1px solid var(--border);
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* Store badges (App Store / Google Play) */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.store-badge:focus-visible {
  outline-offset: 4px;
}
.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.store-badge .badge-text small {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}
.store-badge .badge-text strong {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--sans);
}

/* QR download block */
.qr-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  max-width: 340px;
}
.qr-block .qr {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  background: #fff;
  padding: 7px;
  flex: none;
}
.qr-block .qr svg {
  width: 100%;
  height: 100%;
}
.qr-block .qr-copy {
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.qr-block .qr-copy strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.mobile-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mobile-note svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

/* ----------------------------------------------------------------------- */
/* Header                                                                  */
/* ----------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Wordmark */
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark .mark {
  width: 26px;
  height: 26px;
}
.wordmark .vital {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.wordmark .i {
  color: var(--primary);
  text-transform: lowercase;
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
}

/* ----------------------------------------------------------------------- */
/* Hero                                                                    */
/* ----------------------------------------------------------------------- */
.hero {
  padding-top: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-top: 20px;
}
.hero h1 .accent {
  color: var(--primary);
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  color: var(--text-secondary);
  max-width: 50ch;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-trust .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.6;
}

/* Glow behind the hero phone */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(
    60% 55% at 55% 40%,
    rgba(52, 210, 236, 0.24),
    transparent 70%
  );
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero-visual .phone {
  position: relative;
  z-index: 1;
}

/* Floating glass chips around the hero phone */
.glass-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 66%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  white-space: nowrap;
}
.glass-chip .chip-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}
.glass-chip strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
}
.glass-chip span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.chip-1 {
  top: 13%;
  left: -6%;
}
.chip-2 {
  bottom: 15%;
  right: -7%;
}
@media (max-width: 1080px) {
  .chip-1 {
    left: 0;
  }
  .chip-2 {
    right: 0;
  }
}

/* ----------------------------------------------------------------------- */
/* Stats strip                                                             */
/* ----------------------------------------------------------------------- */
.stats-strip {
  padding-block: 0;
  margin-top: clamp(28px, 4vw, 48px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border-block: 1px solid var(--border);
  padding-block: clamp(24px, 3.5vw, 40px);
}
.stat {
  text-align: center;
  padding-inline: 10px;
}
.stat .stat-num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat .stat-num .unit {
  color: var(--primary);
}
.stat .stat-lbl {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------- */
/* Phone mockup  (★ SWAP: drop a real screenshot inside .screen)           */
/* ----------------------------------------------------------------------- */
.phone {
  width: 292px;
  max-width: 78vw;
  /* ~2.16:1 — a modern handset (iPhone 15 Pro is 2.16, Pixel 8 is 2.20).
     The old 2.07 was stubby and squeezed the screen content. */
  aspect-ratio: 292 / 630;
  border-radius: 44px;
  padding: 13px;
  background: linear-gradient(160deg, #2e2f33, #17181b);
  border: 1px solid #35363c;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 500ms var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-visual .phone:hover,
  .hero-visual .phone:hover {
    transform: translateY(-6px) rotate(-0.5deg);
  }
}
[data-theme="light"] .phone {
  background: linear-gradient(160deg, #d7d5cf, #b4b2ab);
  border-color: #cdcac2;
}
.phone::before {
  /* notch */
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #131210;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Generic screen scaffolding shared by all mockups.
   Mirrors the app's dark tokens: card #161719, border #292A30, and the app's
   real chrome — a status bar beside the notch and the flat 5-tab bottom bar. */
.scr {
  --scr-card: #161719;
  --scr-elev: #202124;
  --scr-border: #292A30;
  --scr-text: #F5F6F8;
  --scr-sec: #A7A9B0;
  --scr-mut: #85878F;
  background: #131210;
  color: var(--scr-text);
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 12px;
  overflow: hidden;
}

/* Status bar — sits either side of the notch */
.scr-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 17px 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--scr-text);
  flex: none;
}
.scr-status .st-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.scr-status svg {
  width: 12px;
  height: 12px;
}

/* Scrollable body */
.scr-body {
  flex: 1;
  min-height: 0;
  padding: 5px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* Flat 5-tab bottom bar (matches the app) */
.scr-tabs {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--scr-card);
  border-top: 1px solid var(--scr-border);
  padding: 6px 2px 9px;
}
.scr-tabs .t {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 500;
  color: var(--scr-mut);
}
.scr-tabs .t.on {
  color: var(--primary);
}
.scr-tabs svg {
  width: 15px;
  height: 15px;
}

.scr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
}
.scr-h {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.01em;
}
.scr-kicker {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--scr-mut);
  margin-bottom: 3px;
}
.scr-date {
  color: var(--scr-sec);
  font-size: 10px;
}
.scr-card {
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  border-radius: 14px;
  padding: 12px;
}
.scr-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  color: var(--scr-sec);
}

/* Quick-action tiles */
.scr-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  flex: none;
}
.scr-tiles .qt {
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  border-radius: 11px;
  padding: 8px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 7.5px;
  color: var(--scr-sec);
}
.scr-tiles .qt svg {
  width: 15px;
  height: 15px;
}

/* Coach pill */
.scr-coach {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 9.5px;
  color: #cfd2d6;
  flex: none;
}
.scr-coach .cdot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #04222B;
  display: grid;
  place-items: center;
  flex: none;
}
.scr-coach .cdot svg {
  width: 9px;
  height: 9px;
}

/* A row inside a card: icon tile + label + value */
.scr-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.scr-row + .scr-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--scr-border);
}
.scr-row .ri {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
}
.scr-row .ri svg {
  width: 12px;
  height: 12px;
}
.scr-row .rl {
  flex: 1;
  color: var(--scr-text);
}
.scr-row .rl em {
  display: block;
  font-style: normal;
  font-size: 8.5px;
  color: var(--scr-mut);
  margin-top: 1px;
}
.scr-row .rv {
  color: var(--scr-sec);
  font-variant-numeric: tabular-nums;
}
.scr-row .rv b {
  color: var(--scr-text);
  font-weight: 600;
}

/* Coach chat (mirrors the app's Coach tab: bubbles + inline cards + chips + input bar) */
.chat-msg {
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 10.5px;
  line-height: 1.45;
  flex: none;
}
.chat-msg.coach {
  align-self: flex-start;
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  border-bottom-left-radius: 4px;
  color: #cfd2d6;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: #04222B;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.chat-msg b {
  color: var(--scr-text);
}
.chat-card {
  align-self: flex-start;
  width: 88%;
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  border-radius: 12px;
  padding: 9px 11px;
  flex: none;
}
.chat-card.done {
  border-color: color-mix(in srgb, var(--success) 45%, transparent);
}
.chat-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex: none;
}
.chat-chips span {
  font-size: 8.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  color: var(--primary);
  background: var(--primary-soft);
}
.chat-input {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  border-radius: 999px;
  padding: 7px 7px 7px 13px;
  font-size: 10px;
  color: var(--scr-mut);
  flex: none;
  margin-top: auto;
}
.chat-input .send {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #04222B;
  display: grid;
  place-items: center;
  margin-left: auto;
  flex: none;
}
.chat-input .send svg {
  width: 11px;
  height: 11px;
}
.beta-tag {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Week strip */
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  flex: none;
}
.week div {
  text-align: center;
  font-size: 9px;
  color: var(--scr-mut);
}
.week .d {
  margin-top: 4px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  color: var(--scr-sec);
  font-size: 10px;
}
.week .d.on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.week .d.today {
  background: var(--primary);
  border-color: var(--primary);
  color: #04222B;
  font-weight: 700;
}

/* Progress ring */
.ring-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ring {
  width: 92px;
  height: 92px;
  flex: none;
}
.ring .track {
  fill: none;
  stroke: #292A30;
  stroke-width: 9;
}
.ring .prog {
  fill: none;
  stroke: var(--primary);
  stroke-width: 9;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}
.ring-num {
  font-family: var(--serif);
  font-size: 26px;
  fill: #F5F6F8;
}
.ring-lbl {
  font-size: 7px;
  fill: #A7A9B0;
  letter-spacing: 0.12em;
}
.ring-side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.metric-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.metric-row .mdot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex: none;
}
.metric-row .mval {
  margin-left: auto;
  color: var(--scr-sec);
}

/* Mini bars / progress */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin-top: 8px;
}
.mini-bars span {
  flex: 1;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.bar-line {
  height: 6px;
  border-radius: 999px;
  background: #292A30;
  overflow: hidden;
  margin-top: 6px;
}
.bar-line i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}
/* Stage-mix segmented bar */
.stage-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.stage-bar i {
  display: block;
  height: 100%;
}
.scr-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--scr-sec);
  margin-bottom: 2px;
}
.scr-stack > * + * {
  margin-top: 9px;
}
.big-stat {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
}
.big-stat small {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--scr-mut);
}
.tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tag-row span {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #131210;
  border: 1px solid var(--scr-border);
  color: var(--scr-sec);
}
.scr-greet {
  font-family: var(--serif);
  font-size: 19px;
  margin: 2px 0 10px;
}
.scr-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.scr-2x2 .scr-card {
  padding: 9px 10px;
}
.scr-2x2 .k {
  font-size: 8.5px;
  color: var(--scr-mut);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.scr-2x2 .v {
  font-family: var(--serif);
  font-size: 16px;
  margin-top: 2px;
}
.scr-2x2 .v em {
  font-style: normal;
  font-size: 9px;
  font-family: var(--sans);
  color: var(--scr-mut);
}

/* ----------------------------------------------------------------------- */
/* Feature sections (alternating)                                          */
/* ----------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(72px, 9vw, 130px);
}
.feature.reverse .feature-visual {
  order: 2;
}
.feature-visual {
  display: grid;
  place-items: center;
  position: relative;
}
.feature-visual::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(52, 210, 236, 0.12),
    transparent 70%
  );
  filter: blur(30px);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}
.feature-body {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.06rem;
}
.feature-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--text);
  font-size: 0.97rem;
}
.feature-list .check {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.feature-list .check svg {
  width: 13px;
  height: 13px;
}
.feature-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------- */
/* "Everything in one app" grid                                            */
/* ----------------------------------------------------------------------- */
.everything {
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--card) 55%, transparent),
    transparent
  );
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 16 tiles = 4×4 */
  gap: 14px;
}
.icon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 14px;
  text-align: center;
  transition: transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.icon-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.icon-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}
.icon-card .ic svg {
  width: 22px;
  height: 22px;
}
.icon-card span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.everything-note {
  text-align: center;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ----------------------------------------------------------------------- */
/* Insights band                                                           */
/* ----------------------------------------------------------------------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.insight-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.insight-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}
.insight-card .ic svg {
  width: 21px;
  height: 21px;
}
.insight-card h3 {
  font-size: 1.12rem;
  margin-bottom: 7px;
}
.insight-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.insight-card .quote {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-style: italic;
}

/* ----------------------------------------------------------------------- */
/* Coach band                                                              */
/* ----------------------------------------------------------------------- */
.coach-band .coach-card {
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--primary-soft) 70%, var(--card)),
    var(--card) 55%
  );
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  overflow: hidden;
}
.coach-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.coach-copy p {
  margin-top: 14px;
  color: var(--text-secondary);
}
.coach-msgs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.coach-msg {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 13px 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 420px;
  box-shadow: var(--shadow-sm);
}
.coach-msg strong {
  color: var(--text);
  font-weight: 600;
}
.coach-msg .coach-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.coach-msg .coach-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ----------------------------------------------------------------------- */
/* Why VITALi                                                              */
/* ----------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.why-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--primary-soft);
  color: var(--primary);
}
.why-card .ic svg {
  width: 25px;
  height: 25px;
}
.why-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.why-card p {
  color: var(--text-secondary);
  font-size: 0.97rem;
}

/* ----------------------------------------------------------------------- */
/* Pricing                                                                 */
/* ----------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.price-badge svg {
  width: 13px;
  height: 13px;
}
.price-name {
  font-family: var(--serif);
  font-size: 1.5rem;
}
.price-for {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}
.price-amount {
  margin: 22px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-amount .num {
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-amount .per {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}
.price-features .check {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--primary);
  margin-top: 1px;
}
.price-features li.soon .check {
  color: var(--text-muted);
}
.price-features .soon-tag {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 4px;
  align-self: center;
}
.price-card .btn {
  width: 100%;
}
.pricing-note {
  text-align: center;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----------------------------------------------------------------------- */
/* Roadmap                                                                 */
/* ----------------------------------------------------------------------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.road-card {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.road-card .soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.road-card .soon .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
}
.road-card h3 {
  font-size: 1.15rem;
  margin-bottom: 7px;
}
.road-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ----------------------------------------------------------------------- */
/* FAQ                                                                     */
/* ----------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
}
.faq-q .chev {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary);
  transition: transform var(--dur) var(--ease);
}
.faq-q[aria-expanded="true"] .chev {
  transform: rotate(45deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease);
}
.faq-a-inner {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 70ch;
}
@media (prefers-reduced-motion: reduce) {
  .faq-a {
    transition: none;
  }
}

/* ----------------------------------------------------------------------- */
/* Final CTA                                                               */
/* ----------------------------------------------------------------------- */
.final-cta {
  text-align: center;
}
.final-card {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--primary-soft) 80%, var(--card)),
    var(--card)
  );
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  border-radius: var(--r-xl);
  padding: clamp(40px, 7vw, 72px) var(--gutter);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.final-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(52, 210, 236, 0.16),
    transparent 60%
  );
  pointer-events: none;
}
.final-card > * {
  position: relative;
}
.final-card h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}
.final-card p {
  margin: 18px auto 0;
  color: var(--text-secondary);
  max-width: 52ch;
  font-size: 1.1rem;
}
.final-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.final-actions .badges {
  justify-content: center;
}

/* ----------------------------------------------------------------------- */
/* Footer                                                                  */
/* ----------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .wordmark {
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 30ch;
}
/* (#35) These were <h4> after page-level <h2>s, which skipped h3 and broke the
   screen-reader outline. Now <h3 class="footer-head"> — identical visually. */
.footer-col h4,
.footer-col .footer-head {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.94rem;
  padding: 5px 0;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover {
  color: var(--primary);
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.socials svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ----------------------------------------------------------------------- */
/* Nav dropdown ("More")                                                   */
/* ----------------------------------------------------------------------- */
.nav-more {
  position: relative;
}
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0;
  transition: color var(--dur) var(--ease);
}
.nav-more-btn:hover,
.nav-more-btn[aria-expanded="true"] {
  color: var(--text);
}
.nav-more-btn svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur) var(--ease);
}
.nav-more-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur);
  z-index: 95;
}
.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.nav-menu a:hover {
  background: var(--elevated);
  color: var(--text);
}
.nav-menu a svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu {
    transition: none;
  }
}

/* ----------------------------------------------------------------------- */
/* Sticky mobile download bar                                              */
/* ----------------------------------------------------------------------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 115;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 320ms var(--ease);
}
.sticky-bar.show {
  transform: none;
}
.sticky-bar .sb-copy {
  flex: 1;
  min-width: 0;
}
.sticky-bar .sb-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.2;
}
.sticky-bar .sb-copy span {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.sticky-bar .btn {
  min-height: 44px;
  padding: 0 18px;
  flex: none;
}
@media (max-width: 720px) {
  .sticky-bar {
    display: flex;
  }
  body {
    padding-bottom: 72px;
  }
  .to-top {
    bottom: 86px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-bar {
    transition: none;
  }
}

/* Platform hint on store badges */
.store-badge.recommended {
  position: relative;
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-md);
}
.store-badge .badge-hint {
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  display: none;
}
.store-badge.recommended .badge-hint {
  display: block;
}

/* ----------------------------------------------------------------------- */
/* Interactive demo (tabbed phone)                                         */
/* ----------------------------------------------------------------------- */
.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.demo-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.demo-tab:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  transform: translateX(3px);
}
.demo-tab[aria-selected="true"] {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 55%, var(--card));
  color: var(--text);
}
.demo-tab .dt-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--elevated);
  color: var(--text-muted);
  flex: none;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.demo-tab[aria-selected="true"] .dt-ic {
  background: var(--primary-soft);
  color: var(--primary);
}
.demo-tab .dt-ic svg {
  width: 19px;
  height: 19px;
}
.demo-tab .dt-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.25;
}
.demo-tab .dt-copy span {
  font-size: 0.83rem;
  color: var(--text-muted);
}
.demo-stage {
  display: grid;
  place-items: center;
  position: relative;
}
.demo-stage::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(52, 210, 236, 0.14), transparent 70%);
  filter: blur(30px);
}
.demo-panel {
  display: none;
  height: 100%;
}
.demo-panel.active {
  display: block;
  animation: demoIn 380ms var(--ease);
}
/* Without JS the reveal class never gets .in — don't hide the whole page. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
@keyframes demoIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-panel.active {
    animation: none;
  }
  .demo-tab:hover {
    transform: none;
  }
}
.demo-hint {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ----------------------------------------------------------------------- */
/* Screenshot gallery (scroll-snap carousel)                               */
/* ----------------------------------------------------------------------- */
.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gallery::-webkit-scrollbar {
  height: 8px;
}
.gallery::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.gallery > figure {
  scroll-snap-align: center;
  flex: none;
  margin: 0;
  text-align: center;
}
.gallery > figure figcaption {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.gallery-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery-nav button:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.gallery-nav svg {
  width: 19px;
  height: 19px;
}

/* ----------------------------------------------------------------------- */
/* Video slot                                                              */
/* ----------------------------------------------------------------------- */
.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(150deg, var(--elevated), var(--card));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  max-width: 900px;
  margin-inline: auto;
  box-shadow: var(--shadow-lg);
}
.video-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 60% at 50% 50%,
    rgba(52, 210, 236, 0.14),
    transparent 70%
  );
}
.video-slot .play {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  box-shadow: var(--shadow-glow);
  transition: transform var(--dur) var(--ease);
}
.video-slot .play:hover {
  transform: scale(1.06);
}
.video-slot .play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.video-slot .video-label {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .video-slot .play:hover {
    transform: none;
  }
}

/* ----------------------------------------------------------------------- */
/* Stack cost calculator                                                   */
/* ----------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  align-items: center;
}
.calc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.calc-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
  font-size: 0.92rem;
}
.calc-item:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.calc-item:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 45%, var(--bg));
}
.calc-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc-item .box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  flex: none;
  color: transparent;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.calc-item input:checked + .box {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.calc-item input:focus-visible + .box {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.calc-item .box svg {
  width: 13px;
  height: 13px;
}
.calc-item .ci-name {
  flex: 1;
  color: var(--text);
}
.calc-item .ci-price {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.calc-out {
  text-align: center;
  padding: 30px 24px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--border);
}
.calc-out .co-k {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.calc-out .co-now {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}
.calc-out .co-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.calc-out hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
.calc-out .co-save {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.calc-out .co-save b {
  color: var(--primary);
  font-weight: 600;
}
.calc-out .btn {
  width: 100%;
  margin-top: 18px;
}

/* ----------------------------------------------------------------------- */
/* Waitlist form                                                           */
/* ----------------------------------------------------------------------- */
.waitlist {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}
.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.waitlist-form .field {
  flex: 1;
  position: relative;
}
.waitlist-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease);
}
.waitlist-form input[type="email"]::placeholder {
  color: var(--text-muted);
}
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.waitlist-form input[type="email"][aria-invalid="true"] {
  border-color: var(--danger);
}
.waitlist-form .btn {
  min-height: 52px;
  flex: none;
}
.waitlist-error {
  display: none;
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--danger);
  text-align: left;
  padding-left: 18px;
}
.waitlist-error.show {
  display: block;
}
.waitlist-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.waitlist-success {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--primary-soft) 60%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  text-align: left;
}
.waitlist-success.show {
  display: flex;
  animation: demoIn 340ms var(--ease);
}
.waitlist-success .ws-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  flex: none;
}
.waitlist-success .ws-ic svg {
  width: 22px;
  height: 22px;
}
.waitlist-success strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.waitlist-success span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
@media (prefers-reduced-motion: reduce) {
  .waitlist-success.show {
    animation: none;
  }
}

/* Beta callout */
.beta-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--border));
  max-width: 640px;
  margin: 26px auto 0;
  text-align: left;
}
.beta-card .bc-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.beta-card .bc-ic svg {
  width: 22px;
  height: 22px;
}
.beta-card .bc-copy {
  flex: 1;
}
.beta-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.beta-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ----------------------------------------------------------------------- */
/* Pricing billing toggle                                                  */
/* ----------------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--elevated);
  border: 1px solid var(--border);
  margin: 26px auto 0;
}
.billing-toggle button {
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  min-height: 40px;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
}
.billing-toggle .save-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}
.billing-toggle button[aria-pressed="true"] .save-tag {
  background: color-mix(in srgb, var(--on-primary) 18%, transparent);
  color: var(--on-primary);
}

/* ----------------------------------------------------------------------- */
/* Testimonials  (★ SWAP: unhide once you have real, permitted quotes)     */
/* ----------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.quote-card .stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--warning);
}
.quote-card .stars svg {
  width: 15px;
  height: 15px;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--text);
}
.quote-card figcaption {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------- */
/* Sub-page shell (privacy / terms / about / press / roadmap / changelog)   */
/* ----------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(48px, 7vw, 84px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  width: 700px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(52, 210, 236, 0.1),
    transparent 65%
  );
  pointer-events: none;
}
.page-hero .container {
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-top: 14px;
}
.page-hero .page-sub {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 62ch;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
}

/* Long-form prose (legal / docs) */
.prose {
  max-width: 74ch;
  color: var(--text-secondary);
  font-size: 1.02rem;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h2 {
  font-size: 1.6rem;
  color: var(--text);
  margin-top: 2.2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border);
}
.prose h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.prose h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 1.8em;
}
.prose strong {
  color: var(--text);
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul {
  list-style: none;
  padding-left: 0;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 0.55em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.prose th,
.prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose thead th {
  background: var(--elevated);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--sans);
}
.prose tbody tr:last-child td {
  border-bottom: none;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
}
.prose blockquote {
  margin: 0;
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  background: var(--card);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

/* Draft / notice banner */
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--warning) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--border));
  margin-bottom: 34px;
}
.notice.info {
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.notice .n-ic {
  color: var(--warning);
  flex: none;
}
.notice.info .n-ic {
  color: var(--primary);
}
.notice .n-ic svg {
  width: 21px;
  height: 21px;
}
.notice .n-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.notice .n-body strong {
  color: var(--text);
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 1.02rem;
}
.fillin {
  background: color-mix(in srgb, var(--warning) 22%, transparent);
  border: 1px dashed color-mix(in srgb, var(--warning) 60%, transparent);
  border-radius: 4px;
  padding: 0 6px;
  color: var(--text);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}

/* Docs layout with sticky TOC */
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 96px;
}
.doc-toc h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.doc-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.doc-toc a:hover,
.doc-toc a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}

/* ----------------------------------------------------------------------- */
/* Timeline (roadmap / changelog)                                          */
/* ----------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding-bottom: 40px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  z-index: 1;
}
.tl-item.done::before {
  background: var(--success);
  border-color: var(--success);
}
.tl-item.now::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft);
}
.tl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tl-head h3 {
  font-size: 1.3rem;
}
.tl-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.tl-item > p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  max-width: 68ch;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.status-pill.shipped {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 45%, transparent);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}
.status-pill.building {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: var(--primary-soft);
}
.status-pill.planned {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 40%, transparent);
  background: color-mix(in srgb, var(--warning) 10%, transparent);
}
.tl-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tl-tags span {
  font-size: 0.78rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Changelog release blocks */
.release {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 36px);
}
.release + .release {
  margin-top: 22px;
}
.release-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.release-head h2 {
  font-size: 1.7rem;
}
.change-group + .change-group {
  margin-top: 22px;
}
.change-group h4,
.change-group .cg-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.change-group h4 .cg-dot,
.change-group .cg-head .cg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.change-group.added h4 {
  color: var(--success);
}
.change-group.added .cg-dot {
  background: var(--success);
}
.change-group.changed h4 {
  color: var(--primary);
}
.change-group.changed .cg-dot {
  background: var(--primary);
}
.change-group.fixed h4 {
  color: var(--warning);
}
.change-group.fixed .cg-dot {
  background: var(--warning);
}
.change-group.removed h4 {
  color: var(--danger);
}
.change-group.removed .cg-dot {
  background: var(--danger);
}
.change-group ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-top: 9px;
}
.change-group ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}
.change-group ul li strong {
  color: var(--text);
}

/* ----------------------------------------------------------------------- */
/* Press kit                                                               */
/* ----------------------------------------------------------------------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.press-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.press-card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  transform: translateY(-3px);
}
.press-card .pc-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.press-card .pc-ic svg {
  width: 21px;
  height: 21px;
}
.press-card h3 {
  font-size: 1.15rem;
  margin-bottom: 7px;
}
.press-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.swatch {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
}
.swatch .sw-chip {
  height: 76px;
}
.swatch .sw-meta {
  padding: 11px 13px;
}
.swatch .sw-name {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
}
.swatch .sw-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  font-size: 0.76rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: color var(--dur) var(--ease);
}
.copy-btn:hover {
  color: var(--primary);
}
.copy-btn.copied {
  color: var(--success);
}

/* Boilerplate block */
.boiler {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  position: relative;
}
.boiler p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 70ch;
}
.boiler p + p {
  margin-top: 12px;
}
.boiler .copy-block {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--sans);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.boiler .copy-block:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.boiler .copy-block svg {
  width: 13px;
  height: 13px;
}

/* ----------------------------------------------------------------------- */
/* About page                                                              */
/* ----------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
}
.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex: none;
}
.value-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------------- */
/* 404                                                                     */
/* ----------------------------------------------------------------------- */
.err-wrap {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}
.err-code {
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  color: var(--primary);
  opacity: 0.92;
}
.err-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 8px;
}
.err-wrap p {
  margin: 16px auto 0;
  color: var(--text-secondary);
  max-width: 46ch;
}
.err-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------------- */
/* Scroll progress + back-to-top                                           */
/* ----------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  z-index: 110;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.to-top svg {
  width: 20px;
  height: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
    transform: none;
  }
}

/* ----------------------------------------------------------------------- */
/* How it works (3 steps)                                                  */
/* ----------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  position: relative;
}
.step-card .step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.9;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 9px;
}
.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.step-card .step-arrow {
  position: absolute;
  top: 50%;
  right: -21px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  z-index: 1;
}
.step-card:last-child .step-arrow {
  display: none;
}

/* ----------------------------------------------------------------------- */
/* Crafted details chips                                                   */
/* ----------------------------------------------------------------------- */
.details-band {
  padding-block: 0;
  margin-top: clamp(-24px, -2vw, -12px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.details-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.detail-chip:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--text);
  transform: translateY(-2px);
}
.detail-chip svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex: none;
}

/* ----------------------------------------------------------------------- */
/* Comparison table                                                        */
/* ----------------------------------------------------------------------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: none;
}
.compare thead th {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--elevated) 60%, transparent);
}
.compare thead th.vitali-col {
  color: var(--primary);
}
.compare tbody th {
  font-weight: 500;
  color: var(--text);
  font-family: var(--sans);
}
.compare td {
  color: var(--text-secondary);
}
.compare td.vitali-col {
  color: var(--text);
  background: color-mix(in srgb, var(--primary-soft) 40%, transparent);
}
.compare .yes {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.compare .yes svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex: none;
}
.compare-note {
  text-align: center;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ----------------------------------------------------------------------- */
/* Scroll reveal                                                           */
/* ----------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----------------------------------------------------------------------- */
/* Responsive                                                              */
/* ----------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta,
  .hero-trust {
    align-items: center;
    justify-content: center;
  }
  /* (fix) On phones the copy + CTA come FIRST. The mockup used to be
     order:-1, which pushed the headline to ~870px and the first download
     button to ~1330px — two screens down. Nothing sellable was above the
     fold. The phone now follows the CTA. */
  .hero-visual {
    order: 0;
    margin-top: 8px;
  }
  .hero-copy {
    order: -1;
  }
  .hero {
    padding-top: 18px;
  }
  .hero h1 {
    margin-top: 14px;
  }
  .hero-sub {
    margin-top: 14px;
  }
  .hero-cta {
    margin-top: 20px;
  }
  /* The floating chips overlap the copy once the phone moves down. */
  .glass-chip {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }
  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
  }
  .feature-visual,
  .feature.reverse .feature-visual {
    order: -1;
  }
  .feature-icon {
    margin-inline: auto;
  }
  .feature {
    text-align: center;
  }
  .feature-list {
    text-align: left;
    max-width: 400px;
    margin-inline: auto;
  }
  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .coach-band .coach-card {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  .step-card .step-arrow {
    display: none;
  }
  .demo-wrap {
    grid-template-columns: 1fr;
  }
  .demo-stage {
    order: -1;
    margin-bottom: 10px;
  }
  .calc {
    grid-template-columns: 1fr;
  }
  .quote-grid,
  .press-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  .about-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    position: static;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-more {
    width: 100%;
  }
  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 6px;
    min-width: 0;
    display: none;
  }
  .nav-menu.open {
    display: block;
    transform: none;
  }
  .why-grid,
  .pricing-grid,
  .roadmap {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-130%);
    transition: transform var(--dur) var(--ease);
    z-index: 90;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--elevated);
    border: 1px solid var(--border);
    color: var(--text);
  }
  .nav-toggle svg {
    width: 22px;
    height: 22px;
  }
  .nav .btn-primary.nav-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .store-badge {
    flex: 1;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-list {
    grid-template-columns: 1fr;
  }
  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-form .btn {
    width: 100%;
  }
  .beta-card {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================================
   IMPROVEMENTS PASS (2026-08-17) — see Website/IMPROVEMENTS.md
   ========================================================================= */

/* --- (#33) Tap targets ---------------------------------------------------
   22 interactive elements measured under 44x44 at 375px. Apple's HIG minimum
   is 44x44; WCAG 2.2 AA (2.5.8) requires 24x24. Fixed by giving each a real
   min-height rather than a pseudo-element, so the hit area matches what's
   painted and nothing overlaps its neighbour. */
.footer-col a,
.footer-bottom a,
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.socials .social-link,
a[data-social] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.nav-more-btn {
  min-height: 44px;
  padding-block: 6px;
}
.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* The theme toggle is icon-only — give it a real box. */
.theme-toggle {
  min-width: 44px;
  min-height: 44px;
}

/* --- (#36) Focus ---------------------------------------------------------
   A global :focus-visible already exists. This adds a contrasting halo so the
   ring stays visible on both the near-black and the cyan surfaces. */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 25%, transparent);
}
.btn-primary:focus-visible,
.store-badge:focus-visible {
  outline-color: var(--text);
}

/* --- (#24) Sticky download bar ------------------------------------------
   ALREADY IMPLEMENTED — see the .sticky-bar rules around line 1976 and the
   #stickyBar markup in index.html. The audit item was wrong: the bar exists,
   is wired to script.js, and is deliberately phones-only (display:none until
   the <=720px media query). A duplicate block was written here and removed —
   it assumed different markup (.sticky-actions / <p>) and would have broken
   the real one. Nothing to do.

   Only open question: whether to show it on desktop too. Currently mobile-only,
   which is a defensible choice.
   ------------------------------------------------------------------------ */

/* --- (#5) QR "at launch" state ------------------------------------------ */
.qr-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 128px;
  height: 128px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--elevated);
  color: var(--text-muted);
  text-align: center;
}
.qr-pending svg {
  width: 30px;
  height: 30px;
}
.qr-pending span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- (#16) Pre-launch marker -------------------------------------------- */
.prelaunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}
.prelaunch-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
}
/* Hidden automatically once DOWNLOAD_LINKS are populated. */
html:not([data-prelaunch]) .prelaunch-only {
  display: none !important;
}

/* --- (#14/#17) "Coming in v1.1" markers on unbuilt features -------------- */
.soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- (#39) Print ---------------------------------------------------------
   privacy.html / terms.html are exactly the pages people save as PDF. */
@media print {
  .site-header,
  .site-footer,
  .sticky-bar,
  .to-top,
  .scroll-progress,
  .theme-toggle,
  .nav,
  .skip-link,
  .phone,
  .qr,
  .qr-pending,
  video {
    display: none !important;
  }
  :root {
    --bg: #fff;
    --card: #fff;
    --text: #000;
    --text-secondary: #333;
    --text-muted: #555;
    --border: #ccc;
  }
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  body {
    font-size: 11pt;
    line-height: 1.5;
  }
  main {
    max-width: none;
    padding: 0;
  }
  h1, h2, h3 {
    page-break-after: avoid;
  }
  p, li {
    orphans: 3;
    widows: 3;
  }
  /* Expand link targets so a printed policy is still verifiable. */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555 !important;
  }
  .faq-a {
    display: block !important;
    height: auto !important;
  }
}

/* ----------------------------------------------------------------------- */
/* Thank-you page                                                          */
/* ----------------------------------------------------------------------- */
.ty-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  margin-bottom: 22px;
  box-shadow: var(--shadow-glow);
  animation: tyPop 520ms var(--ease) both;
}
.ty-badge svg {
  width: 30px;
  height: 30px;
}
@keyframes tyPop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ty-badge { animation: none; }
}
/* Step cards double as links on this page */
a.step-card {
  display: block;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.step-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  a.step-card:hover { transform: none; }
}

/* ----------------------------------------------------------------------- */
/* Analytics consent bar (only rendered when GA is configured)             */
/* ----------------------------------------------------------------------- */
.consent-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 130;
  width: min(680px, calc(100vw - 32px));
  transform: translate(-50%, 130%);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 320ms var(--ease);
}
.consent-bar.show {
  transform: translate(-50%, 0);
}
.consent-bar p {
  flex: 1;
  min-width: 260px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.consent-bar a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.consent-actions .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}
@media (max-width: 560px) {
  .consent-bar {
    bottom: 84px; /* clear the sticky download bar */
  }
  .consent-actions {
    width: 100%;
  }
  .consent-actions .btn {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent-bar {
    transition: none;
  }
}

/* ----------------------------------------------------------------------- */
/* Case studies / example journeys                                         */
/* ----------------------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.case-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
}
.case-ic svg {
  width: 22px;
  height: 22px;
}
.case-chip {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  padding: 4px 9px;
  border-radius: 999px;
  flex: none;
}
.case-kind {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.case-card h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.case-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.case-list {
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.case-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.75;
}
.case-b {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1px;
}
.case-out {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.case-out span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.case-out strong {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--text);
  text-align: right;
}
.cases-note {
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.cases-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 960px) {
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  .case-card:hover {
    transform: none;
  }
}

.press-req {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

/* A .mobile-note that is a link is a real tap target — give it the minimum
   44px height without changing how the static notes look. */
a.mobile-note {
  min-height: 44px;
  padding-block: 6px;
}

/* Inline links inside a sentence are exempt from the 44px target rule
   (WCAG 2.5.8 "in a sentence"), but a little vertical padding still makes
   them comfortable to hit on a phone without disturbing the text flow. */
.cases-note a,
.prose p a {
  padding-block: 4px;
}

/* Four plans (2026-09-16): Free / Plus / Pro / Max. Two columns before one, so a card never gets
   narrower than its feature lines. The 960px rule below still takes it to a single column. */
.pricing-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pricing-grid.four .price-card { padding: 28px 22px; }
@media (max-width: 1180px) {
  .pricing-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .pricing-grid.four { grid-template-columns: 1fr; max-width: 460px; }
}
