/* ============================================================
   Shapes Infinity — instant quote: THE COUNTER
   One list of rows, one live number. Nothing on this page ever
   appears or disappears except one row body.
   ============================================================ */

/* ---- layout: a list, and a panel ---- */
.q-work { display: block; margin-top: clamp(30px, 4vw, 48px); }
.q-build > h2 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); }
.q-build-lead { margin-top: 8px; color: var(--muted); max-width: 46ch; }
.q-out-title { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.q-out-title[hidden] { display: none; }

/* the site's own rail breakpoint — below it, playground.css already
   reserves body padding-bottom and lifts the chat dragon for a bottom bar */
@media (min-width: 1100px) {
  .q-work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: var(--gap);
    align-items: start;          /* sticky fails SILENTLY without this */
  }
  .q-out {
    position: sticky; top: 20px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto; overscroll-behavior: contain;
  }
}
@media (max-width: 1099px) { .q-out { margin-top: 28px; } }

/* JS-off: show the hand-written price sheet, hide the app. No JS unhide
   needed — the swap is one classList.add from quote.js. */
.q-work:not(.is-live) .q-list,
.q-work:not(.is-live) .q-out { display: none; }
.q-work.is-live .q-nojs { display: none; }

.q-nojs { display: grid; gap: 10px; margin-top: 18px; }
.q-nojs-row {
  display: grid; gap: 4px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass);
}
.q-nojs-row b { font-family: var(--font-display); font-size: 1rem; }
.q-nojs-row span { font-size: 0.82rem; line-height: 1.55; color: var(--muted); }
.q-nojs-cta { justify-self: start; margin-top: 6px; }

/* ---- THE ONLY COMPONENT: a row ---- */
.q-list { display: grid; gap: 10px; margin-top: 18px; }
.q-row {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass); overflow: clip;
  scroll-margin-block: 12px 96px;              /* clears the fixed bar */
  transition: border-color var(--dur-ui) var(--ease-fluid),
              background   var(--dur-ui) var(--ease-fluid);
}
.q-row.is-on { border-color: rgba(255, 107, 0, 0.55); background: rgba(255, 107, 0, 0.05); }

