:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1a2e1a;
  --muted: #5c6b5c;
  --accent: #2d6a4f;
  --accent-dark: #1b4332;
  --border: #dde5dd;
  --crisis: #9b2226;
  --shadow: 0 8px 32px rgba(26, 46, 26, 0.08);
  --radius: 14px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-dark);
}
.header-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.header-link:hover { color: var(--accent); }

main { padding: 2rem 0 4rem; }

.hero, .quiz, .result {
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--accent-dark);
}

h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
}

.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }
.q-sub { color: var(--muted); margin: 0 0 1.25rem; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.hero-points li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
}
.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-lg { width: 100%; padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.fine {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

.progress {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.step-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.option {
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.option:hover { border-color: #a8c5a8; }
.option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
.opt-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}
.opt-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.disclosure {
  background: #fff8e8;
  border: 1px solid #f0dfa0;
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.why-box, .why-not, .alternate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}
.why-box ul { margin: 0; padding-left: 1.2rem; }
.why-box li { margin: 0.4rem 0; }

.category { color: var(--muted); margin: 0 0 0.5rem; }

.crisis-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.crisis-card {
  display: block;
  background: var(--surface);
  border: 2px solid var(--crisis);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
}
.crisis-card strong { display: block; font-size: 1.1rem; }
.crisis-card span { color: var(--muted); font-size: 0.95rem; }

.survey { margin: 2rem 0 1rem; }
.survey-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--accent); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--accent-dark);
}
.stat-card .label { font-size: 0.85rem; color: var(--muted); }

.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin: 0.35rem 0; }

@media (max-width: 480px) {
  .quiz-nav { flex-direction: column-reverse; }
  .quiz-nav .btn { width: 100%; }
}
