@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=DM+Sans:wght@400;500;600;700&display=swap");

/* ─── Palette: Light (default) ─── */
:root {
  --bg: #f7f6f3;
  --bg-alt: #efeee9;
  --bg-warm: #f0ece4;
  --white: #ffffff;

  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #8a8a8a;
  --text-dim: #b0b0b0;

  /* App accent colors */
  --navy: #1c2840;
  --navy-light: #283752;
  --red: #e83e3e;
  --red-deep: #c82828;
  --blue: #3478f6;
  --blue-light: #e8f0fe;
  --green: #34c759;
  --orange: #f5a623;

  --line: #e2e0db;
  --line-light: #eeedea;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-phone: 0 24px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --max-width: 1200px;

  /* Theme-specific vars for hardcoded values */
  --topbar-bg: rgba(247, 246, 243, 0.8);
  --topbar-scrolled-shadow: 0 1px 8px rgba(0,0,0,0.04);
  --floating-chapters-bg: rgba(255, 255, 255, 0.92);
  --floating-chapters-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --hero-gradient-1: rgba(232, 240, 254, 0.5);
  --hero-gradient-2: rgba(240, 236, 228, 0.6);
  --phone-border-color: #222;
  --phone-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 0 20px rgba(0,0,0,0.04);
  --hero-phone-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 0 30px rgba(0,0,0,0.06);
  --hero-phone-border: #333;
  --btn-primary-bg: var(--text-primary);
  --btn-primary-color: #fff;
  --btn-primary-hover-bg: #333;
  --btn-primary-hover-shadow: 0 4px 16px rgba(0,0,0,0.12);
  --btn-ghost-hover-bg: var(--white);
  --btn-ghost-hover-border: var(--text-dim);
  --skip-link-color: #fff;
  --balance-gradient-end: #1e2e52;
  --balance-shadow: 0 8px 32px rgba(28, 40, 64, 0.25);
  --balance-amount-color: #fff;
  --balance-hover-shadow: 0 12px 48px rgba(52, 120, 246, 0.3), 0 4px 16px rgba(28, 40, 64, 0.3);
  --bank-chip-bg: var(--white);
  --bank-chip-border: var(--line-light);
  --bank-chip-shadow: var(--shadow-card);
  --bank-chip-hover-border: var(--line);
  --month-card-bg: linear-gradient(160deg, var(--red), var(--red-deep));
  --month-card-color: #fff;
  --month-card-border: none;
  --month-sides-bg: rgba(255,255,255,0.15);
  --month-sides-color: inherit;
  --month-hover-shadow: 0 12px 48px rgba(232, 62, 62, 0.25), 0 4px 16px rgba(200, 40, 40, 0.2);
  --metrics-bg: var(--navy);
  --metrics-color: #fff;
  --metrics-label-color: rgba(255,255,255,0.5);
  --metrics-h2-color: #fff;
  --metric-card-bg: rgba(255,255,255,0.06);
  --metric-card-border: rgba(255,255,255,0.1);
  --metric-value-color: #fff;
  --metric-label-color: rgba(255,255,255,0.6);
  --metric-card-hover-bg: rgba(255,255,255,0.1);
  --metric-card-hover-shadow: 0 12px 40px rgba(0,0,0,0.15);
  --star-color: #f5a623;
  --metric-star-color: #f5a623;
  --testimonial-star-color: #f5a623;
  --testimonial-bg: var(--white);
  --testimonial-border: var(--line-light);
  --testimonial-shadow: var(--shadow-card);
  --step-card-bg: var(--white);
  --step-card-border: var(--line-light);
  --step-number-bg: var(--text-primary);
  --step-number-color: #fff;
  --step-hover-border: var(--line);
  --step-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --testimonial-hover-border: var(--line);
  --testimonial-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --feature-list-bg: var(--white);
  --feature-list-border: var(--line-light);
  --feature-list-hover-border: var(--line);
  --tilt-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
  --qr-modal-bg: var(--white);
  --qr-modal-border: var(--line-light);
  --qr-modal-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  --orb1-color: rgba(52, 120, 246, 0.3);
  --orb2-color: rgba(52, 199, 89, 0.2);
  --orb3-color: rgba(245, 166, 35, 0.18);

  /* Theme toggle icon */
  --theme-icon-display-sun: none;
  --theme-icon-display-moon: block;

  color-scheme: light;
}

