/* Layout: one centered column (max 680px) on a full-bleed dark ground, like a lights-down media room; questions are big tap targets, the result reads like a floor sheet. */
:root {
  --bg: #15171c;
  --surface: #1e2127;
  --surface-2: #272b33;
  --line: #353a44;
  --fg: #ebe9e3;
  --muted: #a1a5ae;
  --accent: #e3a84b;
  --accent-ink: #1a1306;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f1f2f4; --surface: #ffffff; --surface-2: #e8eaee; --line: #d2d5db;
    --fg: #1a1c21; --muted: #5d626b; --accent: #a4660f; --accent-ink: #ffffff;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--bg); }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap { max-width: 680px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px 8px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--fg); background: none; border: none; padding: 0; cursor: pointer; }
.brand b { color: var(--accent); font-weight: 700; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 9vw, 60px); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 7vw, 42px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
section { display: flex; flex-direction: column; gap: 20px; padding-block: 28px 0; }
.hero { gap: 18px; padding-block: 40px 0; }
.hero p { max-width: 36ch; font-size: 19px; }
.btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 8px; padding: 12px 18px; cursor: pointer; min-height: 48px; text-decoration: none; display: inline-flex; align-items: center; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.link { background: none; border: none; color: var(--muted); padding: 8px 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn.link:hover { color: var(--fg); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible, .opt:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.progress { display: flex; flex-direction: column; gap: 8px; }
.bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.opts { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.opt { display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; cursor: pointer; min-height: 56px; }
.opt:hover { border-color: var(--accent); background: var(--surface-2); }
.opt b { font-weight: 600; font-size: 18px; }
.opt span { color: var(--muted); font-size: 15px; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 560px) { .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec div { background: var(--surface); padding: 12px 14px; min-width: 0; }
.spec small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.spec strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.alt { border-style: dashed; }
ul.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.checks li { padding-left: 26px; position: relative; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.gear { display: grid; gap: 10px; }
.gear div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.gear small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 14px; }
label, .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
input, textarea { font: inherit; font-size: 17px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
textarea { min-height: 88px; resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { font: inherit; font-size: 15px; font-weight: 600; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 520px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }
.lead { display: flex; flex-direction: column; gap: 6px; }
.lead .name { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; }
.sel { user-select: all; -webkit-user-select: all; }
.offscreen { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
footer { padding-block: 32px 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .bar i, .toast { transition: none; } }
/* ---- family builder ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; font-size: 15px; font-weight: 600; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.series { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .series { grid-template-columns: 1fr 1fr; } }
.ser { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; min-height: 56px; }
.ser:hover { border-color: var(--accent); background: var(--surface-2); }
.ser[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ser b { font-weight: 600; font-size: 17px; }
.ser span { color: var(--muted); font-size: 14px; }
.ser .tier { color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.ctl { display: flex; flex-direction: column; gap: 6px; }
.ctl > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 12px; border-top: 1px solid var(--line); align-items: start; }
.line:first-child { border-top: none; padding-top: 0; }
.line .role { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.line .model { font-weight: 600; font-size: 18px; }
.line .qty { color: var(--muted); font-size: 14px; }
.line .price { font-family: var(--font-display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.line .find { grid-column: 1 / -1; font-size: 14px; }
.line a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid var(--fg); padding-top: 12px; }
.total strong { font-family: var(--font-display); font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sticky-bar { position: sticky; bottom: 0; background: var(--bg); padding-block: 12px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; z-index: 5; }
