/* ─────────────────────────────────────────────────────────────
   Trove · Landing
   iOS-native aesthetic — Liquid Glass, warm indigo, Apple chart palette.
   Tokens mirror expo/src/lib/design-tokens/*.
   ───────────────────────────────────────────────────────── */

/* Geist + Geist Mono load via <link rel="preconnect"/"stylesheet"> in
   index.html's <head> — deliberately NOT @import-ed here. @import would
   force this CSS to download before the font request is even discovered,
   adding a render-blocking round-trip. Keep the font <link> in the HTML. */

/* ─── Tokens (iOS-system — DEFAULT light) ────────────────── */
:root {
  /* Neutrals — mirrors neutrals.light from colour.ts */
  --canvas:        #FFFFFF;
  --elevated:      #F2F2F7;
  --sunken:        #EFEFF4;
  --text:          #11181C;
  --text-2:        rgba(60, 60, 67, 0.60);
  --text-3:        rgba(60, 60, 67, 0.30);
  --divider:       rgba(60, 60, 67, 0.18);
  --line:          rgba(60, 60, 67, 0.12);
  --line-strong:   rgba(60, 60, 67, 0.24);

  /* Surfaces */
  --paper:         #FAFAFC;        /* page bg, slight off-white */
  --plate:         #FFFFFF;        /* card/plate */
  --plate-2:       #F7F7FA;        /* sunken plate */
  --plate-edge:    rgba(60,60,67,0.08);

  /* Brand & semantic — from colour.ts */
  --accent:        #6366F1;        /* warm indigo */
  --accent-2:      #4F46E5;
  --accent-soft:   rgba(99, 102, 241, 0.10);
  --accent-ink:    #FFFFFF;

  --positive:      #34C759;
  --negative:      #FF3B30;
  --warning:       #FF9500;
  --info:          #007AFF;

  /* Categorical chart palette — from chart.* */
  --c-cash:        #34C759;
  --c-savings:     #5AC8FA;
  --c-investment:  #5856D6;
  --c-pension:     #AF52DE;
  --c-property:    #FF9500;
  --c-liabilities: #FF3B30;

  /* Glass-tint surfaces */
  --glass-bg:      rgba(255, 255, 255, 0.70);
  --glass-blur:    blur(18px) saturate(1.4);

  /* Type stacks */
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-sans:    'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

  /* Density (standard) */
  --pad-section:  120px;
  --pad-block:    32px;
  --rad-xl:       22px;
  --rad-lg:       16px;
  --rad-md:       12px;
  --rad-sm:       8px;

  --maxw:         1240px;
}