/* ─── Dark Theme: Chartreuse + Gun Metal ─── */
[data-theme="dark"] {
  --bg: #00272b;
  --bg-alt: #003338;
  --bg-warm: #013d42;
  --white: #00272b;

  --text-primary: #e0ff4f;
  --text-secondary: #b8d44a;
  --text-muted: #7a9a3a;
  --text-dim: #4a6a2a;

  --navy: #001a1d;
  --navy-light: #003338;
  --red: #ff6b6b;
  --red-deep: #e05252;
  --blue: #e0ff4f;
  --blue-light: rgba(224, 255, 79, 0.1);
  --green: #4ade80;
  --orange: #fbbf24;

  --line: rgba(224, 255, 79, 0.15);
  --line-light: rgba(224, 255, 79, 0.08);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.2);
  --shadow-phone: 0 24px 80px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);

  --topbar-bg: rgba(0, 39, 43, 0.85);
  --topbar-scrolled-shadow: 0 1px 8px rgba(0,0,0,0.2);
  --floating-chapters-bg: rgba(0, 39, 43, 0.92);
  --floating-chapters-shadow: 0 4px 20px rgba(0,0,0,0.2);
  --hero-gradient-1: rgba(224, 255, 79, 0.06);
  --hero-gradient-2: rgba(0, 51, 56, 0.6);
  --phone-border-color: rgba(224, 255, 79, 0.2);
  --phone-shadow: 0 24px 80px rgba(0,0,0,0.3), 0 0 20px rgba(224, 255, 79, 0.05);
  --hero-phone-shadow: 0 24px 80px rgba(0,0,0,0.3), 0 0 30px rgba(224, 255, 79, 0.08);
  --hero-phone-border: rgba(224, 255, 79, 0.25);
  --btn-primary-bg: var(--blue);
  --btn-primary-color: var(--navy);
  --btn-primary-hover-bg: #d4f247;
  --btn-primary-hover-shadow: 0 4px 16px rgba(224, 255, 79, 0.25);
  --btn-ghost-hover-bg: rgba(224, 255, 79, 0.08);
  --btn-ghost-hover-border: rgba(224, 255, 79, 0.3);
  --skip-link-color: var(--navy);
  --balance-gradient-end: #004d54;
  --balance-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --balance-amount-color: #e0ff4f;
  --balance-hover-shadow: 0 12px 48px rgba(224, 255, 79, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
  --bank-chip-bg: var(--bg-alt);
  --bank-chip-border: var(--line);
  --bank-chip-shadow: 0 2px 12px rgba(0,0,0,0.15);
  --bank-chip-hover-border: rgba(224, 255, 79, 0.3);
  --month-card-bg: linear-gradient(160deg, #1a4a2e, #0d3320);
  --month-card-color: #e0ff4f;
  --month-card-border: 1px solid rgba(224, 255, 79, 0.15);
  --month-sides-bg: rgba(224, 255, 79, 0.1);
  --month-sides-color: rgba(224, 255, 79, 0.85);
  --month-hover-shadow: 0 12px 48px rgba(224, 255, 79, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
  --metrics-bg: #e0ff4f;
  --metrics-color: var(--navy);
  --metrics-label-color: rgba(0, 39, 43, 0.5);
  --metrics-h2-color: var(--navy);
  --metric-card-bg: rgba(0, 39, 43, 0.08);
  --metric-card-border: rgba(0, 39, 43, 0.12);
  --metric-value-color: var(--navy);
  --metric-label-color: rgba(0, 39, 43, 0.6);
  --metric-card-hover-bg: rgba(0, 39, 43, 0.15);
  --metric-card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  --star-color: #e0ff4f;
  --metric-star-color: #00272b;
  --testimonial-star-color: #e0ff4f;
  --testimonial-bg: var(--bg-alt);
  --testimonial-border: var(--line);
  --testimonial-shadow: 0 2px 12px rgba(0,0,0,0.15);
  --step-card-bg: var(--bg-alt);
  --step-card-border: var(--line);
  --step-number-bg: var(--blue);
  --step-number-color: var(--navy);
  --step-hover-border: rgba(224, 255, 79, 0.25);
  --step-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
  --testimonial-hover-border: rgba(224, 255, 79, 0.25);
  --testimonial-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
  --feature-list-bg: var(--bg-alt);
  --feature-list-border: var(--line);
  --feature-list-hover-border: rgba(224, 255, 79, 0.3);
  --tilt-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  --qr-modal-bg: var(--bg-alt);
  --qr-modal-border: var(--line);
  --qr-modal-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --orb1-color: rgba(224, 255, 79, 0.15);
  --orb2-color: rgba(0, 80, 90, 0.35);
  --orb3-color: rgba(224, 255, 79, 0.08);

  --theme-icon-display-sun: block;
  --theme-icon-display-moon: none;

  color-scheme: dark;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 300ms ease, color 300ms ease;
}

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: 10px;
  top: -48px;
  background: var(--blue);
  color: var(--skip-link-color);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 999;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 10px; }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

/* ─── Theme Toggle ─── */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--bg-alt);
}
.theme-toggle .icon-sun { display: var(--theme-icon-display-sun); }
.theme-toggle .icon-moon { display: var(--theme-icon-display-moon); }

