/* ── Site-only layout + typography ────────────────────────────────
   The component CSS (.gtg-hero, .pocket-card, .tx-card, .badge, etc.)
   is loaded from _app-styles.css — auto-synced from web/styles.css. We
   rely on that for visual parity with the real app, and only override
   page-level layout, typography, and site-specific sections here.
*/

:root {
  /* Site-only tokens. Brand colors come from the synced app sheet
     (--accent / --green / --red / etc.). These add a soft warm pop and
     a couple of motion curves we use for the bouncy feel. */
  --gold:        #f6c860;
  --gold-soft:   rgba(246, 200, 96, 0.14);
  --accent-glow: rgba(124, 111, 247, 0.28);
  --max-w:       1120px;

  /* Serif headlines = literary / inviting / Hitchhiker-y. The app
     stays sans, so this scope is intentional: site only. */
  --font-serif:  'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, 'PT Serif', Georgia, serif;

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle vertical wash. One gradient stretched the full body height,
   no-repeat — using `background-size: 100% 100%` and `background-repeat:
   no-repeat` keeps it a single continuous fade with no harsh seam. */
body {
  background-color: var(--bg);
  background-image: linear-gradient(180deg,
    rgba(124, 111, 247, 0.12) 0%,
    rgba(124, 111, 247, 0.04) 35%,
    transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  line-height: 1.65;
  min-height: 100vh;
  /* Belt + suspenders against horizontal scroll on mobile: any element
     wider than 100vw shouldn't reveal a scrollbar. The actual culprits
     (decorative glows, off-screen carets) all stay inside the viewport
     thanks to overflow:clip on body, and overflow-x:hidden on html for
     older browsers that don't support `clip`. */
  overflow-x: clip;
}
html { overflow-x: hidden; }
em { font-style: italic; color: var(--accent); }

/* The app sheet has a global `a:hover { text-decoration: underline }` —
   that's the right behavior in-app (auth links, category-rename, etc.)
   but on the site page we want zero underlines anywhere. Override
   for both states so nav links, footer links, anchors, and CTAs stay
   clean. The cursor change already signals "clickable." */
a, a:hover { text-decoration: none; }

/* The app sheet sets `.page { display:none }` — there is no .page in
   site so it's harmless. Same for #app-header / #bottom-nav. */

/* ── Top nav ─────────────────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  background: rgba(15, 15, 19, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.18s var(--ease-soft);
}
.brand:hover { opacity: 0.85; }
/* The actual app's .logo-text rule comes from _app-styles.css. We don't
   touch font-family / font-weight / colors here so the wordmark stays
   identical to the app (system sans, weight 800, "by Hoopy" purple). */
.top-nav .logo-text { font-size: 22px; }

.nav-links {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 4px;
  text-decoration: none;
  transition: color 0.18s var(--ease-soft);
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 10px; flex-shrink: 0; }

.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.22s var(--ease-bounce), opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 49;
  flex-direction: column;
  padding: 18px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 4px;
}
.nav-drawer a {
  padding: 14px 4px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
}
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer .drawer-signin { color: var(--muted); margin-top: 8px; }
.nav-drawer .drawer-signup { color: var(--accent); font-weight: 600; }
.nav-drawer.open { display: flex; }

/* ── Buttons (bouncy, but no tilt) ───────────────────────────────── */
/* These override the app's .btn-primary base with site variants —
   pill shape, lift on hover, no rotation. */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  width: auto;
  transition:
    background 0.2s var(--ease-soft),
    border-color 0.2s var(--ease-soft),
    color 0.2s var(--ease-soft),
    transform 0.25s var(--ease-bounce),
    box-shadow 0.25s var(--ease-soft);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 111, 247, 0.32);
}
.btn-primary:hover {
  background: var(--accent-deep, #5a54c4);
  box-shadow: 0 8px 22px rgba(124, 111, 247, 0.45);
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(124, 111, 247, 0.08);
}
.btn-ghost:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ── Sections ────────────────────────────────────────────────────── */
main { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section-inner { max-width: 880px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-h {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text);
}
.section-h em { color: var(--accent); font-style: italic; }
.section-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.6;
}
.section-lede em { color: var(--text); font-style: italic; }
.section-tail {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin-top: 40px;
  line-height: 1.7;
}
.section-tail em { color: var(--text); font-style: italic; }

/* ── Hero ──────────────────────────────────────────────────────────
   Three items inside .hero-inner: text-top, hero-preview, text-bottom.
   Desktop uses grid-template-areas to put text on the left (top + bot
   stacked) and the preview on the right spanning both rows. Mobile
   collapses to a single column with the preview between the two text
   blocks — CTA lands directly below what it's referring to. */
.hero { padding: 80px 0 110px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top    preview"
    "bottom preview";
  gap: 0 64px;
  align-items: start;
}
.hero-text-top    { grid-area: top; }
.hero-preview     { grid-area: preview; align-self: center; justify-self: stretch; }
.hero-text-bottom { grid-area: bottom; padding-top: 28px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(246, 200, 96, 0.3);
  border-radius: 999px;
  margin-bottom: 22px;
  transform: rotate(-1.5deg);
  animation: gentleBob 4s var(--ease-soft) infinite;
}
@keyframes gentleBob {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-3px); }
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero-text-top h1 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.4vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.02;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-text-top h1 em { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}
.hero-sub em { color: var(--text); font-style: italic; }
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-fineprint {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
  max-width: 480px;
}