/* ─── Dark mode (iOS-system) ─────────────────────────────── */
:root[data-trove-theme="dark"] {
  --canvas:        #000000;
  --elevated:      #1C1C1E;
  --sunken:        #2C2C2E;
  --text:          #FFFFFF;
  --text-2:        rgba(235, 235, 245, 0.60);
  --text-3:        rgba(235, 235, 245, 0.30);
  --divider:       rgba(84, 84, 88, 0.65);
  --line:          rgba(84, 84, 88, 0.40);
  --line-strong:   rgba(84, 84, 88, 0.65);

  --paper:         #0A0A0C;
  --plate:         #1C1C1E;
  --plate-2:       #2C2C2E;
  --plate-edge:    rgba(255,255,255,0.06);

  --accent:        #818CF8;
  --accent-2:      #A5B4FC;
  --accent-soft:   rgba(129, 140, 248, 0.16);
  --accent-ink:    #0A0A0C;

  --positive:      #30D158;
  --negative:      #FF453A;
  --warning:       #FF9F0A;
  --info:          #0A84FF;

  --c-cash:        #30D158;
  --c-savings:     #64D2FF;
  --c-investment:  #5E5CE6;
  --c-pension:     #BF5AF2;
  --c-property:    #FF9F0A;
  --c-liabilities: #FF453A;

  --glass-bg:      rgba(28, 28, 30, 0.70);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input { font-family: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ─── Focus (keyboard only) ──────────────────────────────── */
/* No element sets outline:none, but make the keyboard ring explicit and
   on-brand. The outline auto-follows each element's own border-radius
   (pills, cards), so no per-shape rules are needed. :focus-visible fires
   for keyboard / assistive-tech focus — not mouse or touch. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ─── Containers ─────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ─── Type ───────────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--plain::before { display: none; }

.display-1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}
.display-1 em {
  font-style: normal;
  color: var(--accent);
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}
.display-2 em { font-style: normal; color: var(--accent); }

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
  max-width: 560px;
  text-wrap: pretty;
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 68px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="true"] {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
@media (max-width: 720px) { .nav__inner { padding: 0 20px; gap: 12px; } }
/* Tighten the "Get started" CTA on phones so brand + nav + CTA all fit
   inside 320px viewports without spilling. The arrow span is decorative,
   already aria-hidden via being inside a nav link with text. */
@media (max-width: 380px) {
  .nav .btn--sm { padding: 0 12px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 4px 12px -4px color-mix(in oklab, var(--accent) 70%, transparent);
}
.brand__mark svg { width: 18px; height: 18px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 14.5px;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 160ms, background 160ms;
}
.nav__link:hover { color: var(--text); background: var(--sunken); }
@media (max-width: 600px) { .nav__link--hide-sm { display: none; } }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; font-family: var(--font-sans);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 200ms ease, background 160ms;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 10px 28px -10px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 18px 36px -12px color-mix(in oklab, var(--accent) 75%, transparent);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--sunken); }
.btn--ink {
  background: var(--text);
  color: var(--canvas);
}
.btn--ink:hover { transform: translateY(-1px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn__arrow { transition: transform 180ms; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding-top: 132px;
  padding-bottom: var(--pad-section);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}
@media (max-width: 980px) {
  /* minmax(0, 1fr) — not bare 1fr. Without the explicit 0 min, grid
     items inherit min-width:auto and grow to fit their min-content,
     which on iOS-mock-with-negative-margin children blows the column
     out beyond the viewport on 320px-wide screens (horizontal scroll
     bar appears). minmax(0, 1fr) anchors the column to the container. */
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
.hero__copy { display: flex; flex-direction: column; gap: 26px; max-width: 580px; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__cta-note { font-size: 13px; color: var(--text-3); margin-left: 4px; font-family: var(--font-mono); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-k { font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.hero__meta-v { font-size: 15px; color: var(--text); font-weight: 500; }

/* ─── iOS-style Mock Dashboard (hero) ────────────────────── */
.ios-mock {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: 28px;
  padding: 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow:
    0 1px 0 var(--plate-edge),
    0 30px 70px -28px rgba(15, 20, 34, 0.22),
    0 60px 100px -40px rgba(15, 20, 34, 0.10);
}
.ios-mock::before {
  content: ""; position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
  box-shadow: 0 0 0 1px var(--plate-edge) inset;
}
.ios-mock__chrome {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.ios-mock__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ios-mock__pills {
  display: flex; gap: 6px;
  background: var(--sunken);
  padding: 4px;
  border-radius: 999px;
}
.ios-mock__pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}
.ios-mock__pill[aria-pressed="true"] {
  background: var(--plate);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Liquid Glass plate (the hero chart card) */
.glass-plate {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--plate-edge);
  border-radius: var(--rad-xl);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.glass-plate::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--rad-xl); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 40%);
  mix-blend-mode: overlay;
}

.nw-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.nw-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.nw-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.delta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--positive) 16%, transparent);
  color: var(--positive);
}
.delta-chip__arrow {
  display: inline-block; width: 10px; height: 10px; position: relative;
}
.delta-chip__arrow::after {
  content: ""; position: absolute; inset: 0;
  border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor;
  transform: rotate(45deg); top: 2px;
}

.streak-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.streak-chip__flame { font-size: 12px; }

/* Hero chart */
.chart {
  position: relative;
  height: 168px;
  width: 100%;
  border-radius: var(--rad-md);
}
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart__grid line { stroke: var(--divider); stroke-dasharray: 2 4; opacity: 0.5; }
.chart__axis text {
  font-family: var(--font-mono); font-size: 10px; fill: var(--text-3); letter-spacing: 0.06em;
}
.chart__hover {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--text); opacity: 0; pointer-events: none; transition: opacity 120ms;
}
.chart__tooltip {
  position: absolute; transform: translate(-50%, -100%);
  background: var(--text); color: var(--canvas);
  padding: 6px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11.5px;
  white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity 120ms; margin-top: -8px;
}
.chart__tooltip::after {
  content: ""; position: absolute; bottom: -3px; left: 50%;
  width: 6px; height: 6px; background: var(--text);
  transform: translateX(-50%) rotate(45deg);
}

/* Insight chip row inside hero plate */
.insight-row {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.insight {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: var(--text);
}
.insight__dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.insight__body { flex: 1; }
.insight__body strong { font-weight: 600; }
.insight__caption { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* iOS-mock footer (tab dots) */
.ios-mock__tabs {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin: 4px -8px 0;
  padding: 12px 8px 4px;
}
.ios-mock__tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  color: var(--text-3);
}
.ios-mock__tab[data-active="true"] { color: var(--accent); }
.ios-mock__tab-icon {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  position: relative;
}
.ios-mock__tab-icon--dash::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 3px; top: 8px;
  background: currentColor; border-radius: 1px;
  -webkit-mask-image: linear-gradient(90deg, currentColor 35%, transparent 35%, transparent 50%, currentColor 50%, currentColor 75%, transparent 75%);
          mask-image: linear-gradient(90deg, currentColor 35%, transparent 35%, transparent 50%, currentColor 50%, currentColor 75%, transparent 75%);
}
.ios-mock__tab-icon--list::after,
.ios-mock__tab-icon--list::before {
  content: ""; position: absolute; left: 3px; right: 3px; height: 1.5px; background: currentColor;
}
.ios-mock__tab-icon--list::before { top: 4px; }
.ios-mock__tab-icon--list::after  { top: 10px; box-shadow: 0 4px 0 currentColor; }
.ios-mock__tab-icon--pie::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; border: 1.5px solid currentColor;
  clip-path: polygon(50% 50%, 100% 0%, 100% 100%);
}
.ios-mock__tab-icon--gear::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%; border: 1.5px solid currentColor;
}