/* ─── Topbar ─── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
  transition: background 300ms ease;
}

.topbar.scrolled {
  box-shadow: var(--topbar-scrolled-shadow);
}

.topbar-inner {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}
.topbar-social:hover {
  color: var(--text-primary);
  background: var(--bg-alt);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-edition {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 150ms ease;
}
.topbar-link:hover { color: var(--text-primary); }
.topbar-search svg { opacity: 0.5; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: var(--btn-primary-color);
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  box-shadow: var(--btn-primary-hover-shadow);
}

.btn-ghost {
  color: var(--text-primary);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--btn-ghost-hover-bg);
  border-color: var(--btn-ghost-hover-border);
}

.btn-lg {
  min-height: 46px;
  padding: 0 24px;
  font-size: 0.95rem;
}

.btn-apple svg {
  flex-shrink: 0;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 70% 40%, var(--hero-gradient-1), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, var(--hero-gradient-2), transparent 60%),
    var(--bg);
  transition: background 300ms ease;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-headline-block {
  width: 100%;
  opacity: 0;
  animation: fadeUp 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
}

.hero-title {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
}

.hero-title-word {
  font-size: clamp(3.5rem, 9vw, 8rem);
  white-space: nowrap;
}

.hero-title-row--phone {
  position: relative;
  gap: 0;
}

.hero-title-row--phone .hero-title-word:first-child {
  margin-right: -0.1em;
}

.hero-title-row--phone .hero-title-word:last-child {
  margin-left: -0.1em;
}

.hero-title-accent em,
.hero-title-row--phone em {
  font-style: italic;
  color: var(--blue);
}

/* Phone inline in the text */
.hero-phone-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  z-index: 2;
  margin: 0 -0.15em;
}

.hero-phone-inline .phone-frame {
  width: clamp(120px, 14vw, 200px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--hero-phone-shadow);
  background: var(--navy);
  border: 4px solid var(--hero-phone-border);
  position: relative;
  transform: rotate(-6deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-phone-inline .phone-frame:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero-phone-inline .phone-frame img {
  width: 100%;
  height: 200%;
  display: block;
  object-fit: cover;
  object-position: center top;
  animation: phoneScroll 8s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes phoneScroll {
  0%, 15% { object-position: center top; }
  40%, 60% { object-position: center bottom; }
  85%, 100% { object-position: center top; }
}

.hero-sub {
  margin: 12px auto 28px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 52ch;
  text-align: center;
  opacity: 0;
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) 700ms forwards;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) 850ms forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Floating Chapters ─── */
.floating-chapters {
  position: fixed;
  z-index: 95;
  left: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vh, 20px);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--floating-chapters-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-light);
  box-shadow: var(--floating-chapters-shadow);
  min-width: 170px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-chapters.chapters-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-chapters ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.floating-chapters li {
  display: grid;
  grid-template-columns: 1fr 26px;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
}

.floating-chapters a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: color 150ms ease;
}

.floating-chapters a:hover { color: var(--text-primary); }

.floating-chapters a.active {
  color: var(--text-primary);
  font-weight: 700;
}

.floating-chapters span {
  color: var(--text-dim);
  font-size: 0.66rem;
  text-align: right;
  font-weight: 500;
}

.floating-chapters a.active + span {
  color: var(--blue);
}

/* ─── Section Headers (shared) ─── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

.section-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.section-subtitle {
  margin: 8px auto 0;
  text-align: center;
}

/* ─── How it Works ─── */
.how-it-works-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--step-card-bg);
  border: 1px solid var(--step-card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--step-number-bg);
  color: var(--step-number-color);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ─── Sections ─── */
.section {
  padding: clamp(4rem, 8vh, 7rem) 0;
}

.chapter {
  border-top: 1px solid var(--line-light);
}