/* Hero preview — bare GTG hero, identical to the running app. The
   .gtg-hero element pulls every visual rule from the synced app
   stylesheet, so we don't override anything here. */
.hero-preview { position: relative; }

/* ── Why ─────────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px 22px;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.32s var(--ease-soft);
}
.why-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(124, 111, 247, 0.12);
}
.why-x {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 12px;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── How ─────────────────────────────────────────────────────────── */
.how-formula {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  margin-bottom: 56px;
  font-variant-numeric: tabular-nums;
}
.formula-piece {
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.formula-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  opacity: 0.8;
  margin-bottom: 8px;
}
.formula-val { font-size: 26px; font-weight: 700; color: var(--text); }
.formula-val.gtg-green { color: var(--green); }
.formula-op {
  font-size: 28px;
  color: var(--muted);
  opacity: 0.7;
  font-weight: 300;
  flex-shrink: 0;
}

/* The three steps are <button> elements now — clicking one swaps the
   visible .step-panel below. Reset the browser's default button look
   so they read like cards, then add an .active state that signals the
   selected step (purple border + soft fill). */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  /* Number + title on a single row, vertically centered. */
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.how-step:hover { border-color: var(--accent); }
.how-step.active {
  border-color: var(--accent);
  background: rgba(124, 111, 247, 0.08);
  box-shadow: 0 0 0 1px var(--accent);
}
.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(124, 111, 247, 0.35);
}
.how-step h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}

/* Step panels — only the matching one is visible. Grid-stack so the
   stage sizes to the tallest panel and switching has zero layout shift. */
.step-stage {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 36px;
  position: relative;
}
.step-panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-bounce);
}
.step-panel.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}
/* phone-sm — locked to a phone-shaped ratio so all step screenshots
   are exactly the same height + width regardless of content. The
   screen is overflow:hidden so longer content gets clipped at the
   bottom (acceptable: the visible top is the part that demos best). */
.phone-sm { width: 320px; }
.phone-sm .phone-screen { height: 600px; min-height: 0; overflow: hidden; }

/* Step panel layout — text on the left, phone on the right (desktop).
   Stacks on mobile: text first, phone below (since the user is reading
   downward, the explanation sets up the visual). Top-aligned so the
   step heading sits flush with the top of the phone screenshot —
   centering looked floaty when the detail copy was shorter than the
   phone. */
.step-panel-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}
.step-detail h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 14px;
}
.step-detail p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 460px;
}
.step-detail p:last-child { margin-bottom: 0; }
.step-detail em { color: var(--text); font-style: italic; }
@media (max-width: 880px) {
  .step-panel-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }
  .step-detail { text-align: center; }
  .step-detail p { margin-left: auto; margin-right: auto; }
  /* Phone is the second item in DOM, so on mobile it lands below the
     text — text reads first, screenshot reinforces. */
}

/* Funding Schedule mock — the markup mirrors the live #pc-modal-overlay
   in web/index.html. The .fh-row, .fh-info, .fh-date, .fh-trigger,
   .fh-amount classes come from the synced app sheet. The only
   site-only addition is the wrapper that frames the history block
   with a label, which the live modal renders via _renderCardCollapse
   (a JS helper) — we substitute static markup for the demo. */
