:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #14221d;
  --muted: #627068;
  --line: #dfe6e2;
  --accent: #176b52;
  --accent-soft: #e9f4ef;
  --warning: #8a5a18;
  --shadow: 0 18px 50px rgba(20, 34, 29, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 750;
}
.brand-copy { display: grid; }
.brand-copy strong { font-size: 15px; letter-spacing: -.01em; }
.brand-copy small { color: var(--muted); font-size: 12px; }

.shell { max-width: 760px; margin: 38px auto 90px; padding: 0 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 48px);
  min-height: 420px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(34px, 6vw, 52px); max-width: 670px; }
h2 { font-size: clamp(26px, 4.5vw, 36px); max-width: 650px; }
.lede { font-size: 18px; color: #35443d; max-width: 640px; margin: 18px 0 0; }
.subtle { color: var(--muted); font-size: 14px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.primary, .secondary, .choice, .chip, .text-button {
  border-radius: 11px;
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.primary {
  padding: 13px 19px;
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  font-weight: 700;
}
.primary:hover { transform: translateY(-1px); }
.primary:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.secondary {
  padding: 12px 18px;
  background: white;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 650;
}
.text-button { padding: 8px 11px; background: transparent; border-color: var(--line); color: var(--ink); }

.info-row {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-row div strong { display: block; font-size: 14px; }
.info-row div span { color: var(--muted); font-size: 12px; }

.progress-wrap { margin-bottom: 14px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 0 3px 7px; }
.progress-track { height: 5px; background: #e5eae7; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.hidden { display: none !important; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 13px; }
.field input, .field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd8d3;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.question-counter { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.choice-stack { display: grid; gap: 10px; margin-top: 26px; }
.choice {
  text-align: left;
  padding: 16px 18px;
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.choice:hover { border-color: #9fb7ab; background: #fbfcfb; }
.choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.choice strong { display: block; margin-bottom: 3px; }
.choice small { color: var(--muted); }

.evidence-box { margin-top: 24px; padding: 18px; background: #fafbf9; border: 1px solid var(--line); border-radius: 13px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.chip { padding: 8px 11px; background: white; color: var(--ink); border-color: var(--line); font-size: 13px; }
.chip.selected { background: var(--accent-soft); border-color: var(--accent); color: #0d553e; }

.tradeoff-grid { display: grid; grid-template-columns: 1fr 38px 1fr; align-items: stretch; gap: 10px; margin-top: 28px; }
.tradeoff-card { min-height: 142px; display: flex; flex-direction: column; justify-content: center; }
.tradeoff-or { display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 12px; }

.check-grid { display: grid; gap: 10px; margin-top: 15px; }
.check-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; }
.check-option input { margin-top: 4px; }

.consent {
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: #fafbf9;
  border-radius: 12px;
}
.consent label { display: flex; gap: 10px; font-size: 13px; color: #3e4b45; }

.result-list { display: grid; gap: 12px; margin: 24px 0 0; }
.result-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.result-card .tag { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: #0f5d43; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.result-card h3 { margin: 9px 0 5px; font-size: 19px; }
.result-card p { margin: 0; color: var(--muted); font-size: 14px; }
.paywall { margin-top: 24px; padding: 20px; border: 1px solid #bed5ca; border-radius: 14px; background: #f3f9f6; }
.paywall strong { font-size: 20px; }
.paywall ul { margin: 12px 0 0; padding-left: 20px; color: #435049; }

.status { margin-top: 16px; color: var(--muted); font-size: 13px; min-height: 20px; }
.status.error { color: #9a382f; }

.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 22px 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 650px) {
  .shell { margin-top: 12px; }
  .card { min-height: auto; padding: 26px 21px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .info-row { grid-template-columns: 1fr; }
  .tradeoff-grid { grid-template-columns: 1fr; }
  .tradeoff-or { height: 22px; }
  .site-footer { flex-direction: column; }
  .brand-copy small { display: none; }
}
