:root {
  --bg: #FAF8F4;
  --bg-alt: #F2EDE6;
  --bg-dark: #1C2B1A;
  --fg: #1A1A18;
  --fg-muted: #6B6860;
  --fg-light: #A8A49C;
  --accent: #2D5016;
  --accent-light: #4A7A2A;
  --accent-bg: #EBF2E5;
  --border: #E2DDD5;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  padding: 96px 48px 80px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* Step progress bar */
.hero-steps-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  max-width: 520px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.2s;
}

.step-dot.active {
  background: var(--accent);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.hero-steps-label {
  font-size: 0.8rem;
  color: var(--fg-light);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ─── THE PATH ──────────────────────────────────────── */
.thepath {
  background: var(--white);
  padding: 96px 48px;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.step-card:hover {
  background: var(--accent-bg);
}

.step-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
}

.step-content h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--fg);
}

.step-content p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── CALCULATOR INTERACTIVE FORM ───────────────────── */
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.calc-field input {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--fg);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.calc-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.12);
}

.calc-field input::placeholder {
  color: var(--fg-light);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--fg-light);
}

/* Result block */
.calc-result {
  min-height: 60px;
  display: flex;
  align-items: center;
}

.result-placeholder {
  font-size: 0.875rem;
  color: var(--fg-light);
  font-style: italic;
}

.result-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.result-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* Freedom number big display */
.freedom-number-display {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 24px;
}

.fn-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.fn-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.fn-sub {
  font-size: 0.8rem;
  color: var(--fg-light);
}

/* Projection detail */
.projection-detail {
  background: var(--accent-bg);
  border: 1px solid #c8dfb0;
  border-radius: 6px;
  padding: 20px 24px;
  margin-top: 24px;
}

.pd-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.pd-years {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}

.pd-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ─── CALCULATOR ────────────────────────────────────── */
.calculator-section {
  background: var(--bg-alt);
  padding: 96px 48px;
}

.calc-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.calc-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.calc-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.calc-formula {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.formula-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: 4px;
}

.formula-box.highlight {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-weight: 600;
}

.formula-op {
  font-size: 1.2rem;
  color: var(--fg-light);
  font-weight: 300;
}

.calc-note {
  font-size: 0.825rem;
  color: var(--fg-muted);
  line-height: 1.55;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

/* Growth chart */
.growth-chart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}

.chart-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  margin-bottom: 16px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 3px 3px 0 0;
  min-height: 8px;
  transition: opacity 0.2s;
  cursor: pointer;
}

.bar:hover { opacity: 0.6; }
.bar.highlight { opacity: 1; background: var(--accent); }

.bar-label {
  font-size: 0.65rem;
  color: var(--fg-light);
  margin-top: 6px;
  font-weight: 500;
}

.bar-value {
  font-size: 0.6rem;
  color: var(--fg-light);
  margin-top: 2px;
  font-weight: 400;
}

.bar-hit {
  background: var(--accent);
  opacity: 1;
}

.chart-source {
  font-size: 0.7rem;
  color: var(--fg-light);
  font-style: italic;
}

/* Example calc */
.calc-example {
  margin-top: 20px;
}

.example-calc {
  background: var(--accent-bg);
  border: 1px solid #c8dfb0;
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-label {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ex-result {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  color: var(--fg);
}

/* ─── PHILOSOPHY ────────────────────────────────────── */
.philosophy {
  background: var(--bg-dark);
  color: var(--white);
  padding: 96px 48px;
}

.philosophy-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 48px;
  align-items: center;
}

.philosophy-stat {
  text-align: center;
  padding: 0 24px;
}

.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  max-width: 140px;
  line-height: 1.45;
}

.philosophy-divider {
  background: rgba(255,255,255,0.15);
  width: 1px;
  align-self: stretch;
}

.philosophy-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.philosophy-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 16px;
}

.philosophy-body:last-child { margin-bottom: 0; }

/* ─── CLOSING ───────────────────────────────────────── */
.closing-section {
  background: var(--white);
  padding: 96px 48px;
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent);
  margin-top: 36px;
}

/* ─── FOOTER ────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 48px 32px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.footer-tagline {
  font-size: 0.825rem;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-light);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--fg-light);
  font-style: italic;
}

/* ─── WAITLIST CTA ───────────────────────────────────── */
.waitlist-cta {
  background: var(--accent-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}

.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}

.badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.waitlist-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.waitlist-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.waitlist-input-row input[type="email"] {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-input-row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.12);
}

.waitlist-input-row input[type="email"]::placeholder {
  color: var(--fg-light);
}

.waitlist-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-btn:hover:not(:disabled) {
  background: var(--accent-light);
}

.waitlist-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.waitlist-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-privacy {
  font-size: 0.75rem;
  color: var(--fg-light);
  text-align: center;
}

/* Success state */
.waitlist-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.success-msg {
  font-size: 1rem;
  color: var(--fg);
  font-weight: 500;
}

/* Error state */
.waitlist-error {
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.error-msg {
  font-size: 0.85rem;
  color: #dc2626;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero, .thepath, .calculator-section, .philosophy, .closing-section, .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero { padding-top: 64px; padding-bottom: 64px; }
  .thepath { padding-top: 64px; padding-bottom: 64px; }
  .calculator-section { padding-top: 64px; padding-bottom: 64px; }
  .philosophy { padding-top: 64px; padding-bottom: 64px; }
  .closing-section { padding-top: 64px; padding-bottom: 64px; }

  .calc-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .philosophy-divider {
    height: 1px;
    width: 100%;
  }

  .philosophy-stat {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
  }

  .stat-number { font-size: 2.5rem; }
  .stat-desc { max-width: 200px; }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
    flex-wrap: wrap;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calc-formula {
    gap: 8px;
  }

  .formula-box { font-size: 0.8rem; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .chart-bars { height: 120px; gap: 5px; }
  .bar-label { font-size: 0.6rem; }

  .waitlist-cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .waitlist-input-row {
    flex-direction: column;
  }

  .waitlist-btn {
    width: 100%;
    padding: 14px;
  }
}