.fs-history-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.fs-history-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.fs-history-chev {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.7;
}
/* Tighten the freq-settings-bubble + buttons inside the narrow phone-sm
   so 320px reads cleanly. The freq picker normally lives in a 520px
   modal; in a 288px content area we shrink chrome but keep the visual. */
.phone-sm .freq-settings-bubble {
  font-size: 12px;
  padding: 8px 10px;
  gap: 5px;
  min-height: 0;
}
.phone-sm .freq-num-btn,
.phone-sm .freq-day-chip {
  font-size: 12px;
  padding: 3px 8px;
  min-width: 0;
}
.phone-sm .field-label { font-size: 11px; }
.phone-sm .modal-header h2 { font-size: 16px; }
.phone-sm .input-group { gap: 10px; }
.phone-sm .modal-header { padding-bottom: 6px; margin-bottom: 8px; }

/* Pocket badges row — mirrors the new app rule so the site preview
   stays in sync. The synced app sheet now defines this same selector;
   keeping it in site-only as a defensive fallback in case the sync
   script lags behind. */
.pocket-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}

/* ── What ────────────────────────────────────────────────────────── */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.what-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.2s var(--ease-soft);
}
.what-card:hover { border-color: var(--accent); }
.what-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.what-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Pull-quote slider ────────────────────────────────────────────────
   Auto-rotates; pauses on hover/swipe. Desktop: tall skinny < / >
   chevrons positioned near the section edges (no circles). Mobile:
   carets hidden, swipe gesture takes over. Two purple quote marks
   frame the slide: open mark top-left, close mark bottom-right of
   the frame, vertically centered around the quote. Slides translate
   horizontally on change (direction-aware via inline style in JS). */
.pull-quote-slider {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px 80px 80px;
}
.pq-frame {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.pq-mark {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}
.pq-mark-open  { top: -36px; left: -10px; }
.pq-mark-close { bottom: -50px; right: -10px; }

/* Grid-stack the slides so switching is a pure crossfade with no
   layout shift. Slides translate horizontally on change — direction
   is set inline by the slider JS (forward = exit left, enter from
   right; backward = mirror). */
.pull-quote-stage {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.pq-slide {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.45s var(--ease-soft), transform 0.55s var(--ease-bounce);
  pointer-events: none;
  visibility: hidden;
  padding: 0 16px;
}
.pq-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}
.pq-slide p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text);
  line-height: 1.4;
  max-width: 640px;
}
.pq-slide cite {
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.5px;
}

/* Carets — tall skinny chevrons, no chrome. Positioned near the
   section edges (capped by the section's max-width container). */
.pq-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 88px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 64px;
  line-height: 0.7;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s var(--ease-soft), transform 0.2s var(--ease-bounce);
}
.pq-arrow:hover { color: var(--accent); }
.pq-arrow-prev { left: 24px; }
.pq-arrow-next { right: 24px; }
.pq-arrow-prev:hover { transform: translateY(-50%) translateX(-2px); }
.pq-arrow-next:hover { transform: translateY(-50%) translateX(2px); }

@media (max-width: 720px) {
  /* Carets vanish on small screens — let the user swipe. */
  .pq-arrow { display: none; }
  .pull-quote-slider { padding: 70px 20px 64px; }
  .pq-mark { font-size: 64px; }
  .pq-mark-open  { top: -22px; left: -6px; }
  .pq-mark-close { bottom: -32px; right: -6px; }
}

/* ── Phone mockup — used inside the How It Works step panels ─────── */
.phone {
  background: linear-gradient(180deg, #1f1f2c 0%, #181820 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 14px 14px 28px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}
.phone-screen {
  background: var(--bg);
  border-radius: 18px;
  padding: 22px 16px 16px;
  min-height: 540px;
}
.phone-tab-label {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
/* Section header inside the transactions phone — small caps that the
   real app uses too (in app.js render code, not in styles.css yet, so
   we define it here). */
.tx-section-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 14px 0 8px;
  font-weight: 700;
}
.tx-section-header:first-child { margin-top: 4px; }

/* ── CTA band ────────────────────────────────────────────────────── */
.cta-band {
  margin: 32px 0 80px;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 111, 247, 0.3), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(246, 200, 96, 0.18), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: var(--text);
}
.cta-inner p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* The default --border washes out on the CTA band's tinted gradient,
   leaving the ghost button looking borderless. Bump to a tinted accent
   so it reads as a real button against the purple/gold wash. */
.cta-band .btn-ghost {
  border-color: rgba(124, 111, 247, 0.55);
}
.cta-band .btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(124, 111, 247, 0.12);
}
/* ── Pre-launch note ─────────────────────────────────────────────
   Lives just below the CTA band, outside its fancy gradient, so the
   "free now / paid later" caveat reads as a sincere aside rather than
   marketing copy. Soft gold wash to match the site's accent palette. */
