:root {
  --ink: #211f1c;
  --muted: #6c665c;
  --paper: #f8f4ea;
  --card: #fffdf7;
  --line: #ded5c5;
  --accent: #e94b35;
  --accent-dark: #bd3423;
  --green: #237a57;
  --shadow: 0 18px 50px rgba(53, 42, 24, .09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(#8f8068 0.55px, transparent 0.55px);
  background-size: 7px 7px;
}
a { color: inherit; }
button, input { font: inherit; }
.site-header {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.03em;
}
.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}
main {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 32px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 50px 0 90px;
}
footer {
  position: relative;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  font-size: .8rem;
}
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.07em;
}
.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.55;
}
.hero { padding: 8vh 0 11vh; }
.hero.compact { max-width: 760px; padding-top: 16vh; }
.actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--accent); box-shadow: 0 8px 24px rgba(233, 75, 53, .25); }
.button-primary:hover { background: var(--accent-dark); }
.button-ghost { padding: 0 14px; border-color: var(--line); background: transparent; }
.text-link { color: var(--muted); font-weight: 700; }
.promise-grid, .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.promise-grid article, .stats article, .card {
  padding: 25px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .8);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.promise-grid strong, .promise-grid span, .stats strong, .stats span { display: block; }
.promise-grid strong { margin-bottom: 8px; }
.promise-grid span, .stats span { color: var(--muted); font-size: .9rem; }
.login-card { max-width: 480px; margin: 12vh auto; }
.login-card h1, .page-intro h1, .admin-heading h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}
.stack { display: grid; gap: 12px; margin-top: 30px; }
.stack label { font-weight: 800; }
.stack input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
}
.flash, .notice {
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}
.flash.error { color: #8e261c; border-color: #e4a49c; }
.notice { margin-top: 22px; color: var(--muted); }
.page-intro { max-width: 780px; margin-bottom: 55px; }
.category-title {
  margin: 55px 0 15px;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.question-card {
  margin: 0 0 12px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(53, 42, 24, .04);
}
.question-card legend {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 0;
  font-size: 1.06rem;
  font-weight: 750;
  line-height: 1.4;
}
.question-card legend span { color: var(--accent); font-size: .75rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: .15s ease;
}
.choice input:checked + span { color: white; border-color: var(--ink); background: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid rgba(233, 75, 53, .35); }
.submit-zone { padding: 55px 0; text-align: center; }
.submit-zone p { color: var(--muted); }
.admin-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 45px; }
.stats { margin-bottom: 45px; }
.stats strong { font-family: Georgia, serif; font-size: 3.5rem; }
.response-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, .55);
}
.response-row:first-of-type { border-radius: 12px 12px 0 0; }
.response-row strong { color: var(--muted); }
.response-row strong.yes { color: var(--green); }
.response-row strong.no { color: var(--accent); }
.empty { text-align: center; }

@media (max-width: 720px) {
  main { padding-top: 25px; }
  .site-header { padding: 18px 16px; }
  .hero { padding-top: 8vh; }
  .promise-grid, .stats, .choice-grid.three { grid-template-columns: 1fr; }
  .choice-grid.three { grid-template-columns: 1fr; }
  .admin-heading { display: block; }
  .admin-heading .button { margin-top: 16px; }
  .question-card { padding: 20px 16px; }
}