/* ─── Section frame ──────────────────────────────────────── */
.section {
  padding-top: var(--pad-section);
  padding-bottom: var(--pad-section);
  border-top: 1px solid var(--line);
}
.section--noborder { border-top: none; }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 820px) {
  .section__head { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 40px; }
}

/* ─── Anti-positions strip ──────────────────────────────── */
.antipos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--text);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 920px) { .antipos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .antipos { grid-template-columns: minmax(0, 1fr); } }
.antipos__cell {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.antipos__cell:last-child { border-right: none; }
@media (max-width: 920px) {
  .antipos__cell:nth-child(2) { border-right: none; }
  .antipos__cell { border-bottom: 1px solid var(--line); }
}
.antipos__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--negative);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.antipos__no::before {
  content: "✕";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--negative) 16%, transparent);
  font-size: 9px;
  color: var(--negative);
}
.antipos__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 4px 0 0;
}
.antipos__sub { font-size: 13.5px; color: var(--text-2); line-height: 1.5; max-width: 280px; }

/* ─── Widget showcase ───────────────────────────────────── */
.widget-show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 920px) {
  .widget-show { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
.widget-copy { display: flex; flex-direction: column; gap: 22px; }
.widget-copy ul {
  display: flex; flex-direction: column; gap: 14px;
  list-style: none; padding: 0; margin: 0;
}
.widget-copy li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.45;
}
.widget-copy li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  justify-self: center;
}
.widget-copy strong { font-weight: 600; }
.widget-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warning);
  padding: 5px 10px;
  background: color-mix(in oklab, var(--warning) 14%, transparent);
  border-radius: 999px;
  align-self: flex-start;
}
.widget-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warning);
}

/* Phone mock (iPhone-shape) — for widget showcase */
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}
.phone {
  width: 280px;
  height: 580px;
  border-radius: 48px;
  background: linear-gradient(160deg, #2A2A2E, #1A1A1C);
  padding: 12px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 20px 60px -10px rgba(0,0,0,0.40),
    0 40px 80px -20px rgba(0,0,0,0.30);
  transform: rotate(-2deg);
}
.phone__notch {
  position: absolute;
  top: 24px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #0A0A0C;
  border-radius: 16px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  background:
    radial-gradient(ellipse at 30% 20%, #2A3A6B 0%, #1A1F3A 60%, #0F1326 100%);
  position: relative;
  overflow: hidden;
}
.phone__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.25), transparent 50%);
  pointer-events: none;
}
.phone__time {
  position: absolute;
  top: 56px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  z-index: 1;
}
.phone__date {
  position: absolute;
  top: 36px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}
.phone__widgets {
  position: absolute;
  top: 200px; left: 14px; right: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
}
.lock-widget {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.lock-widget--big {
  display: flex; flex-direction: column; gap: 6px;
}
.lock-widget__lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6B6B72;
  display: inline-flex; align-items: center; gap: 5px;
}
.lock-widget__lbl::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: #6366F1;
}
.lock-widget__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #11181C;
  font-variant-numeric: tabular-nums;
}
.lock-widget__delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34C759;
  font-variant-numeric: tabular-nums;
}
.lock-widget__spark {
  display: flex; align-items: flex-end; gap: 3px;
  height: 24px; margin-top: 4px;
}
.lock-widget__spark span {
  flex: 1;
  background: linear-gradient(180deg, #6366F1, #818CF8);
  border-radius: 2px;
}

.lock-widget--small {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
}
.lock-widget--small .lock-widget__amount { font-size: 22px; }
.lock-widget--small .lock-widget__delta { font-size: 11px; }
.lock-widget__streak {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #11181C;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ─── Value-prop grid (analytics outcomes) ──────────────── */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .values { grid-template-columns: minmax(0, 1fr); } }
.value {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--rad-xl);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden;
  transition: transform 360ms cubic-bezier(.22,1,.36,1), box-shadow 360ms;
}
.value:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -30px rgba(15,20,34,0.16); }
.value__head { display: flex; flex-direction: column; gap: 10px; }
.value__lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2);
}
.value__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.value__title em { color: var(--accent); font-style: normal; }
.value__body { font-size: 14.5px; line-height: 1.5; color: var(--text-2); margin: 0; max-width: 480px; }
.value__demo {
  margin-top: auto;
  padding-top: 12px;
}

