/* ─────────────────────────────  tokens  ───────────────────────────── */
:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #14181f;
  --muted: #5f6a77;
  --line: #e5e2db;
  --accent: #c2521d;
  --accent-soft: #fbeee7;
  --good: #1f6f5c;
  --night: #101826;
  --night-2: #18233a;

  /* the ground the figure sits on — kept light so the artwork's white
     background can be dissolved into it with mix-blend-mode: multiply */
  --stage: #f6f1e6;
  --halo-wash: #fdf8ec;
  --halo: #f4c552;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,38,.06), 0 8px 28px rgba(16,24,38,.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { letter-spacing: -0.025em; margin: 0; }

button { font: inherit; color: inherit; }

/* ─────────────────────────────  chrome  ───────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky; top: 0; z-index: 20;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 26px; height: 26px; color: var(--accent); display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-tld { color: var(--muted); font-weight: 500; }

.ghost-btn {
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .15s ease;
}
.ghost-btn:hover { border-color: var(--ink); color: var(--ink); }

.foot {
  margin-top: auto; padding: 24px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; line-height: 1.6;
}
.foot p { margin: 0; max-width: 78ch; }

/* ─────────────────────────────  screens  ───────────────────────────── */
main { flex: 1; }
.screen { display: none; }
.screen.is-active { display: block; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─────────────────────────────  landing  ───────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 40px);
}

.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
}

h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; font-weight: 800; }

.lede {
  margin: 20px 0 30px; font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.62; color: var(--muted); max-width: 52ch;
}

.doors { display: flex; flex-wrap: wrap; gap: 12px; }

