/* HomePrint style quiz (/get-started): funnel-only rules. Shared parts (buttons, .hp-dim, .hp-titleblock,
   .hp-pick, .hp-chip, .hp-sheet, inputs, the phone picker) come from main.css; this file lays them out
   for the quiz and adds what only the quiz has: the board, the spend levels, the brief, uploads.
   Everything sits under .funnel (or the page's own bands) so the older quiz rules cannot reach it. */

/* ------------------------------------------------------------
   Page frame: the question is the first thing under the header
   ------------------------------------------------------------ */
/* No background of its own: the body's paper grain (main.css) shows through. No plan drawing or grid
   behind the questions; the question area stays clean. */
.funnel {
  padding: calc(var(--header-h, 64px) + 14px) 0 clamp(40px, 6vw, 72px);
}
.funnel__head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.funnel__title {
  margin: 0;
  font: 600 1.15rem/1.2 var(--font-display);
  letter-spacing: -.01em;
  color: var(--ink);
}
.funnel__progress { max-width: 100%; }
.funnel__progress .hp-dim__label { color: var(--ink); }

.funnel__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.funnel__form { min-width: 0; }

@media (min-width: 900px) {
  .funnel { padding-top: calc(var(--header-h, 64px) + 28px); }
  .funnel__head { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 28px; margin-bottom: 30px; }
  .funnel__title { font-size: 1.35rem; }
  .funnel__body { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .funnel[data-step="result"] .funnel__body { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------
   Steps
   ------------------------------------------------------------ */
.funnel .q-step { display: block; border: 0; padding: 0; margin: 0; min-width: 0; animation: funnel-in 180ms var(--ease-out, ease-out); }
.funnel .q-step[hidden] { display: none; }
@keyframes funnel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.funnel .q-legend { padding: 0; margin: 0; float: none; width: 100%; }
.funnel .q-title {
  margin: 0 0 6px;
  font: 600 clamp(1.45rem, 1.6vw + 1rem, 2.1rem)/1.12 var(--font-display);
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
.funnel .q-title:focus { outline: none; }
.funnel .q-subtitle { margin: 26px 0 6px; font: 600 1.2rem/1.2 var(--font-display); letter-spacing: -.01em; }
.funnel .q-help { margin: 0 0 16px; max-width: 60ch; color: var(--ink-mid); font-size: .95rem; line-height: 1.5; }
.funnel .q-sublabel {
  margin: 22px 0 10px;
  font: 600 var(--t-label, .72rem)/1.3 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.funnel .q-optional {
  margin: 0 0 18px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-mid);
}
.funnel .q-optional b { color: var(--blueprint-dark); }
.funnel .q-group { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Picture answers: two per row on a phone */
.funnel .q-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.funnel .q-picks .hp-pick { display: flex; height: 100%; }
.funnel .q-picks .hp-pick > img { aspect-ratio: 4 / 3; height: auto; }
.funnel .hp-pick__label { flex: 1 0 auto; font-size: .95rem; }
.funnel .hp-pick__sub {
  display: block;
  padding: 0 14px 12px;
  margin-top: -6px;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--ink-mid);
}
.funnel .hp-pick > input:checked ~ .hp-pick__sub { background: var(--blueprint); color: var(--chalk-mid, rgba(247, 249, 252, .8)); }
.funnel .q-vignette { display: block; background: var(--paper-alt); }
.funnel .q-vignette svg { width: 100%; height: auto; display: block; }
.funnel .q-picks--photo .q-vignette svg { aspect-ratio: 4 / 3; }
@media (min-width: 640px) {
  .funnel .q-picks--photo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .funnel .q-picks--swatch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .funnel .q-picks--shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .funnel .q-picks--swatch { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Colour and wood samples */
.funnel .hp-pick--swatch .swatches { display: flex; height: 54px; }
.funnel .swatches i { flex: 1; display: block; border: 0; border-radius: 0; }
.funnel .wood-swatch { display: block; height: 54px; border-bottom: 1px solid var(--line); }
.wood-grain {
  background-image:
    repeating-linear-gradient(2deg, transparent 0 7px, var(--grain) 8px, transparent 9px 14px),
    repeating-linear-gradient(177deg, transparent 0 17px, var(--grain) 19px, transparent 20px 29px),
    var(--wood-base);
}
.wood-light { --grain: #91734824; --wood-base: linear-gradient(90deg, #EBDDBF, #DCC59E); }
.wood-honey { --grain: #70431535; --wood-base: linear-gradient(90deg, #D8A35C, #BC803C); }
.wood-dark { --grain: #D5AA7030; --wood-base: linear-gradient(90deg, #64452F, #3D291E); }
.wood-whitewashed { --grain: #948D7D38; --wood-base: linear-gradient(90deg, #F3F0E8, #DEDCD2); }
.wood-black { --grain: #C2BAB02B; --wood-base: linear-gradient(90deg, #363632, #1D1E1C); }
.wood-mixed { --grain: #92755245; --wood-base: linear-gradient(90deg, #E4CEAA 0 49%, #FAF5ED 49% 51%, #59402C 51% 100%); }
.wood-painted { background: linear-gradient(90deg, #E2DED4 0 33%, #AEBBA7 33% 67%, #657586 67% 100%); }
.wood-none { background: repeating-linear-gradient(110deg, #F2EDE5 0 12px, #E5DCCB 12px 24px); }

/* Chip answers */
.funnel .q-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.funnel .q-chips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.funnel .q-chips--3 { grid-template-columns: minmax(0, 1fr); }
.funnel .q-chips .hp-chip { display: flex; }
.funnel .q-chips .hp-chip > span { flex: 1; min-height: 52px; padding: 10px 14px; background: var(--sheet); }
.funnel .q-chips .hp-chip > input:checked + span { background: var(--blueprint); }
.funnel .q-chip--wide { grid-column: 1 / -1; }
.funnel .q-chips--sub .hp-chip > span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; column-gap: 8px; row-gap: 2px; min-height: 64px; }
.funnel .q-chips--sub .hp-chip > span > b, .funnel .q-chips--sub .hp-chip > span > small { grid-column: 1 / -1; }
.funnel .q-chips--sub .hp-chip > input:checked + span::before { grid-row: 1; grid-column: 1; }
.funnel .q-chips--sub .hp-chip > input:checked + span > b { grid-column: 2; }
.funnel .q-chips--sub small { font-size: .8rem; line-height: 1.35; color: var(--ink-mid); font-weight: 400; }
.funnel .q-chips--sub .hp-chip > input:checked + span small { color: var(--chalk-mid, rgba(247, 249, 252, .8)); }
.funnel .q-chips--notsure { margin-top: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .funnel .q-chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .funnel .q-chips--notsure { grid-template-columns: minmax(0, 280px); }
}

/* Floor plan routes: drawn icon and two lines */
.funnel .q-chips--routes { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .funnel .q-chips--routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.funnel .q-route > span { gap: 12px; min-height: 68px; }
.funnel .q-route__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-1, 2px); color: var(--blueprint); }
.funnel .q-route > input:checked + span .q-route__icon { border-color: var(--chalk-line, rgba(247, 249, 252, .32)); color: var(--chalk); }
.funnel .q-route > input:checked + span::before { display: none; }
.funnel .q-route__text { display: grid; gap: 2px; min-width: 0; }
.funnel .q-route__text small { font-size: .8rem; line-height: 1.35; font-weight: 400; color: var(--ink-mid); }
.funnel .q-route > input:checked + span small { color: var(--chalk-mid, rgba(247, 249, 252, .8)); }

/* The note beside a tap answer */
.funnel .q-note { margin-top: 12px; }
.funnel .q-note__toggle { font-size: .92rem; font-weight: 500; color: var(--ink-mid); }
.funnel .q-note__body { margin-top: 6px; }
.funnel .q-note__body[hidden] { display: none; }
.funnel .q-note textarea { min-height: 80px; }

/* Typed answers */
.funnel .q-field { display: grid; gap: 6px; margin: 0 0 16px; align-content: start; }
.funnel .q-field[hidden] { display: none; }
.funnel .q-field > label { font-weight: 600; font-size: .95rem; }
.funnel .q-field .sub { font-weight: 400; font-size: .85rem; color: var(--ink-mid); }
.funnel .hint { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--ink-mid); }
.funnel .phone-hint { color: var(--danger, #B0432A); }
.funnel .phone-hint:empty { display: none; }
.funnel textarea { min-height: 120px; }
.funnel .q-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Area suggestions (as /quote) */
.funnel .area-box { position: relative; }
.funnel .area-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  max-height: 260px; margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; list-style: none;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-1, 2px); box-shadow: var(--shadow-sheet);
}
.funnel .area-list[hidden] { display: none; }
.funnel .area-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 44px; padding: 11px 12px; font-size: .98rem; line-height: 1.3; cursor: pointer; }
.funnel .area-opt.is-active, .funnel .area-opt:hover { background: var(--paper-alt); }
.funnel .area-opt mark { background: none; color: var(--blueprint-dark); font-weight: 700; }
.funnel .area-opt small { flex: none; color: var(--ink-mid); font-size: .8rem; }
.funnel .q-skip-area { margin-top: 2px; font-weight: 500; }

/* ------------------------------------------------------------
   The three spend levels
   ------------------------------------------------------------ */
.funnel .q-levels { display: grid; gap: 10px; }
.funnel .q-levels[hidden] { display: none; }
/* On a phone the picture takes just over half the card, so the step between the three rooms shows; the
   level and its amount sit beside it and the line about the level runs under both. */
.funnel .q-level { display: grid; grid-template-columns: 55% minmax(0, 1fr); grid-template-rows: auto auto; }
.funnel .q-level__media { position: relative; grid-row: 1; grid-column: 1; aspect-ratio: 4 / 3; display: block; background: var(--paper-alt); overflow: hidden; }
.funnel .q-level__media img { width: 100%; height: 100%; object-fit: cover; }
.funnel .q-level__tag {
  position: absolute; left: 6px; bottom: 6px;
  padding: 2px 6px;
  background: var(--sheet);
  font: 600 .62rem/1.3 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.funnel .q-level .hp-pick__label { grid-row: 1; grid-column: 2; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; border-top: 0; padding: 10px 30px 10px 12px; }
.funnel .q-level > input:checked ~ .hp-pick__label::before { position: absolute; top: 12px; right: 12px; }
.funnel .q-level__name { font-size: .9rem; font-weight: 500; }
.funnel .q-level__range { font: 600 1.05rem/1.2 var(--font-display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.funnel .q-level .hp-pick__sub { grid-row: 2; grid-column: 1 / -1; margin: 0; padding: 8px 14px 10px; border-top: 1px solid var(--line); }
.funnel .q-level > input:checked ~ .hp-pick__sub { background: var(--blueprint); }
.funnel .q-level:has(> input:checked) { background: var(--blueprint); }
.funnel .q-level[hidden] { display: none; }
/* The client's own number: a drawn dimension line, the amount written on it as they type */
.funnel .q-level__drawn svg { width: 100%; height: 100%; display: block; }
.funnel .q-own-budget { margin: 12px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.funnel .q-amount { position: relative; display: flex; align-items: stretch; max-width: 22rem; }
.funnel .q-amount__unit {
  flex: 0 0 auto;
  min-height: 52px; min-width: 5.25rem;
  margin: 0; padding: 0 10px 0 12px;
  border: 1px solid var(--line-strong); border-right: 0;
  border-radius: var(--r-1, 2px) 0 0 var(--r-1, 2px);
  background: var(--paper-alt);
  font: 600 .95rem/1 var(--font-body); letter-spacing: .04em; color: var(--ink);
  cursor: pointer;
}
.funnel .q-amount__unit:hover { border-color: var(--ink); }
.funnel .q-amount__unit:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 2px; }
.funnel .q-amount .text-input {
  flex: 1 1 auto; min-width: 0;
  border-radius: 0 var(--r-1, 2px) var(--r-1, 2px) 0;
  font: 600 1.25rem/1.2 var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
}
.funnel .brief__fit { margin: 0 0 8px; font-size: 1rem; line-height: 1.45; font-weight: 600; color: var(--ink); }
.funnel .brief__fit[hidden] { display: none; }
.funnel .brief__any { margin: 0; padding: 4px 0 4px 14px; border-left: 1px solid var(--oak); font-size: .95rem; line-height: 1.5; color: var(--ink); }
@media (min-width: 640px) {
  .funnel .q-levels { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .funnel .q-level { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .funnel .q-level__media, .funnel .q-level .hp-pick__label, .funnel .q-level .hp-pick__sub { grid-row: auto; grid-column: auto; }
  .funnel .q-level .hp-pick__sub { border-top: 0; padding-top: 0; }
  .funnel .q-level__range { font-size: 1.15rem; }
  .funnel .q-level .hp-pick__label { border-top: 1px solid var(--line); padding-top: 10px; }
}

/* ------------------------------------------------------------
   The board: fills in as answers land, then becomes the brief
   ------------------------------------------------------------ */
.funnel-board[hidden] { display: none; }
.funnel-board__title {
  margin: 0 0 8px;
  font: 600 var(--t-label, .72rem)/1.3 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.funnel .board { grid-template-columns: minmax(0, 1fr); background: var(--sheet); }
.funnel .board dd { display: flex; align-items: center; gap: 10px; min-height: 30px; font: 600 1rem/1.25 var(--font-display); letter-spacing: -.005em; }
.funnel .board dd > span { min-width: 0; overflow-wrap: anywhere; }
.funnel .board__thumb { flex: none; width: 56px; height: 42px; object-fit: cover; border-radius: var(--r-1, 2px); }
.funnel .board__swatches { flex: none; display: flex; width: 56px; height: 20px; border: 1px solid var(--line); }
.funnel .board__swatches i { flex: 1; }
.funnel .board__blank { display: block; width: 60%; height: 1px; margin-top: 14px; background: var(--line); }
/* Still dimmer than a filled label (7.1:1), but readable: at .7 the label fell to 3.4:1 on white (Lighthouse, 11 Nov 2026) */
.funnel .board__cell.is-empty dt { opacity: .86; }

@media (min-width: 900px) {
  .funnel-board { position: sticky; top: calc(var(--header-h, 64px) + 24px); }
  .funnel[data-step="result"] .funnel-board { display: none; }
}
/* On a phone the board is a slim strip along the bottom edge: style, colours, home. */
@media (max-width: 899px) {
  .funnel-board {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--sheet);
    border-top: 1px solid var(--rule);
  }
  .funnel:not(.has-board) .funnel-board { display: none; }
  .funnel-board__title { display: none; }
  .funnel-board .board { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; border: 0; }
  .funnel-board .board > div { padding: 2px 10px; border-top: 0; }
  .funnel-board .board > div:first-child { border-left: 0; padding-left: 0; }
  .funnel-board .board__cell--clutter, .funnel-board .board__cell--area, .funnel-board .board__cell--budget { display: none; }
  .funnel-board .board dt { margin-bottom: 2px; font-size: .62rem; }
  .funnel-board .board dd { min-height: 22px; gap: 6px; font-size: .82rem; }
  .funnel-board .board dd > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .funnel-board .board__thumb { width: 30px; height: 22px; }
  .funnel-board .board__swatches { width: 30px; height: 14px; }
  .funnel-board .board__swatches + span { display: none; }
  .funnel-board .board__blank { margin-top: 10px; }
  .funnel.has-board { padding-bottom: 96px; }
  /* Anything scrolled into view (a focused field, an opened panel) clears the strip. */
  html:has(.funnel.has-board:not([data-phase="after"]):not([data-step="result"])) { scroll-padding-bottom: 88px; }
  .funnel[data-step="result"] .funnel-board, .funnel[data-phase="after"] .funnel-board { display: none; }
  .funnel[data-step="result"].has-board, .funnel[data-phase="after"].has-board { padding-bottom: 40px; }
}

/* ------------------------------------------------------------
   Your HomePrint brief
   ------------------------------------------------------------ */
.funnel .brief { display: grid; gap: 24px; margin-top: 14px; }
/* Phone: the price, then the form, then the summary and what happens next. Wide: price and summary on the left,
   the form beside them on the right (Ziya, 14 Nov 2026: the ask in view). */
.funnel .brief__more { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .funnel .brief { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "price send" "more send"; column-gap: 48px; row-gap: 24px; align-items: start; }
  .funnel .brief__price { grid-area: price; }
  .funnel .brief__send { grid-area: send; }
  .funnel .brief__more { grid-area: more; }
}
.funnel .brief__sheet { display: grid; gap: 18px; padding: clamp(16px, 2.4vw, 28px); }
.funnel .brief__board .board { border-color: var(--rule); grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* On a phone the brief's board is a compact two-column title block, so the form follows soon after */
@media (max-width: 559px) {
  .funnel .brief__sheet { gap: 14px; }
  .funnel .brief__board .board > div { padding: 7px 10px 8px; }
  .funnel .brief__board .board dt { margin-bottom: 2px; font-size: .64rem; }
  .funnel .brief__board .board dd { min-height: 22px; gap: 6px; font-size: .88rem; line-height: 1.2; }
  .funnel .brief__board .board__thumb { width: 34px; height: 26px; }
  .funnel .brief__board .board__swatches { width: 22px; height: 12px; }
  /* The palette's name under its swatch, so a long name ("Earthy greens & terracotta") has the cell's
     full width and stays within two lines at 360 wide. */
  .funnel .brief__board .board__cell--colours dd { flex-direction: column; align-items: flex-start; gap: 4px; }
  .funnel .brief__board .board__blank { margin-top: 10px; }
}
.funnel .brief__range[hidden] { display: none; }
.funnel .brief__range .hp-dim { margin-bottom: 8px; }
/* "Your investment for home furnishing" is wider than a small phone's card: two balanced lines, with room
   left for the dimension rules either side. Shorter labels ("Your budget", "Typical furnishing range") stay
   on one line (20 Nov 2026). */
.funnel .brief__range .hp-dim__label { white-space: normal; text-align: center; text-wrap: balance; max-width: 18em; }
.funnel .brief__figure {
  /* Centred under the centred dimension label above it (founder, 15 Nov 2026). */
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 10px;
  margin: 0 0 6px;
  font: 600 clamp(1.6rem, 2.4vw + 1.1rem, 2.5rem)/1.05 var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.015em;
  color: var(--blueprint-dark);
}
.funnel .brief__to { font: 500 .95rem/1 var(--font-body); color: var(--ink-mid); letter-spacing: 0; }
.funnel .brief__for { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-mid); }
.funnel .brief__facts dd { font-size: 1.15rem; }
.funnel .brief__note { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--ink-mid); }
.funnel .brief__send { display: flex; flex-direction: column; }
.funnel .brief__send .q-subtitle:first-child { margin-top: 0; }
.funnel .brief__send > .error-msg { order: 0; }
.funnel .brief__after { margin-top: 26px; }
.funnel .brief__after .q-subtitle { margin-top: 0; }
/* What happens next (with the 25% deposit) sits under the summary, away from the Send button. */
.funnel .brief__more .brief__after { margin-top: 0; }
/* The phone Send bar: fixed to the bottom while the real Send button is off screen. */
.funnel .brief__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper, #F5F1EA); border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px rgba(20, 26, 34, .08); }
.funnel .brief__bar[hidden] { display: none; }
.funnel .brief__bar .btn { width: 100%; }
@media (min-width: 900px) { .funnel .brief__bar { display: none !important; } }
.funnel .brief__next { margin: 0 0 6px; padding: 0; list-style: none; counter-reset: next; border-top: 1px solid var(--rule); }
.funnel .brief__next li {
  counter-increment: next;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem; line-height: 1.45;
}
.funnel .brief__next li::before {
  content: counter(next);
  font: 600 var(--t-label, .72rem)/1.9 var(--font-body);
  letter-spacing: .08em;
  color: var(--blueprint);
}
.funnel .consent-note { margin: 4px 0 14px; font-size: .82rem; line-height: 1.5; color: var(--ink-mid); }
.funnel .brief__button { width: 100%; }
.funnel .brief__notype { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line, rgba(20, 26, 34, .12)); display: flex; flex-direction: column; gap: .5rem; }
.funnel .brief__notype-label { margin: 0; font-weight: 600; }
.funnel .brief__notype .hint { margin: 0; }
@media (min-width: 560px) { .funnel .brief__button { width: auto; align-self: flex-start; } }
.funnel .quiz-reassure { margin: 16px 0 0; padding: 0; background: none; border: 0; border-radius: 0; text-align: start; font-size: .85rem; line-height: 1.5; color: var(--ink-mid); max-width: 60ch; }

/* ------------------------------------------------------------
   Sent, the optional part, all saved
   ------------------------------------------------------------ */
.funnel .done-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border: 1.5px solid var(--oak);
  border-radius: var(--r-1, 2px);
  background: none;
  box-shadow: none;
  color: var(--oak);
  transform: rotate(-4deg);
}
.funnel .final-done { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.funnel .q-sent .q-subtitle { margin-top: 0; }
.funnel .discovery-other { margin-top: 14px; }
/* "How did you first hear": every answer the same size; the agent's name or the short answer opens
   under the grid, full width, with its Continue button. */
.funnel .q-chips--discovery .hp-chip > span { min-height: 56px; }
.funnel[data-step="discovery"] .quiz-nav__next { flex: 1 1 100%; order: -1; margin-left: 0; }
.funnel .discovery-other[hidden] { display: none; }
.funnel .quiz-reminder { margin: 18px 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.5; max-width: 60ch; }

.funnel .final-followup { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.funnel .final-followup[hidden] { display: none; }
.funnel .final-followup .q-sublabel { margin-top: 0; }
.funnel .followup-help { margin: 0 0 12px; color: var(--ink-mid); font-size: .95rem; }
.funnel .followup-more { margin: 12px 0 0; color: var(--ink-mid); font-size: .9rem; }
.funnel .link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--link-line, var(--blueprint)); text-underline-offset: 3px; cursor: pointer; min-height: 0; }
.funnel .copy-ok { margin-left: 6px; font-weight: 600; color: var(--blueprint-dark); opacity: 0; transition: opacity var(--dur, 160ms) ease; }
.funnel .copy-ok.show { opacity: 1; }

/* Floor plan panels and uploads */
.funnel .fp-panel { margin-top: 16px; }
.funnel .fp-panel[hidden], .funnel .fp-photos[hidden] { display: none; }
.funnel .fp-note { display: block; margin: 0; padding: 10px 0 10px 14px; background: none; border: 0; border-left: 1px solid var(--blueprint); border-radius: 0; font-size: .92rem; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.funnel .fp-photos { margin-top: 18px; }
.funnel .dropzone {
  display: grid; justify-items: center; gap: 4px;
  padding: 26px 18px;
  text-align: center;
  background: var(--sheet);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-1, 2px);
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color var(--dur, 160ms) ease, background-color var(--dur, 160ms) ease;
}
.funnel .dropzone:hover, .funnel .dropzone.dragover { border-color: var(--blueprint); background: var(--paper); }
.funnel .dropzone:focus-visible { outline: 2px solid var(--focus, var(--blueprint)); outline-offset: 2px; }
.funnel .dropzone svg { color: var(--blueprint); }
.funnel .dz-label { font-size: .98rem; color: var(--ink); }
.funnel .dz-label strong { color: var(--blueprint-dark); }
.funnel .dz-sub { font-size: .82rem; }
.funnel .dz-compact { padding: 16px 18px; }
.funnel .upload-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.funnel .up-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px;
  padding: 8px 10px 12px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-1, 2px);
  font-size: .88rem;
}
.funnel .up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.funnel .up-meta, .funnel .up-pct { color: var(--ink-mid); font-size: .8rem; font-variant-numeric: tabular-nums; }
.funnel .up-ok { display: inline-flex; color: var(--blueprint); }
.funnel .up-retry { padding: 0 6px; border: 0; background: none; color: var(--blueprint-dark); font-weight: 600; font-size: .85rem; text-decoration: underline; cursor: pointer; min-height: 48px; margin: -12px 0; }
.funnel .up-x { display: grid; place-items: center; width: 48px; height: 48px; margin: -12px -8px -12px 0; padding: 0; border: 0; background: none; color: var(--ink-mid); cursor: pointer; border-radius: var(--r-1, 2px); }
.funnel .btn-text { min-height: 48px; }
.funnel .up-x:hover { color: var(--danger, #B0432A); background: var(--paper-alt); }
.funnel .up-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-soft); }
.funnel .up-fill { display: block; height: 100%; background: var(--blueprint); transition: width .25s ease; }

/* ------------------------------------------------------------
   Navigation, errors, talk to a person
   ------------------------------------------------------------ */
.funnel .error-msg { display: none; margin: 14px 0 0; color: var(--danger, #B0432A); font-size: .9rem; font-weight: 600; line-height: 1.45; }
.funnel .error-msg.show { display: block; }
.funnel .quiz-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 22px;
}
.funnel .quiz-nav [hidden] { display: none; }
.funnel .quiz-nav__next { margin-left: auto; }
.funnel .quiz-nav__hint { display: none; font-size: .82rem; color: var(--ink-mid); }
@media (hover: hover) and (min-width: 900px) {
  .funnel .quiz-nav__hint { display: inline; }
  .funnel .quiz-nav__hint[hidden] { display: none; }
}
@media (max-width: 559px) {
  .funnel .quiz-nav__next { flex: 1 1 100%; order: -1; }
  .funnel[data-phase="after"] .quiz-nav__next { order: 0; }
}
.funnel .quiz-leave { margin: 8px 0 0; }
.funnel .quiz-leave[hidden] { display: none; }
.funnel .quiz-leave .btn-text { font-weight: 500; color: var(--ink-mid); }
.funnel .quiz-talk { margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: start; color: var(--ink-mid); font-size: .9rem; }
.funnel .quiz-talk a { color: var(--ink); font-weight: 600; }
.funnel .quiz-talk[hidden] { display: none; }

/* ------------------------------------------------------------
   Below the quiz: the intro, the rating, talk to a person
   ------------------------------------------------------------ */
.funnel-intro__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .funnel-intro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } }
.funnel-intro .lead { margin: 0 0 18px; max-width: 34em; }
.funnel-intro .talk-first { padding: 18px 0 0; border: 0; border-top: 1px solid var(--rule); background: none; box-shadow: none; text-align: start; }
.funnel-intro .talk-first p { margin: 0 0 14px; color: var(--ink-mid); font-size: .95rem; }
.funnel-intro .talk-first strong { color: var(--ink); }
.funnel-intro .talk-first-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.funnel-intro .talk-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: var(--r-2, 4px);
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transform: none;
}
.funnel-intro .talk-link:hover { background: rgba(20, 26, 34, .05); transform: none; }
@media (max-width: 559px) { .funnel-intro .talk-long { display: none; } }

/* What happens next, on night */
.funnel-next__title { margin: 0 0 28px; }
.funnel-next__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: next-step; }
@media (min-width: 900px) { .funnel-next__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.funnel-next__steps li { counter-increment: next-step; padding: 18px 0 22px; border-top: 1px solid var(--chalk-line, rgba(247, 249, 252, .32)); }
.funnel-next__steps li::before {
  content: "Step " counter(next-step);
  display: block; margin-bottom: 10px;
  font: 600 var(--t-label, .72rem)/1.3 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--chalk-mid, rgba(247, 249, 252, .8));
}
.funnel-next__steps h3 { margin: 0 0 8px; font-size: 1.25rem; }
.funnel-next__steps p { margin: 0; font-size: .95rem; line-height: 1.55; }
.funnel-next__price { margin: 24px 0 0; font-size: .95rem; }
.funnel-next__price a { color: var(--chalk); }

@media (prefers-reduced-motion: reduce) {
  .funnel .q-step { animation: none; }
  .funnel *, .funnel *::before, .funnel *::after { transition: none !important; }
}
