/* ==========================================
   StreamStack — Theme CSS
   ========================================== */

:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE7D9;
  --fg: #1A2E1A;
  --fg-muted: #4A5E4A;
  --accent: #C8963E;
  --accent-dark: #A67A28;
  --cream-dark: #D9D0C0;
  --white: #FDFAF5;
}

*, *::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', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 46, 26, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--fg);
  color: var(--bg);
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
}

.nav-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* HERO */
.hero {
  padding: 80px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 56px;
  font-weight: 400;
}

.hero-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* TIER CARDS */
.tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  border-radius: 16px;
  width: 160px;
  text-align: center;
  gap: 10px;
  position: relative;
  border: 1.5px solid transparent;
}

.tier-card--ebook {
  background: var(--white);
  border-color: rgba(200, 150, 62, 0.25);
  box-shadow: 0 2px 20px rgba(200, 150, 62, 0.12);
}

.tier-card--course {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(26, 46, 26, 0.20);
}

.tier-card--membership {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(200, 150, 62, 0.30);
}

.tier-icon { opacity: 0.85; }

.tier-label {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tier-desc {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.01em;
}

.stack-connector {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg-muted);
  opacity: 0.5;
  font-family: 'DM Sans', sans-serif;
}

/* SECTION SHARED */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 56px;
}

/* STACK SECTION */
.stack-section {
  padding: 80px 48px;
  background: var(--fg);
  color: var(--bg);
}

.stack-section .section-label { color: var(--accent); }
.stack-section .section-headline { color: var(--bg); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1100px;
}

.stack-item {
  padding: 40px 36px;
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.08);
}

.stack-num {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.stack-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.stack-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.65);
}

/* WHY SECTION */
.why-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.why-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.why-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* COMPARISON TABLE */
.comparison-table {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(26, 46, 26, 0.08);
  box-shadow: 0 4px 24px rgba(26, 46, 26, 0.08);
}

.comp-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--fg);
  padding: 14px 24px;
}

.comp-col {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
}

.comp-col--streamstack { color: var(--accent); }

.comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(26, 46, 26, 0.06);
  align-items: center;
}

.comp-row:last-child { border-bottom: none; }

.comp-feature {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.comp-val {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.comp-val--no { color: #C06060; }
.comp-val--yes { color: #4A7A4A; }
.comp-val--maybe { color: var(--fg-muted); }

/* OUTCOMES SECTION */
.outcomes-section {
  padding: 80px 48px;
  background: var(--bg-alt);
  border-top: 1px solid rgba(26, 46, 26, 0.06);
  border-bottom: 1px solid rgba(26, 46, 26, 0.06);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.outcome-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid rgba(26, 46, 26, 0.1);
}

.outcome-item:last-child { border-right: none; }

.outcome-metric {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.outcome-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  font-weight: 400;
}

/* MANIFESTO SECTION */
.manifesto-section {
  padding: 96px 48px;
  background: var(--fg);
  text-align: center;
}

.manifesto-quote { max-width: 760px; margin: 0 auto; }

.manifesto-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.85);
  font-style: italic;
  margin-bottom: 32px;
}

.manifesto-text:last-child { margin-bottom: 0; }

/* FOOTER */
.footer {
  padding: 48px;
  background: var(--bg);
  border-top: 1px solid rgba(26, 46, 26, 0.08);
  text-align: center;
}

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

.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--fg);
  color: var(--bg);
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
}

.footer-logo-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(26, 46, 26, 0.4);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 56px 24px; }
  .stack-section { padding: 56px 24px; }
  .why-section { padding: 56px 24px; gap: 40px; grid-template-columns: 1fr; }
  .outcomes-section { padding: 56px 24px; }
  .manifesto-section { padding: 64px 24px; }
  .footer { padding: 40px 24px; }

  .stack-grid { grid-template-columns: 1fr; gap: 16px; }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .outcome-item:nth-child(2) { border-right: none; }
  .outcome-item { border-bottom: 1px solid rgba(26, 46, 26, 0.1); }
  .outcome-item:nth-child(3),
  .outcome-item:nth-child(4) { border-bottom: none; }

  .hero-visual { gap: 12px; }
  .tier-card { width: 130px; padding: 18px 20px; }
}

@media (max-width: 600px) {
  .nav-tagline { display: none; }
  .hero-headline { font-size: 44px; }
  .hero-visual { gap: 8px; }
  .tier-card { width: 100px; padding: 16px; }
  .tier-label { font-size: 13px; }
  .tier-desc { display: none; }
  .outcome-metric { font-size: 38px; }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .comp-header .comp-col:first-child { display: none; }
  .comp-row { grid-template-columns: 0fr 1fr 1fr; }
  .comp-feature { display: none; }
}