.q-row-h { margin: 0; font-family: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.q-row-head {
  width: 100%; min-height: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center; gap: 2px 14px; padding: 13px 16px;
  background: none; border: 0; color: var(--ink); font: inherit;
  text-align: start; cursor: pointer;
}
.q-row-name  { grid-column: 1; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.q-row-state { grid-column: 1; font-size: 0.8rem; color: var(--muted); }
.q-row.is-on .q-row-state { color: var(--amber); font-weight: 650; }
.q-row-mark {
  grid-column: 2; grid-row: 1 / span 2;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
}
.q-row-mark::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.q-row.is-on .q-row-mark { background: var(--ember); border-color: transparent; color: #1a1005; }
.q-row.is-on .q-row-mark::after { content: "✓"; font-weight: 700; font-size: 0.95rem; }

/* the accordion: 0fr → 1fr. No JS height measurement, no max-height guess,
   animates open AND close, and the state is a class not an attribute — so
   the [hidden]-vs-display:grid trap cannot occur here at all. */
.q-row-wrap { display: grid; grid-template-rows: 0fr; }
.q-row.is-open .q-row-wrap { grid-template-rows: 1fr; }
.q-row-body {
  overflow: hidden; min-height: 0;
  /* a 0fr row still keeps its contents focusable and in the a11y tree —
     visibility is what actually removes them. Hide is delayed so the
     collapse is visible; show is immediate. */
  visibility: hidden; transition: visibility 0s var(--dur-ui);
}
.q-row.is-open .q-row-body { visibility: visible; transition: visibility 0s 0s; }
/* the border lives INSIDE the clipped box, or it paints as a 1px line
   across every closed row */
.q-row-inner { border-top: 1px solid var(--line); padding: 6px; display: grid; gap: 4px; }

/* ---- an option line: name, ONE price, one clause ---- */
.q-opt {
  width: 100%; min-height: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px; padding: 12px 14px;
  border: 1px solid transparent; border-radius: 12px;
  background: none; color: var(--ink); font: inherit;
  text-align: start; cursor: pointer;
  transition: background var(--dur-tap) var(--ease-fluid),
              border-color var(--dur-tap) var(--ease-fluid);
}
.q-opt:hover { background: var(--glass); }
.q-opt[aria-pressed="true"] { border-color: rgba(255, 107, 0, 0.5); background: rgba(255, 107, 0, 0.08); }
.q-opt-name  { grid-column: 1; grid-row: 1; font-weight: 650; min-width: 0; }
.q-opt-star  { font-style: normal; font-size: 0.66rem; font-weight: 700;
               color: var(--amber); margin-inline-start: 8px; white-space: nowrap; }
.q-opt-price {
  grid-column: 2; grid-row: 1; align-self: baseline;
  font-weight: 700; white-space: nowrap; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.q-opt-what  { grid-column: 1 / -1; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
.q-opt-tag   { grid-column: 1 / -1; font-size: 0.7rem; font-weight: 700; color: var(--green); }
.q-opt-tag[hidden] { display: none; }
.q-opt--off  { grid-template-columns: 1fr; min-height: 44px; font-size: 0.82rem; color: var(--muted); }
.q-opt--off[hidden] { display: none; }

/* the ONE place a struck price earns its keep: a package's whole
   proposition IS the saving */
.q-opt--pack .q-opt-price { display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.q-opt--pack .q-opt-price s { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.q-opt--pack .q-opt-price strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--amber); }

/* ---- the panel ---- */
.q-dock {
  margin-top: 14px; padding: clamp(18px, 2.4vw, 24px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.q-dock-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.q-dock-head[hidden] { display: none; }
.q-dock-plan {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
}
.q-dock-plan[hidden] { display: none; }
.q-dock-label {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.q-dock-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.q-dock-was {
  color: var(--muted); font-size: 1rem;
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.q-dock-now {
  font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink);
}
.q-dock-mo { font-size: 0.9rem; font-weight: 650; color: var(--muted); white-space: nowrap; }

.q-say { font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.q-say strong { color: var(--ink); }
.q-say-add {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 10px; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.8rem;
  white-space: nowrap; border-color: rgba(255, 107, 0, 0.6);
}

.q-dock-lines { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.q-dock-lines li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.86rem;
}
.q-dock-lines b { font-weight: 650; min-width: 0; }
.q-dock-lines span { white-space: nowrap; font-weight: 700; }

.q-note { font-size: 0.8rem; color: var(--muted); font-style: italic; }
.q-note[hidden] { display: none; }
.q-hold { font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.q-hold[hidden] { display: none; }

/* ---- the bargain: named, placed under the number it changes ---- */
.q-ask {
  display: grid; gap: 3px; min-height: 56px; padding: 14px 16px;
  text-align: start; cursor: pointer; font: inherit; color: var(--ink);
  border: 1px solid rgba(255, 178, 30, 0.38); border-radius: var(--radius-sm);
  background: rgba(255, 178, 30, 0.07);
  transition: background var(--dur-ui) var(--ease-fluid),
              border-color var(--dur-ui) var(--ease-fluid);
}
.q-ask[hidden] { display: none; }        /* [hidden] must beat display:grid */
.q-ask strong { font-family: var(--font-display); font-size: 1rem; }
.q-ask span   { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.q-ask:disabled { cursor: default; }
.q-ask.is-done { background: rgba(42, 209, 126, 0.08); border-color: rgba(42, 209, 126, 0.45); }
.q-ask-reply { font-size: 0.85rem; font-weight: 600; line-height: 1.55; color: var(--green); }
.q-ask-reply[hidden] { display: none; }

/* ---- send ---- */
.q-send { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.q-send-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.q-send-sub { font-size: 0.8rem; color: var(--muted); margin-top: -8px; }
.q-field { display: grid; gap: 6px; }
.q-field label { font-size: 0.8rem; font-weight: 650; }
.q-field label i { font-style: normal; font-weight: 500; color: var(--muted); }
.q-field input {
  width: 100%; min-height: 44px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: inherit;
}
.q-cta { display: grid; place-items: center; text-align: center; min-height: 48px; }
.q-cta[hidden] { display: none; }

/* ---- trust (kept from the old sheet, unchanged) ---- */
.q-trust { list-style: none; display: grid; gap: 6px; margin-top: 22px; }
.q-trust li { position: relative; padding-inline-start: 20px; font-size: 0.8rem; color: var(--muted); }
.q-trust li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 700; }

/* ---- the mobile bar: the site's own .m-cta geometry, from scratch.
   NOT .m-cta itself — that class is opacity:0/pointer-events:none until
   main.js adds .is-on, and main.js deliberately never loads on this page. ---- */
.q-bar { display: none; }
.q-bar[hidden] { display: none !important; }
@media (max-width: 1099px) {
  .q-bar {
    display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center; gap: 10px;
    position: fixed; inset-inline: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 94;
    padding: 8px 8px 8px 16px; border-radius: var(--pill);
    background: rgba(7, 7, 13, 0.9); border: 1px solid var(--line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .q-bar-num {
    font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
    white-space: nowrap; font-variant-numeric: tabular-nums;
  }
  .q-bar-go {
    min-height: 48px; padding: 0 16px; display: grid; place-items: center;
    border-radius: var(--pill); background: var(--ember); color: #07070d;
    font-weight: 700; font-size: 0.8rem; text-align: center; text-decoration: none;
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4);
  }
}

/* ---- 900 / 600 / 400 ---- */
@media (max-width: 899px) {
  .q-dock { padding: 18px; }
  .q-dock-now { font-size: 2.1rem; }
  .q-build-lead { max-width: none; }
}
@media (max-width: 599px) {
  .q-opt--pack { grid-template-columns: 1fr; }
  .q-opt--pack .q-opt-price { grid-column: 1; grid-row: auto; }
  .q-send { gap: 10px; }
  .q-nojs-cta { justify-self: stretch; text-align: center; justify-content: center; }
}
@media (max-width: 399px) {
  .q-dock-now { font-size: 1.8rem; }
  .q-row-head { padding: 12px 13px; gap: 2px 10px; }
  .q-opt { padding: 11px 12px; gap: 2px 8px; }
  .q-bar { padding-inline-start: 13px; }
  .q-bar-num { font-size: 0.95rem; }
  .q-bar-go { font-size: 0.75rem; padding: 0 12px; }
}
@media (pointer: coarse) {
  .q-row-head, .q-opt { min-height: 64px; }
  .q-opt--off, .q-say-add, .q-field input { min-height: 44px; }
}

/* ---- motion: compositor-only, doubly gated exactly as the site does ---- */
@keyframes q-bump { 50% { transform: scale(1.045); } }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) .q-row-wrap { transition: grid-template-rows var(--dur-ui) var(--ease-fluid); }
  html:not(.motion-off) .q-dock-now.is-bump { animation: q-bump 220ms var(--ease-fluid); }
}
@media (prefers-reduced-motion: reduce) {
  .q-row, .q-opt, .q-ask { transition: none; }
  .q-row-body, .q-row.is-open .q-row-body { transition: none; }
}
html.motion-off .q-row, html.motion-off .q-opt, html.motion-off .q-ask { transition: none; }
html.motion-off .q-row-body, html.motion-off .q-row.is-open .q-row-body { transition: none; }

/* ============================================================
   the printable quote — hidden on screen, alone on paper
   ============================================================ */
.print-doc { display: none; }

@media print {
  /* ONE sheet, no blank second page: without an explicit @page the browser's
     default ~12.7mm margins shrink the printable box below the document's
     fixed 296.5mm height and the overflow spills an empty sheet. Zero-margin
     A4 makes the page box exactly the sheet; the doc's own padding is the
     margin. */
  @page { size: A4 portrait; margin: 0; }
  html, body { height: auto !important; overflow: hidden !important; }

  /* Only the document prints. Everything else is removed rather than hidden,
     so nothing can leak a stray margin onto the sheet. Padding must be
     zeroed too: the page box is ~794px wide, so playground.css's
     max-width:1099px mobile block applies while printing and its
     body padding-bottom would spill a blank second sheet. */
  body > *:not(.print-doc) { display: none !important; }
  body { background: #fff !important; margin: 0 !important; padding: 0 !important; }

  .print-doc {
    display: flex; flex-direction: column;
    box-sizing: border-box;
    /* ONE page, always: 297mm exactly + pixel rounding spills a blank second
       sheet, and long quotes used to overflow onto a real one. The height is
       shaved a hair under A4 and the box clips — the layout below is sized so
       the largest sellable quote (6 lines + monthly + coupon) fits inside. */
    height: 296.5mm; min-height: 0; overflow: hidden;
    padding: 12mm 15mm 10mm;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 11px; line-height: 1.5; color: #1a1a1a;
  }
  .pd-main { flex: 1 0 auto; display: flex; flex-direction: column; }

  /* --- letterhead: mark left, the word right --- */
  .pd-top {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  }
  .pd-logo { height: 42px; width: auto; display: block; }
  .pd-title {
    font-family: "General Sans", "Space Grotesk", sans-serif;
    font-size: 25px; font-weight: 800; letter-spacing: 0.02em;
    line-height: 1; color: #1a1a1a; text-align: right; white-space: nowrap;
  }

  /* --- reference and dates, two columns --- */
  .pd-meta {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 40px;
    margin-top: 16px; font-size: 10.5px;
  }
  .pd-meta p { margin: 0; }
  .pd-meta .r { text-align: right; }
  .pd-meta b { font-weight: 700; }

  /* --- who it is for --- */
  .pd-to { margin-top: 12px; }
  .pd-to strong { display: block; font-size: 14px; font-weight: 700; }
  .pd-to span { display: block; font-size: 11px; color: #4a4a4a; }

  /* --- the ember rule, in place of the reference's black bar --- */
  .pd-rule { height: 6px; margin-top: 10px; background: #ff6b00; border-radius: 2px; }

  /* --- what the job is --- */
  .pd-brief {
    display: grid; grid-template-columns: 150px 1fr; gap: 16px;
    margin-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #e6e6e6;
  }
  .pd-brief b { font-weight: 700; }
  .pd-brief span { color: #4a4a4a; }

  /* --- the line items --- */
  .pd-items { width: 100%; border-collapse: collapse; margin-top: 12px; }
  .pd-items th {
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: #fff; background: #1a1a1a; font-weight: 700;
    padding: 8px 12px; text-align: left;
  }
  .pd-items th:first-child, .pd-items td:first-child { padding-left: 12px; }
  .pd-items th.n, .pd-items td.n { text-align: right; white-space: nowrap; padding-right: 12px; }
  .pd-items td { padding: 6px 12px; border-bottom: 1px solid #ececec; vertical-align: top; }
  .pd-items td b { display: block; font-size: 12.5px; font-weight: 700; }
  /* one line per description on paper: six full quotes must share one sheet */
  .pd-items td i {
    display: block; margin-top: 2px; font-style: normal; font-size: 10px; color: #6b6b6b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 118mm;
  }
  .pd-items td.n { font-weight: 650; }

  /* --- totals, right-aligned, the answer in ember --- */
  .pd-sum { margin-top: 8px; display: flex; justify-content: flex-end; }
  .pd-sum table { border-collapse: collapse; min-width: 62mm; }
  .pd-sum td { padding: 3px 12px; font-size: 11px; color: #4a4a4a; }
  .pd-sum td:last-child { text-align: right; white-space: nowrap; font-weight: 650; color: #1a1a1a; }
  .pd-sum tr.save td { color: #0e7d47; font-weight: 700; }
  .pd-sum tr.mo td { color: #6b6b6b; }
  .pd-sum tr.grand td {
    background: #ff6b00; color: #fff;
    font-family: "General Sans", "Space Grotesk", sans-serif; font-weight: 800;
    padding-top: 9px; padding-bottom: 9px;
  }
  .pd-sum tr.grand td:first-child { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
  .pd-sum tr.grand td:last-child { font-size: 17px; color: #fff; }

  .pd-valid { margin-top: 8px; font-size: 10.5px; color: #4a4a4a; }
  .pd-valid b { color: #1a1a1a; }

  /* --- terms and next steps --- */
  .pd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  .pd-box { padding: 12px 14px; background: #faf7f4; border-left: 3px solid #ff6b00; }
  .pd-box h4 {
    margin: 0; font-size: 9.5px; letter-spacing: 0.11em;
    text-transform: uppercase; color: #8a6a52;
  }
  .pd-box ul, .pd-box ol { margin: 7px 0 0; padding-inline-start: 15px; }
  .pd-box li { font-size: 10px; line-height: 1.6; color: #4a4a4a; }

  /* --- questions on the left, acceptance on the right --- */
  .pd-foot {
    margin-top: auto; padding-top: 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
  }
  .pd-foot p { margin: 0; font-size: 10.5px; line-height: 1.6; color: #4a4a4a; }
  .pd-foot p b { color: #1a1a1a; }
  .pd-sign { text-align: right; }
  .pd-sign span {
    display: block; margin-top: 16px; padding-top: 7px;
    border-top: 1px solid #1a1a1a;
    font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a8a;
  }

  .pd-thanks {
    margin-top: 10px;
    font-family: "General Sans", "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; color: #ff6b00;
  }

  /* --- the address line, on the bottom edge --- */
  .pd-end {
    flex: 0 0 auto;
    margin-top: 8px; padding-top: 8px; border-top: 1px solid #ececec;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 14px;
    font-size: 10.5px; color: #6b6b6b;
  }
  .pd-end b { font-size: 11.5px; color: #1a1a1a; }

  /* keep every block whole rather than split across a page break */
  .pd-top, .pd-meta, .pd-to, .pd-brief, .pd-sum, .pd-cols, .pd-box, .pd-foot, .pd-end { break-inside: avoid; }
  .pd-items tr { break-inside: avoid; }

  /* the ember bars and the black table head must survive the print dialog's
     default of dropping backgrounds */
  .pd-rule, .pd-items th, .pd-sum tr.grand td, .pd-box {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* margin 0 is what suppresses the browser's own print header and footer — the
   timestamp, the page title, the URL and "1/1" are drawn in that margin. The
   document supplies its own padding instead. */
@page { size: A4; margin: 0; }



/* today's price on a row, beside what it lists at */
.q-row-lead { color: var(--muted); }
.q-row-was { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; margin-inline: 0 8px; font-weight: 500; }
.q-row-now { color: var(--amber); font-weight: 700; }

/* ============================================================
   THE WIZARD — one question per slide
   ============================================================ */
.q-wiz { margin-top: 18px; }

/* progress: one tick per slide, no numbers to read */
.q-steps { display: flex; gap: 6px; margin-bottom: 20px; }
.q-step {
  height: 4px; flex: 1 1 0; border-radius: var(--pill);
  background: rgba(242, 240, 250, 0.14);
  transition: background var(--dur-ui) var(--ease-fluid);
}
.q-step.is-done { background: rgba(255, 107, 0, 0.45); }
.q-step.is-now { background: var(--ember); }

.q-slide-q { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; }
.q-slide-hint { margin-top: 6px; color: var(--muted); font-size: 0.88rem; }

/* slide 0 — what do you need */
.q-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 18px; }
.q-pick {
  position: relative; min-height: 68px;
  display: grid; gap: 4px; align-content: center;
  padding: 16px 46px 16px 18px; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-fluid), background var(--dur-ui) var(--ease-fluid);
}
.q-pick:hover { border-color: rgba(255, 107, 0, 0.4); }
.q-pick.is-on { border-color: rgba(255, 107, 0, 0.6); background: rgba(255, 107, 0, 0.07); }
.q-pick-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }

.q-pick-tick {
  position: absolute; inset-inline-end: 16px; top: 50%; translate: 0 -50%;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
}
.q-pick.is-on .q-pick-tick { background: var(--ember); border-color: transparent; }
.q-pick.is-on .q-pick-tick::after { content: "✓"; color: #1a1005; font-weight: 700; font-size: 0.85rem; }

/* slides 1..n — choose the level */
.q-levels { display: grid; gap: 10px; margin-top: 18px; }
.q-level {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px;
  padding: 16px 18px; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-fluid), background var(--dur-ui) var(--ease-fluid);
}
.q-level:hover { border-color: rgba(255, 107, 0, 0.4); }
.q-level.is-on { border-color: rgba(255, 107, 0, 0.6); background: rgba(255, 107, 0, 0.07); }
.q-level-name { grid-column: 1; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.q-level-star { font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--amber); margin-inline-start: 8px; white-space: nowrap; }
.q-level-price { grid-column: 2; grid-row: 1; text-align: end; white-space: nowrap; }
.q-level-price s { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.q-level-price strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--amber); }
/* the saving, under the price it comes from — green so it reads as money
   back rather than another figure to weigh up */
.q-level-save {
  grid-column: 2; grid-row: 2; justify-self: end; text-align: end;
  display: flex; align-items: baseline; gap: 7px; white-space: nowrap;
}
.q-level-save b {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
  color: #0b1a12; background: var(--green, #2ad17e);
  padding: 2px 7px; border-radius: 999px;
}
.q-level-save i { font-style: normal; font-size: 0.76rem; font-weight: 650; color: var(--green, #2ad17e); }
.q-level-what { grid-column: 1 / -1; grid-row: 3; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }

/* navigation */
.q-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.q-nav-back { cursor: pointer; }
.q-nav-next { cursor: pointer; margin-inline-start: auto; }
.q-nav-next[disabled] { opacity: 0.45; cursor: not-allowed; }
.q-nav-back[hidden], .q-nav-next[hidden] { display: none; }

/* the coupon, where the bargain button used to be */
.q-coupon {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 107, 0, 0.5); background: rgba(255, 107, 0, 0.06);
}
.q-coupon.is-on { border-style: solid; border-color: rgba(42, 209, 126, 0.5); background: rgba(42, 209, 126, 0.08); }
.q-coupon-offer { font-size: 0.84rem; color: var(--ink); }
.q-coupon-done { font-size: 0.86rem; font-weight: 650; color: var(--green); }
.q-coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.q-coupon-input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: inherit;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.q-coupon-input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.q-coupon-go { flex: none; min-height: 44px; cursor: pointer; }
.q-coupon-msg { margin-top: 8px; font-size: 0.78rem; color: #ff8f8f; }

@media (max-width: 520px) {
  .q-picks { grid-template-columns: 1fr; }
  .q-level-price strong { font-size: 1.05rem; }
  .q-nav-next { width: 100%; margin-inline-start: 0; justify-content: center; }
}