.chapter:nth-child(odd) {
  background: var(--bg);
}

.chapter:nth-child(even) {
  background: var(--bg-alt);
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.chapter-grid--reverse {
  direction: rtl;
}
.chapter-grid--reverse > * {
  direction: ltr;
}

#dashboard .chapter-grid {
  align-items: start;
}

.chapter-copy {
  max-width: 520px;
}

/* Chapter phone mockups */
.chapter-phone {
  display: flex;
  justify-content: center;
  margin: 0;
}

/* Base phone frame (used in chapters) */
.phone-frame {
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--phone-shadow);
  background: var(--navy);
  border: 6px solid var(--phone-border-color);
  position: relative;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.chapter-phone .phone-frame {
  width: 260px;
}

/* ─── Chapter Labels ─── */
.chapter-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.chapter-numeral {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  font-style: italic;
}

.chapter-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
}

/* ─── Typography ─── */
h1, h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.narrative {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 48ch;
  margin: 0;
}

/* ─── Feature List ─── */
.feature-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.feature-list li {
  color: var(--text-secondary);
  background: var(--feature-list-bg);
  border: 1px solid var(--feature-list-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms ease, transform 350ms ease, border-color 150ms ease;
  transition-delay: var(--stagger-delay, 0ms);
}

.chapter.visible .feature-list li {
  opacity: 1;
  transform: translateY(0);
}

.feature-list li:hover {
  border-color: var(--feature-list-hover-border);
}

/* ─── Balance Card ─── */
.balance-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--navy), var(--navy-light) 40%, var(--balance-gradient-end));
  cursor: pointer;
  box-shadow: var(--balance-shadow);
}

.balance-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.balance-top p { margin: 0; }

.balance-badge {
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 10px;
  font-size: 0.8rem;
}

.balance-amount {
  margin: 8px 0 4px;
  color: var(--balance-amount-color);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.balance-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  min-height: 1.2em;
}

.balance-date {
  font-weight: 500;
}

.balance-txns {
  font-size: 0.75rem;
  opacity: 0.7;
}

.balance-change {
  font-weight: 600;
  transition: color 150ms ease;
}

.balance-change.positive {
  color: #34c759;
}

.balance-change.negative {
  color: #ff6b6b;
}

.balance-graph {
  width: 100%;
  height: 86px;
}

.balance-graph path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Bank Chips ─── */
.bank-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bank-chip {
  padding: 12px;
  border-radius: 14px;
  background: var(--bank-chip-bg);
  color: var(--text-primary);
  border: 1px solid var(--bank-chip-border);
  box-shadow: var(--bank-chip-shadow);
  transition: border-color 150ms ease;
}
.bank-chip:hover { border-color: var(--bank-chip-hover-border); }

.bank-chip h3, .bank-chip p, .bank-chip small { margin: 0; }

.bank-chip h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.bank-chip p {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.bank-chip small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.bank-chip.add-bank {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-style: dashed;
  text-align: center;
  border-color: var(--line);
}
.bank-chip.add-bank h3 { color: var(--text-muted); }

/* ─── Month Card ─── */
.month-card {
  margin-top: 12px;
  border-radius: 22px;
  padding: 20px 16px;
  background: var(--month-card-bg);
  color: var(--month-card-color);
  border: var(--month-card-border);
}

.month-title {
  margin: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.month-label {
  margin: 6px 0 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  opacity: 0.8;
}

.month-value {
  margin: 6px 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.month-sides {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.month-sides span {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  background: var(--month-sides-bg);
  padding: 8px 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--month-sides-color);
}

/* ─── Metrics ─── */
.metrics-section {
  background: var(--metrics-bg);
  color: var(--metrics-color);
}

.metrics-section .section-label {
  color: var(--metrics-label-color);
}

.metrics-section h2 {
  color: var(--metrics-h2-color);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  background: var(--metric-card-bg);
  border: 1px solid var(--metric-card-border);
}

.metric-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 10px;
}

.metric-stars svg {
  color: var(--metric-star-color);
}

.testimonial-stars svg {
  color: var(--testimonial-star-color);
}

.metric-value {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--metric-value-color);
}

.metric-label {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--metric-label-color);
  font-weight: 500;
}

/* ─── Testimonials ─── */
.testimonials-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--testimonial-bg);
  border: 1px solid var(--testimonial-border);
  box-shadow: var(--testimonial-shadow);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.testimonial-card p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.testimonial-card footer {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.testimonial-card footer span {
  color: var(--text-muted);
  font-weight: 400;
}

/* ─── FAQ ─── */
.faq-section {
  border-top: 1px solid var(--line-light);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line-light);
}

