/* =========================================================================
   Frichie — marketing site (frichie.com)
   "WHOOP for money" — a private money COACH for the UAE.

   Design language mirrors the iOS app (ios/DesignSystem):
     · warm ink on warm surfaces, accent #031323 (near-white in dark)
     · the peach→lilac brand glow (Theme.brandGlow)
     · flat, group-hued treemap tiles (CategoryGroup.gradientStops)
     · ember "over" / on-track-green semantics — never raw red/green
     · AED-prefix money, tabular figures, SF system type
   Tokens are the source of truth for every page: Home · About · Help ·
   Privacy · Terms. Dependency-free; CSS-only motion; full light/dark.
   ========================================================================= */

:root {
  /* ---- Surfaces & ink (warm) — Theme.bg / textPrimary / textSecondary ---- */
  --bg:            #F4F4F5;            /* warm-neutral screen ground */
  --bg-tab:        #FFFFFF;            /* the bright tab-root white (Theme.bgTab) */
  --surface:       rgba(60, 60, 67, 0.05);
  --surface-alt:   rgba(60, 60, 67, 0.08);
  --surface-strong:rgba(60, 60, 67, 0.10);
  --ink:           #1A1714;            /* warm ink — never pure black */
  --ink-2:         rgba(26, 23, 20, 0.58);
  --ink-3:         rgba(26, 23, 20, 0.42);
  --ink-4:         rgba(26, 23, 20, 0.30);
  --hairline:      rgba(26, 23, 20, 0.09);
  --hairline-2:    rgba(26, 23, 20, 0.06);
  --card:          #FFFFFF;            /* crisp white grouped card (Theme.cardElevated) */
  --card-2:        #FBFBFC;

  /* ---- Accent — the one brand colour (Theme.brand / AccentColor) ---- */
  --accent:        #031323;
  --accent-ink:    #F7F6F3;            /* label on accent */

  /* ---- Brand glow — the peach→lilac signature (Theme.brandGlow) ---- */
  --peach:         #FF8A6B;
  --lilac:         #9B7CFF;

  /* ---- Ember financial palette — never alarm red/green (Theme) ---- */
  --on-track:      #188B54;
  --income:        #1B9E5F;
  --warning:       #B0681A;
  --over:          #C25A2A;

  /* ---- Category group dominants (CategoryGroup.rawDominant) ---- */
  --food:          #FF6F59;   /* coral     */
  --transport:     #1FA9C0;   /* teal      */
  --shopping:      #7C4DFF;   /* violet    */
  --health:        #14B58A;   /* emerald   */
  --lifestyle:     #D14FB0;   /* magenta   */
  --travel:        #2E86E0;   /* azure     */
  --bills:         #4A63D8;   /* indigo    */
  --money:         #E0930F;   /* amber     */
  --family:        #9A6A4B;   /* mocha     */
  --giving:        #E34968;   /* rose      */
  --uncategorized: #8A8278;   /* taupe     */

  /* ---- Radii ladder (Theme.R) ---- */
  --r-chip:   7px;
  --r-button: 16px;
  --r-tile:   20px;
  --r-panel:  24px;
  --r-widget: 26px;
  --r-sheet:  30px;
  --r-pill:   999px;

  --maxw: 1140px;
  --maxw-narrow: 980px;

  --shadow-soft: 0 1px 2px rgba(26,23,20,.05), 0 10px 30px rgba(26,23,20,.07);
  --shadow-card: 0 2px 8px rgba(26,23,20,.06), 0 30px 70px rgba(26,23,20,.12);
  --shadow-float:0 24px 60px rgba(26,23,20,.18), 0 4px 14px rgba(26,23,20,.10);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco,
          "Cascadia Code", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0E0D0B;
    --bg-tab:        #0E0D0B;
    --surface:       rgba(255, 255, 255, 0.07);
    --surface-alt:   rgba(255, 255, 255, 0.11);
    --surface-strong:rgba(255, 255, 255, 0.14);
    --ink:           #F4EFE6;
    --ink-2:         rgba(244, 239, 230, 0.62);
    --ink-3:         rgba(244, 239, 230, 0.46);
    --ink-4:         rgba(244, 239, 230, 0.32);
    --hairline:      rgba(244, 239, 230, 0.11);
    --hairline-2:    rgba(244, 239, 230, 0.07);
    --card:          #1A1815;
    --card-2:        #1F1D19;

    --accent:        #F4EFE6;          /* near-white in dark */
    --accent-ink:    #0E0D0B;

    --on-track:      #2BC07A;
    --income:        #2BC07A;
    --warning:       #D58A39;
    --over:          #E0744A;

    --shadow-soft: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.45);
    --shadow-card: 0 2px 8px rgba(0,0,0,.40), 0 30px 70px rgba(0,0,0,.60);
    --shadow-float:0 24px 60px rgba(0,0,0,.65), 0 4px 14px rgba(0,0,0,.45);
  }
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* A faint warm ambient wash so the page never reads as flat grey. */
  background-image:
    radial-gradient(60% 50% at 78% -6%, color-mix(in srgb, var(--peach) 11%, transparent), transparent 70%),
    radial-gradient(54% 46% at 8% 2%, color-mix(in srgb, var(--lilac) 9%, transparent), transparent 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--ink); }

