/* ============================================
   Mantle — Custom Theme
   ============================================ */

:root {
  --bg: #f7f3ee;
  --bg-alt: #eeeae3;
  --fg: #1c1c1a;
  --fg-muted: #6b665e;
  --accent: #c9893a;
  --accent-dark: #a8742d;
  --green-deep: #1a3a2e;
  --green-mid: #234d3e;
  --surface: #ffffff;
  --border: #ddd8cf;
  --chat-bg: #1a3a2e;
  --chat-fg: #f0ece4;
  --chat-mantle: #234d3e;
  --chat-accent: #c9893a;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* RESET */
*, *::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: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,238,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}
.nav-tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* HERO */
.hero {
  padding: 80px 32px 96px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--green-deep);
  margin-bottom: 28px;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-deep);
  background: rgba(26,58,46,0.08);
  border: 1px solid rgba(26,58,46,0.15);
  padding: 5px 14px;
  border-radius: 100px;
}

/* CHAT WIDGET */
.hero-visual {
  display: flex;
  justify-content: center;
}
.chat-window {
  width: 100%;
  max-width: 400px;
  background: var(--chat-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(26,58,46,0.25), 0 8px 24px rgba(26,58,46,0.15);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--chat-fg);
  letter-spacing: 0.03em;
}
.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-muted);
}
.chat-dot.green { background: #4ade80; }
.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  font-size: 0.82rem;
  line-height: 1.55;
  border-radius: 14px;
  padding: 12px 16px;
}
.msg-user {
  background: rgba(255,255,255,0.08);
  color: var(--chat-fg);
  align-self: flex-end;
  max-width: 85%;
}
.msg-mantle {
  background: var(--chat-mantle);
  color: #d4ede4;
  align-self: flex-start;
  max-width: 92%;
}
.msg-mantle.accent {
  background: rgba(201,137,58,0.25);
  border: 1px solid rgba(201,137,58,0.4);
  color: #f0dfc0;
}
.msg-mantle strong { color: #ffffff; }
.msg-mantle em { color: rgba(212,237,228,0.6); text-decoration: line-through; }

/* MANIFESTO */
.manifesto {
  padding: 64px 32px;
  background: var(--green-deep);
  color: #f0ece4;
}
.manifesto-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-rule {
  width: 48px;
  height: 2px;
  background: rgba(201,137,58,0.5);
  margin: 0 auto 40px;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #e8e0d6;
}
.manifesto-rule:last-child { margin-top: 40px; }

/* CALCULATOR SECTION */
.calculator-section {
  padding: 96px 32px;
  background: var(--bg);
}
.calc-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.calc-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.calc-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.7;
}
.calc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.calc-card {
  background: var(--surface);
  padding: 40px 36px;
  border: 1px solid var(--border);
}
.calc-card:first-child { border-radius: 16px 0 0 16px; }
.calc-card:last-child { border-radius: 0 16px 16px 0; }
.calc-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(26,58,46,0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  margin-bottom: 20px;
}
.calc-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.calc-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* OUTCOMES */
.outcomes {
  padding: 80px 32px;
  background: var(--bg-alt);
}
.outcomes-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.outcomes-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.03em;
  margin-bottom: 56px;
  line-height: 1.15;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.outcome {
  background: var(--bg-alt);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.outcome:first-child { border-radius: 16px 0 0 16px; }
.outcome:last-child { border-radius: 0 16px 16px 0; }
.outcome-metric {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.04em;
  line-height: 1;
}
.outcome-label {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 220px;
}

/* CLOSING */
.closing {
  padding: 96px 32px 112px;
  background: var(--green-deep);
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: #e8e0d6;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* FOOTER */
.footer {
  padding: 28px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 56px 24px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .chat-window { max-width: 100%; }
  .hero-headline { font-size: 2.4rem; }
  .calc-cards { grid-template-columns: 1fr; }
  .calc-card:first-child { border-radius: 16px 16px 0 0; }
  .calc-card:last-child { border-radius: 0 0 16px 16px; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .outcome:first-child { border-radius: 16px 16px 0 0; }
  .outcome:last-child { border-radius: 0 0 16px 16px; }
  .nav-inner { padding: 16px 24px; }
  .manifesto, .closing { padding: 56px 24px 72px; }
  .calculator-section { padding: 64px 24px; }
  .outcomes { padding: 56px 24px; }
  .outcome { padding: 36px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  .hero-lede { font-size: 1rem; }
  .calc-headline { font-size: 1.8rem; }
  .closing-statement { font-size: 1.6rem; }
  .outcome-metric { font-size: 2.6rem; }
}