.faq-item summary {
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 150ms ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover { color: var(--blue); }

.faq-item p {
  margin: 0 0 18px;
  padding-right: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-extra {
  display: none;
}
.faq-extra[hidden] { display: none; }
.faq-extra.faq-extra--visible {
  display: contents;
}

.btn-load-more-faq {
  margin: 28px auto 0;
  display: block;
  font-size: 0.95rem;
  padding: 10px 28px;
  border-radius: 8px;
  cursor: pointer;
}

/* ─── Talk to Founder Sheet ─── */
.btn-talk-founder {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.founder-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.founder-overlay[hidden] { display: none; }
.founder-overlay.founder-overlay--open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.founder-sheet {
  background: var(--bg, #f7f6f3);
  color: var(--text-primary);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 32px 28px 36px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.founder-overlay--open .founder-sheet {
  transform: translateY(0);
}

.founder-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.founder-sheet-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.founder-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.founder-close:hover {
  background: var(--bg-alt, #efeee9);
}

.founder-sheet-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 0 24px;
}

.founder-field {
  margin-bottom: 18px;
}
.founder-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.founder-field input,
.founder-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--line-light);
  border-radius: 10px;
  background: var(--bg-alt, #efeee9);
  color: var(--text-primary);
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}
.founder-field input:focus,
.founder-field textarea:focus {
  border-color: var(--blue);
}
.founder-field textarea {
  resize: vertical;
  min-height: 100px;
}

.founder-submit {
  width: 100%;
  margin-top: 6px;
}

.founder-success {
  text-align: center;
  padding: 40px 0 20px;
}
.founder-success svg {
  color: var(--green, #34c759);
  margin-bottom: 16px;
}
.founder-success p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .founder-sheet {
    border-radius: 20px;
    margin-bottom: 40px;
  }
}

/* ─── Final CTA ─── */
.final-cta-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--line-light);
}

.final-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.final-cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.final-cta-inner .narrative {
  margin: 0 auto 24px;
  text-align: center;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--line-light);
  padding: 24px 0 36px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-left p { margin: 0; }

.footer-left a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-left a:hover { color: var(--text-secondary); }

.footer-top {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease;
}
.footer-top:hover { color: var(--blue); }

/* Reveal handled in animation section below */

/* ─── Responsive ─── */
@media (max-width: 1030px) {
  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .chapter-grid--reverse {
    direction: ltr;
  }

  .chapter-copy {
    max-width: 100%;
    margin: 0 auto;
  }

  .narrative { margin-left: auto; margin-right: auto; }

  .chapter-phone .phone-frame { width: 220px; }

  .bank-row { grid-template-columns: 1fr; }
  .month-sides { flex-direction: column; }

  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .hero-title-word {
    font-size: clamp(3rem, 7.5vw, 6rem);
  }

  .hero-phone-inline .phone-frame {
    width: clamp(80px, 10vw, 140px);
    border-radius: 16px;
    border-width: 3px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: clamp(2.5rem, 6vh, 4rem) 0;
  }

  .topbar-link { display: none; }

  .hero-title-word {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .hero-title-row {
    gap: 0.1em;
  }

  .hero-phone-inline .phone-frame {
    width: clamp(60px, 15vw, 100px);
    border-radius: 12px;
    border-width: 2px;
  }

  .hero-sub {
    font-size: 0.92rem;
    max-width: 36ch;
  }

  .chapter-phone .phone-frame { width: 190px; }

  .floating-chapters {
    left: 8px;
    bottom: 8px;
    min-width: 140px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .floating-chapters a { font-size: 0.78rem; }
  .floating-chapters span { font-size: 0.62rem; }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .metric-card { padding: 20px 12px; }
  .metric-value { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-left {
    flex-direction: column;
    gap: 6px;
  }
}

/* ─── QR Modal ─── */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.qr-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qr-modal {
  position: relative;
  background: var(--qr-modal-bg);
  border: 1px solid var(--qr-modal-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  box-shadow: var(--qr-modal-shadow);
  max-width: 340px;
  width: 90%;
  transform: scale(0.92) translateY(12px);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qr-modal-overlay.active .qr-modal {
  transform: scale(1) translateY(0);
}

.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 150ms ease;
}
.qr-modal-close:hover { color: var(--text-primary); }

.qr-modal-content {
  text-align: center;
}

.qr-code-box {
  display: inline-block;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.qr-code-box img,
.qr-code-box canvas {
  display: block;
}

.qr-modal-content h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.qr-modal-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-qr-trigger svg {
  flex-shrink: 0;
}

/* ─── Global Grain Texture ─── */
.global-grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* ─── Hero Floating Orbs ─── */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--orb1-color), transparent 70%);
  top: -10%;
  right: -5%;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--orb2-color), transparent 70%);
  bottom: -5%;
  left: -10%;
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--orb3-color), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(1.1); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
  33% { transform: translateX(-50%) translate(40px, 20px) scale(1.08); }
  66% { transform: translateX(-50%) translate(-30px, -30px) scale(0.95); }
}

/* Hero grain overlay (extra on top of global) */
.grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ─── Magnetic Tilt Effect ─── */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

[data-tilt]:hover {
  box-shadow: var(--tilt-hover-shadow);
}

/* ─── Hero Phone 3D Tilt ─── */
.hero-phone-inline {
  perspective: 800px;
}

.hero-phone-inline .phone-frame {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.hero-phone-inline .phone-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-phone-inline .phone-frame:hover::after {
  opacity: 1;
}

/* ─── Scroll Parallax ─── */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ─── Enhanced Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.reveal .chapter-label,
.reveal h2,
.reveal .narrative,
.reveal .feature-list,
.reveal .balance-card,
.reveal .bank-row,
.reveal .month-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible .chapter-label { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.reveal.visible h2 { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.reveal.visible .narrative { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
.reveal.visible .feature-list { opacity: 1; transform: translateY(0); transition-delay: 400ms; }
.reveal.visible .balance-card { opacity: 1; transform: translateY(0); transition-delay: 350ms; }
.reveal.visible .bank-row { opacity: 1; transform: translateY(0); transition-delay: 450ms; }
.reveal.visible .month-card { opacity: 1; transform: translateY(0); transition-delay: 350ms; }

/* Chapter phone slide-in */
.reveal .chapter-phone {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms,
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}

.reveal.visible .chapter-phone {
  opacity: 1;
  transform: translateX(0);
}

/* Reversed chapters - phone slides from left */
.chapter-grid--reverse + .chapter-phone,
.chapter-grid--reverse .chapter-phone {
  transform: translateX(-60px);
}

.reveal.visible .chapter-grid--reverse .chapter-phone {
  transform: translateX(0);
}

/* ─── Enhanced Card Hover Effects ─── */
.step-card {
  transition: border-color 150ms ease, box-shadow 300ms ease, transform 300ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.step-card:hover {
  border-color: var(--step-hover-border);
  box-shadow: var(--step-hover-shadow);
  transform: translateY(-4px);
}

.testimonial-card {
  transition: border-color 150ms ease, box-shadow 300ms ease, transform 300ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.testimonial-card:hover {
  border-color: var(--testimonial-hover-border);
  box-shadow: var(--testimonial-hover-shadow);
  transform: translateY(-4px);
}

.metric-card {
  transition: background 300ms ease, box-shadow 300ms ease, transform 300ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.metric-card:hover {
  background: var(--metric-card-hover-bg);
  box-shadow: var(--metric-card-hover-shadow);
  transform: translateY(-4px);
}

/* Balance card glow on hover */
.balance-card {
  transition: box-shadow 400ms ease, transform 300ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.balance-card:hover {
  box-shadow: var(--balance-hover-shadow);
}

/* Month card glow on hover */
.month-card {
  transition: box-shadow 400ms ease, transform 300ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.month-card:hover {
  box-shadow: var(--month-hover-shadow);
}

/* ─── Smooth Button Upgrades ─── */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--btn-x, 50%) var(--btn-y, 50%), rgba(255,255,255,0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal .chapter-label,
  .reveal h2,
  .reveal .narrative,
  .reveal .feature-list,
  .reveal .balance-card,
  .reveal .bank-row,
  .reveal .month-card,
  .reveal .chapter-phone {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-headline-block,
  .hero-sub,
  .hero-cta-row {
    opacity: 1;
    animation: none;
    transition: none;
  }

  .floating-chapters {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn { transition: none; }
  .btn::after { display: none; }

  .orb { animation: none; }
  .hero-phone-inline .phone-frame img { animation: none; }
  [data-tilt] { transition: none; }
  [data-parallax] { transition: none; }
  .global-grain { display: none; }
  .grain-overlay { display: none; }
}
