/* The accent ("gold" in the names) comes from client.json colors: gold and
   gold_light, plus optional shades (gold_strong, gold_soft, gold_on_dark,
   gold_hover, on_gold, and the finer gold_deep / gold_edge / gold_mid /
   gold_pale) for a client whose accent is not gold, like Liberty's red. The
   defaults below are Smart Choice's gold, exactly as before.

   The lead page, in the look of Noah's approved design preview
   (smart-choice-consultation-preview-2.html): navy and gold, a two-panel
   card on desktop, one column on a phone. Every step of the form swaps in
   place inside the card, and the height media queries keep each step on one
   screen without scrolling. Colours come from client.json (set in the head). */

@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-display: swap; src: url("/assets/landing/source-sans-3.woff2") format("woff2"); }

:root { --gold-strong: #ba852d; --gold-deep: #a66e14; --gold-edge: #ac781f; --gold-mid: #c79138; --gold-soft: #ecd3a3; --gold-pale: #f2e3c9; --gold-on-dark: #f2c57d; --gold-hover: #f6c77d; --on-gold: var(--navy-deep); --ink: #172f40; --muted: #556471; --paper: #f6f4ef; --white: #fff; --red: #a62925; --focus: #0873b3; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; background: var(--paper); }
body { margin: 0; color: var(--ink); font: 400 18px/1.4 "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: var(--paper); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ph { background: #fff3a3; color: #3d3200; outline: 2px dashed #8a6d00; outline-offset: 2px; }

/* ---- frame --------------------------------------------------------------- */
.page { max-width: 1224px; margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; padding: 0 34px; }
.header { display: flex; align-items: center; justify-content: space-between; min-height: 108px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { width: 78px; height: 78px; display: block; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid #e3e7eb; }
.logo-wide { height: 52px; width: auto; max-width: min(340px, 60vw); object-fit: contain; display: block; }
.logo.logo--dark { background: var(--navy); border-color: var(--navy); }
.logo-wide.logo--dark { background: var(--navy); padding: 7px 12px; border-radius: 10px; box-sizing: content-box; }
.top--light { background: #fff; border-bottom: 1px solid #e3e7eb; }
.logo-wide-top { height: 36px; width: auto; display: block; }
.brand-name { font-size: 21px; font-weight: 700; line-height: 1.05; letter-spacing: .055em; color: var(--navy); }
.brand-name span { display: block; font-size: 13px; font-weight: 650; letter-spacing: .17em; margin-top: 7px; }
.phone-link { display: flex; align-items: center; gap: 11px; text-decoration: none; min-height: 48px; color: var(--navy); }
.phone-link > .icon { width: 23px; height: 23px; color: var(--navy); }
.phone-link small { display: block; font-size: 14px; line-height: 1.2; color: var(--muted); font-weight: 400; }
.phone-link strong { display: block; font-size: 20px; font-weight: 650; letter-spacing: .005em; }
.phone-mobile { display: none; }
main { flex: 1; display: flex; align-items: center; padding: 12px 0 18px; }
.experience { width: 100%; display: grid; grid-template-columns: 45% 55%; min-height: 570px; border: 1px solid #e0e2de; border-radius: 24px; background: var(--white); box-shadow: 0 16px 50px -30px #16314650; overflow: clip; }

/* ---- the offer side ------------------------------------------------------ */
.intro-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 38px 36px 28px; background: var(--navy); color: #fff; overflow: hidden; }
/* The photo is a background on wide screens only, so a phone never downloads it. */
@media (min-width: 761px) {
  .intro-panel { background: var(--navy) var(--side-image) center 60% / cover no-repeat; }
}
.intro-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 29, 46, .95) 0%, rgba(4, 29, 46, .90) 24%, rgba(4, 29, 46, .55) 60%, rgba(4, 29, 46, .10) 100%); }
.offer { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 7px 11px; border: 1px solid #e6bb7580; border-radius: 6px; color: #f5d5a1; font-size: 16px; font-weight: 600; line-height: 1.25; background: #0b2d4777; }
.offer .offer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
h1 { font-size: clamp(36px, 4.1vw, 52px); line-height: 1.07; letter-spacing: -.035em; font-weight: 650; margin: 0 0 20px; }
h1 .gentle { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.05em; }
h1 .emphasis { display: block; color: var(--gold-on-dark); }
.intro-copy { max-width: 350px; color: #f2f5f7; font-size: 19px; line-height: 1.5; margin: 0; }
.copy-mobile { display: none; }
.visit { margin-top: auto; padding-top: 60px; }
.visit-inner { display: flex; align-items: center; gap: 13px; background: #fffef7ef; backdrop-filter: blur(12px); color: var(--navy); padding: 16px 17px; border: 1px solid #fff9; border-radius: 12px; }
.visit-icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold-pale); border-radius: 50%; flex-shrink: 0; }
.visit-inner strong { display: block; font-size: 18px; font-weight: 650; line-height: 1.2; }
.visit-inner span { display: block; font-size: 16px; color: #4f5c62; margin-top: 4px; }
.image-note { font-size: 12px; line-height: 1.2; text-align: right; color: #fff; margin: 8px 2px 0; text-shadow: 0 1px 3px #000; }

/* ---- the form side ------------------------------------------------------- */
.form-panel { padding: 32px 42px 28px; display: flex; flex-direction: column; min-width: 0; }
.context-mobile { display: none; }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; font-size: 16px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; min-width: 68px; margin-left: -6px; padding: 0 6px; border: 0; background: transparent; font-weight: 600; color: var(--navy); border-radius: 5px; }
.back .icon { width: 19px; height: 19px; }
.back[aria-disabled=true] { visibility: hidden; }
.step-name { font-size: 16px; font-weight: 650; color: var(--navy); }
.step-count { font-size: 15px; color: var(--muted); margin-left: 9px; }
.progress-track { display: flex; gap: 6px; margin: 8px 0 27px; height: 4px; }
.progress-track span { flex: 1; background: #e8ecee; border-radius: 9px; transition: background .18s ease; }
.progress-track span.done { background: var(--navy); }
.progress-track span.current { background: var(--gold-mid); }
form { margin: 0; display: flex; flex: 1; flex-direction: column; min-width: 0; }
.step { animation: arrive .24s ease-out; min-width: 0; flex: 1; display: flex; flex-direction: column; }
.step h2 { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -.018em; line-height: 1.14; outline: none; color: var(--navy); }
.step .hint { margin: 9px 0 22px; font-size: 18px; line-height: 1.35; color: var(--muted); }
.choices { display: grid; gap: 11px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; text-align: left; border: 1.5px solid #aebbc4; border-radius: 10px; padding: 10px 15px; background: #fff; color: var(--navy); transition: border-color .15s, background .15s, box-shadow .15s; font-size: 20px; line-height: 1.2; font-weight: 600; }
.choice .choice-icon { width: 34px; min-width: 34px; display: grid; place-items: center; color: #617582; }
.choice .choice-icon .icon { width: 28px; height: 28px; }
.choice .choice-arrow { margin-left: auto; width: 19px; height: 19px; color: #72838d; flex-shrink: 0; }
.choice[aria-pressed=true] { border-color: var(--gold-strong); background: var(--gold-light); box-shadow: 0 0 0 1px var(--gold-strong); }
.choice[aria-pressed=true] .choice-icon { color: var(--navy); }
.choice[aria-pressed=true] .choice-arrow { color: var(--gold-deep); }
@media (hover: hover) {
  .choice:hover { background: #f6f8fa; border-color: var(--navy); }
  .choice[aria-pressed=true]:hover { background: var(--gold-light); }
  .primary:hover { background: #153f5b; }
  .primary--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
  .back:hover, .text-link:hover { text-decoration: underline; }
}
.form-foot { margin: auto 0 0; padding-top: 23px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; color: var(--muted); line-height: 1.3; text-align: center; }
.form-foot .icon { width: 18px; height: 18px; color: #597567; }
.field { margin-bottom: 19px; position: relative; }
.field label { display: block; margin: 0 0 7px; font-weight: 600; font-size: 18px; color: var(--navy); }
input[type=text], input[type=tel] { width: 100%; height: 58px; padding: 10px 15px; border: 1.5px solid #aebbc4; border-radius: 9px; background: #fff; font-size: 21px; color: var(--navy); box-shadow: 0 1px 2px #052e4510; }
input::placeholder { color: #75818a; opacity: 1; }
input[aria-invalid=true] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.error { display: none; margin: 6px 0 0; color: var(--red); font-weight: 600; font-size: 16px; line-height: 1.3; }
.error:not(:empty) { display: block; }
.error:not(:empty)::before { content: "⚠ "; }
.primary { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; padding: 13px 16px; background: var(--navy); border: 1.5px solid var(--navy); border-radius: 9px; color: #fff; font-size: 20px; font-weight: 650; line-height: 1.25; transition: background .15s; text-decoration: none; }
.primary .icon { width: 21px; height: 21px; }
.primary:disabled { background: #dce4e8; border-color: #dce4e8; color: #526575; }
.primary--gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.button-space { margin-top: 5px; }

/* The address box: suggestions drop down under it; tap one and it's done. */
.address-wrap { position: relative; }
.suggestions { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1.5px solid var(--navy); border-radius: 10px; box-shadow: 0 12px 30px -10px #0a2a4060; }
.suggestions button { display: block; width: 100%; min-height: 52px; padding: 7px 11px; text-align: left; background: #fff; border: 0; border-radius: 7px; color: var(--navy); line-height: 1.25; }
.suggestions button strong { display: block; font-size: 18px; font-weight: 650; }
.suggestions button span { display: block; font-size: 16px; color: var(--muted); }
.suggestions button:hover, .suggestions button[aria-selected=true] { background: var(--gold-light); }
.address-ok { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: #2f6b45; font-weight: 600; font-size: 16px; }
.address-ok .icon { width: 18px; height: 18px; stroke-width: 2.2; }

/* SMS consent: the carrier-required wording, word for word, with its box. */
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 18px; }
.consent input { flex: 0 0 26px; width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--navy); }
.consent label { color: #4c5d6b; font-size: 15px; line-height: 1.38; }
.consent-wrap .error { margin: -10px 0 14px 37px; }
.consent-wrap.invalid .consent input { outline: 2px solid var(--red); outline-offset: 2px; }
.legal-links { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 10px 0 0; }
.text-link { display: inline-flex; align-items: center; font-size: 16px; color: var(--muted); padding: 4px 2px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }

/* Calendar */
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.calendar-month { font-size: 19px; font-weight: 650; margin: 0; color: var(--navy); }
.calendar-nav { display: flex; gap: 7px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #aebbc4; background: #fff; color: var(--navy); border-radius: 8px; }
.icon-button:disabled { opacity: .45; }
.icon-button .icon { width: 21px; height: 21px; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 18px; }
.day { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 77px; padding: 7px 4px; border: 1.5px solid #aebbc4; border-radius: 9px; background: #fff; color: var(--navy); font-size: 16px; line-height: 1.2; gap: 3px; }
.day strong { font-size: 26px; font-weight: 650; line-height: 1.1; }
.day[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.time-label { font-size: 16px; font-weight: 600; margin: 0 0 9px; display: flex; justify-content: space-between; gap: 6px; color: var(--navy); }
.time-label span { font-size: 14px; color: var(--muted); font-weight: 400; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.time { min-height: 48px; background: #fff; border: 1.5px solid #aebbc4; border-radius: 8px; color: var(--navy); font-size: 17px; font-weight: 600; }
.time[aria-pressed=true] { background: var(--gold-light); border-color: var(--gold-edge); box-shadow: 0 0 0 1px var(--gold-edge); }
.selected-summary { font-size: 16px; color: var(--navy); min-height: 24px; margin: 0 0 12px; text-align: center; }
.selected-summary.bad { color: var(--red); font-weight: 600; }
.loading { color: var(--muted); padding: 24px 0; text-align: center; }

/* Done */
.success-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ec; color: #315a40; margin: 0 0 20px; }
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2; }
.complete-header { display: flex; align-items: center; gap: 13px; margin: 8px 0 7px; }
.complete-header .success-icon { width: 44px; height: 44px; flex: 0 0 44px; margin: 0; }
.complete-header .success-icon .icon { width: 25px; height: 25px; }
.appointment-summary { padding: 17px 16px; background: #f3f6f8; border: 1px solid #d8e1e7; border-radius: 10px; margin: 0 0 17px; }
.appointment-summary p { margin: 0; font-size: 17px; line-height: 1.45; }
.appointment-summary .summary-date { font-size: 21px; font-weight: 650; color: var(--navy); margin-bottom: 4px; }
.appointment-summary .summary-sub { color: var(--muted); margin-top: 8px; font-size: 16px; line-height: 1.35; }
.contact-note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; margin: 0 0 15px; background: #f2f6f8; border: 1px solid #e1e9ee; border-radius: 9px; font-size: 16px; line-height: 1.35; color: #465c6b; }
.contact-note .icon { color: var(--navy); width: 22px; height: 22px; margin-top: 2px; }
.success-actions { display: flex; justify-content: center; }
.success-actions .text-link { font-size: 17px; color: var(--navy); background: none; border: 0; }

.footer { display: flex; justify-content: space-between; align-items: center; min-height: 45px; padding: 0 2px 13px; gap: 15px; font-size: 14px; color: #65737a; }
.footer .footer-right { display: flex; gap: 16px; align-items: center; }
.footer .text-link { font-size: 14px; min-height: 32px; }
.footer .footer-mark { display: flex; align-items: center; gap: 7px; }
.footer .footer-mark .icon { width: 16px; height: 16px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ---- shorter laptops ------------------------------------------------------ */
@media (min-width: 761px) and (max-height: 860px) {
  .header { min-height: 90px; } .logo { width: 65px; height: 65px; } .experience { min-height: 520px; } .intro-panel { padding: 30px; } .intro-panel h1 { font-size: 44px; } .intro-copy { font-size: 18px; } .offer { margin-bottom: 18px; } .visit { padding-top: 35px; } .form-panel { padding: 24px 34px; } .progress-track { margin-bottom: 21px; } .choice { min-height: 57px; } .choices { gap: 9px; } .step h2 { font-size: 28px; } .step .hint { margin-bottom: 17px; } .form-foot { padding-top: 17px; } .footer { min-height: 36px; padding-bottom: 6px; } main { padding: 5px 0 8px; }
}
@media (min-width: 761px) and (max-height: 720px) {
  .header { min-height: 76px; } .logo { width: 56px; height: 56px; } .experience { min-height: 460px; } .intro-panel { padding: 26px; } .intro-panel h1 { font-size: 39px; } .intro-copy { font-size: 17px; line-height: 1.4; } .offer { font-size: 14px; margin-bottom: 15px; } .visit { padding-top: 24px; } .visit-inner { padding: 12px; } .form-panel { padding: 17px 30px; } .progress-track { margin: 3px 0 14px; } .step h2 { font-size: 26px; } .step .hint { font-size: 17px; margin: 6px 0 14px; } .choice { min-height: 52px; font-size: 19px; } .choices { gap: 8px; } .form-foot { padding-top: 13px; font-size: 15px; } .field { margin-bottom: 14px; } input[type=text], input[type=tel] { height: 52px; } .days { margin-bottom: 12px; } .day { min-height: 67px; } .times { margin-bottom: 12px; } .selected-summary { margin-bottom: 7px; } .footer { padding-bottom: 3px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .page { padding: 0 22px; } .experience { grid-template-columns: 43% 57%; } .intro-panel { padding-left: 25px; padding-right: 25px; } .form-panel { padding-left: 28px; padding-right: 28px; } .intro-panel h1 { font-size: 40px; } .offer { font-size: 14px; } .visit-inner { padding: 13px 11px; gap: 9px; } .visit-inner strong { font-size: 16px; } .visit-inner span { font-size: 14px; } .visit-icon { width: 32px; height: 32px; }
}
@media (min-width: 761px) { body[data-stage=calendar] .form-panel { padding-top: 24px; padding-bottom: 22px; } body[data-stage=calendar] .progress-track { margin-bottom: 18px; } .step[data-step=calendar] .hint { margin-bottom: 15px; } .step[data-step=calendar] .days { margin-bottom: 14px; } }

/* ---- phones ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .page { max-width: 540px; padding: 0 17px; min-height: 100svh; }
  .header { min-height: 80px; gap: 12px; }
  .logo { width: 61px; height: 61px; border-radius: 8px; }
  .brand { gap: 10px; } .brand-name { font-size: 18px; letter-spacing: .04em; } .brand-name span { font-size: 11px; letter-spacing: .13em; margin-top: 5px; }
  .phone-link { min-width: 48px; min-height: 48px; justify-content: center; gap: 5px; border: 1px solid #cdd5d9; border-radius: 8px; padding: 8px 9px; }
  .phone-link > .icon { width: 19px; height: 19px; } .phone-desktop { display: none; } .phone-mobile { display: block; font-size: 16px; font-weight: 600; }
  main { display: block; flex: 1; padding: 4px 0 0; }
  .experience { display: block; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .intro-panel { background: none; color: var(--navy); padding: 4px 5px 18px; display: block; text-align: center; overflow: visible; }
  .intro-panel::before, .visit, .image-note { display: none; }
  .offer { font-size: 15px; padding: 0; gap: 7px; margin: 0 0 10px; border: 0; background: transparent; color: #6d4c18; justify-content: center; }
  .offer .offer-dot { background: #b47e24; width: 5px; height: 5px; }
  h1 { font-size: 34px; line-height: 1.03; margin: 0 0 10px; letter-spacing: -.032em; }
  h1 .gentle { display: inline; letter-spacing: -.045em; }
  h1 .emphasis { color: var(--navy); display: block; }
  .intro-copy { font-size: 18px; line-height: 1.35; max-width: 380px; margin: 0 auto; color: #536371; }
  .copy-desktop { display: none; } .copy-mobile { display: inline; }
  .form-panel { display: block; padding: 14px 20px 17px; border: 1px solid #e0e3e3; background: #fff; border-radius: 15px; box-shadow: 0 7px 26px -17px #183e4550; }
  .form-top { min-height: 34px; } .back { min-height: 36px; font-size: 16px; } .step-name { font-size: 15px; } .step-count { font-size: 14px; margin-left: 7px; }
  .progress-track { height: 4px; gap: 5px; margin: 5px 0 18px; }
  .step h2 { font-size: 26px; line-height: 1.16; }
  .step .hint { font-size: 17px; margin: 7px 0 16px; line-height: 1.35; }
  .choices { gap: 9px; } .choice { min-height: 57px; border-radius: 9px; padding: 9px 12px; gap: 10px; font-size: 19px; } .choice .choice-icon { width: 29px; min-width: 29px; } .choice .choice-icon .icon { width: 26px; height: 26px; }
  .form-foot { font-size: 15px; padding-top: 18px; margin: 0; }
  .footer { min-height: 35px; justify-content: center; font-size: 12px; padding: 6px 0 5px; } .footer .footer-right { gap: 14px; } .footer .footer-mark { display: none; } .footer .text-link { font-size: 13px; min-height: 32px; padding: 2px; }
  body[data-stage]:not([data-stage=project]) .intro-panel { display: none; }
  body[data-stage]:not([data-stage=project]) main { display: flex; align-items: center; padding: 5px 0 12px; }
  body[data-stage]:not([data-stage=project]) .context-mobile { display: flex; align-items: center; justify-content: center; gap: 7px; color: #4a6070; font-size: 16px; margin: 0 0 15px; }
  .context-mobile .icon { width: 18px; height: 18px; }
  body[data-stage]:not([data-stage=project]) .form-panel { padding-top: 16px; padding-bottom: 22px; }
  .field { margin-bottom: 18px; } .field label { font-size: 18px; } .field input { height: 58px; font-size: 21px; }
  .primary { min-height: 57px; font-size: 19px; }
  .legal-links { margin-top: 6px; }
  .calendar-month { font-size: 18px; } .calendar-nav { gap: 6px; } .days { gap: 7px; margin-bottom: 16px; } .day { min-height: 71px; font-size: 16px; } .day strong { font-size: 25px; } .time { min-height: 50px; font-size: 17px; } .times { gap: 7px; margin-bottom: 16px; }
}
@media (max-width: 760px) and (max-height: 840px) {
  .logo-wide { height: 44px; }
  .header { min-height: 69px; } .logo { width: 53px; height: 53px; } .brand-name { font-size: 17px; } .brand-name span { font-size: 10px; }
  main { padding-top: 0; } .intro-panel { padding: 3px 4px 14px; } .offer { font-size: 14px; margin-bottom: 8px; } h1 { font-size: 30px; margin-bottom: 8px; } .intro-copy { font-size: 17px; line-height: 1.3; max-width: 355px; }
  .form-panel { padding: 10px 17px 14px; } .form-top { min-height: 30px; } .back { min-height: 32px; } .progress-track { margin: 4px 0 13px; } .step h2 { font-size: 25px; } .step .hint { margin: 5px 0 13px; font-size: 16px; } .choice { min-height: 53px; font-size: 18px; } .choices { gap: 8px; } .footer { min-height: 31px; padding-top: 3px; padding-bottom: 2px; }
  body[data-stage]:not([data-stage=project]) .form-panel { padding-top: 12px; padding-bottom: 17px; } .field { margin-bottom: 15px; } .day { min-height: 66px; } .days { margin-bottom: 13px; } .time { min-height: 48px; } .times { margin-bottom: 12px; } .selected-summary { margin-bottom: 10px; } .calendar-head { margin-bottom: 8px; } .step[data-step=calendar] .hint { margin-bottom: 11px; }
  h1 .gentle { display: none; }
  .form-foot { display: none !important; }
  body[data-stage]:not([data-stage=project]) .context-mobile { display: none !important; }
  body[data-stage]:not([data-stage=project]) .back { min-height: 44px; }
  body[data-stage=project] .intro-panel { padding-bottom: 9px; }
  body[data-stage=project] .progress-track { margin-bottom: 9px; }
  .step[data-step=project] .hint { margin-top: 5px; margin-bottom: 9px; line-height: 1.2; }
  .step[data-step=phone] .hint { display: none; }
  .step[data-step=phone] h2 { margin-bottom: 12px; }
  .consent { margin-bottom: 14px; }
  .complete-header h2 { font-size: 24px; }
}
@media (max-width: 760px) and (max-height: 680px) {
  .logo-wide { height: 38px; }
  .page { padding: 0 12px; } .header { min-height: 57px; } .logo { width: 43px; height: 43px; } .brand-name { font-size: 15px; } .brand-name span { font-size: 9px; margin-top: 4px; } .phone-link { padding: 6px; min-height: 44px; min-width: 44px; } .phone-mobile { font-size: 15px; }
  .intro-panel { padding: 2px 3px 10px; } .offer { font-size: 13px; margin-bottom: 5px; } h1 { font-size: 27px; margin-bottom: 7px; } .intro-copy { font-size: 16px; line-height: 1.25; max-width: 310px; }
  .form-panel { padding: 7px 14px 11px; } .progress-track { margin: 2px 0 11px; } .form-top, .back { min-height: 28px; } .step-name { font-size: 14px; } .step-count { font-size: 13px; } .step h2 { font-size: 23px; } .step .hint { font-size: 16px; margin: 4px 0 11px; } .choices { gap: 7px; } .choice { min-height: 49px; font-size: 17px; padding: 8px 10px; gap: 8px; } .choice .choice-icon .icon { width: 24px; height: 24px; } .footer { min-height: 26px; padding: 1px 0; } .footer .text-link { min-height: 26px; font-size: 12px; }
  body[data-stage]:not([data-stage=project]) .form-panel { padding: 9px 14px 13px; } body[data-stage]:not([data-stage=project]) main { padding: 4px 0 7px; }
  .primary { min-height: 52px; font-size: 18px; } .legal-links { margin-top: 3px; } .legal-links .text-link { min-height: 34px; font-size: 15px; } .field { margin-bottom: 13px; } .field label { margin-bottom: 5px; } .field input { height: 53px; } .day { min-height: 58px; } .day strong { font-size: 23px; } .days { margin-bottom: 10px; } .calendar-head { margin-bottom: 6px; } .icon-button { width: 42px; height: 42px; } .times { margin-bottom: 10px; } .time { min-height: 45px; font-size: 16px; } .time-label { margin-bottom: 7px; } .selected-summary { margin-bottom: 9px; min-height: 21px; font-size: 15px; } .step[data-step=calendar] .hint { font-size: 16px; margin-bottom: 9px; } .appointment-summary { padding: 13px; margin-bottom: 13px; }
  .consent label { font-size: 14px; line-height: 1.32; }
}
@media (max-width: 350px) { .brand { gap: 8px; } .brand-name { font-size: 15px; } .brand-name span { font-size: 9px; } .phone-mobile { display: none; } .page { padding-left: 12px; padding-right: 12px; } .form-panel { padding-left: 14px; padding-right: 14px; } .choice { font-size: 17px; } .step h2 { font-size: 23px; } .time { font-size: 16px; } }
/* ---- the flow after the phone number (Noah's mockups) ------------------------ */
.contact-consent { margin: 0 0 16px; color: #526371; font-size: 15px; line-height: 1.38; }
.grace-note { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; background: var(--gold-light); border: 1px solid var(--gold-soft); border-radius: 10px; color: #3b3220; font-size: 16px; line-height: 1.38; }
.grace-note .icon { color: var(--gold-deep); width: 21px; height: 21px; margin-top: 1px; }
.grace-note strong { color: var(--navy); }
.not-sure { display: block; margin: 14px 0 0; padding: 4px 0; min-height: 44px; background: none; border: 0; color: var(--navy); font-size: 16px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.done-step { text-align: left; }
.done-mark { width: 64px; height: 64px; margin: 4px auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e2f0e6; color: #2f6b45; }
.done-mark .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.done-step h2 { text-align: center; font-size: 30px; }
.done-lede { text-align: center; color: #3f5160; font-size: 18px; line-height: 1.45; margin: 10px 0 20px; }
.contact-card { background: var(--gold-light); border: 1px solid var(--gold-soft); border-radius: 12px; padding: 16px; margin: 0 0 22px; }
.contact-card p { margin: 10px 0 14px; font-size: 16px; color: #3b3220; }
.contact-card .grace-line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 16px; line-height: 1.4; }
.contact-card .grace-line .icon { color: var(--gold-deep); width: 21px; height: 21px; margin-top: 1px; flex-shrink: 0; }
.contact-card .grace-line strong { color: var(--navy); white-space: nowrap; }
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-row strong { display: block; color: var(--navy); font-size: 18px; }
.contact-row small { display: block; color: #4f5c62; font-size: 15px; }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; overflow: hidden; }
.avatar .icon { width: 22px; height: 22px; }
.avatar--lg { width: 78px; height: 78px; flex-basis: 78px; background: #e3e7eb; color: #7a8792; }
.avatar--lg .icon { width: 34px; height: 34px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.done-h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.next-list { list-style: none; counter-reset: n; margin: 0 0 22px; padding: 0; }
.next-list li { counter-increment: n; display: flex; gap: 12px; margin: 0 0 12px; font-size: 17px; line-height: 1.4; color: #2b3d4b; }
.next-list li::before { content: counter(n); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.video-card { display: flex; align-items: center; gap: 14px; border: 1px solid #dfe5e9; border-radius: 12px; padding: 12px; }
.video-thumb { width: 96px; height: 72px; flex: 0 0 96px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; object-fit: cover; }
.video-thumb .icon { width: 28px; height: 28px; }
.video-card strong { display: block; color: var(--navy); font-size: 17px; }
.video-card small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.appt-card { background: var(--navy); color: #fff; border-radius: 14px; padding: 18px 16px 16px; margin: 16px 0 16px; }
.appt-row { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: 17px; line-height: 1.35; }
.appt-row .icon { color: var(--gold); width: 22px; height: 22px; margin-top: 2px; }
.appt-row strong { display: block; font-size: 21px; }
.appt-row small { display: block; font-size: 16px; color: #dbe4ea; }
.appt-card .primary { margin-top: 6px; }
.check-list { list-style: none; margin: 0 0 20px; padding: 0; }
.check-list li { display: flex; gap: 11px; margin: 0 0 11px; font-size: 17px; line-height: 1.4; color: #2b3d4b; }
.check-list .icon { color: #2f6b45; width: 20px; height: 20px; margin-top: 3px; stroke-width: 2.2; }
.owner-card { display: flex; gap: 14px; align-items: center; border: 1px solid #dfe5e9; border-radius: 12px; padding: 14px; margin: 0 0 14px; }
.owner-card strong { display: block; color: var(--navy); font-size: 17px; }
.owner-card em { display: block; font-style: normal; color: #3f5160; font-size: 16px; line-height: 1.4; margin-top: 2px; }
/* The calendar's "Free home visit · About 1 hour" is already said beside it
   (desktop) or above it (the banner on a phone). */
.step[data-step=calendar] .hint { display: none; }
.step[data-step=calendar] h2 { margin-bottom: 14px; }
@media (min-width: 761px) and (max-height: 860px) {
  .step[data-step=calendar] .grace-note { padding: 10px 12px; margin-bottom: 12px; font-size: 15px; }
  .step[data-step=calendar] .day { min-height: 60px; }
  .step[data-step=calendar] .days, body[data-stage=calendar] .progress-track { margin-bottom: 12px; }
  .step[data-step=calendar] .times { margin-bottom: 8px; }
  .step[data-step=calendar] .selected-summary { margin-bottom: 6px; }
  .not-sure { margin-top: 4px; }
}
/* The end screens are allowed to be taller than the phone: the form is done. */
body[data-stage=texting] .form-top, body[data-stage=texting] .progress-track, body[data-stage=texting] .context-mobile { display: none !important; }
body[data-stage=texting] .phone-link, body[data-stage=complete] .phone-link { display: none; }
@media (max-width: 760px) {
  /* The navy banner over the card on every step after the first. */
  body[data-stage]:not([data-stage=project]):not([data-stage=texting]):not([data-stage=complete]) .context-mobile { display: flex !important; align-items: center; gap: 12px; margin: 0 -21px 12px; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 14px 14px 0 0; text-align: left; }
  .context-mobile .icon { width: 24px; height: 24px; color: var(--gold); }
  .context-mobile strong { display: block; font-size: 17px; }
  .context-mobile small { display: block; font-size: 13.5px; color: #dbe4ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .context-mobile > span { min-width: 0; }
  body[data-stage]:not([data-stage=project]) .form-panel { padding-top: 0 !important; overflow: hidden; }
  body[data-stage=texting] main, body[data-stage=complete] main { align-items: flex-start; }
  body[data-stage=texting] .form-panel, body[data-stage=complete] .form-panel { padding-top: 18px !important; }
  /* The calendar: everything on one screen, as in the mockup. */
  .step[data-step=calendar] h2 { margin-bottom: 10px; }
  .step[data-step=calendar] .days { gap: 7px; margin-bottom: 12px; }
  .step[data-step=calendar] .day { min-height: 62px; }
  .step[data-step=calendar] .day strong { font-size: 23px; }
  .step[data-step=calendar] .times { margin-bottom: 10px; }
  .step[data-step=calendar] .selected-summary { margin-bottom: 8px; }
  .calendar-head { margin-bottom: 8px; }
  .not-sure { margin-top: 8px; }
  .phone-link { border: 0; padding: 4px 0; }
  .phone-mobile { font-size: 16px; font-weight: 650; color: var(--navy); }
}
@media (max-width: 760px) and (max-height: 700px) {
  .context-mobile small { display: none; }
  body[data-stage]:not([data-stage=project]) .context-mobile { padding: 9px 14px; margin-bottom: 10px; }
  .grace-note { font-size: 15px; padding: 9px 11px; margin-bottom: 10px; }
  .step[data-step=calendar] .hint, .step[data-step=address] .hint { margin-bottom: 8px; }
  .not-sure { margin-top: 6px; font-size: 15px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  body[data-stage]:not([data-stage=project]):not([data-stage=texting]):not([data-stage=complete]) .context-mobile { display: none !important; }
  body[data-stage]:not([data-stage=project]) .form-panel { padding-top: 8px !important; }
  .step[data-step=calendar] .hint { display: none; }
}

/* The calendar on shorter phones: the banner gives way (the note under the
   heading says the same), then spacing tightens. */
@media (max-width: 760px) and (max-height: 830px) {
  html body[data-stage=calendar]:not([data-stage=project]):not([data-stage=texting]):not([data-stage=complete]) .context-mobile { display: none !important; }
  body[data-stage=calendar] .form-panel { padding-top: 10px !important; }
}
@media (max-width: 760px) and (max-height: 680px) {
  body[data-stage=calendar] .form-top { min-height: 30px; }
  body[data-stage=calendar] .progress-track { margin-bottom: 10px; }
  .step[data-step=calendar] h2 { font-size: 23px; margin-bottom: 8px; }
  .step[data-step=calendar] .grace-note { font-size: 15px; line-height: 1.32; padding: 8px 10px; margin-bottom: 8px; }
  .step[data-step=calendar] .calendar-head { margin-bottom: 6px; }
  .step[data-step=calendar] .icon-button { width: 42px; height: 42px; }
  .step[data-step=calendar] .day { min-height: 56px; }
  .step[data-step=calendar] .days { margin-bottom: 8px; }
  .step[data-step=calendar] .time-label { margin-bottom: 6px; }
  .step[data-step=calendar] .times { margin-bottom: 8px; }
  .step[data-step=calendar] .selected-summary { display: none; }
  .not-sure { margin-top: 2px; font-size: 15px; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .step[data-step=calendar] .grace-note .icon { display: none; }
  .step[data-step=calendar] .grace-note { font-size: 14.5px; }
  .step[data-step=calendar] .day { min-height: 52px; } .step[data-step=calendar] .day strong { font-size: 21px; }
  .step[data-step=calendar] .primary { min-height: 50px; }
  .step[data-step=calendar] .time-label { display: none; }
}
@media (min-width: 761px) and (max-height: 720px) {
  .step[data-step=calendar] h2 { margin-bottom: 10px; }
  .step[data-step=calendar] .selected-summary { display: none; }
}

/* The offer from the ad: the first thing they should see, so it matches the
   ad they tapped. A solid gold pill, large and bold, on every screen size. */
.offer { background: var(--gold); color: var(--on-gold); border: 0; border-radius: 999px; padding: 9px 18px; font-size: 22px; font-weight: 700; line-height: 1.2; box-shadow: 0 6px 18px -8px #0008; }
.offer .offer-dot { display: none; }
@media (min-width: 761px) and (max-height: 720px) { .offer { font-size: 19px; padding: 7px 15px; } }
@media (max-width: 760px) {
  .offer { display: inline-flex; background: var(--gold); color: var(--on-gold); padding: 7px 16px; margin: 0 0 12px; font-size: 20px; line-height: 1.2; box-shadow: none; text-align: center; }
}
@media (max-width: 760px) and (max-height: 840px) { .offer { font-size: 19px; padding: 6px 14px; margin-bottom: 9px; } }
@media (max-width: 760px) and (max-height: 680px) { .offer { font-size: 17px; padding: 5px 12px; margin-bottom: 6px; } }
@media (max-width: 760px) and (max-height: 600px) { .offer { font-size: 16px; padding: 4px 11px; margin-bottom: 5px; } }

/* Errors and the long SMS wording are the tallest moments: the hint makes
   room for them, and on a phone the card's own legal links give way to the
   identical ones in the page footer. */
.step:has([aria-invalid=true]) .hint, .step:has(.consent-wrap.invalid) .hint { display: none; }
.step:has([aria-invalid=true]) h2, .step:has(.consent-wrap.invalid) h2 { margin-bottom: 12px; }
@media (max-width: 760px) {
  .step[data-step=phone] .legal-links { display: none; }
  .form-foot { display: none !important; }
}
@media (min-width: 761px) and (max-height: 860px) {
  .step[data-step=phone] .hint { display: none; }
  .step[data-step=phone] h2 { margin-bottom: 14px; }
  .step:has([aria-invalid=true]) .field { margin-bottom: 12px; }
}
@media (max-width: 760px) and (max-height: 680px) {
  .address-ok { display: none !important; }
  .step[data-step=project] .hint { display: none; }
  .step[data-step=project] h2 { margin-bottom: 10px; }
  .choices { gap: 6px; } .choice { min-height: 48px; }
  .step[data-step=phone] .field { margin-bottom: 10px; }
  .error { margin-top: 4px; font-size: 15px; }
  .step[data-step=about] .hint { display: none; }
  .step[data-step=about] h2 { margin-bottom: 10px; }
  .consent { margin-bottom: 10px; }
}

/* The shortest phones (an older Android with its browser bars, ~560px). */
@media (max-width: 760px) and (max-height: 600px) {
  .header { min-height: 50px; } .logo { width: 38px; height: 38px; } .brand-name { font-size: 14px; } .phone-link { min-height: 40px; padding: 4px 6px; }
  .intro-panel { padding: 0 3px 8px; } h1 { font-size: 25px; margin-bottom: 5px; } .offer { margin-bottom: 3px; }
  .form-panel { padding: 6px 13px 10px; } .progress-track { margin: 2px 0 9px; }
  .step h2 { font-size: 21px; }
  .field label { margin-bottom: 3px; font-size: 17px; } .field input { height: 50px; }
  .primary { min-height: 50px; }
  .step:has([aria-invalid=true]) .field, .step:has(.consent-wrap.invalid) .field { margin-bottom: 8px; }
  .consent label { font-size: 13.5px; line-height: 1.28; }
  .consent-wrap .error { margin: -6px 0 8px 37px; }
  body[data-stage]:not([data-stage=project]) main { padding: 2px 0 3px; }
  .footer { min-height: 24px; }
}

/* Never clip essential content to meet a fixed height: short landscape views,
   browser keyboards and enlarged text keep natural vertical scrolling. */
@media (max-height: 450px) { .header { min-height: 52px; } .intro-panel h1 { font-size: 27px; } body[data-stage]:not([data-stage=project]) main { align-items: flex-start; } .context-mobile { display: none !important; } }
body[data-stage=complete] .form-top, body[data-stage=complete] .progress-track, body[data-stage=complete] .context-mobile { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- thank-you fallback, terms, privacy ---------------------------------------- */
.top { background: var(--navy); color: #fff; padding: .75rem 1rem; }
.top .wrap { display: flex; align-items: center; gap: .75rem; }
.top img { width: 44px; height: 44px; border-radius: 6px; }
.wordmark { font-weight: 700; letter-spacing: .05em; color: #fff; }
.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
section:not(.step) { padding: 2rem 0; }
.prose h1 { font-size: 34px; color: var(--navy); letter-spacing: -.02em; }
.prose h2 { font-size: 24px; margin-top: 1.5em; color: var(--navy); }
.prose a { color: var(--link); }
.hero { background: var(--navy); color: #fff; padding: 1.5rem 0 1.75rem; }
.hero h1 { font-size: 34px; }
.thanks .lede { font-size: 20px; margin: 0; }
.notice { background: #eef2f6; border-left: 6px solid var(--navy); padding: 1rem; border-radius: 6px; margin: 0 0 1.25rem; }
.status { color: var(--red); font-weight: 700; margin: 0 0 1rem; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: .6rem 1rem; background: var(--navy); color: #fff; border: 0; border-radius: 9px; font-size: 20px; font-weight: 650; text-decoration: none; }
.confirm { border: 2px solid var(--navy); border-radius: 12px; padding: 1rem; margin: 0 0 1.25rem; background: #fff; }
.confirm .when { font-weight: 700; font-size: 20px; margin: 0 0 .75rem; }
.booked { border: 2px solid #315a40; background: #eaf3ec; border-radius: 12px; padding: 1.25rem; margin: 0 0 1.25rem; }
.video-ph { aspect-ratio: 9 / 16; max-width: 16rem; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 12px; padding: 1rem; margin: 0 auto; }
video { width: 100%; max-width: 16rem; border-radius: 12px; margin: 0 auto; display: block; }
footer:not(.footer) { background: var(--navy); color: #fff; padding: 1.5rem 0 2rem; font-size: 18px; }
footer:not(.footer) p { margin: 0 0 .5rem; }
footer:not(.footer) a { color: #fff; display: inline-block; min-height: 48px; line-height: 48px; margin-right: 1.25rem; }
footer:not(.footer) .ph { color: #3d3200; }
