:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(3.25rem, 1rem + 7vw, 7.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Brand */
  --forest: #00603E;
  --forest-deep: #00301F;
  --forest-ink: #002318;
  --electric: #43CC00;
  --electric-soft: #6BE02E;
  --cream: #F3F1EA;

  --color-bg: var(--forest-deep);
  --color-text: var(--cream);
  --color-muted: color-mix(in oklab, var(--cream) 68%, var(--forest-deep));
  --color-line: color-mix(in oklab, var(--cream) 14%, transparent);

  --font-display: 'Outfit', 'Arial Black', sans-serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 20px;
}

body { font-weight: 400; overflow-x: hidden; }

.wrap { width: min(1200px, 100% - 2 * clamp(1.25rem, 5vw, 3rem)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--electric); color: var(--forest-ink); padding: var(--space-3) var(--space-4); z-index: 10; font-weight: 600; }
.skip:focus { left: var(--space-4); top: var(--space-4); }

:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--forest-deep) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.02em; color: var(--cream); text-decoration: none; }
.wordmark.small { font-size: 1.125rem; }
.tabs { display: flex; gap: clamp(var(--space-4), 3vw, var(--space-8)); }
.tab { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.tab:hover { color: var(--cream); }
.tab[aria-current="page"] { color: var(--cream); border-bottom-color: var(--electric); }

/* Home: one screen */
body.is-home { min-height: 100dvh; display: flex; flex-direction: column; }
body.is-home main { flex: 1; display: flex; }
body.is-home .site-header { position: static; background: transparent; border-bottom: 0; backdrop-filter: none; }
body.is-home .site-footer { border-top: 0; }
.home { flex: 1; display: grid; place-items: center; padding: var(--space-8) clamp(1.25rem, 5vw, 3rem); background: radial-gradient(55% 60% at 50% 45%, color-mix(in oklab, var(--forest) 55%, transparent), transparent 75%), var(--forest-deep); }
.home-inner { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.home .headline { align-items: center; margin-bottom: var(--space-10); }
.home .waitlist { width: 100%; }
.home .fine { margin-top: var(--space-1); }

/* Google-style home */
body.g-home { min-height: 100dvh; display: flex; flex-direction: column; background: #FFFFFF; color: var(--forest-ink); }
.g-top { display: flex; justify-content: flex-end; padding: var(--space-4) clamp(var(--space-4), 3vw, var(--space-8)); }
.g-links { display: flex; gap: var(--space-6); }
.g-links a, .g-foot a { color: #4d5a54; text-decoration: none; font-size: 0.875rem; min-height: 44px; display: inline-flex; align-items: center; }
.g-links a:hover, .g-foot a:hover { text-decoration: underline; color: var(--forest-ink); }
.g-main { flex: 1; display: flex; justify-content: center; align-items: center; padding: 0 var(--space-5); }
.g-center { width: min(640px, 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 6vh; }
.g-brand { font-family: var(--font-display); font-weight: 900; font-size: 0.875rem; letter-spacing: 0.32em; color: var(--forest); margin-bottom: var(--space-4); padding-left: 0.32em; }
.g-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.25rem, 1.2rem + 4vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; color: var(--forest-ink); margin-bottom: var(--space-10); }
.g-title .accent { color: #2E9E00; }
.g-cta { background: var(--forest); color: #fff; border: 0; border-radius: 999px; padding: 0 var(--space-8); min-height: 48px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background 160ms var(--ease), transform 160ms var(--ease); }
.g-cta:hover { background: var(--forest-deep); }
.g-cta:active { transform: scale(0.97); }
.g-form { width: min(400px, 100%); animation: g-in 320ms var(--ease); }
@keyframes g-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.g-inline { display: flex; align-items: center; gap: var(--space-3); border-bottom: 1.5px solid currentColor; padding-bottom: var(--space-2); }
.g-inline input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1rem; color: inherit; min-height: 44px; }
.g-inline input::placeholder { color: inherit; opacity: 0.5; }
.g-inline input:focus { outline: none; }
.g-inline button { border: 0; background: transparent; color: inherit; font-weight: 700; font-size: 0.9375rem; cursor: pointer; min-height: 44px; padding: 0 var(--space-2); }
.g-inline button:hover { text-decoration: underline; }
.g-inline button[disabled] { opacity: 0.6; cursor: progress; }
.g-form .form-msg { color: var(--forest); text-align: center; }
.g-form .form-msg.error { color: #B3261E; }
.g-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 var(--space-6); padding: 0 clamp(var(--space-4), 3vw, var(--space-8)); font-size: 0.8125rem; color: #4d5a54; min-height: 48px; }
.g-foot-links { display: flex; gap: var(--space-6); align-items: center; }
@media (max-width: 480px) {
  .g-foot { justify-content: center; padding-block: var(--space-2); text-align: center; }
  .g-foot > span { width: 100%; padding-top: var(--space-2); }
  .g-foot-links { gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
}

/* Home looks: forest and cream */
body.g-home.look-forest { background: radial-gradient(60% 55% at 50% 40%, #00703F 0%, var(--forest) 45%, var(--forest-deep) 100%); color: var(--cream); }
.look-forest .g-brand { color: var(--electric); }
.look-forest .g-title { color: var(--cream); }
.look-forest .g-title .accent { color: var(--electric); }
.look-forest .g-links a, .look-forest .g-foot a { color: color-mix(in oklab, var(--cream) 78%, transparent); }
.look-forest .g-links a:hover, .look-forest .g-foot a:hover { color: #fff; }
.look-forest .g-cta { background: var(--electric); color: var(--forest-ink); font-weight: 700; }
.look-forest .g-cta:hover { background: var(--electric-soft); }
.look-forest .g-form .form-msg { color: var(--electric); }
.look-forest .g-form .form-msg.error { color: #FFB4A8; }
.look-forest .g-foot { color: color-mix(in oklab, var(--cream) 70%, transparent); }

body.g-home.look-cream { background: var(--cream); }

/* Inner pages */
.page-hero { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); background: radial-gradient(60% 70% at 85% 30%, color-mix(in oklab, var(--forest) 70%, transparent), transparent 70%), var(--forest-deep); }
.how-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }
.page-title { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.03em; margin-bottom: var(--space-6); text-wrap: balance; }
.eyebrow.dark { color: var(--forest); }
.page-cta { background: var(--forest); padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8); }
.cta-line { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.03em; }
.accent { color: var(--electric); }
.pill { background: var(--electric); color: var(--forest-ink); font-weight: 800; text-decoration: none; padding: var(--space-4) var(--space-8); border-radius: 999px; font-size: var(--text-sm); min-height: 48px; display: inline-flex; align-items: center; transition: background 160ms var(--ease), transform 160ms var(--ease); }
.pill:hover { background: var(--electric-soft); }
.pill:active { transform: scale(0.97); }

/* Hero */
.hero { position: relative; padding-block: clamp(var(--space-12), 8vw, var(--space-24)); background:
  radial-gradient(60% 70% at 85% 30%, color-mix(in oklab, var(--forest) 70%, transparent), transparent 70%),
  var(--forest-deep); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }

.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--electric); margin-bottom: var(--space-6); }
.headline { font-family: var(--font-display); font-weight: 900; font-size: var(--text-hero); line-height: 0.92; letter-spacing: -0.035em; display: flex; flex-direction: column; margin-bottom: var(--space-8); }
.headline .accent { color: var(--electric); }
.lede { font-size: var(--text-base); color: var(--color-muted); max-width: 46ch; margin-bottom: var(--space-8); line-height: 1.6; }

/* Waitlist */
.waitlist { max-width: 520px; }
.field { display: flex; gap: var(--space-2); padding: 6px; background: color-mix(in oklab, var(--cream) 8%, transparent); border: 1px solid var(--color-line); border-radius: 999px; transition: border-color 180ms var(--ease); }
.field:focus-within { border-color: var(--electric); }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 var(--space-4); font-size: var(--text-base); color: var(--cream); min-height: 48px; }
.field input::placeholder { color: color-mix(in oklab, var(--cream) 45%, transparent); }
.field input:focus { outline: none; }
.field button { background: var(--electric); color: var(--forest-ink); border: 0; border-radius: 999px; padding: 0 var(--space-6); font-weight: 800; font-size: var(--text-sm); min-height: 48px; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease), background 160ms var(--ease); }
.field button:hover { background: var(--electric-soft); }
.field button:active { transform: scale(0.97); }
.field button[disabled] { opacity: 0.6; cursor: progress; }
.form-msg { min-height: 1.5em; margin-top: var(--space-3); font-size: var(--text-sm); color: var(--electric); }
.form-msg.error { color: #FFB4A8; }
.fine { font-size: var(--text-xs); color: color-mix(in oklab, var(--cream) 50%, transparent); }

/* Phone */
.hero-visual { display: flex; justify-content: center; }
.phone { position: relative; width: min(320px, 82vw); aspect-ratio: 9 / 19; background: #0A0F0C; border-radius: 48px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.phone-notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 92px; height: 26px; background: #000; border-radius: 999px; z-index: 2; }
.screen { position: relative; height: 100%; border-radius: 38px; background: var(--forest); overflow: hidden; padding: 64px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.screen-top { display: flex; justify-content: space-between; align-items: baseline; }
.screen-title { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; color: var(--cream); }
.count { font-size: 0.75rem; font-weight: 600; color: var(--electric); background: color-mix(in oklab, var(--forest-ink) 60%, transparent); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }

.card { background: var(--cream); color: var(--forest-ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: transform 500ms var(--ease), opacity 400ms var(--ease); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.merchant { font-weight: 700; font-size: 0.95rem; }
.amount { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.meta { font-size: 0.75rem; color: color-mix(in oklab, var(--forest-ink) 60%, var(--cream)); }
.folder-pick { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: color-mix(in oklab, var(--forest) 10%, var(--cream)); }
.folder-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--forest); }
.folder-path { font-weight: 700; font-size: 0.875rem; }
.card-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; }
.tap { width: 100%; text-align: center; background: var(--forest); color: var(--cream); font-weight: 800; padding: 14px; border-radius: 999px; font-size: 0.95rem; transition: transform 160ms var(--ease), background 160ms var(--ease); }
.tap.pressed { transform: scale(0.95); background: var(--electric); color: var(--forest-ink); }
.notsure { font-size: 0.8rem; font-weight: 600; color: var(--forest); }

.filed { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--electric); color: var(--forest-ink); opacity: 0; transform: scale(1.04); transition: opacity 280ms var(--ease), transform 500ms var(--ease); pointer-events: none; }
.filed.show { opacity: 1; transform: scale(1); }
.check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--forest-ink); color: var(--electric); margin-bottom: 8px; }
.filed-word { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; letter-spacing: -0.02em; }
.filed-sub { font-weight: 600; font-size: 0.95rem; }

.queue { display: flex; flex-direction: column; gap: 10px; }
.ghost { height: 56px; border-radius: 18px; background: color-mix(in oklab, var(--cream) 12%, transparent); }
.ghost + .ghost { opacity: 0.6; }

/* Steps */
.steps { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); border-top: 1px solid var(--color-line); }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(var(--space-8), 4vw, var(--space-16)); }
.step-n { display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; color: var(--electric); margin-bottom: var(--space-4); font-variant-numeric: tabular-nums; }
.step-list h3 { font-family: var(--font-display); font-weight: 900; font-size: var(--text-xl); letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.step-list p { color: var(--color-muted); font-size: var(--text-base); }

/* Story */
.story { background: var(--cream); color: var(--forest-ink); padding-block: clamp(var(--space-16), 10vw, var(--space-32)); }
.story-inner { max-width: 900px; }
.story-quote { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: var(--space-6); text-wrap: pretty; }
.story-by { font-weight: 600; font-size: var(--text-sm); color: var(--forest); margin-bottom: var(--space-10); text-transform: uppercase; letter-spacing: 0.1em; }
.story-body { font-size: var(--text-base); color: color-mix(in oklab, var(--forest-ink) 78%, var(--cream)); max-width: 60ch; }

/* Close */
.close { background: var(--forest); padding-block: clamp(var(--space-16), 10vw, var(--space-32)); }
.close-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); }
.close-line { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.03em; }
.close-cta { background: var(--electric); color: var(--forest-ink); font-weight: 800; text-decoration: none; padding: var(--space-4) var(--space-8); border-radius: 999px; font-size: var(--text-sm); min-height: 48px; display: inline-flex; align-items: center; transition: background 160ms var(--ease), transform 160ms var(--ease); }
.close-cta:hover { background: var(--electric-soft); }
.close-cta:active { transform: scale(0.97); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-line); padding-block: var(--space-8); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.social { display: flex; gap: var(--space-6); }
.social a { color: var(--color-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.social a:hover { color: var(--electric); }
.legal { font-size: var(--text-xs); color: color-mix(in oklab, var(--cream) 50%, transparent); }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .step-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field { flex-direction: column; border-radius: 24px; padding: 8px; }
  .field input { padding: 0 var(--space-3); }
  .field button { width: 100%; }
  .tabs { gap: var(--space-4); }
  .wordmark { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.g-fine, .early-fine { font-size: 0.75rem; margin-top: var(--space-3); opacity: 0.7; }
.g-fine a, .early-fine a, .legal a { color: inherit; }
.early-fine { color: var(--cream); }

/* Privacy */
.legal-page { background: #fff; color: var(--forest-ink); padding-block: clamp(var(--space-12), 7vw, var(--space-20)); }
.legal-inner { max-width: 720px; }
.legal-page h1 { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); letter-spacing: -0.03em; line-height: 1; margin-bottom: var(--space-3); }
.legal-page .updated { color: #5b6862; font-size: var(--text-sm); margin-bottom: var(--space-10); }
.legal-page h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); margin: var(--space-10) 0 var(--space-3); }
.legal-page p, .legal-page li { color: #33403a; line-height: 1.7; font-size: var(--text-base); }
.legal-page p + p { margin-top: var(--space-3); }
.legal-page ul { padding-left: 1.25rem; list-style: disc; display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.legal-page a { color: var(--forest); }
.legal-page ul + p { margin-top: var(--space-4); }
