/* ---- TOKENS ---- */
:root {
  --bg: #f7f3ea;
  --bg-dark: #ede8de;
  --fg: #1a2e24;
  --fg-muted: #5c7060;
  --accent: #c97b2a;
  --accent-light: #f0c87a;
  --green-deep: #1a3a2f;
  --green-mid: #2d5c46;
  --white: #ffffff;
  --shadow-card: 0 4px 24px rgba(26,58,47,.14);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; }
p { line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- GRID LINES ---- */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-dark) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  pointer-events: none;
}

/* ---- LAYOUT ---- */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 5rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--bg-dark);
  border: 1px solid rgba(26,58,47,.15);
  border-radius: 2rem;
  padding: .35rem .9rem;
  margin-bottom: 2rem;
  width: fit-content;
}

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

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--green-deep);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}

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

.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 46ch;
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-stat {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1;
}

.trust-label {
  font-size: .75rem;
  color: var(--fg-muted);
  font-weight: 500;
  margin-top: .2rem;
}

.trust-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(26,58,47,.15);
}

/* ---- HERO GRAPHIC: CARD STACK ---- */
.hero-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.study-card-stack {
  position: relative;
  width: 320px;
  height: 200px;
}

.study-card {
  position: absolute;
  border-radius: 1rem;
  border: 1px solid rgba(26,58,47,.1);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.study-card-back {
  width: 100%; height: 100%;
  background: var(--bg-dark);
  transform: rotate(2deg) translate(6px, 6px);
  opacity: 0.5;
}

.study-card-mid {
  width: 100%; height: 100%;
  background: rgba(255,255,255,.7);
  transform: rotate(-1.5deg) translate(-2px, 4px);
  opacity: 0.7;
}

.study-card-front {
  width: 100%; height: 100%;
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(0deg);
  z-index: 2;
}

.card-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
}

.card-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.3;
  flex: 1;
  display: flex;
  align-items: center;
}

.card-source {
  font-size: .65rem;
  color: var(--fg-muted);
  font-style: italic;
}

.card-meta-row {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.card-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 1rem;
  border: 1px solid;
}

.card-meta-due {
  background: rgba(201,123,42,.08);
  border-color: rgba(201,123,42,.3);
  color: var(--accent);
}

.card-meta-easy {
  background: rgba(45,92,70,.08);
  border-color: rgba(45,92,70,.2);
  color: var(--green-mid);
}

.meta-icon {
  font-size: .85rem;
  line-height: 1;
}

/* ---- SECTION SHARED ---- */
the-problem, .how-it-works, .outcomes, .closing {
  padding: 6rem 0;
}

/* ---- THE PROBLEM ---- */
.the-problem {
  background: var(--bg-dark);
}

.problem-label, .hiw-label, .outcomes-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.problem-headline {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--green-deep);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.problem-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 54ch;
  margin-bottom: 3.5rem;
}

.problem-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 860px;
}

.contrast-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.2rem 1.4rem;
  border-radius: .75rem;
  border: 1px solid;
}

.contrast-fail {
  background: rgba(255,255,255,.6);
  border-color: rgba(26,58,47,.12);
}

.contrast-win {
  background: rgba(45,92,70,.06);
  border-color: rgba(45,92,70,.25);
}

.contrast-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.contrast-fail .contrast-icon { color: #9a7a7a; }
.contrast-win .contrast-icon { color: var(--green-mid); }

.contrast-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.contrast-text strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--fg);
}

.contrast-text span {
  font-size: .8rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* ---- HOW IT WORKS ---- */
.hiw-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--green-deep);
  max-width: 26ch;
  margin-bottom: 4rem;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin-bottom: 4rem;
}

.hiw-step {
  display: grid;
  grid-template-columns: 3rem 1px 1fr;
  gap: 0 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
  padding-top: .2rem;
  opacity: 0.5;
}

.step-connector {
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-light), rgba(201,123,42,.1));
  height: 100%;
  min-height: 80px;
  align-self: stretch;
}

.step-content {
  padding-bottom: .5rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: .5rem;
}

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

.hiw-callout {
  background: var(--green-deep);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  max-width: 720px;
}

.callout-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: .4rem;
}

.callout-sub {
  font-size: .85rem;
  color: rgba(247,243,234,.65);
}

/* ---- OUTCOMES ---- */
.outcomes {
  background: var(--white);
}

.outcomes-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--green-deep);
  max-width: 22ch;
  margin-bottom: 3.5rem;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.outcome-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid rgba(26,58,47,.08);
}

.outcome-icon {
  color: var(--accent);
  font-size: .7rem;
  margin-bottom: .75rem;
}

.outcome-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: .5rem;
}

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

.outcomes-citation {
  font-size: .7rem;
  color: var(--fg-muted);
  font-style: italic;
  opacity: 0.7;
}

/* ---- CLOSING ---- */
.closing {
  background: var(--green-deep);
  color: var(--bg);
}

.closing-rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--bg);
  max-width: 18ch;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.closing-body {
  font-size: 1.05rem;
  color: rgba(247,243,234,.7);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.closing-cta {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent-light);
  opacity: 0.8;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(26,58,47,.1);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-deep);
  display: block;
  margin-bottom: .2rem;
}

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

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

.footer-meta a {
  color: var(--green-mid);
  font-weight: 600;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
    gap: 3rem;
  }
  .hero-graphic { order: -1; }
  .study-card-stack { width: 260px; height: 160px; }
  .problem-contrast { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .hiw-step { grid-template-columns: 2rem 1px 1fr; gap: 0 1rem; }
  .trust-divider { display: none; }
  .hero-trust { gap: 1rem; }
  the-problem, .how-it-works, .outcomes, .closing { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}