:root {
  --bg: #FAF7F2;
  --ink: #1C1917;
  --accent: #1A7F6E;
  --muted: #78716C;
  --border: #E7E3DC;
  --surface: #F2EEE8;
}

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

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

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 100px 48px 96px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 760px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.65;
  font-weight: 300;
}

/* How it works */
.how-it-works {
  padding: 96px 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 48px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.step {
  padding: 0 40px 0 0;
  border-right: 1px solid var(--border);
}
.step:last-child {
  border-right: none;
}
.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 24px;
}
.step-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* Manifesto */
.manifesto {
  padding: 112px 48px;
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 820px;
}
.pull-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 40px;
}
.manifesto-body {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

/* Principles */
.principles {
  padding: 96px 48px;
  background: var(--ink);
  color: var(--bg);
}
.principles-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
}
.principle h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--bg);
}
.principle p {
  font-size: 15px;
  color: #A8A29E;
  line-height: 1.65;
}

/* Closing */
.closing {
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}
.closing-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Footer */
.footer {
  padding: 36px 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
}
.footer-meta {
  font-size: 13px;
  color: var(--muted);
}

/* Campaign Calculator */
.campaign-calc {
  padding: 96px 48px;
  border-bottom: 1px solid var(--border);
}
.campaign-calc-inner {
  max-width: 760px;
}
.campaign-calc-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
}
.campaign-calc-sub {
  font-size: 17px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 48px;
  max-width: 500px;
}

/* Card */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  align-items: start;
}
.calc-field {
  padding: 36px 40px;
}
.calc-divider {
  background: var(--border);
  align-self: stretch;
}
.calc-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}
.calc-hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* Stepper */
.calc-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  width: fit-content;
}
.stepper-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink);
  padding: 8px 16px;
  line-height: 1;
  transition: background 0.12s;
}
.stepper-btn:hover { background: var(--border); }
.stepper-val {
  width: 64px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  padding: 8px 4px;
  -moz-appearance: textfield;
}
.stepper-val::-webkit-outer-spin-button,
.stepper-val::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Duration pills */
.calc-duration-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.duration-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  padding: 8px 18px;
  transition: all 0.12s;
}
.duration-pill:hover { border-color: var(--accent); color: var(--accent); }
.duration-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

/* Output */
.calc-output {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  background: var(--bg);
}
.calc-loading {
  font-size: 14px;
  color: var(--muted);
}
.calc-error {
  font-size: 14px;
  color: #b91c1c;
}
.calc-result {}
.calc-total {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.calc-total-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.calc-total-val {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.calc-row.accent .calc-row-label { color: var(--accent); font-weight: 500; }
.calc-row.accent .calc-row-val { color: var(--accent); font-weight: 500; }
.calc-row.muted .calc-row-label,
.calc-row.muted .calc-row-val { color: var(--muted); }
.calc-row-label { color: var(--ink); }
.calc-row-val { font-variant-numeric: tabular-nums; }
.strikethrough { text-decoration: line-through; color: var(--muted); }

/* Upgrade banners */
.upgrade-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.upgrade-banner--success {
  background: #ECFDF5;
  color: #065F46;
}
.upgrade-banner--success span:first-child { font-size: 18px; }
.upgrade-banner--error {
  background: #FEF2F2;
  color: #991B1B;
}

/* CTA note */
.calc-cta-note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}
.calc-cta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.calc-cta-link:hover { opacity: 0.75; }

/* Responsive */
@media (max-width: 768px) {
  .nav, .hero, .how-it-works, .manifesto, .principles, .closing, .footer, .campaign-calc {
    padding-left: 24px;
    padding-right: 24px;
  }
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 40px; }
  .step:last-child { border-bottom: none; }
  .principles-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-divider { display: none; }
  .calc-field { padding: 28px 24px; }
  .calc-field + .calc-field { border-top: 1px solid var(--border); }
  .calc-output { padding: 28px 24px; }
  .calc-total { flex-direction: column; gap: 6px; }
}