/* Self-hosted fonts (latin subset, variable weights), preloaded in each page <head>.
   The "Fallback" faces are local Arial / Courier New resized to the exact width and line
   metrics of the web fonts, so text keeps its size if a font arrives late: no layout shift. */
@font-face { font-family: "Bebas Neue"; src: url(/fonts/bebas-neue.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat.woff2) format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
/* Fallbacks matched per platform: Arial/Helvetica (Windows, macOS, iOS), Roboto (Android), DejaVu (Linux). */
@font-face { font-family: "Bebas FB Arial"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); size-adjust: 57.56%; ascent-override: 156.35%; descent-override: 52.12%; line-gap-override: 0%; }
@font-face { font-family: "Bebas FB Roboto"; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 61.22%; ascent-override: 147.02%; descent-override: 49.01%; line-gap-override: 0%; }
@font-face { font-family: "Bebas FB DejaVu"; src: local("DejaVu Sans"), local("DejaVuSans"); size-adjust: 57.8%; ascent-override: 155.72%; descent-override: 51.91%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat FB Arial"; font-weight: 400 600; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); size-adjust: 115.06%; ascent-override: 84.31%; descent-override: 21.73%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat FB Arial"; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"); size-adjust: 107.59%; ascent-override: 90.16%; descent-override: 23.24%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat FB Roboto"; font-weight: 400 600; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 116.27%; ascent-override: 83.42%; descent-override: 21.5%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat FB Roboto"; font-weight: 700 900; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 116.58%; ascent-override: 83.21%; descent-override: 21.44%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat FB DejaVu"; font-weight: 400 600; src: local("DejaVu Sans"), local("DejaVuSans"); size-adjust: 101.22%; ascent-override: 95.83%; descent-override: 24.7%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat FB DejaVu"; font-weight: 700 900; src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"); size-adjust: 96.9%; ascent-override: 100.1%; descent-override: 25.8%; line-gap-override: 0%; }
@font-face { font-family: "Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("DejaVu Sans Mono"), local("Droid Sans Mono"), local("Roboto Mono"), local("Noto Sans Mono"); size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --black: #000000;
  --bg: #121212;
  --card: #1a1a1a;
  --line: #2c2c2c;
  --orange: #ff6600;
  --orange-hover: #e65c00;
  --white: #ffffff;
  --muted: #9e9e9e;
  --ok: #3ddc84;
  --warn: #ffb020;
  --danger: #ff5252;
  --display: "Bebas Neue", "Bebas FB Arial", "Bebas FB Roboto", "Bebas FB DejaVu", Impact, sans-serif;
  --heavy: "Montserrat", "Montserrat FB Arial", "Montserrat FB Roboto", "Montserrat FB DejaVu", Arial, sans-serif;
  --mono: "JetBrains Mono", "Mono Fallback", "Courier New", monospace;
  --r: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--white);
  font: 500 16px/1.5 var(--heavy); -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Dual-stroke decal frame: outer orange, inner white pin-stripe */
.decal {
  border: 3px solid var(--orange);
  outline: 1px solid var(--white);
  outline-offset: -8px;
  background: var(--black);
  border-radius: var(--r);
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }

