:root {
  --bg: #f5f0e8;
  --fg: #1a3c34;
  --accent: #c9953a;
  --muted: #6b7c78;
  --card: #ffffff;
  --border: #d8d0c4;
}

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

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

/* Navigation */
header {
  padding: 0 48px;
  display: flex;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid var(--border);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* Nav Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.nav-dropdown-trigger:hover { color: var(--fg); }

.nav-dropdown-trigger svg {
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(26, 60, 52, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s;
}

.nav-dropdown-menu a:hover { background: var(--bg); }

/* Shared label style */
.label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

/* Hero */
.hero {
  padding: 0 48px 80px;
}

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

.hero-text h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 28px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Hero art */
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.geo-stack {
  position: relative;
  width: 320px;
  height: 320px;
}

.geo-block {
  position: absolute;
  border-radius: 12px;
}

.g1 {
  width: 200px; height: 200px;
  background: var(--fg);
  top: 0; left: 0;
  border-radius: 12px;
}

.g2 {
  width: 140px; height: 140px;
  background: var(--accent);
  top: 20px; right: 0;
  border-radius: 10px;
  opacity: 0.85;
}

.g3 {
  width: 100px; height: 100px;
  background: #c5ddd7;
  bottom: 40px; left: 60px;
  border-radius: 8px;
}

.g4 {
  width: 80px; height: 80px;
  background: var(--bg);
  border: 2px solid var(--fg);
  bottom: 0; right: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-label {
  position: absolute;
  top: 220px;
  left: -20px;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

/* Problem section */
.problem {
  background: var(--fg);
  padding: 80px 48px;
}

.problem-inner { max-width: 1200px; margin: 0 auto; }

.problem .label { color: var(--accent); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2a5c50;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
}

.problem-card {
  background: var(--fg);
  padding: 40px 36px;
}

.stat {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 52px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 15px;
  color: #a8c4be;
  line-height: 1.6;
}

.problem-note {
  font-size: 16px;
  color: #7aaa9a;
  font-style: italic;
  max-width: 520px;
}

/* How section */
.how {
  padding: 100px 48px;
  background: var(--bg);
}

.how-inner { max-width: 1200px; margin: 0 auto; }

.how h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 64px;
  max-width: 540px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.step {
  background: var(--card);
  padding: 44px 40px;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 16px;
}

.step h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* Playbook */
.playbook {
  padding: 100px 48px;
  background: #edebe4;
}

.playbook-inner { max-width: 1200px; margin: 0 auto; }

.playbook h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 46px);
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 52px;
}

.playbook-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.play-item {
  background: var(--card);
  border-radius: 12px;
  padding: 32px 28px;
  border-top: 3px solid var(--fg);
}

.play-item .day {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.play-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.playbook-note {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

/* Outcomes */
.outcomes {
  padding: 100px 48px;
  background: var(--fg);
}

.outcomes-inner { max-width: 1200px; margin: 0 auto; }

.outcomes .label { color: var(--accent); }

.outcomes h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 46px);
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 56px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #2a5c50;
  border-radius: 12px;
  overflow: hidden;
}

.outcome {
  background: var(--fg);
  padding: 40px 32px;
}

.big-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.outcome h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 12px;
}

.outcome p {
  font-size: 13px;
  color: #7aaa9a;
  line-height: 1.6;
}

/* Closing */
.closing {
  padding: 100px 48px;
  background: var(--bg);
  text-align: center;
}

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

.closing h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.15;
}

.closing p {
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.closing-tagline {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Footer */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--fg);
}

.footer-tag {
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  header, .hero, .problem, .how, .playbook, .outcomes, .closing, footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art { display: none; }

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

  .playbook-list,
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Calculator Section */
.calculator-section {
  padding: 100px 48px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.calculator-inner {
  max-width: 900px;
  margin: 0 auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 56px;
}

.calc-header .label { margin-bottom: 12px; }

.calc-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.1;
}

.calc-header p {
  font-size: 17px;
  color: var(--muted);
}

/* Form Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.calc-fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-fieldset legend {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 4px;
  display: block;
}

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

.field-row label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-row input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field-row input::placeholder { color: #b0a898; }

.field-row input:focus {
  border-color: var(--fg);
  box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.08);
}

.field-row input.field-error {
  border-color: #d0393e;
  background: #fff5f5;
}

.optional-badge {
  font-size: 10px;
  font-weight: 500;
  background: #edebe4;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0;
  text-transform: none;
}

/* Retention mode toggle */
.retention-mode-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.toggle-btn {
  flex: 1;
  padding: 8px 4px;
  background: none;
  border: none;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.toggle-btn.active {
  background: var(--fg);
  color: #ffffff;
}

.retention-field { display: flex; flex-direction: column; gap: 6px; }
.retention-field.hidden { display: none; }
.retention-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* Submit row */
.calc-submit-row {
  text-align: center;
  margin-bottom: 0;
}

.calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--fg);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.2px;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 60, 52, 0.25);
}

.calc-btn:active { transform: translateY(0); }

/* Results section */
.calc-results {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1.5px solid var(--border);
}

/* Email gate */
.email-gate {
  background: #edebe4;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  text-align: center;
  margin-bottom: 48px;
  display: none;
}

.email-gate:not(.hidden) { display: block; }

.email-gate-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--muted);
}

.email-gate-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 8px;
}

.email-gate-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.email-gate-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 12px;
}

.email-gate-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.email-gate-form input:focus { border-color: var(--fg); }
.email-gate-form input.field-error { border-color: #d0393e; }

.gate-btn {
  padding: 12px 24px;
  background: var(--fg);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.gate-btn:hover { background: #2a5c50; }

.email-gate-note {
  font-size: 12px;
  color: var(--muted);
}

.gate-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.gate-success p {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}

.kpi-card {
  background: var(--card);
  padding: 32px 28px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.kpi-card-wide { grid-column: 1 / -1; }

.kpi-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--muted);
  line-height: 1.4;
}

.how-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.how-btn:hover {
  background: #edebe4;
  color: var(--fg);
}

.kpi-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--fg);
  letter-spacing: -1px;
  margin-bottom: 6px;
  line-height: 1;
}

.ratio-display {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
}

.ratio-value-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ratio-num {
  font-size: 44px;
  letter-spacing: -2px;
}

.ratio-colon {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--muted);
}

.ratio-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.badge-green  { background: #d4edda; color: #1a5c32; }
.badge-yellow { background: #fff3cd; color: #7a5a00; }
.badge-red    { background: #f8d7da; color: #7a1a1a; }

.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.kpi-explain {
  margin-top: 12px;
  padding: 12px;
  background: #f5f0e8;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.kpi-explain.hidden { display: none; }

/* CTA Card */
.calc-cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--fg);
  border-radius: 16px;
  padding: 48px 52px;
  color: #ffffff;
}

.cta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.calc-cta-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.calc-cta-card p {
  font-size: 15px;
  color: #a8c4be;
  line-height: 1.65;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 149, 58, 0.4);
}

.cta-secondary-link {
  font-size: 14px;
  color: #7aaa9a;
  text-decoration: none;
  transition: color 0.15s;
}

.cta-secondary-link:hover { color: #ffffff; }

/* Hidden */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .calculator-section { padding: 80px 24px; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-cta-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 32px; }
  .cta-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .calculator-section { padding: 60px 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-card-wide { grid-column: 1 / -1; }
  .email-gate-form { flex-direction: column; }
  .calc-cta-card { padding: 28px 24px; }
}