.prelaunch-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
  margin: -40px auto 96px;
  padding: 18px 22px;
  background: var(--gold-soft);
  border: 1px solid rgba(246, 200, 96, 0.35);
  border-radius: 16px;
  text-align: left;
}
.prelaunch-note-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(246, 200, 96, 0.22);
  color: var(--gold);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.prelaunch-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.prelaunch-note em {
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-serif);
}
@media (max-width: 560px) {
  .prelaunch-note { flex-direction: column; gap: 10px; padding: 16px 18px; }
}

/* ── Info modals — opened by the hero ? and pill ─────────────────── */
.info-modal[hidden] { display: none; }
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: infoFade 0.18s var(--ease-soft);
}
@keyframes infoFade { from { opacity: 0; } to { opacity: 1; } }
.info-modal-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px 22px;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: infoLift 0.28s var(--ease-bounce);
}
@keyframes infoLift {
  from { transform: translateY(14px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.info-modal-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-right: 28px;
  color: var(--text);
}
.info-modal-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}
.info-modal-card p strong { color: var(--text); font-weight: 700; }
.info-modal-card p em { color: var(--accent); font-style: italic; }
.info-fineprint {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin-top: 14px !important;
}
/* Close button visual (color + size + hover) comes from the synced
   app sheet's .btn-icon. Site-only positioning sits it in the corner. */
.info-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.info-got-it {
  width: 100%;
  margin-top: 8px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 28px 64px;
  background: rgba(0, 0, 0, 0.18);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.footer-tag {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  font-family: var(--font-serif);
}
.footer-links {
  display: flex;
  gap: 22px;
  margin-top: 8px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s var(--ease-soft);
}
.footer-links a:hover { color: var(--text); }
.footer-fineprint {
  color: var(--muted);
  opacity: 0.75;
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
  line-height: 1.6;
}
.footer-fineprint em {
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ── Reveal-on-scroll ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-bounce);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 880px) {
  /* Single column. The grid-template-areas reorder is the load-bearing
     line — it puts the preview between text-top and text-bottom so the
     CTA buttons land below the thing the heading is talking about. */
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "top"
      "preview"
      "bottom";
    gap: 32px;
  }
  .hero-text-bottom { padding-top: 0; }
  .hero-preview { justify-self: center; max-width: 380px; width: 100%; }
  .why-grid, .how-steps, .what-grid { grid-template-columns: 1fr; }
  /* Formula stays in a single horizontal row on mobile — there's
     plenty of width to read the three numbers. Just shrink the
     padding, font sizes, and let the pieces fit. */
  .how-formula { padding: 18px 12px; gap: 6px; }
  .formula-piece { min-width: 0; }
  .formula-label { font-size: 9px; letter-spacing: 1px; margin-bottom: 4px; }
  .formula-val { font-size: 16px; }
  .formula-op { font-size: 18px; }
  .section { padding: 80px 0; }
  .hero { padding: 40px 0 80px; }
}
@media (max-width: 480px) {
  /* Even narrower — keep labels visible (they're short, 4-7 chars), just
     shrink everything proportionally. The Bank − Pockets = GTG layout is
     the whole point; losing the labels makes it cryptic. */
  .how-formula { padding: 14px 6px; gap: 4px; }
  .formula-label { font-size: 8px; letter-spacing: 0.5px; margin-bottom: 3px; }
  .formula-val { font-size: 13px; }
  .formula-op { font-size: 14px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .top-nav { gap: 0; padding: 12px 20px; justify-content: space-between; }
  main { padding: 0 20px; }
  .cta-band { padding: 56px 24px; border-radius: 20px; }
}

/* Smooth scroll offset for sticky nav */
section[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }
