/* ==========================================================================
   quote.css — the quote page (uses the tokens from site.css)
   ========================================================================== */
.qpage { background: var(--paper); }
.qi { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- header ---------- */
.qhdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 97%, transparent); transition: box-shadow .3s; }
.qhdr.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.qhdr__in { display: flex; align-items: center; gap: 20px; height: 70px; }
.qhdr__back { margin-left: auto; font-weight: 600; font-size: .92rem; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.qhdr__call { gap: 10px; }
.qhdr__callk { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; padding-right: 8px; border-right: 1px solid rgba(255, 255, 255, .35); }
.qhdr__num { font-variant-numeric: tabular-nums; }

/* ---------- stage ---------- */
.qx {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(28px, 5vh, 56px) clamp(56px, 8vw, 110px);
  background:
    radial-gradient(ellipse 60% 45% at 85% 0%, rgba(255, 246, 228, .8), rgba(255, 246, 228, 0) 70%),
    linear-gradient(180deg, var(--sky) 0%, #D2DCE0 40%, #DDE4E5 70%);
}
.qx__roof { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.qx__grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "copy form" "wo form" "call form";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(28px, 4.5vw, 72px); row-gap: 32px; align-items: start;
}
.qx__copy { grid-area: copy; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 12px; min-width: 0; }
.qx__copy .eyebrow { color: var(--ink); }
.qx__title { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: clamp(2.4rem, 5.2vw, 4.7rem); line-height: .92; letter-spacing: -.035em; text-wrap: balance; }
.qx__title em { font-style: normal; color: var(--accent); }
.qx__lede { font-size: 1.08rem; line-height: 1.55; color: var(--slate); max-width: 40ch; }
.qx__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.qx__trust li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.qx__trust .qi { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.6; }

/* ---------- form card ---------- */
.qcard {
  grid-area: form; position: relative; min-width: 0; scroll-margin-top: 86px;
  background: var(--white); border-radius: 6px;
  box-shadow: 0 1px 0 var(--line), 0 50px 100px -40px rgba(21, 25, 27, .55), 0 18px 40px -24px rgba(21, 25, 27, .35);
  padding: clamp(20px, 3.2vw, 40px);
}
.qcard__top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: clamp(18px, 2.6vw, 30px); }
.qcard__top.is-hidden { display: none; }
.qback { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 11px; transition: background .25s, color .25s, border-color .25s; }
.qback:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qback:disabled { opacity: .3; cursor: default; }
.qbar { display: flex; gap: 4px; height: 10px; }
.qbar i { flex: 1; border-radius: 2px; background: var(--paper-2); transform: skewX(-18deg); transition: background .5s var(--ease); }
.qbar i.is-done { background: var(--accent); }
.qbar i.is-now { background: var(--ink); }
.qcount { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.qcount .mono { color: var(--ink); font-weight: 600; white-space: nowrap; }
.qleft { font-size: .74rem; color: var(--slate); white-space: nowrap; }

.resume, .qalert { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; padding: 14px 16px; border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.resume { background: var(--paper); border: 1px dashed var(--line-strong); }
.resume div { display: flex; gap: 6px; }
.qalert { background: var(--ink); color: var(--paper); flex-wrap: nowrap; }
.qalert p { flex: 1; font-size: .92rem; line-height: 1.45; }
.qalert b { color: var(--accent-bright); }
.qalert__ic { width: 34px; height: 34px; flex: none; color: var(--accent-bright); animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.qstage { position: relative; }
.qs { border: 0; padding: 0; margin: 0; min-width: 0; }
.qs__head { display: flex; flex-direction: column; gap: 8px; padding: 0; margin-bottom: 8px; float: none; width: 100%; }
.qs__kicker { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.qs__title { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.55rem, 2.9vw, 2.35rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; outline: none; }
.qs__help { color: var(--slate); font-size: .96rem; max-width: 56ch; margin-bottom: 4px; }
.qs > .opts, .qs > .fields, .qs > .age, .qs > .pitch, .qs > .size { margin-top: 20px; }
.qs__part { margin-top: 24px; }
.qs__part--row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 20px; }
.qs__sub { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.qs__sub span { text-transform: none; letter-spacing: 0; }

/* ---------- option cards ---------- */
.opts { display: grid; gap: 10px; }
.opts--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts--c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 138px; padding: 16px 16px 14px; border: 1.5px solid var(--line-strong); border-radius: 6px;
  background: var(--white); color: var(--ink); cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent;
  transition: border-color .25s var(--ease), background .3s var(--ease), color .3s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt:hover { border-color: var(--ink); box-shadow: 0 14px 28px -18px rgba(21, 25, 27, .5); transform: translateY(-2px); }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt__ic { width: 46px; height: 46px; color: var(--ink); transition: color .3s, transform .45s var(--ease); }
.opt:hover .opt__ic { color: var(--accent); transform: translateY(-2px) rotate(-3deg); }
.opt__txt { display: flex; flex-direction: column; gap: 3px; margin-top: auto; min-width: 0; }
.opt__label { font-family: var(--f-display); font-weight: 750; font-stretch: 106%; font-size: 1.04rem; line-height: 1.15; letter-spacing: -.01em; }
.opt__sub { font-size: .8rem; line-height: 1.35; color: var(--slate); transition: color .3s; }
.opt__tick { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; padding: 5px; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.opt__tick--box { border-radius: 5px; }
.qi--tick { stroke-width: 4.5; color: var(--white); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--ease); }
.opt__key { position: absolute; right: 12px; bottom: 10px; font-family: var(--f-mono); font-size: .66rem; color: var(--slate); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; line-height: 1.6; opacity: 0; transition: opacity .2s; }
.qcard:hover .opt__key { opacity: .8; }
.opt.is-on, .opt:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 16px 30px -18px rgba(21, 25, 27, .7); }
.opt.is-on .opt__ic, .opt:has(input:checked) .opt__ic { color: var(--accent-bright); }
.opt.is-on .opt__sub, .opt:has(input:checked) .opt__sub { color: var(--fog); }
.opt.is-on .opt__tick, .opt:has(input:checked) .opt__tick { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.opt.is-on .qi--tick, .opt:has(input:checked) .qi--tick { opacity: 1; transform: none; }
.opt.is-on .opt__key, .opt:has(input:checked) .opt__key { color: var(--fog); border-color: var(--line-ink); }
.opt--hot .opt__ic { color: #B23A1E; }

/* compact cards: icon beside label */
.opts--sm .opt { flex-direction: row; align-items: center; min-height: 66px; padding: 12px 40px 12px 12px; gap: 12px; }
.opts--sm .opt__ic { width: 34px; height: 34px; flex: none; }
.opts--sm .opt__txt { margin-top: 0; }
.opts--sm .opt__label { font-size: .95rem; }
.opts--sm .opt__tick { top: 50%; margin-top: -12px; width: 24px; height: 24px; right: 10px; }
.opts--sm .opt__key { display: none; }

/* swatch cards (roof materials) */
.opt--sw { padding: 8px 8px 12px; gap: 10px; min-height: 0; }
.opt__sw { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 3px; overflow: hidden; background: var(--paper-2); }
.opt__sw canvas { width: 100%; height: 100%; display: block; }
.opt--sw .opt__txt { padding: 0 6px; }
.opt--sw .opt__tick { top: 14px; right: 14px; background: rgba(255, 255, 255, .85); }
.opt--sw:not(.opt--sw-ic) .opt__ic { margin: 6px; }
.opt--sw .opt__key { bottom: 12px; }
.opts--c4 .opt:not(.opt--sw) .opt__ic { margin-top: 2px; }

/* ---------- sliders ---------- */
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; margin: 6px 0 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p), var(--paper-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 6px; background: var(--paper-2); }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); box-shadow: 0 6px 16px -4px rgba(21, 25, 27, .5); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); box-shadow: 0 6px 16px -4px rgba(21, 25, 27, .5); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .7rem; color: var(--slate); margin-top: 2px; }
.unsure { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; border: 1.5px dashed var(--line-strong); border-radius: 999px; background: transparent; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.unsure .qi { width: 20px; height: 20px; }
.unsure[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); border-style: solid; }
.unsure:hover { border-color: var(--ink); }

/* age */
.age { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.age__vis { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 4px; overflow: hidden; background: var(--ink); }
.age__vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.age__worn { transition: opacity .25s; }
.age__tag { position: absolute; left: 10px; bottom: 10px; color: var(--white); background: rgba(21, 25, 27, .75); padding: 5px 9px; border-radius: 2px; }
.age__read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.age__read b { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.age__read span { font-weight: 600; }
.age__read small { flex-basis: 100%; color: var(--slate); font-size: .9rem; }
.age.is-unknown .age__read, .age.is-unknown input, .age.is-unknown .scale { opacity: .3; }

/* pitch */
.pitch { display: flex; flex-direction: column; }
.pitch__vis { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 16px; background: linear-gradient(180deg, #DCE5E8, var(--paper)); border-radius: 4px; padding: 10px 18px; margin-bottom: 14px; }
.pitch__svg { width: 100%; height: auto; max-height: 200px; overflow: visible; }
.pitch__ground { stroke: var(--ink); stroke-width: 2; }
.pitch__wall { fill: #F2F3F0; stroke: var(--ink); stroke-width: 2; }
.pitch__door { fill: var(--accent); }
.pitch__roof { fill: var(--shingle); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.pitch__dim { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-dasharray: 5 4; }
.pitch__t { font: 600 15px var(--f-mono); fill: var(--chalk); }
.pitch__read { display: flex; flex-direction: column; gap: 6px; }
.pitch__read b { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--chalk); }
.pitch__read span { font-size: .9rem; color: var(--slate); line-height: 1.4; }
.opts--pitch .opt { min-height: 0; padding: 12px 10px; gap: 8px; align-items: center; text-align: center; }
.opts--pitch .opt__ic { width: 44px; height: 44px; }
.opts--pitch .opt__txt { margin: 0; align-items: center; }
.opts--pitch .opt__tick { width: 20px; height: 20px; top: 8px; right: 8px; padding: 4px; }
.opts--pitch .opt__key { display: none; }

/* size */
.size__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.size__read { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.size__read b { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: clamp(2.8rem, 5.6vw, 4.2rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.size__read span { font-weight: 600; color: var(--slate); }
.size__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: transparent; cursor: pointer; font-weight: 650; font-size: .86rem; line-height: 1.2; transition: border-color .2s, background .2s; }
.chip-btn span { font-family: var(--f-mono); font-size: .66rem; color: var(--slate); font-weight: 400; }
.chip-btn:hover { border-color: var(--ink); background: var(--paper); }
.size__out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 18px; padding: 16px; background: var(--paper); border-radius: 4px; }
.sqgrid { display: grid; grid-template-columns: repeat(10, 14px); gap: 3px; }
.sqgrid i { width: 14px; height: 14px; border-radius: 2px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, transform .3s var(--ease); }
.sqgrid i.on { background: var(--shingle); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); transform: scale(1.04); }
.size__est { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.size__est .mono { color: var(--slate); }
.size__est b { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -.02em; }
.size__est b span { color: var(--accent); }
.size__est small { color: var(--slate); font-size: .82rem; line-height: 1.4; }
.size.is-unknown .size__read, .size.is-unknown input, .size.is-unknown .scale, .size.is-unknown .size__out { opacity: .3; }
.bp { display: grid; gap: 4px; margin-top: 12px; padding: 16px 18px; background: var(--ink); color: var(--paper); border-radius: 4px; }
.bp .mono { color: var(--fog); }
.bp b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1; letter-spacing: -.02em; color: var(--accent-bright); font-variant-numeric: tabular-nums; }
.bp small { color: var(--fog); font-size: .8rem; line-height: 1.45; }

/* fields */
.fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld--wide { grid-column: 1 / -1; }
.qs .fld--wide:not(.fields .fld) { margin-top: 22px; }
.fld label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.fld label span { text-transform: none; letter-spacing: 0; }
.fld input, .fld textarea {
  width: 100%; font: inherit; font-size: 1.06rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-bottom-color: var(--line-strong); border-radius: 4px; padding: 15px 14px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.fld textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.fld input[aria-invalid="true"] { border-color: #B23A1E; background: #FBEDE9; }
.qs--contact .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tick { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-weight: 600; cursor: pointer; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick__box { width: 26px; height: 26px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 5px; padding: 5px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.tick input:checked + .tick__box { background: var(--accent); border-color: var(--accent); }
.tick input:checked + .tick__box .qi--tick { opacity: 1; transform: none; }
.tick input:focus-visible + .tick__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { margin-top: 16px; font-size: .78rem; line-height: 1.5; color: var(--slate); max-width: 64ch; }
.consent a { color: var(--ink); text-underline-offset: 2px; }

/* photos */
.drop { border: 1.5px dashed var(--line-strong); border-radius: 6px; padding: 14px; transition: border-color .25s, background .25s; }
.drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop__btn { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.drop__btn .qi { width: 46px; height: 46px; flex: none; padding: 9px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.drop__btn span { display: flex; flex-direction: column; gap: 2px; }
.drop__btn small { color: var(--slate); font-size: .84rem; line-height: 1.4; }
.drop input:focus-visible + .drop__btn .qi { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.drop.has-photos .drop__thumbs { margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 4px; overflow: hidden; margin: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(21, 25, 27, .78); color: var(--white); padding: 6px; cursor: pointer; }

/* nav + errors */
.qerr { margin-top: 16px; padding: 12px 14px; border-radius: 4px; background: #FBEDE9; color: #8E2A14; font-weight: 600; font-size: .94rem; }
.qnav { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.qnext { min-width: 200px; }
.qnext.is-submit { flex: 1; max-width: 420px; }
.qnext .qi { width: 20px; height: 20px; stroke-width: 2.6; }
.qnext:disabled { opacity: .7; cursor: progress; }
.qhint { color: var(--slate); font-size: .7rem; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: var(--white); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* done */
.qdone { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.qdone__badge { width: 76px; height: 76px; }
.qdone__badge svg { width: 100%; height: 100%; }
.qdone__badge circle { fill: var(--accent); }
.qdone__badge path { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 0; }
.qdone__title { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: clamp(2rem, 4vw, 3.1rem); line-height: .95; letter-spacing: -.03em; outline: none; text-wrap: balance; }
.qdone__text { color: var(--slate); font-size: 1.05rem; max-width: 48ch; }
.bp--done { width: 100%; margin: 4px 0; }
.nx { list-style: none; width: 100%; margin-top: 6px; border-top: 1px solid var(--line); }
.nx li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nx__n { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-family: var(--f-mono); font-size: .76rem; font-weight: 600; }
.nx li:first-child .nx__n { background: var(--accent); color: var(--white); }
.nx__t { font-weight: 600; }
.nx__w { color: var(--slate); font-size: .68rem; text-align: right; }
.qdone__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.qdone__ctas .ic, .qdone__ctas .qi { width: 20px; height: 20px; }
.demo-line { text-transform: none; letter-spacing: .02em; line-height: 1.55; color: var(--chalk); font-size: .74rem; }
.demo-line a { color: inherit; font-weight: 600; }

/* ---------- work order ---------- */
.wo {
  grid-area: wo; position: relative; min-width: 0; align-self: start;
  background: #FBFBF7; color: var(--ink); border-radius: 4px; padding: 0 0 14px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(21, 25, 27, .7);
  background-image: radial-gradient(circle at 10px 0, transparent 6px, #FBFBF7 6.5px);
  background-size: 20px 12px; background-repeat: repeat-x; background-position: -10px 0;
}
.wo::before { content: ""; position: absolute; inset: 12px 0 0; background: #FBFBF7; border-radius: 0 0 4px 4px; z-index: 0; }
.wo > * { position: relative; z-index: 1; }
.wo__head { display: flex; align-items: center; gap: 10px; padding: 22px 18px 12px; border-bottom: 2px solid var(--ink); }
.wo__head .mono:first-child { font-weight: 600; }
.wo__id { color: var(--slate); }
.wo__state { margin-left: auto; padding: 3px 8px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: .64rem; }
.wo.is-received .wo__state { background: var(--accent); border-color: var(--accent); color: var(--white); }
.wo__meter { height: 3px; background: var(--paper-2); }
.wo__meter span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.wo__rows { padding: 6px 18px 0; }
.wo__row { display: flex; align-items: baseline; gap: 10px; padding: 7px 4px; margin: 0 -4px; border-bottom: 1px dashed var(--line); font-size: .9rem; border-radius: 2px; }
.wo__row dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); flex: none; width: 88px; }
.wo__row dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.wo__row.is-empty dd { color: var(--line-strong); font-weight: 400; }
.wo__foot { padding: 12px 18px 0; color: var(--slate); font-size: .64rem; }
.wo__stamp {
  position: absolute; top: 64px; right: 14px; z-index: 3; display: flex; flex-direction: column; align-items: center;
  padding: 8px 14px 6px; border: 3px solid var(--accent); border-radius: 6px; color: var(--accent);
  transform: rotate(-9deg); mix-blend-mode: multiply; background: rgba(180, 89, 42, .06);
}
.wo__stamp span { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.wo__stamp small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }

/* call card */
.callcard { grid-area: call; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 4px; background: var(--ink); color: var(--paper); min-width: 0; align-self: start; }
.callcard .mono { color: var(--fog); }
.callcard__num { font-family: var(--f-display); font-weight: 800; font-stretch: 116%; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.02em; text-decoration: none; line-height: 1.05; font-variant-numeric: tabular-nums; }
.callcard__hours { list-style: none; width: 100%; margin-top: 4px; }
.callcard__hours li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px dashed var(--line-ink); font-size: .84rem; color: var(--fog); }
.callcard__hours li span:last-child { color: var(--paper); }

/* ---------- below the fold ---------- */
.qn { padding-block: var(--sec) calc(var(--sec) * .7); }
.qn__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 4vw, 56px); border-top: 2px solid var(--ink); }
.qn__item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 0 0; }
.qn__n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); font-weight: 600; }
.qn__item h3 { font-family: var(--f-display); font-weight: 750; font-stretch: 108%; font-size: var(--t-3); line-height: 1.2; letter-spacing: -.01em; }
.qproof { padding-block: var(--sec); }
.qproof__rating { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: 3rem; line-height: 1; letter-spacing: -.03em; color: var(--accent-bright); }
.qproof__rating span { font-family: var(--f-body); font-weight: 500; font-stretch: 100%; font-size: .95rem; letter-spacing: 0; color: var(--fog); }
.qproof__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.qrv { display: flex; flex-direction: column; gap: 14px; padding: 24px; margin: 0; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 4px; }
.qrv__stars { color: var(--accent-bright); letter-spacing: .12em; }
.qrv blockquote { font-size: 1.04rem; line-height: 1.55; flex: 1; }
.qrv figcaption { color: var(--fog); font-size: .9rem; }
.qrv figcaption strong { color: var(--paper); }
.qfaq { padding-block: var(--sec); }
.qfaq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); }
.qcall { background: var(--accent); color: var(--white); padding-block: clamp(56px, 8vw, 110px); }
.qcall__in { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.qcall__title { font-family: var(--f-display); font-weight: 750; font-stretch: 108%; font-size: var(--t-2); letter-spacing: -.02em; }
.qcall__num { white-space: nowrap; font-family: var(--f-display); font-weight: 900; font-stretch: 122%; font-size: clamp(2rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.045em; text-decoration: none; font-variant-numeric: tabular-nums; }
.qcall .btn--line { color: var(--white); }
.callcard__num--2 { font-size: clamp(1.3rem, 2vw, 1.6rem); opacity: .85; }
.callcard__num[hidden], .qcall__alt[hidden], [data-phone2-wrap][hidden] { display: none; }
.qcall__alt { font-family: var(--f-display); font-weight: 750; font-stretch: 110%; font-size: clamp(1.2rem, 2.6vw, 2rem); letter-spacing: -.01em; }
.qcall__alt a { color: inherit; font-variant-numeric: tabular-nums; }
.qsf__tel a { font-variant-numeric: tabular-nums; }
.qsf { background: var(--ink); color: var(--fog); font-size: .85rem; }
.qsf__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); }
.qsf a { color: var(--paper); }

/* mobile call bar */
.qcallbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; justify-content: center; gap: 10px;
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .5);
}
.qcallbar span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); font-weight: 500; }
.qcallbar b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.15rem; color: var(--accent-bright); font-variant-numeric: tabular-nums; }
.qcallbar .ic { width: 22px; height: 22px; color: var(--accent-bright); }

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .opts--c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qs__part--row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .qx__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "wo" "call"; grid-template-rows: none; }
  .qx__lede { display: none; }
  .qn__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .qproof__list, .qfaq__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .qhdr__in { height: 62px; gap: 12px; }
  .qhdr__back { display: none; }
  .qhdr__call { margin-left: auto; padding: .7em .9em; }
  .qhdr__num { display: none; }
  .qhdr__callk { border: 0; padding: 0; font-size: .7rem; opacity: 1; }
  .qcallbar { display: flex; }
  .qsf__in { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .qx__title { font-size: clamp(2.1rem, 9.5vw, 2.9rem); }
  .qx__copy { gap: 12px; padding-top: 0; }
  .qx__trust { font-size: .86rem; }
  .qcard { padding: 18px 16px 20px; border-radius: 6px; }
  .qcard__top { grid-template-columns: 40px minmax(0, 1fr); }
  .qback { width: 40px; height: 40px; padding: 10px; }
  .qcount { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; order: -1; }
  .opts--c3, .opts--c4, .opts--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts--c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt { min-height: 120px; padding: 14px 12px 12px; }
  .opt__ic { width: 40px; height: 40px; }
  .opt__label { font-size: .98rem; }
  .opt__tick { top: 10px; right: 10px; width: 24px; height: 24px; }
  .opts--sm .opt { min-height: 60px; padding: 10px 36px 10px 10px; gap: 10px; }
  .opts--sm .opt__ic { width: 30px; height: 30px; }
  .opts--sm .opt__label { font-size: .9rem; }
  .opts--sm.opts--c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .age { grid-template-columns: minmax(0, 1fr); }
  .age__vis { aspect-ratio: 16 / 7; }
  .pitch__vis { grid-template-columns: minmax(0, 1fr); padding: 10px 14px 14px; }
  .pitch__svg { max-height: 150px; }
  .size__out { grid-template-columns: minmax(0, 1fr); }
  .sqgrid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .sqgrid i { width: auto; aspect-ratio: 1; height: auto; }
  .fields, .qs--contact .fields { grid-template-columns: minmax(0, 1fr); }
  .qnav { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 20px -16px -20px; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
  .qnext, .qnext.is-submit { flex: 1; min-width: 0; max-width: none; }
  .qhint { display: none; }
  .qalert { flex-wrap: wrap; }
  .qn__list { grid-template-columns: minmax(0, 1fr); }
  .nx li { grid-template-columns: 32px minmax(0, 1fr); }
  .nx__w { grid-column: 2; text-align: left; }
  .qdone__ctas .btn { flex: 1 1 auto; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .qalert__ic { animation: none; }
}
