/* Evolution survey pages: shared look (colors and type taken from evolution.team) */
html, body { margin: 0; }
[hidden] { display: none !important; }
:root {
  --bg: #F3EEE2; --surface: #FBF8F1; --ink: #0F1F19; --muted: #4F6359; --line: #D9D1BE;
  --accent: #21563F; --accent-ink: #F3EEE2; --tint: #E7E0CE;
  --font: "Jost", "Futura Now Text", Futura, "Century Gothic", system-ui, sans-serif;
  --serif: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1F19; --surface: #163026; --ink: #F3EEE2; --muted: #B9C4B5; --line: #2E4A3E;
    --accent: #CFE0C8; --accent-ink: #0F1F19; --tint: #1E3A2E; color-scheme: dark;
  }
}
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 24px 56px;
}
.wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.kicker { font-size: 0.72rem; letter-spacing: 0.32em; font-weight: 500; color: var(--accent); text-transform: uppercase; }
.top { display: flex; flex-direction: column; gap: 8px; }
.top-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--accent); }
.where { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .bar > span { transition: none; } }
.page { display: flex; flex-direction: column; gap: 14px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1.15; letter-spacing: -0.01em; margin: 8px 0 0; color: var(--accent); text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 8px 0 0; }
.lede { margin: 0; max-width: 62ch; }
ul.scale { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 2px; max-width: 62ch; }
.q { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.q-name, .q > label { font-weight: 600; font-size: 1.05rem; margin: 0; }
.q-desc { margin: -6px 0 0; max-width: 62ch; }
.hint { margin: -4px 0 0; font-size: 0.875rem; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; min-width: 0; display: flex; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.opt label { display: flex; align-items: center; gap: 8px; flex: 1; box-sizing: border-box; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 10px; font-size: 0.9rem; line-height: 1.25; cursor: pointer; background: var(--surface); }
.opt label b { font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--accent); }
.opt input:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.opt input:checked + label b { color: var(--accent-ink); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } }
.addnote summary { cursor: pointer; font-size: 0.875rem; color: var(--muted); width: fit-content; }
.addnote[open] summary { margin-bottom: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
input[type="text"], textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 10px; width: 100%; box-sizing: border-box; }
textarea { min-height: 110px; resize: vertical; }
input[type="text"]:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.note { background: var(--tint); border-radius: 4px; padding: 10px 14px; font-size: 0.875rem; }
.alert { border: 1px solid var(--accent); border-radius: 4px; padding: 10px 14px; font-size: 0.95rem; background: var(--surface); }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.nav.end { justify-content: flex-end; }
button { font: inherit; font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; padding: 12px 28px; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
button.ghost { background: transparent; color: var(--accent); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button[disabled] { opacity: 0.6; cursor: default; }
.foot { margin-top: 24px; font-size: 0.75rem; color: var(--muted); text-align: center; letter-spacing: 0.04em; }
select { appearance: auto; }
#who { margin-top: 8px; }