/* Income sources list (value card) */
.income-list { display: flex; flex-direction: column; gap: 4px; }
.income-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--sunken);
  font-size: 13px;
}
.income-row__lbl { display: flex; align-items: center; gap: 8px; color: var(--text); }
.income-row__dot { width: 7px; height: 7px; border-radius: 50%; }
.income-row__pct { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); width: 36px; text-align: right; }
.income-row__amt { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

/* Yield-on-cash mini list */
.yield-list { display: flex; flex-direction: column; gap: 6px; }
.yield-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--sunken);
  font-size: 13px;
}
.yield-row__l { color: var(--text); }
.yield-row__rate { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; }
.yield-row__rate--good { color: var(--positive); }
.yield-row__rate--bad  { color: var(--warning); }
.yield-row__amt { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Spending mini (decomposition outcome) */
.spend-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px;
  background: var(--sunken);
  border-radius: var(--rad-md);
}
.spend-card__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.spend-card__sub { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.spend-card__split {
  display: flex; gap: 4px;
  margin-top: 6px;
  height: 8px;
}
.spend-card__split span { border-radius: 2px; }

/* Top movers — micro version for value card */
.movers-mini { display: flex; flex-direction: column; gap: 6px; }
.mover-mini {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--sunken);
  font-size: 13px;
}
.mover-mini__l { color: var(--text); }
.mover-mini__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--plate);
  overflow: hidden;
}
.mover-mini__bar span {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--positive);
  border-radius: 999px;
}
.mover-mini__v { font-family: var(--font-mono); font-size: 12px; color: var(--positive); font-variant-numeric: tabular-nums; }
.mover-mini__v--neg { color: var(--negative); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: transparent; border: none; text-align: left;
  padding: 22px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--text);
  cursor: pointer;
}
.faq__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  transition: transform 240ms, background 240ms, color 240ms;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: currentColor;
}
.faq__icon::before { width: 10px; height: 1.2px; }
.faq__icon::after  { width: 1.2px; height: 10px; transition: transform 240ms; }
.faq__item[data-open="true"] .faq__icon { background: var(--accent); color: #fff; border-color: var(--accent); }
.faq__item[data-open="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.faq__a > div {
  padding: 0 0 26px;
  max-width: 720px;
  font-size: 16px; line-height: 1.6; color: var(--text-2);
}

/* ─── Closing ────────────────────────────────────────────── */
.closing {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  position: relative;
}
.closing .display-1 { max-width: 14ch; }
.closing__sub { font-size: 17px; color: var(--text-2); max-width: 480px; text-wrap: pretty; }

.watermark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(220px, 30vw, 420px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--accent);
  opacity: 0.05;
  pointer-events: none; user-select: none;
  position: absolute;
  right: -20px; bottom: -40px;
  z-index: 0;
}

/* ─── Footer ─────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px; padding-bottom: 56px;
}
@media (max-width: 720px) {
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .foot__brand { grid-column: span 2; }
}
.foot__brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.foot__tag { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.foot__col { display: flex; flex-direction: column; gap: 12px; }
.foot__hd { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.foot__lnk { font-size: 14px; color: var(--text); }
.foot__lnk:hover { color: var(--accent); }
/* Placeholder variant — rendered as <span>, not <a>. Same visual rhythm
   as real links, but dimmer + no pointer cursor so the user gets a
   visual hint they're not wired yet, and no scroll-to-top jump. */
.foot__lnk--placeholder { color: var(--text-3); cursor: default; }
.foot__lnk--placeholder:hover { color: var(--text-3); }
.foot__bot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.04em;
}

/* ─── Reveals ────────────────────────────────────────────── */
[data-reveal="pending"] { opacity: 0; transform: translateY(20px); will-change: opacity, transform; }
[data-reveal="animating"] { animation: rise 800ms cubic-bezier(.22,1,.36,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
}
