/* =========================================================================
   SpendSync — waitlist landing page
   Liquid Glass design language: warm ink on warm cream, subtle same-hue
   category colour, accent #031323, SF system type, light/dark adaptive.
   Tokens mirror ios/DesignSystem/Theme.swift + CategoryGroup.swift.
   ========================================================================= */

:root {
  /* Surfaces & ink (warm) */
  --bg:            #FAF8F4;            /* screen background — warm off-white */
  --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.56);
  --ink-3:         rgba(26, 23, 20, 0.32);
  --hairline:      rgba(26, 23, 20, 0.09);
  --card:          #FFFEFC;            /* warm near-white — raised above the off-white bg */

  /* Accent — the one brand colour. Primary CTA fill; label is the bg. */
  --accent:        #031323;
  --accent-ink:    #FAF8F4;            /* label on accent = the page bg */

  /* Ember status palette — never alarm red */
  --on-track:      #1B9E5F;
  --warning:       #C8761E;
  --over:          #C25A2A;

  /* Category dominants */
  --food:          #FF6F59;
  --transport:     #1FA9C0;
  --bills:         #4A63D8;
  --shopping:      #7C4DFF;
  --lifestyle:     #D14FB0;

  /* Radii ladder */
  --r-button: 16px;
  --r-tile:   20px;
  --r-panel:  24px;
  --r-widget: 26px;
  --r-sheet:  30px;
  --r-pill:   999px;

  --maxw: 1120px;
  --shadow-soft: 0 1px 2px rgba(26,23,20,.04), 0 8px 24px rgba(26,23,20,.06);
  --shadow-card: 0 2px 6px rgba(26,23,20,.05), 0 24px 60px rgba(26,23,20,.10);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "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;
    --surface:       rgba(255, 255, 255, 0.07);
    --surface-alt:   rgba(255, 255, 255, 0.11);
    --surface-strong:rgba(255, 255, 255, 0.13);
    --ink:           #F4EFE6;
    --ink-2:         rgba(244, 239, 230, 0.62);
    --ink-3:         rgba(244, 239, 230, 0.34);
    --hairline:      rgba(244, 239, 230, 0.10);
    --card:          #1A1815;

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

    --shadow-soft: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.4);
    --shadow-card: 0 2px 6px rgba(0,0,0,.35), 0 24px 60px rgba(0,0,0,.55);
  }
}

/* ───────────────────────── 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;
}

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(--shopping) 28%, transparent); }

:focus-visible {
  outline: 2.5px solid color-mix(in srgb, var(--shopping) 70%, 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 (SF Mono, uppercase) ───────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }

/* ───────────────────────── Brand mark + wordmark ───────────────────────── */
/* Mirrors BrandMark.swift: tall coral tile + stacked ocean/violet tiles,
   scaled from --h (the tall tile's height = overall mark height).         */
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--h) * 0.10);
  height: var(--h);
}
.brandmark .bm-tall {
  width: calc(var(--h) * 0.44);
  height: var(--h);
  border-radius: calc(var(--h) * 0.16);
}
.brandmark .bm-col {
  display: inline-flex;
  flex-direction: column;
  gap: calc(var(--h) * 0.10);
}
.brandmark .bm-small {
  width: calc(var(--h) * 0.44);
  height: calc(var(--h) * 0.44);
  border-radius: calc(var(--h) * 0.14);
}
/* catFill — subtle same-hue gradient: 18% lifted toward white → base */
.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: 10px; }
.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) 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: 600px) {
  .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 .12s 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 6px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: var(--r-pill); }