/* Header / footer */
.top { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.lockup { display: inline-flex; gap: 0; font: 400 26px/1 var(--display); letter-spacing: .03em; text-decoration: none; color: var(--white); }
.lockup b { font-weight: 400; color: var(--orange); }
.lockup.small { font-size: 26px; }
.top-call { font: 700 15px var(--mono); color: var(--orange); text-decoration: none; white-space: nowrap; }
.top-call:hover { color: var(--white); }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap > p { margin: 0 0 8px; }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 12px; line-height: 1.45; color: #bdbdbd; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--orange); }

/* Hero */
.hero { margin: 28px 0; padding: 40px 20px 36px; text-align: center; position: relative; overflow: hidden; }
.badge { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #d6d6d6; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); align-self: center; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero h1 { margin: 18px auto 0; max-width: 11ch; font: 400 clamp(52px, 12vw, 104px)/.95 var(--display); letter-spacing: .02em; text-wrap: balance; }
.hero h1 b { font-weight: 400; color: var(--orange); }
.domain { margin: 8px 0 0; font: 700 clamp(14px, 3.4vw, 20px) var(--mono); letter-spacing: .18em; color: var(--muted); }
.trades { display: flex; justify-content: center; gap: clamp(14px, 4vw, 36px); margin: 30px 0 26px; }
.trades svg { width: clamp(52px, 13vw, 76px); height: auto; }
.hotline { display: inline-block; font: 800 clamp(34px, 8vw, 60px)/1 var(--mono); color: var(--orange); text-decoration: none; letter-spacing: .04em; }
.tagline { margin: 12px 0 0; font: 900 clamp(13px, 3vw, 16px) var(--heavy); text-transform: uppercase; letter-spacing: .08em; }

/* Forms & buttons */
.panel { max-width: 560px; margin: 0 auto; }
.panel h2 { margin: 0 0 6px; font: 400 34px/1 var(--display); letter-spacing: .03em; }
.panel p.lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
label.field { display: block; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.input { width: 100%; background: var(--black); border: 1px solid #3a3a3a; border-radius: 12px; padding: 14px 16px; font-size: 17px; outline: none; }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
textarea.input { min-height: 86px; resize: vertical; font-size: 15px; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); }
.prefix .input { padding-left: 48px; font-family: var(--mono); letter-spacing: .05em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 20px; border: 0; border-radius: 12px; background: var(--orange); color: var(--white); font: 900 15px var(--heavy); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--orange-hover); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; border: 1px dashed rgba(255,102,0,.7); color: var(--white); }
.btn.ghost:hover { border-style: solid; background: rgba(255,102,0,.08); }
.btn.dark { background: var(--black); border: 1px solid #3a3a3a; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.linkbtn:hover { color: var(--orange); }
.linkbtn:disabled { text-decoration: none; cursor: default; color: #666; }
.hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.error { margin: 12px 0 0; color: var(--danger); font-size: 14px; min-height: 1em; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* OTP */
.otp { display: flex; justify-content: center; gap: 8px; }
.otp input { width: 48px; height: 58px; text-align: center; font: 800 24px var(--mono); background: var(--black); border: 1px solid #3a3a3a; border-radius: 10px; outline: none; }
.otp input:focus { border-color: var(--orange); }
.otp .sep { align-self: center; color: #555; font-weight: 900; }

/* Camera dropzone */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; padding: 18px; border: 2px dashed #3a3a3a; border-radius: 12px; background: var(--black); cursor: pointer; text-align: center; }
.drop:hover, .drop:focus-within { border-color: var(--orange); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { font: 900 15px var(--heavy); text-transform: uppercase; letter-spacing: .05em; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Quote list */
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--black); text-decoration: none; color: var(--white); }
.qlist a:hover { border-color: var(--orange); }
.qlist li + li { margin-top: 8px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(255,102,0,.16); color: var(--orange); }
.pill.ok { background: rgba(61,220,132,.14); color: var(--ok); }

/* Working overlay */
.working { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.82); padding: 16px; }
.working .card { max-width: 380px; text-align: center; }
.spinner { width: 44px; height: 44px; margin: 0 auto 14px; border: 4px solid #333; border-top-color: var(--orange); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--black); font: 600 12px var(--mono); color: #cfcfcf; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.live.off i { background: #666; animation: none; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--black); cursor: pointer; font-size: 14px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--orange); }
dialog.zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; }
dialog.zoom::backdrop { background: rgba(0,0,0,.9); }
dialog.zoom img { max-height: 90vh; border-radius: 10px; }

/* Quote page: three questions, in order — how much, for what, when */
.q { max-width: 560px; padding-top: 8px; padding-bottom: 8px; }
.q-loading { padding: 80px 0; }
.q-hero { text-align: center; padding: 28px 0 22px; }
.q-eyebrow { margin: 0; font: 800 13px var(--heavy); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
/* Font size shrinks with the range's length (--n chars, set in quote.js) so it always fits on one line */
.q-price { margin: 6px 0 8px; font: 800 min(64px, calc((100vw - 84px) / (var(--n, 13) * .62)))/1.05 var(--mono); max-width: 100%;
  font-size: min(64px, calc(100cqi / (var(--n, 13) * .62)));   /* sized to the card (container query), not the window */ letter-spacing: -.01em; white-space: nowrap; }
.q-note { margin: 0; color: var(--muted); font-size: 14px; }
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.q-card h2 { margin: 0 0 14px; font: 400 30px/1 var(--display); letter-spacing: .03em; }
.q-items { list-style: none; margin: 0; padding: 0; }
.q-items li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.q-item { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.q-name { font-weight: 700; font-size: 16px; }
.q-amt { font: 800 16px var(--mono); white-space: nowrap; }
.q-photos { display: flex; gap: 6px; margin-top: 8px; }
.q-photos img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.q-save { margin: 14px 0 0; color: var(--ok); font: 700 14px var(--heavy); }
.q-inspect { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.q-book { margin-top: 14px; font-size: 16px; padding: 17px 20px; }
.q-book:disabled { opacity: .45; cursor: default; }
.q-fine { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.q-booked { text-align: center; border-color: var(--ok); }
.q-check { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,220,132,.15); color: var(--ok); font: 900 26px var(--heavy); }
.q-when { margin: 0 0 8px; font: 800 18px var(--mono); }
.q-call { margin-bottom: 16px; text-transform: none; letter-spacing: 0; font-size: 16px; }
.q-more { margin-bottom: 16px; }
.q-more > summary { cursor: pointer; text-align: center; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 6px; list-style: none; }
.q-more > summary::-webkit-details-marker { display: none; }
.q-more[open] > summary { margin-bottom: 12px; }
.q-more > .stack { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.q-label { margin: 0 0 8px; font: 800 12px var(--heavy); letter-spacing: .08em; text-transform: uppercase; color: #d9d9d9; }
.q-toggles { display: grid; gap: 8px; }
.q-ref { text-align: center; color: #5c5c5c; font: 500 12px var(--mono); }

/* Legal pages */
.legal-doc { max-width: 720px; padding-top: 28px; }
.legal-doc h1 { margin: 0 0 4px; font: 400 44px/1 var(--display); letter-spacing: .02em; }
.legal-doc h2 { margin: 28px 0 8px; font: 400 26px/1.1 var(--display); letter-spacing: .03em; color: var(--orange); }
.legal-doc p, .legal-doc li { color: #d4d4d4; font-size: 15px; line-height: 1.6; }
.legal-doc ul { padding-left: 20px; }

/* Weekly booking calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; align-items: center; gap: 6px; font: 700 13px var(--mono); color: #d4d4d4; white-space: nowrap; }
.cal-nav button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--black); color: var(--white); font-size: 18px; line-height: 1; cursor: pointer; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: 50px repeat(7, 1fr); gap: 4px; }
.cal-day { display: flex; flex-direction: column; align-items: center; padding-bottom: 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.cal-day b { font: 800 15px var(--mono); color: var(--white); }
.cal-day.today b { color: var(--orange); }
.cal-time { display: flex; align-items: center; font: 700 10px/1.2 var(--mono); color: var(--muted); }
.cal-cell { height: 46px; border-radius: 7px; border: 1px solid transparent; }
.cal-cell.open { border-color: #3a3a3a; background: var(--black); cursor: pointer; padding: 0; }
.cal-cell.open:hover { border-color: var(--orange); }
.cal-cell.open.sel { background: var(--orange); border-color: var(--orange); }
.cal-cell.booked, .cal-cell.past, .cal-cell.closed {
  background: repeating-linear-gradient(135deg, #222 0 6px, #191919 6px 12px); }
.cal-cell.closed { opacity: .5; }
.cal-cell.mine { background: var(--ok); }
.cal-key { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key .k { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.k.open { border: 1px solid #3a3a3a; background: var(--black); }
.k.taken { background: repeating-linear-gradient(135deg, #2a2a2a 0 3px, #191919 3px 6px); }
.k.pick { background: var(--orange); }
@media (max-width: 380px) { .cal { grid-template-columns: 44px repeat(7, 1fr); gap: 3px; } .cal-cell { height: 42px; } }

/* Multi-pick: list of chosen windows + requested state */
.cal-hint { margin: -4px 0 12px; font-size: 14px; color: #cfcfcf; }
.picks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picks li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(255,102,0,.14); border: 1px solid rgba(255,102,0,.5); font: 700 13px var(--mono); }
.picks button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--white); cursor: pointer; font-size: 12px; line-height: 1; }
.q-requested { text-align: center; border-color: var(--orange); }
.q-check.pending { background: rgba(255,102,0,.15); color: var(--orange); font-size: 22px; }
.req-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.req-list li { padding: 10px; border-radius: 10px; background: var(--black); border: 1px solid var(--line); font: 700 14px var(--mono); }
.q-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.q-actions .btn { padding: 13px 10px; font-size: 14px; }
.q-cancel { color: #ff8a8a; border-color: rgba(255,82,82,.4) !important; }
.q-cancelled { text-align: center; border-color: rgba(255,82,82,.5); }
.cal-note { margin: -4px 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.4); font-size: 13px; color: #cfeedd; }
.cal-note .linkbtn { display: block; margin-top: 4px; }
.legal-doc blockquote { margin: 10px 0 14px; padding: 12px 16px; border-left: 3px solid var(--orange); background: var(--card); border-radius: 0 10px 10px 0; color: #eaeaea; font-size: 15px; line-height: 1.6; }
.text-cta { max-width: 520px; margin: 18px auto 0; }
.text-cta-link { display: inline-block; padding: 12px 20px; border-radius: 12px; border: 2px solid var(--orange); color: var(--white); text-decoration: none; font: 900 15px var(--heavy); letter-spacing: .03em; }
.text-cta-link:hover { background: rgba(255,102,0,.12); }
.text-cta-terms { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.text-cta-terms a { color: var(--muted); }
.evidence { margin: 14px 0 6px; }
.evidence img { width: 100%; max-width: 398px; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.evidence figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Job address */
.addr-line { margin: 0; font: 700 16px/1.4 var(--heavy); }
.addr-line.small { margin-top: 10px; font-size: 14px; color: #d4d4d4; }
.addr-note { margin: 8px 0 0; font-size: 13px; color: var(--warn); }
.addr-check { padding: 14px; border: 1px solid var(--orange); border-radius: 12px; background: rgba(255,102,0,.06); }
.addr-q { margin: 0 0 4px; font: 800 12px var(--heavy); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.addr-show .linkbtn { margin-top: 8px; }

/* Enter-your-code step: only the code card, centered on the screen */
body.focus-otp .top, body.focus-otp .hero, body.focus-otp footer { display: none; }
body.focus-otp main { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding-top: 24px; padding-bottom: 24px; }
body.focus-otp #step-otp { width: 100%; }
#otp-to { white-space: nowrap; }
@media (max-width: 420px) { .otp { gap: 6px; } .otp input { width: min(48px, 11vw); height: 54px; } }

/* Top bar: logo · My Estimates · phone */
.topnav { display: flex; align-items: center; gap: 18px; }
.nav-est { color: var(--white); text-decoration: none; font: 800 14px var(--heavy); letter-spacing: .03em; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-est:hover { color: var(--orange); }
.nav-est.active { border-bottom-color: var(--orange); }
@media (max-width: 400px) { .hide-xs { display: none; } .topnav { gap: 12px; } .top-call { font-size: 13px; } .lockup.small { font-size: 22px; } }
.est-page { padding-top: 24px; }
.est-page .panel + .panel, .est-page section { margin-top: 0; }

/* Hero: labeled trade icons, then two big buttons and the number once */
.trade { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trade figcaption { font: 800 12px var(--heavy); letter-spacing: .06em; text-transform: uppercase; color: #d4d4d4; }
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; margin: 6px auto 0; }
.cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 0 10px; border-radius: 16px; text-decoration: none; font: 900 clamp(17px, 4.6vw, 20px) var(--heavy); letter-spacing: .01em; white-space: nowrap; }
.cta-ico { width: 24px; height: 24px; flex: none; }
.cta-btn.call { background: var(--orange); color: var(--white); }
.cta-btn.text { background: var(--white); color: var(--black); }
.cta-btn:active { transform: scale(.98); }
.cta-number { margin: 14px 0 0; font-size: clamp(22px, 6vw, 30px); font-weight: 800; color: var(--orange); letter-spacing: .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Rush (within 6 hours) and after-hours windows: bookable, clearly marked */
.cal-cell.open.rush, .cal-cell.open.after_hours { font: 800 16px/1 var(--heavy); display: grid; place-items: center; }
.cal-cell.open.rush { color: #C98A00; border-color: #E0A100; }
.cal-cell.open.after_hours { color: #6C7BD8; border-color: #6C7BD8; }
.cal-cell.open.sel { color: #fff; }
.cal-time.after { color: #6C7BD8; }
.k.rushk, .k.afterk { width: auto; height: auto; background: none; border: 0; font: 800 13px/1 var(--heavy); }
.k.rushk { color: #C98A00; } .k.afterk { color: #6C7BD8; }
.cal-key { flex-wrap: wrap; row-gap: 6px; }
.cal-extra { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.cal-cell.open.sel.rush, .cal-cell.open.sel.after_hours { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Quote page: progress tracker, merged estimate card, compact legend */
.q-steps { list-style: none; display: flex; gap: 6px; margin: 18px 0 14px; padding: 0; }
.q-steps li { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: 10px;
  font: 800 12px var(--heavy); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.q-steps li b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--white); font-size: 11px; }
.q-steps li.now { color: var(--white); border-color: var(--orange); }
.q-steps li.now b { background: var(--orange); color: #fff; }
.q-steps li.done b { background: var(--ok); color: #fff; font-size: 0; }
.q-steps li.done b::after { content: "✓"; font-size: 12px; }
.q-est { text-align: left; }
.q-est .q-eyebrow, .q-est .q-price, .q-est .q-note { text-align: center; }
.q-est .q-price { margin-top: 4px; }
.q-rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0 14px; }
.q-sub { margin: 0 0 12px; font: 400 24px/1 var(--display); letter-spacing: .03em; }
.cal-addr { margin: -4px 0 12px; font: 700 14px/1.4 var(--heavy); }
.cal-addr .linkbtn { margin-left: 6px; font-size: 13px; }
.cal-key1 { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.cal-key1 .k { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.cal-key1 span { margin-right: 10px; }

@media (max-width: 370px) { .q-steps li { font-size: 10.5px; letter-spacing: 0; gap: 4px; padding: 9px 2px; } .q-steps li b { width: 17px; height: 17px; } }

/* Per-job editing on the quote */
.q-change { display: inline-block; margin-top: 6px; padding: 4px 0; font-weight: 700; font-size: 14px; text-decoration: underline; }
.q-edit { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; }
.q-edit .q-label { margin: 0; }
.q-edit .q-actions { display: flex; gap: 10px; }
.q-edit .q-actions .btn { flex: 1; }
.q-delta { margin-left: auto; font: 700 14px var(--mono); white-space: nowrap; }
.q-delta.up { color: var(--warn); } .q-delta.down { color: var(--ok); }
.q-chosen { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.q-off .q-name, .q-off .q-amt { color: var(--muted) !important; text-decoration: line-through; font-weight: 600; }
.q-off .q-amt { text-decoration: none; font-size: 13px; }
.q-sum-note { display: block; font-weight: 500; font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; }

/* When should we come? Three big choices; the calendar opens only on "Pick on calendar" */
.when { display: grid; gap: 8px; margin: 12px 0; }
.when-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 13px 16px; text-align: left;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--black); color: var(--white); cursor: pointer; font: inherit; }
.when-btn b { font-size: 17px; } .when-btn span { font-size: 14px; color: var(--muted); }
.when-btn[aria-pressed="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); }
.when-btn[data-when="pick"][aria-pressed="true"] { box-shadow: none; }
.when-note { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
#cal-wrap .cal-nav { justify-content: center; margin: 4px 0 10px; }
.q-edit .error:empty { display: none; }

/* Masked phone: hidden digits as solid rectangles, e.g. (▮▮▮) ▮▮▮-0025 */
.masked-phone { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.masked-phone { font-family: var(--mono); }
.redact { opacity: .45; letter-spacing: .2em; }   /* one block "cursor" per hidden digit */
.q-est { container-type: inline-size; }

/* Add another job: a quiet dashed row inside the estimate card */
.q-add { margin-top: 14px; }
.q-add-btn { width: 100%; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: transparent;
  color: var(--white); font: 700 16px var(--body, inherit); cursor: pointer; text-align: center; }
.q-add-btn span { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.q-add-form { padding: 14px; border: 1px solid var(--line); border-radius: 12px; gap: 10px; }
.q-add-form .q-label { margin: 0; }
.q-add-form .q-actions { display: flex; gap: 10px; } .q-add-form .q-actions .btn { flex: 1; }
.q-add-form .error:empty { display: none; }
.q-add-photo { text-align: left; font-weight: 700; }
/* Removed jobs: their own small section under the estimate */
.q-removed { margin: 0 4px 16px; padding: 4px 14px 12px; border: 1px dashed var(--line); border-radius: var(--r); }
.q-removed .q-name { color: var(--muted); font-weight: 600; }
.q-removed .q-item { align-items: center; }
.q-removed .q-change { margin: 0; }
/* Questions? Call ... : a quiet line, not a big button */
.q-help { text-align: center; font-size: 15px; color: var(--muted); margin: 6px 0 2px; }
.q-help a { color: inherit; font-weight: 700; white-space: nowrap; }

/* Your Estimates list: each card is one link with a clear "View estimate" button */
.qlist a.qcard { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 8px; }  /* one full-width column */
.qcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qcard-price { font-weight: 800; white-space: nowrap; }
.qcard-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.qcard-btn { display: block; margin-top: 4px; padding: 11px; border-radius: 10px; background: var(--orange); color: #fff;
  text-align: center; font: 800 15px var(--heavy); letter-spacing: .02em; text-transform: uppercase; }
.qlist a.qcard:hover .qcard-btn, .qlist a.qcard:focus-visible .qcard-btn { filter: brightness(1.08); }
.cal-key1 .k { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: 5px; }

/* Journey round 1: readable text and tap targets of at least ~32 px for older eyes and thumbs */
label.field, .q-label, .addr-q, .trade figcaption { font-size: 13px; }
.hint, .text-cta-terms { font-size: 13.5px; }
.top-call { display: inline-block; padding: 10px 0; }
.top .lockup { padding: 6px 0; }
footer .links a { display: inline-block; padding: 7px 0; }
.linkbtn { padding: 7px 2px; }
.q-change { padding: 8px 0; margin-top: 2px; }
/* Journey round 2: progress steps and status tags a notch larger */
.q-steps li { font-size: 13px; letter-spacing: .02em; }
.pill { font-size: 12px; }
@media (max-width: 370px) { .q-steps li { font-size: 11px; letter-spacing: 0; } }
/* Journey round 2 (independent review) */
.qcard-meta { font-size: 14px; color: var(--muted); }
.q-chosen-amt { white-space: nowrap; }
.q-remove { justify-self: center; color: var(--danger, #C0392B) !important; }
.toggle input { width: 22px; height: 22px; flex: none; }
#step-otp .row { flex-direction: column; align-items: center; gap: 2px; }
/* Progress steps: normal capitalization fits at a readable size without wrapping or squeezing the number */
.q-steps li { font-size: 13.5px; text-transform: none; letter-spacing: 0; white-space: nowrap; gap: 5px; padding: 9px 3px; }
.q-steps li b { flex: none; }
@media (max-width: 370px) { .q-steps li { font-size: 11.5px; } }
@media (max-width: 340px) { .q-steps li { font-size: 10.5px; padding: 9px 2px; gap: 3px; } .q-steps li b { width: 17px; height: 17px; } }
.q-fee .q-name { font-weight: 600; }
/* Signed in on this device: keep the sign-in form hidden until we know (no flash) */
html.auth-wait #step-phone { display: none !important; }
/* Your Estimates: booked visits stand out; past ones tucked away */
.qlist a.qcard.booked { border-color: #86D3A6; box-shadow: inset 4px 0 0 #1E8E4E; }
.past-quotes { margin-top: 14px; }
.past-quotes > summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--muted); }
.past-quotes .qcard { opacity: .85; }

/* No layout shift on refresh: the scrollbar's space is always reserved (desktop scrollbars no longer push the
   page sideways when content arrives), and while a signed-in account loads the page keeps full height with a
   placeholder card, so the footer never flashes on screen and then jumps. */
html { scrollbar-gutter: stable; }
.auth-skel { display: none; }
html.auth-wait main { min-height: 100vh; }
html.auth-wait .auth-skel { display: grid; gap: 14px; margin-top: 28px; padding: 22px; }
.auth-skel i { display: block; height: 18px; border-radius: 8px; background: rgba(127,127,127,.14); }
.auth-skel i:first-child { height: 30px; width: 60%; }
.auth-skel i.short { width: 40%; }
/* Combine with another estimate */
.q-combine { margin-top: 10px; text-align: center; }
.q-combine-panel { margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-align: left; display: grid; gap: 8px; }
.q-combine-panel .error:empty { display: none; }
.q-combine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-combine-pick { width: 100%; display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--black); color: var(--white); font: inherit; cursor: pointer; }
.q-combine-pick span { font-size: 14px; color: var(--muted); }
html.theme-light .q-combine-panel { background: #FBFAF7; border-color: #DDD7CC; }
html.theme-light .q-combine-pick { background: #fff; color: #151515; border-color: #CFC8BB; }
/* Your Estimates buttons: orange only when the customer has something to do */
.qcard-btn.wait { background: transparent; color: var(--white); border: 1.5px solid var(--line); font-weight: 700; }
.qcard-btn.ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); font-weight: 700; cursor: pointer; font-family: var(--heavy); }
.qcard-split { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 4px; }
.qcard-split .ghost { padding-left: 18px; padding-right: 18px; }
.qcard-split .qcard-btn { margin-top: 0; text-decoration: none; }
.qlist div.qcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
html.theme-light .qcard-btn.wait { color: #151515; border-color: #B9B2A6; background: #fff; }
html.theme-light .qcard-btn.ghost { color: #4F4F4F; border-color: #CFC8BB; background: transparent; }
html.theme-light .qlist div.qcard { background: #FBFAF7; border-color: #DDD7CC; }

/* ---- Loading placeholders: grey blocks in the page's shape, gently shimmering */
@keyframes sk-shimmer { from { background-position: -320px 0; } to { background-position: 320px 0; } }
.q-skel i, .auth-skel i, .sk-steps i {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, rgba(127,127,127,.12) 0, rgba(127,127,127,.22) 40%, rgba(127,127,127,.12) 80%) 0 0 / 640px 100%;
  animation: sk-shimmer 1.3s ease-in-out infinite; }
.sk-steps { display: flex; gap: 6px; margin: 18px 0 14px; } .sk-steps i { flex: 1; height: 40px; border-radius: 10px; }
.sk-card { display: grid; gap: 12px; }
.sk-eyebrow { height: 12px; width: 34%; margin: 0 auto; } .sk-price { height: 52px; width: 86%; margin: 0 auto; }
.sk-line { height: 14px; margin: 0 auto; } .sk-h { height: 22px; width: 45%; }
.sk-row { display: flex; justify-content: space-between; gap: 12px; } .sk-row i { height: 18px; }
.sk-box { height: 64px; border-radius: 12px; } .sk-input { height: 52px; border-radius: 12px; } .sk-input.short { width: 100%; height: 48px; }
.w60 { width: 60%; } .w50 { width: 50%; } .w25 { width: 25%; }
@media (prefers-reduced-motion: reduce) { .q-skel i, .auth-skel i, .sk-steps i { animation: none; } }

/* ---- "Pricing your job": a checklist to watch instead of a spinner */
.working .card.work { width: min(380px, 100%); text-align: left; display: grid; gap: 12px; }
.work-title { font: 400 28px/1 var(--display); letter-spacing: .02em; text-align: center; }
.work-photo { position: relative; height: 150px; border-radius: 12px; overflow: hidden; background: #000; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.work-photo .scan { position: absolute; left: 0; right: 0; height: 36%; top: -36%;
  background: linear-gradient(180deg, transparent, rgba(255,102,0,.35) 70%, rgba(255,140,60,.9) 100%);
  animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0% { top: -36%; } 100% { top: 100%; } }
.work-bar { height: 6px; border-radius: 999px; background: rgba(127,127,127,.2); overflow: hidden; }
.work-bar i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 999px; transition: width 1.6s ease; }
.work-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.work-steps li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--muted); }
.work-steps li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(127,127,127,.35); }
.work-steps li.now { color: var(--white); font-weight: 700; }
.work-steps li.now::before { border-color: var(--orange); border-top-color: transparent; animation: spin .8s linear infinite; }
.work-steps li.done { color: var(--white); }
.work-steps li.done::before { content: "✓"; display: grid; place-items: center; border: 0; background: #1E8E4E; color: #fff; font-size: 12px; font-weight: 800; }
.work-note { margin: 0; font-size: 13.5px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .work-photo .scan, .work-steps li.now::before { animation: none; } }
.sk-qcard { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(127,127,127,.18); border-radius: 12px; }
.sk-qcard i { height: 16px; } .sk-qcard .sk-btn { height: 42px; border-radius: 10px; }
/* "+ photo" tile next to a job's photos */
.q-addphoto { width: 56px; height: 56px; border-radius: 8px; border: 1.5px dashed var(--line); background: transparent; color: var(--orange);
  font: 800 20px/1 var(--heavy); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; }
.q-addphoto span { font-size: 11px; letter-spacing: .02em; color: var(--muted); font-weight: 700; }
html.theme-light .q-addphoto { border-color: #B9B2A6; background: #FBFAF7; }
/* Flexible-timing savings */
.save { font-style: normal; font-weight: 700; color: var(--ok); }
.q-fee.save .q-name, .q-fee.save .q-amt { color: var(--ok) !important; }
html.theme-light .save, html.theme-light .q-fee.save .q-name, html.theme-light .q-fee.save .q-amt { color: #1E8E4E !important; }
/* Photo source: take a new one or choose an existing one */
.photo-src { border: 0; border-radius: 16px; padding: 18px; width: min(340px, calc(100vw - 32px)); gap: 10px; text-align: center; }   /* display only while [open] */
.photo-src[open] { display: grid; }
.photo-src::backdrop { background: rgba(0,0,0,.55); }
.photo-src .q-label { margin: 0 0 4px; }
.q-add-photo { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; }
.q-add-photo span { color: var(--muted); width: 100%; }
.q-add-photo .linkbtn { font-weight: 700; font-size: 15px; }
html.theme-light .photo-src { background: #fff; color: #151515; }
