/* why-it-works.css — scoped to .why-body (templates/why_it_works.html).
   The evidence page: hero → signature stat → productive-failure contrast →
   study provenance → transfer finding → why-simulations cards → closing CTA →
   citation. Escapes the centered auth-card layout and runs full-bleed bands
   like the landing page. Shared chrome (header/footer/buttons) lives in
   brand.css; design tokens too. */

.why-body .auth-main {
  display: block;
  padding: 0;
}

/* Shared inner wrapper for centered, max-width content inside full-bleed bands. */
.why-inner { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ---------- Section 1 — Hero ---------- */
.why-hero {
  background: linear-gradient(135deg, var(--hero-grad-a) 0%, var(--hero-grad-b) 100%);
  color: #fdf6ed;
  text-align: center;
}
.why-hero .why-inner { padding-top: 76px; padding-bottom: 84px; max-width: 800px; }
.why-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-light);
  margin-bottom: 18px;
}
.why-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 20px;
}
.why-hero p {
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.94;
  max-width: 660px;
  margin: 0 auto 32px;
}
.why-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.why-hero .brand-btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.10); }
.why-hero .brand-btn-secondary:hover { background: rgba(255, 255, 255, 0.20); border-color: #fff; color: #fff; }

/* ---------- Section 2 — Signature stat ---------- */
.why-stat { background: #fff; border-bottom: 1px solid var(--color-border); }
.why-stat .why-inner { padding-top: 64px; padding-bottom: 64px; text-align: center; max-width: 760px; }
.why-stat-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.why-stat-big {
  font-size: clamp(2.7rem, 8vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-accent);
  margin: 0 0 18px;
}
.why-stat-vs {
  font-size: 0.42em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  vertical-align: middle;
  margin: 0 0.18em;
}
.why-stat-label {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 580px;
  margin: 0 auto 22px;
}
.why-stat-support {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 18px;
}
.why-stat-micro {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ---------- Generic content section ---------- */
.why-section { padding: 72px 0; }
.why-section.alt { background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.why-section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.why-section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
}
.why-section-head p { font-size: 1.05rem; line-height: 1.6; color: var(--color-muted); margin: 0; }
.why-prose p { font-size: 1.05rem; line-height: 1.7; color: var(--color-text); max-width: 680px; margin: 0 auto 18px; }
.why-prose p:last-child { margin-bottom: 0; }

/* ---------- Section 3 — Contrast cards ---------- */
.why-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.why-contrast-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
}
.why-contrast-card.highlight { border-color: var(--color-accent); box-shadow: var(--shadow-card); }
.why-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(50, 97, 93, 0.10);
  color: var(--color-primary);
}
.why-contrast-card.highlight .why-card-tag { background: rgba(216, 89, 42, 0.12); color: var(--color-accent-dark); }
.why-contrast-card h3 { font-size: 1.3rem; font-weight: 900; color: var(--color-text); margin: 0 0 14px; }
.why-contrast-card p { font-size: 0.98rem; line-height: 1.6; color: var(--color-muted); margin: 0 0 12px; }
.why-contrast-card p:last-child { margin-bottom: 0; }
.why-contrast-closing {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 720px;
  margin: 40px auto 0;
}

/* ---------- Section 4 — Provenance detail cards ---------- */
.why-detail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 40px 0 0;
}
.why-detail-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}
.why-disclosure {
  margin: 36px auto 0;
  max-width: 680px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-muted);
  font-style: italic;
  text-align: center;
}

/* ---------- Section 5 — Callout ---------- */
.why-callout {
  margin: 40px auto 0;
  max-width: 720px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fdf6ed;
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: var(--shadow-card);
}

/* ---------- Section 6 — Why simulations cards (homepage 3-card style) ---------- */
.why-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 44px; }
.why-feature {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.why-feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 26px;
  background: rgba(50, 97, 93, 0.10); margin-bottom: 16px;
}
.why-feature h3 { font-size: 1.18rem; font-weight: 800; color: var(--color-text); margin: 0 0 8px; }
.why-feature p { font-size: 0.96rem; line-height: 1.55; color: var(--color-muted); margin: 0; }

/* ---------- Section 7 — Closing CTA band ---------- */
.why-close { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fdf6ed; }
.why-close .why-inner { padding-top: 64px; padding-bottom: 64px; text-align: center; max-width: 620px; }
.why-close h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 12px; }
.why-close p { font-size: 1.08rem; line-height: 1.6; opacity: 0.92; margin: 0 auto 28px; }
.why-close .brand-btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.10); }
.why-close .brand-btn-secondary:hover { background: #fff; color: var(--color-primary-dark); border-color: #fff; }

/* ---------- Citation ---------- */
.why-citation { background: var(--color-bg); border-top: 1px solid var(--color-border); }
.why-citation .why-inner { padding-top: 44px; padding-bottom: 52px; max-width: 760px; }
.why-cite-label { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); margin: 0 0 10px; }
.why-cite-text { font-size: 0.96rem; line-height: 1.6; color: var(--color-text); margin: 0 0 12px; }
.why-cite-link { display: inline-block; font-size: 0.96rem; font-weight: 800; color: var(--color-accent-dark); text-decoration: none; margin-bottom: 20px; }
.why-cite-link:hover { text-decoration: underline; }
.why-cite-small { font-size: 0.82rem; line-height: 1.6; color: var(--color-muted); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .why-contrast { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .why-inner { padding-left: 18px; padding-right: 18px; }
  .why-hero .why-inner { padding-top: 56px; padding-bottom: 64px; }
  .why-section { padding: 52px 0; }
  .why-cta { flex-direction: column; align-items: stretch; }
}
