/* The Used Car Buyers — the price moment and the condition questions (test copy, 28 Nov 2026). Presentation only; see quote.js.
   Loaded after home.css. Uses its tokens. */

/* ───────── the top-condition price ───────── */
body.hx #lxHL.q-price .hl-card{padding:20px 16px 16px;background:
  radial-gradient(90% 70% at 50% 18%,rgba(59,138,247,.42),rgba(59,138,247,0) 70%),
  linear-gradient(180deg,var(--hx-royal-dd),var(--hx-night) 62%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
body.hx #lxHL.q-price .hl-card::before{content:"";position:absolute;inset:0;background:var(--hx-grain) 0 0/120px 120px;mix-blend-mode:soft-light;pointer-events:none;opacity:.8}
body.hx #lxHL.q-price .hl-card>*{position:relative}
body.hx #lxHL.q-price .hl-eb{font-family:var(--hx-text);font-stretch:100%;font-size:var(--hx-fs-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--hx-ice)}
/* the reg on a plate, the car beside it */
body.hx #lxHL .hl-car{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0 0;font:inherit;letter-spacing:0;text-transform:none}
.q-plate{--ph:34px;display:inline-flex;align-items:stretch;height:var(--ph);overflow:hidden;border:1.5px solid var(--hx-nightest);border-radius:7px;background:#fff;color:var(--hx-ink)}
.q-plate-b{display:flex;align-items:flex-end;justify-content:center;width:15px;padding:0 0 3px;background:var(--hx-royal);color:#fff;font:700 8px/1 var(--hx-plate)}
.q-plate-t{display:flex;align-items:center;padding:0 10px;font:700 21px/1 var(--hx-plate);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.q-car{font-size:var(--hx-fs-sm);font-weight:600;line-height:1.3;color:var(--hx-white)}
/* where they are */
.q-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:18px 0 0;padding:0;list-style:none;counter-reset:qp}
.q-path li{position:relative;padding:10px 0 0;border-top:3px solid rgba(255,255,255,.16);font-size:12.5px;line-height:1.3;font-weight:500;color:var(--hx-white3)}
.q-path li.is-done{border-top-color:var(--hx-sun);color:var(--hx-white)}
.q-path li.is-done::before{content:"";display:inline-block;width:9px;height:5px;margin:0 6px 3px 1px;border-left:1.5px solid var(--hx-sun);border-bottom:1.5px solid var(--hx-sun);transform:rotate(-45deg)}
.q-path li.is-now{border-top-color:rgba(244,198,50,.45);color:var(--hx-ice2)}
.q-path li.is-now::after{content:"";position:absolute;left:0;top:-3px;width:40%;height:3px;background:var(--hx-sun);animation:q-run 1.8s var(--hx-ease) infinite}
@keyframes q-run{0%{transform:translateX(0);opacity:0}30%{opacity:1}100%{transform:translateX(150%);opacity:0}}
@media(prefers-reduced-motion:reduce){.q-path li.is-now::after{animation:none;opacity:1}}
/* the figure: a big yellow plate, lit once as it lands */
body.hx #lxHL.q-price .hl-price{position:relative;overflow:hidden;min-height:0;margin:18px 0 14px;padding:14px 16px 12px;font-size:clamp(54px,15vw,88px)!important;line-height:1;letter-spacing:.01em;
  box-shadow:inset 0 0 0 3px var(--hx-sun),inset 0 0 0 4.5px var(--hx-nightest),0 22px 50px -22px rgba(244,198,50,.65)}
body.hx #lxHL.q-price .hl-price::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.75),rgba(255,255,255,0));transform:skewX(-18deg);opacity:0;pointer-events:none}
body.hx #lxHL.q-price .hl-price.q-shine::after{animation:q-shine 1.4s .9s var(--hx-ease) 1 both}
@keyframes q-shine{0%{left:-60%;opacity:0}20%{opacity:1}100%{left:130%;opacity:0}}
body.hx #lxHL.q-price .hl-price{animation:q-land .7s var(--hx-ease) both}
@keyframes q-land{from{transform:translateY(10px) scale(.97);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){body.hx #lxHL.q-price .hl-price{animation:none}}
body.hx #lxHL.q-price .hl-sub{text-align:center;color:var(--hx-white2)}
body.hx #lxHL.q-price .hl-cta{--hx-b:var(--hx-sun);--hx-f:var(--hx-nightest);--hx-k:var(--hx-nightest);color:var(--hx-nightest);margin-top:20px;min-height:60px;font-size:18px}
@media(hover:hover){body.hx #lxHL.q-price .hl-cta:hover{--hx-b:var(--hx-sun-h)}}
body.hx #lxHL.q-price .hl-cta:active{--hx-b:var(--hx-sun-p)}
/* "based on": ticks in two columns on the card */
body.hx #lxHL .q-based ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
body.hx #lxHL .q-based li{padding:10px 0 10px 24px!important;font-size:var(--hx-fs-cap)!important}
body.hx #lxHL .q-based li::before{left:2px!important;right:auto!important;top:15px!important;border-color:var(--hx-sun)!important}
@media(max-width:359px){body.hx #lxHL .q-based ul{grid-template-columns:1fr}}
/* the why: heading, side-by-side, one line, then the numbers behind a tap */
body.hx #lxHL .q-why{margin-top:28px}
body.hx #lxHL .q-why .hl-cmp{grid-template-columns:1fr 1fr;margin:12px 0}
body.hx #lxHL .q-why .hl-cmp .them{position:relative}
body.hx #lxHL .q-why .hl-cmp .us{background:var(--hx-royal);border-color:var(--hx-royal);color:#fff}
body.hx #lxHL .q-why .hl-cmp .us b{color:var(--hx-sun)}
@media(max-width:420px){body.hx #lxHL .q-why .hl-cmp{grid-template-columns:1fr}}
body.hx #lxHL .q-more{margin:12px 0 0;border-top:1px solid var(--hx-line);border-bottom:1px solid var(--hx-line)}
body.hx #lxHL .q-more summary{position:relative;display:flex;align-items:center;min-height:52px;padding:0 32px 0 0;cursor:pointer;list-style:none;font-size:var(--hx-fs-sm);font-weight:600;color:var(--hx-royal)}
body.hx #lxHL .q-more summary::-webkit-details-marker{display:none}
body.hx #lxHL .q-more summary::after{content:"";position:absolute;right:6px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform var(--hx-t) var(--hx-ease)}
body.hx #lxHL .q-more[open] summary::after{transform:rotate(225deg);margin-top:-2px}
body.hx #lxHL .q-more>p,body.hx #lxHL .q-more>ul{padding-bottom:12px}
/* the foot bar on a phone while the price is on screen */
.q-dock{display:none}
@media(max-width:700px){
  .q-dock{position:fixed;left:0;right:0;bottom:var(--ck-h,0px);z-index:95;display:flex;align-items:center;gap:12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:var(--hx-glass2);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);
    box-shadow:0 -12px 30px -12px rgba(3,10,30,.6);color:#fff;transform:translateY(110%);transition:transform .35s var(--hx-ease);pointer-events:none}
  .q-dock.is-on:not(.is-under){transform:none;pointer-events:auto}
  .q-dock-l{display:flex;flex-direction:column;min-width:0}
  .q-dock-l small{font-size:12px;line-height:1.2;color:var(--hx-white3)}
  .q-dock-l b{font:700 26px/1.05 var(--hx-plate);letter-spacing:.02em;color:var(--hx-sun);white-space:nowrap}
  .q-dock button{flex:1;min-height:50px;margin:0;padding:0 14px;border:0;border-radius:var(--hx-r2);background:var(--hx-sun);color:var(--hx-nightest);box-shadow:var(--hx-key-sun);font:600 16px/1.1 var(--hx-display);font-stretch:110%;cursor:pointer}
  .q-dock button:active{background:var(--hx-sun-p);transform:translateY(1px)}
  html.q-hl body.hx #stickyBar,html.q-hl body.hx .waf{opacity:0;visibility:hidden;pointer-events:none}
}

/* ───────── the condition questions ───────── */
/* the price bar stays in view under the step tabs, with the count of answers */
body.hx #step3 #lxHLBar:not([hidden]){position:sticky;top:calc(var(--hx-navh) + 64px);z-index:4;flex-wrap:wrap;box-shadow:0 16px 30px -18px rgba(3,10,30,.55)}
.q-meter{display:flex;align-items:center;gap:12px;flex-basis:100%;margin:2px 0 0;font-size:12.5px;font-weight:600;color:var(--hx-white2)}
#step3>.q-meter{margin:0 0 16px;color:var(--hx-dim)}
.q-meter-t{flex:none;min-width:8.5em}
.q-meter-l{position:relative;flex:1;height:4px;border-radius:4px;overflow:hidden;background:rgba(255,255,255,.16)}
#step3>.q-meter .q-meter-l{background:var(--hx-line)}
.q-meter-l i{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(0);background:var(--hx-sun);border-radius:inherit;transition:transform .5s var(--hx-ease)}
.q-meter.is-done .q-meter-t{color:var(--hx-sun)}
/* numbered question cards; the next one to answer glows briefly */
body.hx #step3{counter-reset:qq}
body.hx #step3 .lx-qgrid .lx-q{counter-increment:qq;position:relative;border-radius:var(--hx-r);transition:background-color .4s ease,box-shadow .4s ease}
body.hx #step3 .lx-qgrid .lx-q>span:first-child::before{content:counter(qq,decimal-leading-zero);display:inline-block;min-width:2.1em;margin-right:6px;font:700 .95em/1 var(--hx-plate);letter-spacing:.04em;color:var(--hx-faint)}
body.hx #step3 .lx-qgrid .lx-q:has(.lx-chip[aria-pressed="true"])>span:first-child::before{color:var(--hx-royal)}
body.hx #step3 .lx-q.q-next{box-shadow:0 0 0 2px var(--hx-sky2),0 0 0 8px rgba(118,175,250,.18);background:var(--hx-ice3)}
/* answers: a clear, confident pressed state with a tick */
body.hx #step3 .lx-qgrid .lx-chip{transition:background-color var(--hx-t) ease,border-color var(--hx-t) ease,color var(--hx-t) ease,transform var(--hx-t-press) ease}
body.hx #step3 .lx-qgrid .lx-chip:active{transform:scale(.97)}
body.hx #step3 .lx-qgrid .lx-chip[aria-pressed="true"],body.hx #step3 .lx-qgrid .lx-chip.on,body.hx #step3 .lx-qgrid .lx-chip.is-on{background:var(--hx-royal);border-color:var(--hx-royal);color:#fff}
body.hx #step3 .lx-qgrid .lx-chip[aria-pressed="true"]::after,body.hx #step3 .lx-qgrid .lx-chip.on::after{content:"";display:inline-block;flex:none;width:9px;height:5px;margin:0 0 3px 8px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg)}
@media(prefers-reduced-motion:reduce){body.hx #step3 .lx-q{transition:none}}
/* wide screens: the figure and its button sit on the card's centre line */
@media(min-width:701px){
  body.hx #lxHL.q-price .hl-card{padding:28px 28px 24px}
  body.hx #lxHL.q-price .hl-price{max-width:560px;margin-left:auto;margin-right:auto}
  body.hx #lxHL.q-price .hl-sub{max-width:34em;margin-left:auto;margin-right:auto}
  body.hx #lxHL.q-price .hl-cta{display:block;width:380px;max-width:100%;margin-left:auto;margin-right:auto;text-align:center}
  body.hx #lxHL.q-price .hl-cta-sub{text-align:center}
}
body.hx #step3 .lx-q.q-next{outline:0}

/* the menu bar's links on wide screens. Netlify's "pretty URLs" rewrites about.html to /about on the published site, so the
   homepage's own rules (which match the exact hrefs in the file) found only one link there. Match the ends instead. */
@media(min-width:1101px){
  body.hx .nav .nl a:is([href="/"],[href="./"],[href$="index.html"],[href$="how-it-works"],[href$="how-it-works.html"],[href$="why-we-are-different"],[href$="activity"],[href$="activity.html"],[href$="contact"],[href$="contact.html"]):not(.ncta){flex:0 1 auto;display:block;min-width:0;overflow:hidden;height:48px;padding:0 12px;border-radius:var(--hx-r2);background:none;
    font-size:15px;line-height:48px;font-weight:500;letter-spacing:0;white-space:nowrap;text-transform:lowercase;color:#fff;transition:color var(--hx-t) ease,background-color var(--hx-t) ease}
}
@media(min-width:1200px){body.hx .nav .nl a:is([href$="about"],[href$="about.html"]):not(.ncta){flex:0 1 auto;display:block;min-width:0;overflow:hidden;height:48px;padding:0 12px;border-radius:var(--hx-r2);background:none;font-size:15px;line-height:48px;font-weight:500;letter-spacing:0;white-space:nowrap;text-transform:lowercase;color:#fff}}

/* ───────── the damage picture: walk round the car (damage.js) ───────── */
body.hx .lx-plan.dw-plan .lx-part.dw-on path:not(.lx-hitpath){stroke:var(--hx-sun-p);stroke-width:4;fill:rgba(244,198,50,.16)}
body.hx .lx-plan.dw-plan .lx-part.dw-on rect:not(.lx-hit){stroke:var(--hx-sun-p);stroke-width:4}
body.hx .lx-plan.dw-plan .lx-part.dw-on[data-kind="glass"]:not([aria-pressed="true"]) path{stroke:var(--hx-sun);fill:rgba(244,198,50,.25)}
body.hx .lx-plan.dw-plan .lx-part.dw-on:not([aria-pressed="true"]) :is(path:not(.lx-hitpath),rect:not(.lx-hit)){animation:dw-pulse 1.6s ease-in-out infinite}
@keyframes dw-pulse{0%,100%{stroke-opacity:1}50%{stroke-opacity:.35}}
@media(prefers-reduced-motion:reduce){body.hx .lx-plan.dw-plan .lx-part.dw-on :is(path,rect){animation:none}}
body.hx .lx-plan.dw-plan .lx-part[aria-pressed="true"] path:not(.lx-hitpath),body.hx .lx-plan.dw-plan .lx-part[aria-pressed="true"] rect:not(.lx-hit){fill:#c0392b;stroke:#fff}
.dw{margin:16px 0 8px;padding:16px;border-radius:var(--hx-r);background:var(--hx-night);color:var(--hx-white);box-shadow:var(--hx-float)}
.dw-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
.dw-t{font-family:var(--hx-display);font-stretch:110%;font-size:var(--hx-fs-lg);font-weight:600;letter-spacing:-.01em}
.dw-count{font:700 15px/1 var(--hx-plate);letter-spacing:.04em;color:var(--hx-sun)}
.dw-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0 0 14px;padding:0;list-style:none}
.dw-step{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;min-height:52px;padding:8px 0 0;border:0;border-top:3px solid rgba(255,255,255,.18);background:none;color:var(--hx-white3);font:500 11.5px/1.2 var(--hx-text);text-align:left;cursor:pointer}
.dw-step .dw-n{font:700 13px/1 var(--hx-plate);color:inherit}
.dw-step.is-seen{border-top-color:var(--hx-sky2);color:var(--hx-white2)}
.dw-step.is-now{border-top-color:var(--hx-sun);color:#fff;font-weight:600}
.dw-step.has-dmg .dw-n::after{content:"";display:inline-block;width:7px;height:7px;margin-left:5px;border-radius:50%;background:#ff6b5a;vertical-align:1px}
.dw-ask{margin:0 0 4px;font-size:var(--hx-fs-body);line-height:1.35;font-weight:600;color:#fff}
.dw-look{margin:0 0 10px;font-size:var(--hx-fs-cap);line-height:1.45;color:var(--hx-white2)}
.dw-marked{margin:10px 0 0;font-size:var(--hx-fs-cap);line-height:1.45;color:var(--hx-ice)}
.dw-wheels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 0}
.dw-wheels[hidden]{display:none}
.dw-wheel{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;min-height:64px;padding:8px 10px;border:0;border-radius:var(--hx-r2);background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px var(--hx-wline);color:#fff;text-align:left;cursor:pointer;transition:background-color var(--hx-t) ease,transform var(--hx-t-press) ease}
.dw-wheel:active{transform:scale(.98)}
.dw-wheel svg{grid-row:1 / 3;width:44px;height:44px;transition:transform .6s var(--hx-ease)}
.dw-wheel span{font-size:var(--hx-fs-sm);font-weight:600;line-height:1.2}
.dw-wheel small{font-size:12px;color:var(--hx-white3)}
.dw-tyre{fill:#0b0f19;stroke:#2a3346;stroke-width:1.5}
.dw-rim{fill:#c9d3e3;stroke:#eef3fb;stroke-width:1.5}
.dw-spokes path{stroke:#7d8aa3;stroke-width:2.6;stroke-linecap:round;fill:none}
.dw-hub{fill:#4b566d}
@media(hover:hover){.dw-wheel:hover{background:rgba(255,255,255,.12)}.dw-wheel:hover svg{transform:rotate(45deg)}}
.dw-wheel.is-marked{background:rgba(192,57,43,.25);box-shadow:inset 0 0 0 1.5px #ff6b5a}
.dw-wheel.is-marked small{color:#ffb3a8}
.dw-acts{display:flex;justify-content:space-between;gap:10px;margin:14px 0 0}
.dw-prev,.dw-next{min-height:48px;padding:0 16px;border:0;border-radius:var(--hx-r2);font:600 15px/1.1 var(--hx-display);font-stretch:105%;cursor:pointer}
.dw-prev{background:none;color:#fff;box-shadow:inset 0 0 0 1px var(--hx-ctl)}
.dw-prev[hidden]{visibility:hidden;display:block}
.dw-next{flex:1;max-width:280px;margin-left:auto;background:var(--hx-sun);color:var(--hx-nightest);box-shadow:var(--hx-key-sun)}
.dw-next:active{background:var(--hx-sun-p);transform:translateY(1px)}
.dw.is-done .dw-now{opacity:.85}
.dw-glow{box-shadow:0 0 0 3px var(--hx-sun),0 0 0 9px rgba(244,198,50,.25)!important;border-radius:var(--hx-r2);transition:box-shadow .3s ease}
@media(max-width:380px){.dw-step{font-size:10.5px}.dw-wheel{grid-template-columns:36px minmax(0,1fr)}.dw-wheel svg{width:36px;height:36px}}
@media(min-width:1101px){.dw{margin-top:20px}}
body.hx .lx-condbody .lx-plan.dw-plan{max-width:250px}
@media(min-width:701px){body.hx .lx-condbody .lx-plan.dw-plan{max-width:280px}}
/* the pinned price bar stays slim so it never covers the questions or the car picture: price + answered count only */
body.hx #step3 #lxHLBar:not([hidden]){padding:10px 14px;gap:6px 12px;margin-bottom:16px}
body.hx #step3 #lxHLBar>span:not(.q-meter):not(:first-child){display:none}
body.hx #step3 #lxHLBar>span:first-child{font-size:var(--hx-fs-cap)}
body.hx #step3.lx-b #lxHLBar .q-meter{display:none}

/* walk round, tidy (28 Nov 2026, Bradley: "writing all over each other"). The card sizes itself to its own width:
   narrow (phone, or the 280px column) shows numbers only on the step bar with "Step 5 of 6: Roof" under it, and the wheels
   as small stacked cards; wide (desktop, where it now runs across the top of the damage area) shows every step name. */
.dw{container-type:inline-size;container-name:dw}
.dw-top{align-items:center;flex-wrap:nowrap}
.dw-t{min-width:0;line-height:1.15}
.dw-count{flex:none;white-space:nowrap;padding:5px 9px;border-radius:999px;background:rgba(244,198,50,.14);font-size:13px}
.dw-count:empty{display:none}
.dw-steps{margin:0 0 6px}
.dw-step{min-height:30px;gap:4px;overflow:hidden}
.dw-step .dw-l{display:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.dw-where{margin:0 0 14px;font:600 12px/1.3 var(--hx-text);letter-spacing:.04em;text-transform:uppercase;color:var(--hx-sun)}
.dw-ask{font-size:17px}
.dw-wheels{gap:8px}
.dw-wheel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:0;padding:12px 8px;text-align:center}
.dw-wheel svg{width:40px;height:40px;margin-bottom:2px}
.dw-wheel span{font-size:14px;line-height:1.2;white-space:nowrap}
.dw-wheel small{font-size:12px;line-height:1.2}
.dw-acts{align-items:stretch}
.dw-next,.dw-prev{white-space:nowrap}
.dw-next{max-width:none}
@container dw (min-width:560px){
  .dw-step{min-height:44px}
  .dw-step .dw-l{display:block}
  .dw-where{display:none}
  .dw-steps{margin-bottom:16px}
  .dw-wheels{grid-template-columns:repeat(4,minmax(0,1fr))}
  .dw-next{flex:0 1 280px}
}
@media(max-width:380px){.dw-wheel span{font-size:13px}}
/* tablet and desktop: the walk-round card runs across the top; the car sits under it on the left with the damage chooser beside it */
@media(min-width:701px){
  body.hx .lx-condbody > .lx-qlabel{grid-column:1/-1}
  body.hx .lx-condbody > .dw{grid-column:1/-1;margin:4px 0 0;padding:20px 24px}
  body.hx .lx-condbody > .lx-plan{grid-column:1}
  body.hx .lx-condbody > .lx-dmgside{grid-column:2}
}