/* Button loading / submitted states */
.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(64px, 11vw, 130px) clamp(18px, 5vw, 40px);
}
.section-title {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 600;
  line-height: 1.08;
}
.section-title.center { text-align: center; }
.center { text-align: center; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 84px) clamp(18px, 5vw, 40px) clamp(40px, 7vw, 90px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 540px; }
.hero-title {
  font-size: clamp(40px, 7.2vw, 70px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 30em;
}

/* ───────────────────────── 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(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-button);
  padding: 15px 16px;
  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(--shopping) 55%, var(--hairline));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--shopping) 14%, 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); }

/* Success swap — hide the field, show a confirmation pill */
.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 row */
.trust-row {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-track  { background: var(--on-track); }
.dot-violet { background: var(--shopping); }
.dot-ocean  { background: var(--transport); }

/* ───────────────────────── Phone mockup ───────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.glow {
  position: absolute;
  inset: -8% -4% 6%;
  background:
    radial-gradient(46% 40% at 30% 22%, color-mix(in srgb, var(--food) 42%, transparent), transparent 70%),
    radial-gradient(44% 42% at 78% 30%, color-mix(in srgb, var(--shopping) 40%, transparent), transparent 72%),
    radial-gradient(50% 40% at 60% 88%, color-mix(in srgb, var(--transport) 34%, transparent), transparent 72%);
  filter: blur(46px);
  opacity: .7;
  z-index: 0;
  pointer-events: none;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(330px, 80vw);
  aspect-ratio: 326 / 664;
  background: color-mix(in srgb, var(--ink) 88%, #000);
  border-radius: 52px;
  padding: 11px;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--ink) 70%, transparent),
    var(--shadow-card);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

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

/* App header — brand mark + wordmark, then two circular glass actions (DashboardHeader.swift) */
.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 20px;
}
.app-word { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.app-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Each control is its own circular "Liquid Glass" capsule (SS-53), not one merged pill. */
.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 — sentence-case eyebrow, big figure with currency TRAILING + lighter, calm sub */
.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;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.m-cur { font-size: 18px; font-weight: 600; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
/* Whole subline is on-track green when under budget (HeroSpendCard.subline.color). */
.m-subline { margin-top: 5px; font-size: 12.5px; font-weight: 500; color: var(--on-track); }

/* Flat, group-hued treemap — area ∝ spend, rendered as proportional flex rows (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; }   /* flex-grow (∝ row spend) set inline */

.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;
}                                                      /* flex-grow (∝ tile spend) set inline */
/* Solid group gradient + a soft top sheen — native glass stays on chrome, tiles stay flat. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.22), transparent 55%);
  pointer-events: none;
}
.tile::after {            /* glossy specular top-edge */
  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,.06), transparent 55%); }
  .tile::after  { box-shadow: inset 0 1px 0 rgba(255,255,255,.20); }
}

/* Group dominants → vibrant two-colour gradients (CategoryGroup.gradientStops). */
.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); }

.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 {            /* % badge — black wash capsule, top-right */
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0,0,0,.16);
  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: 600;
  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,.16);
  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; }   /* pale ember (Theme.over.lifted) when over budget */

/* ───────────────────────── Flying capture elements ───────────────────────── */
/* The "bank SMS → categorized → on budget" story, drifting around the phone. Minimal:
   ≈4 sparse glass chips, slow desynced float; degrade/hide on small screens; motionless
   under prefers-reduced-motion (handled by the global motion block below). */
.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) 80%, transparent);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) 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: 3%;    left: -6%; }
.cap-pill { top: 27%;   right: -7%; font-weight: 600; }
.cap-chip { bottom: 25%; right: -3%; }
.cap-ok   { bottom: 8%;  left: -4%; }

.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; }