.door {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  text-align: left; padding: 15px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.door:hover { transform: translateY(-2px); }
.door:active { transform: translateY(0); }
.door-title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.door-sub { font-size: 12.5px; opacity: .78; font-weight: 500; }

.door-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(194,82,29,.28); }
.door-primary:hover { background: #a8461a; box-shadow: 0 10px 26px rgba(194,82,29,.34); }
.door-secondary { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.door-secondary:hover { border-color: var(--ink); }
.door-inline { flex-direction: row; align-items: center; }

/* The returning-user door. Full width above the two starting doors, and in the
   good/green family rather than the accent, so it reads as "you already did
   this" rather than competing with "start". */
.door-resume {
  width: 100%; margin-bottom: 14px;
  background: var(--card); border-color: var(--good);
  box-shadow: 0 4px 16px rgba(31,111,92,.14);
}
.door-resume .door-title { color: var(--good); }
.door-resume:hover { background: #f4fbf7; box-shadow: 0 8px 22px rgba(31,111,92,.2); }

.promises {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 14px; color: var(--muted);
}
.promises li { position: relative; padding-left: 24px; }
.promises li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 7px; border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}

.hero-stage { position: relative; }

/* ─────────────────────────  the figure stage  ─────────────────────────
   The three poses are JPEGs on a near-white ground. `mix-blend-mode: multiply`
   dissolves that ground into the warm stage behind it, so there is no visible
   white rectangle and no need for cut-out PNGs. */
.figure-stage {
  position: relative;
  background: radial-gradient(75% 62% at 50% 26%, var(--halo-wash), var(--stage) 68%);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.34,1.4,.5,1);
}
.figure-stage.bump { animation: bump .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes bump {
  0% { transform: scale(1); }
  32% { transform: scale(1.03) translateY(-7px); }
  100% { transform: scale(1); }
}

.figure-stack {
  position: relative;
  aspect-ratio: 583 / 790;
  width: 100%;
  transition: transform .38s cubic-bezier(.34,1.4,.5,1);
}

.pose {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .13s ease-out;
  user-select: none; -webkit-user-drag: none;
}
.pose.is-on { opacity: 1; }


@media (prefers-reduced-motion: reduce) {
  .figure-stage, .figure-stack { transition-duration: .01ms; }
  .figure-stage.bump { animation: none; }
}

/* ─────────────────────────────  quiz  ───────────────────────────── */
.quiz-wrap {
  max-width: 780px; margin: 0 auto;
  padding: clamp(20px, 3.5vw, 44px) clamp(16px, 4vw, 40px);
  text-align: center;
}

.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.progress-track { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.progress-label { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.narrowing {
  margin: -14px 0 22px; font-size: 12.5px; font-weight: 600;
  color: var(--good); letter-spacing: .01em;
}

.q-prompt { font-size: clamp(23px, 3.1vw, 34px); line-height: 1.16; font-weight: 800; }
.q-help {
  margin: 12px auto 0; color: var(--muted); font-size: 15px;
  line-height: 1.6; max-width: 52ch;
}

/* Shown when the flow picked this question for a reason worth stating. */
.q-note {
  margin: 14px auto 0; max-width: 50ch;
  padding: 9px 14px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid #f0dccf;
  color: #7a4520; font-size: 13px; line-height: 1.5; font-weight: 600;
}

.brief-meta { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* The figure sits in the middle with options wrapped around it: first option to
   his left, last to his right, the rest beneath. Left-to-right order carries the
   meaning, and this keeps the whole question on one screen without scrolling. */
.q-stage {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 210px) 1fr;
  grid-template-areas:
    "left figure right"
    "below below below";
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  margin-top: 14px;
}
#qLeft { grid-area: left; }
#qRight { grid-area: right; }
#qOptions { grid-area: below; }

.q-slot { display: grid; gap: clamp(8px, 1.4vw, 12px); }
/* Side slots hold one option each and stay centred against the figure. */
.q-slot--side { align-content: center; }
.q-slot--below { grid-auto-flow: column; grid-auto-columns: 1fr; }

.figure-stage--quiz {
  grid-area: figure;
  width: 100%;
  margin: 0 auto;
}

.opt {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 10px; border-radius: var(--radius); cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line);
  text-align: center; font-size: 14px; font-weight: 650; line-height: 1.28;
  min-height: 100%;
  transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease;
}
.opt:hover, .opt:focus-visible {
  border-color: var(--accent); background: var(--accent-soft);
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(194,82,29,.14);
  outline: none;
}
.opt.is-chosen {
  border-color: var(--accent); background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px rgba(194,82,29,.3);
}
.opt-key {
  flex: 0 0 auto; width: 25px; height: 25px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.opt:hover .opt-key { background: #fff; }
.opt.is-chosen .opt-key { background: rgba(255,255,255,.22); border-color: transparent; color: #fff; }

.quiz-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; gap: 12px; text-align: left;
}
.hint { font-size: 12.5px; color: var(--muted); }

/* ─────────────────────────────  results  ───────────────────────────── */
.results-wrap { max-width: 900px; margin: 0 auto; padding: clamp(24px, 4vw, 52px) clamp(16px, 4vw, 40px); }

.brief-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 32px;
}
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brief-head h2 { font-size: 17px; font-weight: 700; }
.brief-line { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ink); }

.pick {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.pick-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pick-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.pick-name { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; line-height: 1.15; }
.pick-years { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }

.fit {
  text-align: right; flex-shrink: 0;
}
.fit-score { font-size: 30px; font-weight: 800; color: var(--good); line-height: 1; }
.fit-of { font-size: 13px; color: var(--muted); font-weight: 600; }
.fit-conf { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.pick-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0;
}
.chip {
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
}

/* Shown when the top pick misses something the buyer said they required. */
.unmet {
  margin: 0 0 16px; padding: 11px 14px; border-radius: 10px;
  background: #fdf3e7; border: 1px solid #f0d6b8;
  color: #7a4520; font-size: 13.5px; line-height: 1.55; font-weight: 600;
}

.why h4, .against h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.why ul, .against ul { margin: 0 0 16px; padding-left: 20px; }
.why li, .against li { margin-bottom: 6px; font-size: 14.8px; line-height: 1.55; }
.against li { color: #8a4a20; }

.section-title { font-size: 19px; font-weight: 700; margin: 38px 0 6px; }
.section-note { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 66ch; }

/* ── priority sliders ── */
.tuner {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin: 26px 0 8px;
}
.tuner-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.tuner-figure { flex: 0 0 132px; width: 132px; align-self: center; }
.tuner-figure .figure-stack { max-height: 168px; }

.slider-list { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.slider-row {
  display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(160px, 1.6fr) 46px;
  align-items: center; gap: 14px;
  padding: 9px 10px; border-radius: 10px; cursor: pointer;
}
.slider-row:hover { background: var(--paper); }
.slider-label { display: flex; flex-direction: column; gap: 2px; }
.slider-name { font-size: 14.5px; font-weight: 700; }
.slider-hint { font-size: 12px; color: var(--muted); line-height: 1.35; }

.slider-track { display: flex; align-items: center; gap: 9px; }
.slider-end { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.slider {
  flex: 1; appearance: none; -webkit-appearance: none;
  height: 5px; border-radius: 999px; background: var(--line); cursor: grab;
}
.slider:active { cursor: grabbing; }
.slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(16,24,38,.3);
}
.slider::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(16,24,38,.3);
}

.slider-mult {
  font-size: 12.5px; font-weight: 750; text-align: right;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.slider-mult.is-up { color: var(--good); }
.slider-mult.is-down { color: var(--accent); }

.tuner-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.tuner-status { font-size: 12.5px; color: var(--muted); font-weight: 600; }

@media (max-width: 660px) {
  .tuner-head { flex-direction: column-reverse; align-items: stretch; }
  .tuner-figure { align-self: center; }
  .slider-row { grid-template-columns: 1fr 44px; grid-template-areas: "label mult" "track track"; gap: 6px 12px; }
  .slider-label { grid-area: label; }
  .slider-track { grid-area: track; }
  .slider-mult { grid-area: mult; }
}

.field-list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 18px;
}
.row-name { flex: 1; font-weight: 650; font-size: 15px; }
.row-sub { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row-bar { flex: 0 0 110px; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.row-bar span { display: block; height: 100%; background: var(--good); border-radius: 999px; }
.row-score { flex: 0 0 34px; text-align: right; font-weight: 750; font-size: 15px; }

@media (max-width: 620px) {
  .row { flex-wrap: wrap; }
  .row-bar { flex: 1 1 100%; order: 3; }
  .watch-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ─────────────────────────  watchlist + alerts  ───────────────────────── */
.watch-btn {
  flex: 0 0 auto; background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: all .14s ease;
}
.watch-btn:hover { border-color: var(--accent); color: var(--accent); }
.watch-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.watch-bar {
  position: sticky; bottom: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(16,24,38,.09);
  font-size: 14px; font-weight: 650;
}

.alerts-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin: 22px 0 0; }
.alerts-lede { margin: 12px 0 20px; color: var(--muted); font-size: 15.5px; line-height: 1.62; max-width: 62ch; }
.alerts-note {
  padding: 15px 18px; border-radius: var(--radius); margin-bottom: 26px;
  background: #eef6f2; border: 1px solid #cfe5da; color: #235c4a;
  font-size: 13.5px; line-height: 1.6;
}

.loc-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); min-width: 170px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.zip-error { margin: 8px 0 0; font-size: 13px; color: var(--accent); font-weight: 600; }

.inbox-card {
  margin: 22px 0 28px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.inbox-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.inbox-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inbox-row code {
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  background: var(--paper); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 9px;
}
.inbox-status { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.alert-list { display: flex; flex-direction: column; gap: 14px; }
.alert-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.alert-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.alert-name { font-size: 17px; font-weight: 750; }
.alert-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }

.alert-links { display: flex; flex-direction: column; gap: 7px; }
.alert-link {
  display: block; text-decoration: none; color: inherit;
  padding: 11px 14px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .14s ease, background .14s ease;
}
.alert-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.alert-site { display: block; font-size: 14px; font-weight: 750; }
.alert-flag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 7px; margin-left: 6px; vertical-align: 1px;
}
.alert-why { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.alert-url {
  display: block; font-size: 11px; color: var(--muted); opacity: .8;
  margin-top: 5px; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.disclosure {
  margin-top: 34px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid #f0dccf;
  font-size: 13.5px; line-height: 1.65; color: #6b3a1c;
}

.restart-row { margin-top: 30px; }

/* ─────────────────────────────  responsive  ───────────────────────────── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 340px; margin: 0 auto; }
  .doors { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
  /* The wrap-around layout is kept on phones too — left-to-right position is the
     meaning, so stacking would break the interaction. The figure shrinks instead. */
  .q-stage { grid-template-columns: 1fr minmax(84px, 116px) 1fr; gap: 7px; }
  .opt { font-size: 11.5px; padding: 9px 5px; gap: 5px; line-height: 1.2; }
  .opt-key { width: 19px; height: 19px; font-size: 10px; }
  .q-prompt { font-size: 20px; }
  .q-help { font-size: 13.5px; }
  .quiz-nav { flex-direction: column; align-items: stretch; gap: 10px; }
  .hint { text-align: center; }
}

/* Short viewports (laptops, landscape phones) are where scrolling crept in. */
/* Short viewports narrow the FIGURE COLUMN. Height then follows from the
   aspect ratio, so there is never a clamp fighting the intrinsic size. */
@media (max-height: 820px) {
  .q-stage { grid-template-columns: 1fr minmax(120px, 165px) 1fr; }
  .quiz-wrap { padding-top: 14px; padding-bottom: 14px; }
  .q-help { margin-top: 8px; }
  .q-note { margin-top: 10px; padding: 7px 12px; }
}
@media (max-height: 660px) {
  .q-stage { grid-template-columns: 1fr minmax(96px, 124px) 1fr; }
  .q-prompt { font-size: clamp(19px, 2.4vw, 26px); }
}

/* ── sign-in gate ── */
.topbar-right { display: flex; align-items: center; gap: 10px; }
.auth-who {
  font-size: 12.5px; font-weight: 650; color: var(--muted);
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gate {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px clamp(20px, 3vw, 30px); box-shadow: var(--shadow); margin: 22px 0;
}
.gate-title { font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; line-height: 1.2; }
.gate-lede { margin: 12px 0 18px; font-size: 15.5px; line-height: 1.62; color: var(--muted); max-width: 62ch; }
.gate-lede code {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; font-size: 14px; color: var(--ink); font-weight: 650;
}
.gate-points {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 66ch;
}
.gate-points li { position: relative; padding-left: 26px; }
.gate-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 7px; border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}
.gate-points strong { color: var(--ink); }

.gate-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.gate-form .field input { min-width: 260px; }
.gate-msg { margin: 14px 0 0; font-size: 14px; line-height: 1.55; min-height: 1.2em; }
.gate-msg.is-good { color: var(--good); font-weight: 650; }
.gate-msg.is-bad { color: var(--accent); font-weight: 650; }
.gate-fine { margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 60ch; }

@media (max-width: 560px) {
  .auth-who { display: none; }
  .gate-form .field input { min-width: 0; width: 100%; }
  .gate-form, .gate-form .field { width: 100%; }
}


/* ─────────────────────────  coming back  ───────────────────────── */

.resume-note {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px;
  background: #f4fbf9; border: 1px solid rgba(31,111,92,.3);
  border-radius: var(--radius); font-size: 13.5px; line-height: 1.55;
}
.resume-note strong { color: var(--good); }

/* Listings that actually arrived. Deliberately the first thing on the page:
   a car you can go look at tonight outranks one we merely scored. */
.hits { margin: 0 0 30px; }
.hits-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hits-count { font-size: 12.5px; font-weight: 650; color: var(--good); white-space: nowrap; }
.hit-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px; margin-top: 14px;
}
.hit-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px 12px; box-shadow: var(--shadow);
}
.hit-card.is-new { border-color: var(--good); }
.hit-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hit-name { font-size: 15px; font-weight: 720; line-height: 1.3; }
.hit-flag {
  font-size: 10.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--good); padding: 3px 7px; border-radius: 999px; white-space: nowrap;
}
.hit-facts {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 7px;
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.hit-drop { margin-top: 8px; font-size: 12.5px; font-weight: 650; color: var(--good); }
.hit-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hit-sources a {
  font-size: 12px; font-weight: 650; color: var(--accent); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.hit-sources a:hover { border-color: var(--accent); }
.hit-dupe { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

/* ─────────────────────────  picks grid  ───────────────────────── */
/* Compact cards that expand. Replaces three oversized headline cards plus a
   separate powertrain grid that repeated most of the same vehicles. */
.picks { margin: 26px 0 34px; }
.pick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 12px; margin-top: 14px;
}
.pick-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px 13px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.pick-card.is-top { border-color: var(--accent); box-shadow: 0 5px 20px rgba(194,82,29,.16); }

.pick-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pick-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pick-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 8px;
}
.pick-card.is-top .pick-tag:first-child {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
.pick-card-name { font-size: 16px; font-weight: 750; line-height: 1.25; margin-top: 9px; }
.pick-card-sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.pick-card-score { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.pcs-num { font-size: 24px; font-weight: 800; color: var(--good); line-height: 1; }
.pcs-of { font-size: 12px; color: var(--muted); font-weight: 700; }
.pcs-conf { font-size: 11.5px; color: var(--muted); margin-left: auto; }

.pick-expand {
  margin-top: 12px; align-self: flex-start;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all .14s ease;
}
.pick-expand:hover { border-color: var(--accent); color: var(--accent); }
.pick-expand .chev { display: inline-block; transition: transform .18s ease; }
.pick-expand.is-open .chev { transform: rotate(180deg); }

.pick-detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.pick-detail .pick-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pick-detail .chip { font-size: 11.5px; padding: 4px 9px; }
.pick-detail .why h4, .pick-detail .against h4 { font-size: 11px; margin-bottom: 6px; }
.pick-detail .why li, .pick-detail .against li { font-size: 13px; margin-bottom: 5px; }
.pick-case {
  margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted);
  border-top: 1px dashed var(--line); padding-top: 10px;
}

/* ── the star, shared by cards and ranked rows ── */
.watch-star {
  flex: 0 0 auto; background: transparent; border: none; cursor: pointer;
  font-size: 19px; line-height: 1; padding: 2px 3px; color: var(--muted);
  transition: transform .12s ease, color .14s ease;
}
.watch-star:hover { transform: scale(1.18); color: var(--accent); }
.watch-star.is-on { color: var(--accent); }
.watch-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.row-rank {
  flex: 0 0 22px; font-size: 12.5px; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums; text-align: right;
}

/* ── combined multi-vehicle search ── */
.combined-card {
  background: #eef6f2; border: 1px solid #cfe5da; border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 26px;
}
.combined-label {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #235c4a; margin-bottom: 8px;
}
.combined-note { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: #2c5f50; max-width: 66ch; }
.alert-link.is-primary { background: #fff; border-color: #cfe5da; }
.alert-link.is-primary:hover { border-color: var(--good); background: #f7fcfa; }

/* ── broad, brief-shaped search ── */
.combined-card.is-broad { background: #fbeee7; border-color: #f0dccf; }
.combined-card.is-broad .combined-label { color: #8a4a20; }
.combined-card.is-broad .combined-note { color: #7a4520; }
.combined-card.is-broad .alert-link.is-primary { border-color: #f0dccf; }
.combined-card.is-broad .alert-link.is-primary:hover { border-color: var(--accent); background: #fff8f4; }
.broad-filters {
  margin: 0 0 14px; padding: 9px 13px; border-radius: 9px;
  background: #fff; border: 1px solid #f0dccf;
  font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.5;
}

/* ─────────────────────────  multi-select intake  ───────────────────────── */
.s-stage {
  display: grid; grid-template-columns: minmax(130px, 190px) 1fr;
  gap: clamp(14px, 3vw, 28px); align-items: center;
  margin: 18px 0 20px; text-align: left;
}
.s-stage .figure-stage--quiz { grid-area: auto; }

/* The field narrowing in real time. This is the payoff for answering. */
.s-live {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); min-height: 128px;
}
.s-live-empty { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.s-live-count {
  font-size: 30px; font-weight: 800; color: var(--good); line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.s-live-count span { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.s-live-shape { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.s-live-shape strong { color: var(--ink); }
.s-live-label {
  margin-top: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.s-live-list { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: n; }
.s-live-list li {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13.5px; padding: 3px 0; border-bottom: 1px solid var(--line);
}
.s-live-list li:last-child { border-bottom: none; }
.s-live-name { font-weight: 650; flex: 1; }
.s-live-score { font-weight: 800; color: var(--good); font-variant-numeric: tabular-nums; }

.s-options {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; text-align: left;
}
.s-opt {
  flex-direction: row; align-items: center; gap: 11px;
  text-align: left; padding: 13px 15px; font-size: 14.5px;
}

/* A group heading spans both columns, which also returns the option flow to the
   left column — the lean of each option is measured within its own group. */
.s-group-head {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 3px;
  margin: 6px 0 0; text-align: left;
}
.s-group-label { font-size: 13px; font-weight: 750; color: var(--ink); }
.s-group-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.s-check {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--line); background: #fff; position: relative;
  transition: all .14s ease;
}
.s-opt.is-chosen .s-check { background: #fff; border-color: #fff; }
.s-opt.is-chosen .s-check::after {
  content: ''; position: absolute; left: 5px; top: 2px;
  width: 6px; height: 11px; border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent); transform: rotate(42deg);
}

/* Budget is the one genuinely single-valued answer, so it reads as a row of
   exclusive choices rather than another checkbox. */
.budget-row { margin: 4px 0 18px; text-align: left; }
.budget-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.budget-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.budget-opt {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .14s ease;
}
.budget-opt:hover { border-color: var(--accent); color: var(--accent); }
.budget-opt.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.quiz-nav { flex-wrap: wrap; }

@media (max-width: 720px) {
  /* Keep the figure BESIDE the readout instead of stacked above it. Stacking
     pushed him off the top of the screen by the time you had scrolled to the
     options — which is exactly the moment he is supposed to be reacting to you.
     Beside it, the whole stage and the first options share one screen. */
  .s-stage { grid-template-columns: minmax(96px, 128px) 1fr; gap: 12px; margin: 14px 0 16px; }
  .s-live { padding: 12px 14px; min-height: 0; }
  .s-live-count { font-size: 25px; }
  .s-live-list { font-size: 13px; }

  /* Two columns are kept deliberately. Left-to-right position IS the meaning —
     it decides which way the wheel turns — so a single column would make him
     turn at random, and would double the scrolling that hid him in the first place. */
  .s-opt { font-size: 13.5px; padding: 11px 10px; gap: 9px; }
  .s-check { flex-basis: 18px; width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .s-stage { grid-template-columns: 84px 1fr; gap: 10px; }
  .s-opt { font-size: 12.5px; padding: 10px 8px; gap: 7px; }
}

/* Trim sits under budget: the same money buys a loaded mainstream car or a
   stripped premium one, which is a budget question, not a new screen. */
.trim-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