::selection { background: color-mix(in srgb, var(--lilac) 30%, transparent); }

:focus-visible {
  outline: 2.5px solid color-mix(in srgb, var(--lilac) 78%, var(--ink));
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ───────────────────────── Eyebrow ───────────────────────── */
/* Sentence-feel micro-label: SF, +tracking, not SF-Mono (matches AppFont.eyebrow vibe). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--peach), var(--lilac));
}
.eyebrow.center { justify-content: center; }
.eyebrow.no-rule::before { display: none; }

/* ───────────────────────── Brand mark + wordmark ───────────────────────── */
/* Faithful to BrandMark.swift: tall coral tile + stacked teal/violet tiles,
   each filled with its same-hue catFill, all scaled from --h (= mark height).
   Geometry (06-28 "refined treemap"): gap 4u, tall corners 9u, square 8u,
   tile width 22u, on a 50u baseline → tall w/h = 0.44, gap = 0.08, etc. */
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--h) * 0.08);
  height: var(--h);
}
.brandmark .bm-tall {
  width: calc(var(--h) * 0.44);
  height: var(--h);
  border-radius: calc(var(--h) * 0.18);
}
.brandmark .bm-col {
  display: inline-flex;
  flex-direction: column;
  gap: calc(var(--h) * 0.08);
}
.brandmark .bm-small {
  width: calc(var(--h) * 0.44);
  height: calc(var(--h) * 0.44);
  border-radius: calc(var(--h) * 0.16);
}
/* catFill — subtle same-hue gradient: ~18% lifted toward white → base (top-leading). */
.b-food     { background: linear-gradient(135deg, color-mix(in srgb, #fff 18%, var(--food)),     var(--food)); }
.b-transport{ background: linear-gradient(135deg, color-mix(in srgb, #fff 18%, var(--transport)),var(--transport)); }
.b-shopping { background: linear-gradient(135deg, color-mix(in srgb, #fff 18%, var(--shopping)), var(--shopping)); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.045em;   /* tracking −1.0 at the dashboard-header lockup */
  color: var(--ink);
}
.beta-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface-alt);
  border-radius: var(--r-pill);
  padding: 2px 6px;
  align-self: flex-start;
  margin-top: 2px;
}

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px clamp(18px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.nav-links > a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) {
  .nav-links > a:not(.btn) { display: none; }
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--r-button);
  padding: 15px 22px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .2s, opacity .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 1px rgba(26,23,20,.10), 0 8px 22px color-mix(in srgb, var(--accent) 24%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover { transform: translateY(-1px); background: var(--surface-alt); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: var(--r-pill); }

.btn-spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent-ink) 40%, transparent);
  border-top-color: var(--accent-ink);
  display: none;
}
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-spinner { display: inline-block; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────────────────── Layout helpers ───────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 40px);
}
.section.tight { padding-top: 0; }
.section-title {
  font-size: clamp(29px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
}
.section-title.center { text-align: center; }
.center { text-align: center; }
.lede {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}

/* Section intro block (centered eyebrow + title + lede) */
.section-intro { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section-intro .eyebrow { margin-bottom: 18px; }
.section-intro .section-sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.9vw, 18.5px);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 70px) clamp(18px, 5vw, 40px) clamp(36px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 6px 14px 6px 10px;
  margin-bottom: 24px;
}
.hero-eyebrow .spark {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--lilac));
}
.hero-title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-title .glow-word {
  background: linear-gradient(100deg, var(--peach) 8%, var(--lilac) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 31em;
}

/* ───────────────────────── Waitlist form ───────────────────────── */
.waitlist { margin-top: 30px; }
.field {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.waitlist-center .field { margin-inline: auto; }
.field-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-button);
  padding: 15px 16px;
  box-shadow: var(--shadow-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field-input::placeholder { color: var(--ink-3); }
.field-input:focus {
  outline: none;
  background: var(--card);
  border-color: color-mix(in srgb, var(--lilac) 60%, var(--hairline));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lilac) 16%, transparent);
}
.field .btn { white-space: nowrap; flex-shrink: 0; }

.form-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.waitlist-center .form-note { text-align: center; }
.form-status {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 500;
  min-height: 1.2em;
}
.waitlist-center .form-status { text-align: center; }
.form-status.is-error { color: var(--over); }
.form-status.is-success { color: var(--on-track); }

.waitlist.done .field,
.waitlist.done .form-note { display: none; }
.success-pill {
  display: none;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--on-track) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--on-track) 30%, transparent);
  border-radius: var(--r-button);
  padding: 16px 18px;
  max-width: 480px;
  animation: pop .35s cubic-bezier(.2,.9,.3,1.2);
}
.waitlist-center .success-pill { margin-inline: auto; }
.waitlist.done .success-pill { display: flex; }
.success-pill .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--on-track);
  color: #fff;
  display: grid;
  place-items: center;
}
.success-pill strong { display: block; font-size: 15px; }
.success-pill span.sub { font-size: 13.5px; color: var(--ink-2); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ───────────────────────── Trust / hero badges ───────────────────────── */
.hero-badges {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 7px 13px;
}
@media (max-width: 880px) { .hero-badges { justify-content: center; } }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-track  { background: var(--on-track); }
.dot-violet { background: var(--shopping); }
.dot-ocean  { background: var(--transport); }
.dot-peach  { background: var(--food); }

/* ───────────────────────── Phone mockup (shared frame) ───────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.glow {
  position: absolute;
  inset: -10% -6% 4%;
  background:
    radial-gradient(42% 38% at 28% 18%, color-mix(in srgb, var(--peach) 55%, transparent), transparent 70%),
    radial-gradient(44% 42% at 80% 32%, color-mix(in srgb, var(--lilac) 50%, transparent), transparent 72%),
    radial-gradient(46% 40% at 58% 90%, color-mix(in srgb, var(--transport) 32%, transparent), transparent 72%);
  filter: blur(52px);
  opacity: .68;
  z-index: 0;
  pointer-events: none;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(330px, 80vw);
  aspect-ratio: 326 / 690;
  background: color-mix(in srgb, var(--ink) 90%, #000);
  border-radius: 54px;
  padding: 11px;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--ink) 72%, transparent),
    var(--shadow-float);
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.phone-screen {
  position: relative;
  height: 100%;
  background: var(--bg-tab);
  border-radius: 44px;
  padding: 22px 16px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.island {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 25px;
  background: #000;
  border-radius: var(--r-pill);
  z-index: 5;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.app-word { font-size: 17px; font-weight: 700; letter-spacing: -0.045em; }
.app-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter: blur(8px) saturate(160%);
  box-shadow: 0 1px 2px rgba(26,23,20,.05), inset 0 1px 0 rgba(255,255,255,.30);
}

/* Hero spend figure inside the phone */
.m-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.m-total {
  margin-top: 3px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.m-cur { font-size: 17px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.m-subline { margin-top: 5px; font-size: 12.5px; font-weight: 500; color: var(--on-track); }
.m-subline.over { color: var(--over); }

/* ───────────────────────── Treemap (CategoryTreemap) ───────────────────────── */
.treemap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.tm-row { display: flex; gap: 8px; min-height: 0; }

.tile {
  position: relative;
  min-width: 0; min-height: 0;
  border-radius: var(--r-tile);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.22), transparent 55%);
  pointer-events: none;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .tile::before { background: linear-gradient(to bottom, rgba(255,255,255,.07), transparent 55%); }
  .tile::after  { box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
}

/* CategoryGroup.gradientStops (light) — the vivid two-colour tile fills. */
.tile.food          { background: linear-gradient(150deg, #FFB37A, #FF4D6D); }
.tile.transport     { background: linear-gradient(150deg, #5BE7C4, #1789C9); }
.tile.shopping      { background: linear-gradient(150deg, #A88BFF, #4B2FD6); }
.tile.health        { background: linear-gradient(150deg, #5BE8B0, #0E9E78); }
.tile.lifestyle     { background: linear-gradient(150deg, #FF7AC6, #9B2BE0); }
.tile.travel        { background: linear-gradient(150deg, #6FB7F2, #1E63C8); }
.tile.bills         { background: linear-gradient(150deg, #8AA0FF, #3A57D6); }
.tile.money         { background: linear-gradient(150deg, #FFD56B, #E0830F); }
.tile.family        { background: linear-gradient(150deg, #C79A78, #7E543A); }
.tile.giving        { background: linear-gradient(150deg, #F77E98, #CE2F50); }
.tile.uncategorized { background: linear-gradient(150deg, #CFC9C0, #8A8278); }
/* dark-mode "night" tones — deeper, still jewel-rich (Color.nightP3) */
@media (prefers-color-scheme: dark) {
  .tile.food          { background: linear-gradient(150deg, #B5482F, #7A2436); }
  .tile.transport     { background: linear-gradient(150deg, #1C8C86, #0E5170); }
  .tile.shopping      { background: linear-gradient(150deg, #5A3FB0, #2D1A78); }
  .tile.health        { background: linear-gradient(150deg, #138A66, #0A5544); }
  .tile.lifestyle     { background: linear-gradient(150deg, #A8417F, #5C1A78); }
  .tile.travel        { background: linear-gradient(150deg, #2E6BB0, #163E78); }
  .tile.bills         { background: linear-gradient(150deg, #3E50A8, #25337A); }
  .tile.money         { background: linear-gradient(150deg, #B5841A, #7A5008); }
  .tile.family        { background: linear-gradient(150deg, #7A5E48, #4A3424); }
  .tile.giving        { background: linear-gradient(150deg, #A8415C, #6E1F36); }
  .tile.uncategorized { background: linear-gradient(150deg, #6E6A62, #423E38); }
}

.tile-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.tile-orb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.tile-pct {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0,0,0,.18);
  padding: 2px 6px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.tile-foot { position: relative; margin-top: auto; padding-top: 8px; min-width: 0; }
.tile-name {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-amt {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 1px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}
.tile-bud { font-size: 10px; font-weight: 400; color: rgba(255,255,255,.72); }
.tile-bar {
  display: block;
  margin-top: 6px;
  height: 5px;
  background: rgba(0,0,0,.18);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.tile-bar span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.92);
}
.tile-bar.over span { background: #F0D6CA; }

/* ───────────────────────── Flying capture chips ───────────────────────── */
.cap {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  white-space: nowrap;
  will-change: transform;
  animation: capFloat calc(8.5s + var(--d, 0) * 1.4s) ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * -2.2s);
}
@keyframes capFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}
.cap-sms  { top: 2%;    left: -7%; }
.cap-pill { top: 25%;   right: -8%; font-weight: 600; }
.cap-chip { bottom: 24%; right: -4%; }
.cap-ok   { bottom: 7%;  left: -5%; }

.cap-ic {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--transport) 16%, transparent);
  color: var(--transport);
  flex-shrink: 0;
}
.cap-amt { font-weight: 700; color: var(--ink); }
.cap-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cap-sq {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 7px;
  background: linear-gradient(150deg, #FFB37A, #FF4D6D);
  color: #fff;
  flex-shrink: 0;
}
.cap-chip span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.cap-check {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--on-track);
  color: #fff;
  flex-shrink: 0;
}
.cap-ok { color: var(--ink); font-weight: 600; }

/* ═════════════════════════════════════════════════════════════════════════
   PRODUCT SHOWCASE — the coach-direction mockups (HTML/CSS/SVG, no images)
   ════════════════════════════════════════════════════════════════════════ */

/* A two-column "feature row": copy on one side, a mock surface on the other.
   Alternating direction via .flip. */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 40px);
}
.feature-row + .feature-row { padding-top: 0; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy { max-width: 480px; }
.feature-copy .eyebrow {
  color: var(--accent-hue, var(--ink-2));
}
.feature-copy h2 {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.feature-copy p {
  margin-top: 16px;
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
}
.feature-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.feature-points .tick {
  flex-shrink: 0;
  margin-top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}
.feature-points strong { color: var(--ink); }

/* The mock surface frame — a faithful "card pulled from the app". */
.mock {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-widget);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}
.mock::after {            /* a faint same-hue glow behind the surface */
  content: "";
  position: absolute;
  inset: 8% -6% -10% -6%;
  background: radial-gradient(60% 60% at 50% 40%, var(--mock-glow, transparent), transparent 72%);
  filter: blur(40px);
  z-index: -1;
  opacity: .5;
}
.mock-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.mock-label .pip { width: 7px; height: 7px; border-radius: 50%; }

/* ---- Safe-to-spend coach hero ---- */
.coach {
  --mock-glow: color-mix(in srgb, var(--on-track) 26%, transparent);
}
.coach-ring-wrap { display: flex; align-items: center; gap: clamp(16px, 3vw, 26px); }
.coach-ring { flex-shrink: 0; width: 120px; height: 120px; position: relative; }
.coach-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.coach-ring .track { fill: none; stroke: var(--surface-strong); stroke-width: 11; }
.coach-ring .prog {
  fill: none;
  stroke: url(#coachGrad);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: ringFill 1.4s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: .2s;
}
@keyframes ringFill { to { stroke-dashoffset: 86; } }   /* ~72% of the way */
.coach-ring .ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.coach-ring .ring-days { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.coach-ring .ring-cap { font-size: 10.5px; font-weight: 600; color: var(--ink-3); margin-top: 3px; }
.coach-figure .coach-cap {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--ink-3);
}
.coach-figure .coach-amt {
  display: flex; align-items: baseline; gap: 7px;
  margin-top: 4px;
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--on-track);
}
.coach-figure .coach-amt .cur { font-size: 19px; font-weight: 600; color: color-mix(in srgb, var(--on-track) 64%, var(--ink-3)); }
.coach-figure .coach-line { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.coach-figure .coach-line strong { color: var(--ink); }
.coach-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 22px;
}
.coach-meta .cm { flex: 1; }
.coach-meta .cm-k { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-3); }
.coach-meta .cm-v { margin-top: 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.coach-meta .cm-v small { font-size: 12px; font-weight: 500; color: var(--ink-3); }

/* ---- Found-money / subscription card ---- */
.found {
  --mock-glow: color-mix(in srgb, var(--money) 24%, transparent);
}
.found-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.found-spark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #FFD56B, #E0830F);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--money) 32%, transparent);
  flex-shrink: 0;
}
.found-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.found-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--hairline);
}
.sub-logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.sub-name { font-size: 14.5px; font-weight: 600; }
.sub-meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.sub-amt { margin-left: auto; text-align: right; }
.sub-amt .a { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sub-amt .per { font-size: 11px; color: var(--ink-3); }
.sub-flag {
  margin-left: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  color: var(--warning);
  white-space: nowrap;
  flex-shrink: 0;
}
.found-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--money) 10%, var(--card-2));
  border: 1px solid color-mix(in srgb, var(--money) 22%, transparent);
  border-radius: var(--r-tile);
  padding: 13px 15px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.found-foot strong { color: var(--ink); }
.found-foot .ic { color: var(--money); flex-shrink: 0; }

/* ---- Savings goal with a pace line ---- */
.goal {
  --mock-glow: color-mix(in srgb, var(--transport) 24%, transparent);
}
.goal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.goal-emoji {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 21px;
  background: linear-gradient(150deg, #6FB7F2, #1E63C8);
  flex-shrink: 0;
}
.goal-head h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }
.goal-head .goal-when { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.goal-amts { margin-left: auto; text-align: right; }
.goal-amts .saved { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.goal-amts .target { font-size: 12px; color: var(--ink-3); }
.goal-chart { margin-top: 18px; position: relative; }
.goal-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.goal-chart .pace-dash { stroke: var(--ink-4); stroke-width: 2; stroke-dasharray: 5 5; fill: none; }
.goal-chart .actual-line {
  fill: none;
  stroke: url(#goalGrad);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 1.8s cubic-bezier(.3,.6,.3,1) forwards;
  animation-delay: .25s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.goal-chart .actual-fill { fill: url(#goalFill); opacity: 0; animation: fadeIn .8s ease forwards; animation-delay: 1.4s; }
@keyframes fadeIn { to { opacity: 1; } }
.goal-chart .head-dot { fill: var(--transport); stroke: var(--card); stroke-width: 3; }
.goal-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-2);
}
.goal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.goal-legend .swatch { width: 16px; height: 3px; border-radius: 2px; }
.goal-legend .swatch.actual { background: var(--transport); }
.goal-legend .swatch.pace { background: var(--ink-4); }
.goal-pill {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--on-track) 13%, transparent);
  color: var(--on-track);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ───────────────────────── How it works (3-step) ───────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 26px);
  counter-reset: stepnum;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  counter-increment: stepnum;
}
.step .step-n {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.step .step-n::before { content: "0" counter(stepnum); }
.step h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.step .orb { margin-bottom: 2px; }

/* Generic gradient orbs (value cards, steps, icons) */
.orb {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 14%, transparent);
}
.orb-coral   { background: linear-gradient(150deg, #FFB37A, #FF4D6D); }
.orb-ocean   { background: linear-gradient(150deg, #5BE7C4, #1789C9); }
.orb-violet  { background: linear-gradient(150deg, #A88BFF, #4B2FD6); }
.orb-emerald { background: linear-gradient(150deg, #5BE8B0, #0E9E78); }
.orb-amber   { background: linear-gradient(150deg, #FFD56B, #E0830F); }
.orb-glow    { background: linear-gradient(150deg, var(--peach), var(--lilac)); }

/* ───────────────────────── Value grid (Home + About) ───────────────────────── */
.value {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 26px);
}
@media (max-width: 880px) { .value { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.value-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.value-card .orb { width: 46px; height: 46px; border-radius: 14px; }
.value-card h3 { font-size: 18.5px; font-weight: 700; margin: 18px 0 7px; letter-spacing: -0.02em; }
.value-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ───────────────────────── Privacy centerpiece ───────────────────────── */
.privacy { padding-top: clamp(10px, 2vw, 24px); }
.privacy-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 8% -10%, color-mix(in srgb, var(--lilac) 16%, var(--card)), var(--card) 52%),
    radial-gradient(100% 120% at 100% 110%, color-mix(in srgb, var(--transport) 14%, transparent), transparent 60%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sheet);
  padding: clamp(36px, 6vw, 66px) clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.privacy-card .eyebrow { color: var(--transport); justify-content: center; }
.privacy-icon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--peach), var(--lilac));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--lilac) 40%, transparent);
}
.privacy-sub {
  margin: 18px auto 0;
  max-width: 54ch;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}
.privacy-sub strong { color: var(--ink); }

/* The "what leaves / what stays" split inside the privacy centerpiece */
.privacy-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 3vw, 28px);
  align-items: stretch;
  max-width: 760px;
  margin: 32px auto 4px;
  text-align: left;
}
@media (max-width: 700px) {
  .privacy-split { grid-template-columns: 1fr; }
  .privacy-split .vs { display: none; }
}
.priv-col {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: 22px 22px 24px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.priv-col h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.priv-col .pc-chip {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.pc-chip.stays { background: linear-gradient(150deg, #5BE8B0, #0E9E78); }
.pc-chip.leaves{ background: linear-gradient(150deg, #FFB37A, #FF4D6D); }
.priv-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.priv-col li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.priv-col li svg { flex-shrink: 0; margin-top: 2px; }
.priv-col.stays li svg { color: var(--on-track); }
.priv-col.leaves li svg { color: var(--ink-3); }
.priv-col .redacted {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface-strong);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
}
.privacy-split .vs {
  align-self: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ───────────────────────── Final CTA ───────────────────────── */
.cta { padding-top: clamp(20px, 4vw, 50px); }
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  border-radius: var(--r-sheet);
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-card::before {       /* a soft peach→lilac aura in a corner */
  content: "";
  position: absolute;
  inset: -40% 30% 40% -30%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--lilac) 50%, transparent), transparent 70%);
  opacity: .35;
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card .eyebrow,
.cta-card .section-title { color: var(--accent-ink); }
.cta-card .eyebrow { opacity: .85; justify-content: center; }
.cta-card .eyebrow::before { background: linear-gradient(90deg, var(--peach), var(--lilac)); }
.cta-sub {
  margin: 16px auto 0;
  max-width: 44ch;
  color: color-mix(in srgb, var(--accent-ink) 78%, transparent);
  font-size: clamp(16px, 1.9vw, 18px);
}
.cta-card .field-input {
  background: color-mix(in srgb, var(--accent-ink) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent-ink) 22%, transparent);
  color: var(--accent-ink);
  box-shadow: none;
}
.cta-card .field-input::placeholder { color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.cta-card .field-input:focus {
  background: color-mix(in srgb, var(--accent-ink) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent-ink) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-ink) 12%, transparent);
}
.cta-card .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-card .form-note { color: color-mix(in srgb, var(--accent-ink) 55%, transparent); }

/* ───────────────────────── App Store / TestFlight badges ───────────────────────── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.waitlist-center .cta-row,
.cta-card .cta-row { justify-content: center; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px 12px 18px;
  border-radius: var(--r-button);
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  box-shadow: 0 1px 1px rgba(26,23,20,.10), 0 8px 22px color-mix(in srgb, var(--accent) 24%, transparent);
  transition: transform .14s ease, box-shadow .2s, filter .2s;
}
.btn-store:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-store:active { transform: translateY(0); }
.btn-store svg { flex-shrink: 0; }
.btn-store .store-lines { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.btn-store .store-pre { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: .82; }
.btn-store .store-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.btn-store.btn-store-quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--shadow-soft);
}
.btn-store.btn-store-quiet:hover { filter: none; background: var(--surface-alt); }

.cta-card .btn-store { background: var(--accent-ink); color: var(--accent); }
.cta-card .btn-store.btn-store-quiet {
  background: color-mix(in srgb, var(--accent-ink) 12%, transparent);
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent-ink) 24%, transparent);
}

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(20px, 4vw, 44px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px clamp(18px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-note { font-size: 13.5px; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-links a { font-size: 13.5px; color: var(--ink-2); transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ───────────────────────── Reveal on scroll ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 620px; margin-inline: auto; text-align: center; }
  .hero-eyebrow { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .waitlist .field { margin-inline: auto; }
  .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 18px; order: 2; }
  .cap-chip, .cap-ok { display: none; }
  .cap-sms  { left: -2%; }
  .cap-pill { right: -2%; }

  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.flip .feature-copy { order: 0; }
  .feature-copy { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 500px) {
  .field { flex-direction: column; }
  .field .btn { width: 100%; }
  .coach-ring-wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 560px) {
  .cap { display: none; }
}

/* ───────────────────────── Motion / contrast prefs ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .cap { animation: none; }
  .coach-ring .prog { animation: none; stroke-dashoffset: 86; }
  .goal-chart .actual-line { animation: none; stroke-dashoffset: 0; }
  .goal-chart .actual-fill { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================================
   Content pages — Privacy · Terms · Help · About
   Shares the tokens / nav / footer / buttons above; adds long-form prose,
   tables, fact cards, FAQ, how-to. Legal text must always render — these
   never use the JS-gated .reveal pattern.
   ========================================================================= */
.doc {
  max-width: 768px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) clamp(18px, 5vw, 40px) clamp(56px, 9vw, 108px);
}
.doc-header { margin-bottom: clamp(30px, 5vw, 50px); }
.doc-title {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-top: 12px;
}
.doc-meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.doc-lede {
  margin-top: 22px;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.doc-lede strong { color: var(--ink); }

.doc section { margin-top: clamp(34px, 5vw, 52px); }
.doc h2 {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  scroll-margin-top: 84px;
}
.doc h3 { font-size: 16.5px; font-weight: 600; margin: 24px 0 8px; }
.doc p { color: var(--ink-2); font-size: 16px; line-height: 1.72; margin-bottom: 15px; }
.doc ul, .doc ol { color: var(--ink-2); font-size: 16px; line-height: 1.72; padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 9px; }
.doc li::marker { color: var(--ink-3); }
.doc strong { color: var(--ink); }
.doc a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--lilac) 55%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s, color .2s;
}
.doc a:not(.btn):hover { text-decoration-color: var(--lilac); }

.toc {
  margin: 4px 0 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
}
.toc p {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 18px; grid-template-columns: 1fr 1fr; font-size: 14.5px; }
.toc li { margin: 0; }
.toc a { color: var(--ink-2) !important; text-decoration: none !important; }
.toc a:hover { color: var(--ink) !important; }
@media (max-width: 560px) { .toc ul { grid-template-columns: 1fr; } }

.callout {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--r-panel);
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.callout-accent {
  background: radial-gradient(120% 150% at 0% 0%, color-mix(in srgb, var(--lilac) 13%, var(--card)), var(--card) 60%);
  border-color: color-mix(in srgb, var(--lilac) 24%, var(--hairline));
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-strong);
  color: var(--ink-2);
  vertical-align: middle;
  white-space: nowrap;
}
.tag-on { background: color-mix(in srgb, var(--on-track) 16%, transparent); color: var(--on-track); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 4px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.fact {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-soft);
}
.fact h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 9px; font-size: 16px; }
.fact ul { margin: 0; font-size: 15px; }
.fact li { margin-bottom: 8px; }
.fact-chip {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.chip-leaves { background: linear-gradient(150deg, #FFB37A, #FF4D6D); }
.chip-stays  { background: linear-gradient(150deg, #5BE8B0, #0E9E78); }

.doc-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-tile);
  -webkit-overflow-scrolling: touch;
}
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 540px; }
.doc thead th { background: var(--surface); font-size: 12.5px; letter-spacing: 0.01em; }
.doc th { text-align: left; font-weight: 600; color: var(--ink); padding: 12px 15px; vertical-align: top; }
.doc td { padding: 12px 15px; border-top: 1px solid var(--hairline); color: var(--ink-2); vertical-align: top; }
.doc td strong { color: var(--ink); }
.cell-linked   { color: var(--warning); font-weight: 600; white-space: nowrap; }
.cell-unlinked { color: var(--on-track); font-weight: 600; white-space: nowrap; }

/* Help — how-to step list */
.howto { counter-reset: step; list-style: none; padding: 0; margin: 18px 0 4px; }
.howto > li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 18px 46px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}
.howto > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(150deg, var(--peach), var(--lilac));
}
.howto > li:last-child { padding-bottom: 0; }
.howto strong { color: var(--ink); }

/* Help — FAQ disclosure rows */
.faq { margin: 18px 0 4px; border-top: 1px solid var(--hairline); }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 38px 16px 2px;
  position: relative;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.faq summary:hover { color: var(--lilac); }
.faq .faq-body { padding: 0 2px 18px; }
.faq .faq-body p { margin-bottom: 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

.doc .callout .cta-row { margin-top: 16px; }