/* ───────────────────────── How it works ───────────────────────── */
.how .section-title { margin-bottom: 54px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 30px);
}
.step {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.step h3 { font-size: 20px; font-weight: 600; margin: 20px 0 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.orb {
  width: 54px; height: 54px;
  border-radius: 17px;
  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); }

/* ───────────────────────── Privacy band ───────────────────────── */
.privacy { padding-top: clamp(10px, 2vw, 24px); }
.privacy-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--transport) 16%, var(--card)), var(--card) 58%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sheet);
  padding: clamp(34px, 6vw, 64px);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.privacy-icon {
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #5BE7C4, #1789C9);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--transport) 36%, transparent);
}
.privacy-card .eyebrow { color: var(--transport); }
.privacy-sub {
  margin: 18px auto 0;
  max-width: 50ch;
  font-size: clamp(16px, 1.9vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ───────────────────────── Final CTA ───────────────────────── */
.cta { padding-top: clamp(20px, 4vw, 50px); }
.cta-card {
  background: var(--accent);
  border-radius: var(--r-sheet);
  padding: clamp(40px, 7vw, 76px) clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-card .eyebrow,
.cta-card .section-title { color: var(--accent-ink); }
.cta-card .eyebrow { opacity: .7; }
.cta-sub {
  margin: 16px auto 0;
  max-width: 42ch;
  color: color-mix(in srgb, var(--accent-ink) 76%, transparent);
  font-size: clamp(16px, 1.9vw, 18px);
}
/* On the dark CTA card the input + button invert for contrast */
.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);
}
.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); }

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(20px, 4vw, 40px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px clamp(18px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-note { font-size: 13.5px; color: var(--ink-3); }

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

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 600px; margin-inline: auto; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .waitlist .field { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .hero-visual { margin-top: 14px; order: 2; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  /* Sparser when stacked: keep just the SMS bubble + the category pill, pulled in. */
  .cap-chip, .cap-ok { display: none; }
  .cap-sms  { left: -2%; }
  .cap-pill { right: -2%; }
}
@media (max-width: 480px) {
  .field { flex-direction: column; }
  .field .btn { width: 100%; }
}
/* On the narrowest screens the phone fills the width — drop the floats entirely so nothing
   clips against the viewport edge. */
@media (max-width: 560px) {
  .cap { display: none; }
}

/* ───────────────────────── Motion / contrast prefs ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
  .cap { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================================
   Content pages — Privacy Policy + Releases (privacy.html, releases.html)
   Shares the tokens / nav / footer / buttons above; adds long-form prose,
   tables, fact cards and a changelog. Legal text must always render, so these
   never use the JS-gated .reveal pattern.
   ========================================================================= */
.doc {
  max-width: 768px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 92px) clamp(18px, 5vw, 40px) clamp(56px, 9vw, 112px);
}

/* Header */
.doc-header { margin-bottom: clamp(30px, 5vw, 52px); }
.doc-title {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  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);
}

/* Prose rhythm */
.doc section { margin-top: clamp(34px, 5vw, 54px); }
.doc h2 {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
  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(--shopping) 50%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s, color .2s;
}
.doc a:not(.btn):hover { text-decoration-color: var(--shopping); }

/* On-this-page quick nav */
.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 band — neutral + accent (privacy = ocean tint) variants */
.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(--transport) 15%, var(--card)), var(--card) 60%);
  border-color: color-mix(in srgb, var(--transport) 26%, var(--hairline));
}

/* Inline tag, e.g. "Always on" */
.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); }

/* Fact cards — what leaves / what never leaves */
.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, #5BE7C4, #1789C9); }

/* Data table */
.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; }

/* =========================================================================
   Changelog (releases.html)
   ========================================================================= */
.changelog { margin-top: clamp(28px, 5vw, 44px); }
.release {
  padding: clamp(26px, 4vw, 36px) 0;
  border-top: 1px solid var(--hairline);
}
.release:first-child { border-top: none; padding-top: 4px; }
.release-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 6px; }
.release-version { font-size: clamp(23px, 3.4vw, 30px); font-weight: 600; letter-spacing: -0.025em; }
.release-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--shopping) 14%, transparent);
  color: var(--shopping);
}
.release-date {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.release-sub { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 6px 0 22px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 12%, transparent);
}
.feature-text strong { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.feature-text span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.fi-coral  { background: linear-gradient(150deg, #FFB37A, #FF4D6D); }
.fi-ocean  { background: linear-gradient(150deg, #5BE7C4, #1789C9); }
.fi-violet { background: linear-gradient(150deg, #A88BFF, #4B2FD6); }
.fi-indigo { background: linear-gradient(150deg, #8AA0FF, #3A57D6); }
.fi-magenta{ background: linear-gradient(150deg, #FF7AC6, #9B2BE0); }

/* "More to come" footer note on the changelog */
.release-more {
  margin-top: clamp(28px, 4vw, 40px);
  padding: 22px 24px;
  border: 1px dashed var(--hairline);
  border-radius: var(--r-panel);
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
}

/* =========================================================================
   Footer links row (shared — added to index.html + content pages)
   ========================================================================= */
.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: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
