:root {
  --bg: #fbf7f4;
  --card: #ffffff;
  --ink: #2e2230;
  --muted: #6f6170;
  --line: #eadfe0;
  --accent: #a8455f;
  --accent-ink: #ffffff;
  --accent-soft: #f6e6ea;
  --focus: #d27a92;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c171d;
    --card: #262028;
    --ink: #f3ecef;
    --muted: #b7a9b5;
    --line: #3b3240;
    --accent: #e08aa1;
    --accent-ink: #2a1520;
    --accent-soft: #3a2630;
    --focus: #f0a7ba;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 32px 16px 64px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
h1 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 0 0 16px; }
h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 24px; margin: 0 0 6px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 12px; }
.sign { font-weight: 500; margin: 18px 0 0; }
.share a { color: var(--accent); font-weight: 600; font-size: 18px; word-break: break-all; }
.top { margin-bottom: 28px; }

.notice { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; }

.sec { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; margin-bottom: 20px; }
.intro { color: var(--muted); margin: 0 0 8px; }

.q { border: 0; margin: 0; padding: 22px 0 0; min-width: 0; }
.ql { display: block; font-weight: 600; font-size: 16.5px; padding: 0; margin: 0 0 10px; }
.hint { color: var(--muted); font-size: 14px; margin: -6px 0 10px; }

input[type=text], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
textarea { resize: vertical; min-height: 110px; }
input[type=text]:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.other { margin-top: 10px; }

.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); }
.opt input { margin: 3px 0 0; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pip input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.pip span { display: block; text-align: center; padding: 12px 0; font-weight: 600; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); }
.pip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pip input:focus-visible + span, .pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.ends { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 6px; }

.grid { display: grid; gap: 10px; }
.row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; background: var(--bg); min-width: 0; }
.row legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: 15px; }
.pills { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pill { position: relative; }
.pill span { display: block; text-align: center; font-size: 13.5px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--card); }
.pill input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 13px 26px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.progress { margin-bottom: 16px; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.step { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.privacy { color: var(--muted); font-size: 13.5px; text-align: center; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* One section at a time once the script is running */
.js .sec { display: none; }
.js .sec.on { display: block; }
