:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1f2a2e;
  --muted: #5b6770;
  --line: #d8d1c4;
  --accent: #1f6f6b;
  --accent-dark: #17534f;
  --accent-soft: #e4f1ef;
  --warn: #a4442b;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
.top {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg);
  padding: max(10px, env(safe-area-inset-top)) 16px 8px;
  display: flex; align-items: center; gap: 12px;
  max-width: 600px; margin: 0 auto;
}
.back {
  border: 0; background: none; color: var(--accent);
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 10px 4px; min-height: 44px; cursor: pointer; flex: none;
}
.back[hidden] { display: none; }
.track { flex: 1; height: 6px; border-radius: 3px; background: #ebe5d9; overflow: hidden; }
.bar { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.wrap { max-width: 600px; margin: 0 auto; padding: 12px 16px calc(40px + env(safe-area-inset-bottom)); }
.screen { animation: in .2s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .bar { transition: none; } }
.eyebrow { margin: 8px 0 6px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .01em; }
h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; font-weight: 700; }
h1:focus { outline: none; }
.intro h1 { font-size: 28px; }
.lead { margin: 0 0 16px; font-size: 18px; color: var(--ink); }
.piped { margin: -2px 0 12px; font-size: 19px; font-weight: 600; color: var(--accent-dark); }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.note { margin: 12px 0; color: var(--muted); font-size: 14px; }
.warn { min-height: 1.2em; margin: 8px 0 0; color: var(--warn); font-size: 15px; }
.warn:empty { min-height: 0; margin: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.opts { display: grid; gap: 10px; margin: 6px 0 4px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 12px 14px;
  text-align: left; font: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: #b9b0a0; }
.opt:focus-visible { outline: 3px solid #9cc9c4; outline-offset: 2px; }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.mark {
  flex: none; width: 22px; height: 22px; border: 2px solid #a89f8f; background: #fff;
  display: grid; place-items: center;
}
.radio .mark { border-radius: 50%; }
.check .mark { border-radius: 6px; }
.opt[aria-checked="true"] .mark { border-color: var(--accent); background: var(--accent); }
.radio[aria-checked="true"] .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.check[aria-checked="true"] .mark::after {
  content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.label { flex: 1; }
input.other {
  display: block; width: 100%; margin: 10px 0 0; padding: 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px;
}
input.other:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #cfe6e3; }
input.other[hidden] { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; font-size: 16px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.actions { margin-top: 20px; display: flex; gap: 10px; }
.actions.stack { flex-direction: column; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px; border-radius: 12px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.primary { background: var(--accent); color: #fff; border: 0; width: 100%; }
.primary:hover { background: var(--accent-dark); }
.primary:disabled { background: #b7c9c7; cursor: not-allowed; }
.primary[hidden], .secondary[hidden] { display: none; }
.secondary { background: none; color: var(--accent-dark); border: 1.5px solid var(--line); width: 100%; }
.share { margin-top: 8px; }
@media (min-width: 640px) {
  h1 { font-size: 27px; }
  .intro h1 { font-size: 32px; }
  .wrap { padding-top: 28px; }
}
