/* Hallmark · macrostructure: Photographic (framed-form hero) · tone: confident-local · anchor hue: 112 (brand lime)
 * theme: brand, from shinesolutionsutah.com · nav: full-width header, transparent over the hero → smoked frosted glass once scrolled (logo needs a dark ground) · footer: Ft1 mast-headed
 * hero: H6 photographic · copy + form card inside the photo, centred on one line, ~1 screen tall, 4-up proof strip below · features: F5 annotated diagram · F1 bento (5 tiles)
 * enrichment: the client's own job photography + Tier-B hand SVG (window diagram, service-area map)
 * CTA: C4 sticky bottom bar (mobile; hides while the form is on screen)
 * audience: Washington County homeowners from Google Ads · use: free estimate (form or call)
 * fonts: Poppins + Lato are brand-mandated (client site), so slop gate 1 is waived on purpose
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5
 * Mobile-first: base = small screens; min-width queries add up (40rem · 60rem · 80rem).
 */

/* ───────────────────────── base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;  /* clears the fixed header */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
a { color: var(--color-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:active { color: var(--color-blue-2); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: var(--space-md); top: -4rem; z-index: var(--z-skip);
  background: var(--color-ink); color: var(--color-on-ink);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); text-decoration: none;
}
.skip:focus { top: var(--space-md); }

/* Content the client still has to supply */
[data-placeholder] { outline: 1px dashed color-mix(in oklch, var(--color-blue) 55%, transparent); outline-offset: 3px; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }

.h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}
.lede { font-size: var(--text-md); color: var(--color-muted); margin-top: var(--space-sm); max-width: var(--measure); }
.section-head { max-width: 40rem; }

/* ───────────────────────── buttons (8 states) ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 3.25rem; padding: 0 var(--space-lg);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn .i { width: 1.15rem; height: 1.15rem; }
.btn--sm { min-height: 2.75rem; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--color-lime); color: var(--color-on-lime);
  box-shadow: inset 0 -2px 0 var(--color-lime-3), 0 8px 18px -10px var(--color-shadow-3);
}
.btn--primary:hover { background: var(--color-lime-2); color: var(--color-on-lime); }
.btn--primary:active { background: var(--color-lime-3); transform: translateY(1px); box-shadow: inset 0 1px 0 var(--color-lime-3); }

.btn--ghost { background: var(--color-card); color: var(--color-ink); border-color: var(--color-field); }
.btn--ghost:hover { background: var(--color-paper-2); color: var(--color-ink); border-color: var(--color-ink); }
.btn--ghost:active { transform: translateY(1px); }

.btn--dark { background: var(--color-ink); color: var(--color-on-ink); }
.btn--dark:hover { background: var(--color-ink-2); color: var(--color-on-ink); }
.btn--dark:active { transform: translateY(1px); }

.btn--ghost-light {
  background: color-mix(in oklch, var(--color-overlay) 35%, transparent); color: var(--color-on-ink);
  border-color: color-mix(in oklch, var(--color-on-ink) 55%, transparent);
}
.btn--ghost-light:hover { background: color-mix(in oklch, var(--color-on-ink) 14%, transparent); color: var(--color-on-ink); border-color: var(--color-on-ink); }
.btn--ghost-light:active { transform: translateY(1px); }

.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn__spin { display: none; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.btn[data-state="loading"] { cursor: progress; }
.btn[data-state="loading"] .btn__spin { display: inline-block; animation: spin 700ms linear infinite; }
.btn[data-state="loading"] .i--arrow { display: none; }
.btn[data-state="error"] { background: var(--color-error); color: var(--color-on-ink); box-shadow: none; }
.btn[data-state="success"] { background: var(--color-success); color: var(--color-on-ink); box-shadow: none; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .btn[data-state="loading"] .btn__spin { animation-duration: 2s; } }

.link-cta {
  display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xl);
  font-family: var(--font-display); font-weight: 600; color: var(--color-ink);
  text-decoration: underline; text-decoration-color: var(--color-lime);
  text-decoration-thickness: 2px; text-underline-offset: 2px; white-space: nowrap;
}
.link-cta:hover, .link-cta:active { color: var(--color-ink); }
.link-cta:active { text-decoration-color: var(--color-lime-3); }
.link-cta .i { transition: transform var(--dur-fast) var(--ease-out); }
.link-cta:hover .i { transform: translateX(3px); }

/* ───────────────────────── nav · transparent over the hero → frosted sticky header on scroll ───────────────────────── */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-nav);
  padding-block: var(--space-sm);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
/* over the photo: a soft scrim keeps the logo and phone readable against bright sky */
.nav::before {
  content: ""; position: absolute; inset: 0 0 calc(-1 * var(--space-2xl)); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom,
    color-mix(in oklch, var(--color-overlay) 72%, transparent) 0%,
    color-mix(in oklch, var(--color-overlay) 45%, transparent) 55%,
    color-mix(in oklch, var(--color-overlay) 0%, transparent) 100%);
  transition: opacity var(--dur-base) var(--ease-out);
}
/* scrolled: smoked frosted glass (dark enough for the logo's white swoosh on any section) */
.nav.is-scrolled {
  background-color: color-mix(in oklch, var(--color-ink) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: color-mix(in oklch, var(--color-on-ink) 10%, transparent);
  box-shadow: 0 10px 30px -18px var(--color-shadow-3);
}
.nav.is-scrolled::before { opacity: 0; }
.nav__inner {
  max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.nav :focus-visible { outline-color: var(--color-focus-dark); }
.brand { display: block; border-radius: var(--radius-sm); }
.brand img { height: 2.25rem; width: auto; }
.nav__actions { display: flex; align-items: center; gap: var(--space-sm); }
.nav__phone, .nav__cta { display: none; }
.nav__phone {
  align-items: center; gap: var(--space-xs); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-on-ink);
  padding: var(--space-xs) var(--space-2xs);
}
.nav__phone:hover, .nav__phone:active { color: var(--color-lime); }

/* ───────────────────────── hero ───────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); --form-overlap: 1.75rem; }  /* phones/tablets: form card overlaps the photo by this much */
.hero__media { grid-area: 1 / 1; position: relative; display: block; height: clamp(19rem, 88vw, 26rem); overflow: hidden; background: var(--color-ink); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }  /* phones: squeegee + hand sit between the header and the rating */
.hero__media { --hero-tint: 28%; }  /* even dark wash over the whole photo so it sits back behind the copy and form */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      color-mix(in oklch, var(--color-overlay) 92%, transparent) 0%,
      color-mix(in oklch, var(--color-overlay) 62%, transparent) 34%,
      color-mix(in oklch, var(--color-overlay) 0%, transparent) 62%),
    linear-gradient(color-mix(in oklch, var(--color-overlay) var(--hero-tint), transparent), color-mix(in oklch, var(--color-overlay) var(--hero-tint), transparent));
}
.hero__head { grid-area: 1 / 1; align-self: end; position: relative; z-index: 1; padding: 0 var(--gutter) calc(var(--space-lg) + var(--form-overlap)); container-type: inline-size; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs); letter-spacing: 0.02em;
  color: var(--color-on-ink); white-space: nowrap;
  background: color-mix(in oklch, var(--color-overlay) 55%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-on-ink) 22%, transparent);
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 23rem) { .chip__more { display: none; } }
.chip__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-lime); box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-lime) 32%, transparent); }
.hero__title {
  margin-top: var(--space-md);
  font-size: clamp(1.75rem, 9.6cqi, 3.5rem); line-height: var(--leading-display); letter-spacing: var(--tracking-display);
  color: var(--color-on-ink);
}
.hl { color: var(--color-lime); }
/* Google rating badge: stars, the score and the Google G */
.rating-pill {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: 0;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-base); line-height: 1.3; color: var(--color-on-ink);
}
.rating-pill__stars { display: inline-flex; gap: var(--space-2xs); }
.rating-pill__stars svg { width: 1.25rem; height: 1.25rem; fill: var(--color-star); stroke: var(--color-star); stroke-width: 1.5; stroke-linejoin: round; }
.rating-pill__text { display: inline-flex; align-items: center; gap: var(--space-xs); }
.g-logo { width: 1.375rem; height: 1.375rem; flex: none; }
.hero__head .rating-pill { font-size: var(--text-sm); gap: var(--space-2xs) var(--space-xs); }
.hero__head .rating-pill__stars svg { width: 1rem; height: 1rem; }
.hero__head .g-logo { width: 1.125rem; height: 1.125rem; }
.rating-pill--light { margin-top: var(--space-md); justify-content: center; font-size: var(--text-sm); color: var(--color-text); }
.rating-pill--light .rating-pill__stars svg { width: 1rem; height: 1rem; }
.rating-pill--light .g-logo { width: 1.125rem; height: 1.125rem; }

/* phones + tablets: the body's children join the hero grid so the form sits right under the coupon, before the paragraph */
.hero__body { display: contents; }
.hero__body > .coupon { display: none; }
.hero__lede { order: 3; margin: var(--space-xl) var(--gutter) 0; }
/* offer coupon: paper ticket with a lime stub, a dashed tear line and a perforated (dashed) edge */
.coupon { max-width: 34rem; filter: drop-shadow(0 14px 24px var(--color-shadow-2)); }
.coupon__card {
  --stub: 6.5rem;
  position: relative; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr);
  background: var(--color-paper-3); background-clip: padding-box; color: var(--color-ink); overflow: hidden;
  border: 2px dashed color-mix(in oklch, var(--color-ink) 40%, transparent); border-radius: var(--radius-md);  /* perforated edge: gaps are see-through */
}
a.coupon__card { text-decoration: none; transition: transform var(--dur-fast) var(--ease-out); }
a.coupon__card:hover { transform: translateY(-2px); }
a.coupon__card:active { transform: translateY(0); }
a.coupon__card:focus-visible { outline: 3px solid var(--color-focus-dark); outline-offset: 3px; }
.coupon__stub {
  display: grid; place-content: center; justify-items: center; text-align: center;
  background: var(--color-lime); color: var(--color-on-lime); padding: var(--space-lg) var(--space-xs);
  border-right: 2px dashed color-mix(in oklch, var(--color-ink) 45%, transparent);
}
.coupon__amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 0.95; letter-spacing: var(--tracking-display); }
.coupon__upto { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; line-height: 1.2; }
.coupon__more { display: inline-flex; align-items: center; gap: var(--space-2xs); margin-top: var(--space-sm); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-lime-3); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.coupon__more .i { width: 1rem; height: 1rem; }
.coupon__off { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); letter-spacing: var(--tracking-label); text-transform: uppercase; line-height: 1.2; }
.coupon__body { padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-lg); }
.coupon__label {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  background: var(--color-ink); color: var(--color-lime); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-pill);
}
.coupon__title { text-wrap: balance; margin-top: var(--space-xs); font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.2; letter-spacing: var(--tracking-heading); color: var(--color-ink); }
.coupon__fine { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted); }

.hero__form { order: 2; padding: 0 var(--gutter); margin-top: calc(-1 * var(--form-overlap)); position: relative; z-index: 2; }

.hero__points {
  order: 4; list-style: none; margin: 0; padding: var(--space-2xl) var(--gutter) var(--space-3xl);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg);
}
.point { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-md); align-items: center; }
.point .i { width: 2.75rem; height: 2.75rem; padding: var(--space-sm); border-radius: 50%; background: var(--color-ink); color: var(--color-lime); }
.point strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--color-ink); line-height: 1.3; }
.point span { display: block; font-size: var(--text-sm); color: var(--color-muted); line-height: 1.4; }

/* entrance: one orchestrated load, nothing else animates on scroll */
@media (prefers-reduced-motion: no-preference) {
  .hero__head, .hero__body, .hero__form { animation: rise var(--dur-slow) var(--ease-out) both; }
  .hero__body { animation-delay: 70ms; }
  .hero__form { animation-delay: 140ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ───────────────────────── form ───────────────────────── */
.form {
  background: var(--color-card); border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  --pad-t: var(--space-lg); --pad-x: var(--space-md);
  padding: var(--pad-t) var(--pad-x);
}
/* phones + tablets: the offer as a tear-off ticket across the top of the form card */
.form__offer {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  margin: calc(-1 * var(--pad-t)) calc(-1 * var(--pad-x)) var(--space-md);
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; overflow: hidden;
  background: var(--color-paper-3);
  border-bottom: 2px dashed color-mix(in oklch, var(--color-ink) 28%, transparent);
}
.form__offer-stub {
  display: grid; place-content: center; justify-items: center; gap: var(--space-3xs); padding: var(--space-sm) var(--space-md);
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  background: var(--color-lime); color: var(--color-on-lime);
  border-right: 2px dashed color-mix(in oklch, var(--color-ink) 40%, transparent);
}
.form__offer-stub span { font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.form__offer-stub b { font-size: var(--text-xl); letter-spacing: var(--tracking-display); }
.form__offer-text { align-self: center; padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); line-height: 1.35; color: var(--color-muted); }
.form__offer-text strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--color-ink); }
.form__title { margin-top: var(--space-sm); font-size: var(--text-xl); line-height: 1.15; letter-spacing: var(--tracking-heading); }
.form__title:focus { outline: none; }
.form__panel > .form__title:first-child { margin-top: 0; }
.form__sub { margin-top: var(--space-2xs); color: var(--color-muted); font-size: var(--text-sm); text-wrap: balance; }
.form__fields { display: grid; gap: var(--space-md); margin: var(--space-md) 0 var(--space-lg); }

/* floating labels: the label sits inside the field like a placeholder, then shrinks up to the top-left
   when the field is focused or has a value (inputs use placeholder=" " so :placeholder-shown works; the select is "filled" once :valid) */
.field { position: relative; }
.field label {
  position: absolute; left: calc(var(--space-md) + 1px); top: 1.0625rem; z-index: 1; pointer-events: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.375rem; color: var(--color-muted);
  transform-origin: left top;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.field:focus-within label,
.field:has(input:not(:placeholder-shown)) label,
.field:has(select:valid) label {
  transform: translateY(-0.6875rem) scale(0.75); font-weight: 600; color: var(--color-ink);
}
/* doubled class = enough specificity to beat the "filled" rule above */
.field.field:focus-within label { color: var(--color-focus); }
.field.field:has([aria-invalid="true"]) label { color: var(--color-error); }
.field:has(select) .field__error { right: 2.75rem; }  /* clear the dropdown arrow */
.field input, .field select {
  width: 100%; min-height: 3.5rem; padding: 1.375rem var(--space-md) 0.375rem;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: var(--color-text);
  background: var(--color-paper); border: 1px solid var(--color-field); border-radius: var(--radius-sm);
  outline: 2px solid transparent; outline-offset: 1px;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.field ::placeholder { color: transparent; }
.field input:hover, .field select:hover { border-color: var(--color-ink-3); }
/* focus: the field's own border lights up (1px border + 1px inset ring = 2px, no layout shift, nothing outside the edge) */
.field input:focus, .field select:focus { outline: none; }
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid transparent;  /* still draws in Windows high-contrast mode */
  border-color: var(--color-focus); box-shadow: inset 0 0 0 1px var(--color-focus); background: var(--color-card);
}
.field [aria-invalid="true"]:focus-visible { border-color: var(--color-error); box-shadow: inset 0 0 0 1px var(--color-error); }
.field input:disabled, .field select:disabled { opacity: 0.55; cursor: not-allowed; }
.field [aria-invalid="true"] { border-color: var(--color-error); background: var(--color-error-wash); }
.field__error { position: absolute; top: 0.375rem; right: var(--space-md); z-index: 1; margin: 0; pointer-events: none; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs); line-height: 1.375rem; color: var(--color-error); }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: var(--space-md); top: 50%; width: 0.55rem; height: 0.55rem; pointer-events: none;
  border-right: 2px solid var(--color-ink); border-bottom: 2px solid var(--color-ink); transform: translateY(-70%) rotate(45deg);
}

.form__status { margin-top: var(--space-sm); font-size: var(--text-sm); }
.form__status:empty { margin-top: 0; }
.form__status.is-error { color: var(--color-error); }
.form__status a { color: inherit; font-weight: 700; white-space: nowrap; }
.form__alt { margin-top: var(--space-md); text-align: center; font-size: var(--text-sm); color: var(--color-muted); }
.form__alt a { white-space: nowrap; font-weight: 700; }
.form__rating { margin-top: var(--space-md); }

/* two-step flow: progress row, back link */
.form__progress { display: flex; align-items: center; gap: var(--space-sm); min-height: 1.75rem; margin-bottom: var(--space-sm); }
.form__step {
  margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted);
}
.form__bar { display: inline-flex; gap: var(--space-2xs); }
.form__bar span { width: 1.5rem; height: 0.25rem; border-radius: var(--radius-pill); background: var(--color-rule); }
.form__bar span:first-child, .form[data-step="2"] .form__bar span { background: var(--color-ink); }
.form__back {
  display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink);
}
.form__back .i { width: 1rem; height: 1rem; transform: rotate(180deg); }
.form__back:hover { color: var(--color-blue); }
.form__back:active { color: var(--color-blue-2); }
@media (prefers-reduced-motion: no-preference) {
  .form.is-stepped .form__panel { animation: step-in var(--dur-base) var(--ease-out); }
}
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } }

/* step 1: tap tiles (radio group) */
.choice { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-xs); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink); }
.choice .field__error { top: 0; right: 0; }
.choice__options { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__opt span {
  display: grid; place-content: center; justify-items: center; min-height: 3.5rem; padding: var(--space-xs);
  font-size: var(--text-xs); line-height: 1.2; color: var(--color-muted); text-align: center;
  background: var(--color-paper); border: 1px solid var(--color-field); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.choice__opt b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.1; color: var(--color-ink); }
.choice__opt:hover span { border-color: var(--color-ink-3); }
.choice__opt input:checked + span { border-color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); background: var(--color-lime-wash); color: var(--color-ink); }
.choice__opt input:focus-visible + span { border-color: var(--color-focus); box-shadow: inset 0 0 0 1px var(--color-focus); }
.choice[data-invalid] .choice__opt span { border-color: var(--color-error); background: var(--color-error-wash); }
.choice[data-invalid] legend { color: var(--color-error); }

/* step 2: optional text-message consent, kept readable (not hidden) next to the phone field and the button */
.consent { display: grid; gap: var(--space-xs); margin: 0 0 var(--space-lg); }
.consent__check { display: flex; align-items: flex-start; gap: var(--space-sm); padding-block: var(--space-3xs); font-size: var(--text-sm); line-height: 1.4; color: var(--color-text); cursor: pointer; }
.consent__check input { flex: none; width: 1.125rem; height: 1.125rem; margin: var(--space-3xs) 0 0; accent-color: var(--color-ink); cursor: pointer; }
.consent__check input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.consent__fine { margin-top: var(--space-2xs); font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted); }
.consent__fine a { color: inherit; font-weight: 700; white-space: nowrap; }
.consent__fine a:hover { color: var(--color-ink); }
.stars { color: var(--color-star); letter-spacing: 0.08em; }

.form__done { text-align: center; padding: var(--space-lg) 0 var(--space-xs); }
.form__done-icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto var(--space-md);
  border-radius: 50%; background: var(--color-lime); color: var(--color-ink);
}
.form__done-icon .i { width: 1.75rem; height: 1.75rem; stroke-width: 2.5; }
.form__done-text { margin: var(--space-xs) 0 var(--space-lg); color: var(--color-muted); }

/* ───────────────────────── crew · real team photo ───────────────────────── */
.crew { padding-block: var(--space-3xl); background: var(--color-paper-2); }
.crew__grid { display: grid; gap: var(--space-2xl); align-items: center; }
.crew__media { margin: 0; }
.crew__photo { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-paper-3); box-shadow: var(--shadow-lg); }
.crew__photo img { width: 100%; height: 100%; object-fit: cover; }
/* reviewers keep naming Dyllin; the caption puts a face to the name */
.crew__media figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.crew__media figcaption strong { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); }
.crew__text .ticks { margin-top: var(--space-lg); }

/* ───────────────────────── plans · recurring discounts ───────────────────────── */
.plans { padding-block: var(--space-3xl); background: var(--color-paper); }
.plans__grid { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; gap: var(--space-md); }
.plan {
  display: flex; flex-direction: column; background: var(--color-card);
  border: 1px solid var(--color-rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); }
.plan__amount { margin-top: var(--space-xs); font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.plan__per { margin-top: var(--space-2xs); font-family: var(--font-display); font-weight: 600; color: var(--color-ink); }
.plan__perks { list-style: none; margin: var(--space-lg) 0 var(--space-xl); padding: var(--space-lg) 0 0; border-top: 1px solid var(--color-rule); display: grid; gap: var(--space-sm); }
.plan__perks li { display: flex; align-items: center; gap: var(--space-sm); }
.plan__perks .i { width: 1.5rem; height: 1.5rem; padding: 0.25rem; border-radius: 50%; stroke-width: 2.5; }
.plan__perks .is-in { color: var(--color-text); }
.plan__perks .is-in .i { background: var(--color-lime); color: var(--color-ink); }
.plan__perks .is-out { color: var(--color-muted); text-decoration: line-through; text-decoration-color: color-mix(in oklch, var(--color-muted) 60%, transparent); }
.plan__perks .is-out .i { background: var(--color-paper-3); color: var(--color-muted); }
.plan .btn { margin-top: auto; }
.plans__note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.plans__note a { font-weight: 700; white-space: nowrap; }

/* ───────────────────────── proof · hard water ───────────────────────── */
.proof { padding-block: var(--space-3xl); background: var(--color-paper-2); }
.proof__grid { display: grid; gap: var(--space-2xl); }
.proof__media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; max-height: 36rem; }
.proof__media picture, .proof__media img { width: 100%; height: 100%; }
.proof__media img { object-fit: cover; }
.proof__tag {
  position: absolute; left: var(--space-md); right: var(--space-md); bottom: var(--space-md);
  font-size: var(--text-sm); line-height: 1.4; color: var(--color-on-ink);
  background: color-mix(in oklch, var(--color-overlay) 72%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md);
}
.proof__text > p:not(.lede) { margin-top: var(--space-md); max-width: var(--measure); }
.ticks { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.ticks li { display: flex; align-items: center; gap: var(--space-sm); font-weight: 700; color: var(--color-ink); }
.ticks .i { width: 2.25rem; height: 2.25rem; padding: var(--space-xs); border-radius: 50%; background: var(--color-card); border: 1px solid var(--color-rule); color: var(--color-ink); }

/* ───────────────────────── included · annotated window ───────────────────────── */
.included { padding-block: var(--space-3xl); }
.included__grid { display: grid; gap: var(--space-xl); margin-top: var(--space-2xl); align-items: center; }
.diagram {
  margin: 0; padding: var(--space-lg); background: var(--color-paper-3);
  border-radius: var(--radius-lg);
}
.diagram__svg { width: 100%; height: auto; max-width: 30rem; margin-inline: auto; }
.dg-frame { fill: var(--color-card); stroke: var(--color-ink); stroke-width: 3; }
.dg-glass { fill: var(--color-glass); stroke: var(--color-ink); stroke-width: 2; }
.dg-mesh { fill: none; stroke: var(--color-muted); stroke-width: 0.7; opacity: 0.5; }
.dg-screen { stroke: none; }
.dg-rail { fill: var(--color-card); stroke: var(--color-ink); stroke-width: 2; }
.dg-glint { fill: none; stroke: var(--color-card); stroke-width: 7; stroke-linecap: round; opacity: 0.9; }
.dg-spots circle { fill: none; stroke: var(--color-muted); stroke-width: 1.4; opacity: 0.75; }
.dg-track { fill: var(--color-paper-3); stroke: var(--color-ink); stroke-width: 2; }
.dg-track-line { stroke: var(--color-rule-2); stroke-width: 2; stroke-dasharray: 2 6; }
.dg-sill { fill: var(--color-paper-2); stroke: var(--color-ink); stroke-width: 3; }
.dg-sill-shadow { stroke: var(--color-shadow-2); stroke-width: 5; stroke-linecap: round; }
.dg-pin circle { fill: var(--color-lime); stroke: var(--color-ink); stroke-width: 2; }
.dg-pin text { font-family: var(--font-display); font-weight: 600; font-size: 14px; fill: var(--color-ink); text-anchor: middle; }

.parts { list-style: none; margin: 0; padding: 0; counter-reset: part; }
.parts li {
  counter-increment: part; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--space-md);
  padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule);
}
.parts li:first-child { border-top: 1px solid var(--color-rule); }
.parts li::before {
  content: counter(part); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--color-lime); border: 2px solid var(--color-ink);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink);
}
.parts strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--color-ink); line-height: 1.3; }
.parts span { display: block; color: var(--color-muted); }

.guarantee {
  display: flex; align-items: flex-start; gap: var(--space-md); margin-top: var(--space-2xl);
  background: var(--color-ink); color: var(--color-on-ink-muted);
  border-radius: var(--radius-md); padding: var(--space-lg);
}
.guarantee .i { width: 2.25rem; height: 2.25rem; color: var(--color-lime); }
.guarantee strong { color: var(--color-on-ink); font-family: var(--font-display); font-weight: 600; }

/* ───────────────────────── recent work ───────────────────────── */
.work { padding-block: var(--space-3xl); background: var(--color-paper-2); }
.work__head { display: grid; gap: var(--space-2xs); }
.work__head .lede { margin-top: 0; }
.work__grid {
  list-style: none; margin: var(--space-xl) 0 0; padding: 0 var(--gutter) var(--space-2xs);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 20rem); gap: var(--space-sm);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.work__grid::-webkit-scrollbar { display: none; }
.work__grid:focus-visible { outline-offset: -3px; border-radius: var(--radius-md); }
.work__grid li { scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--color-paper-3); }
.work__grid picture, .work__grid img { width: 100%; height: 100%; }
.work__grid img { object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .work__grid li:hover img { transform: scale(1.035); } }

/* ───────────────────────── price ───────────────────────── */
.price { padding-block: var(--space-3xl); }
.price__grid { display: grid; gap: var(--space-2xl); }
.price__intro .btn { margin-top: var(--space-lg); }
.factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.factors li {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-md); align-items: start;
  padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule);
}
.factors li:first-child { border-top: 1px solid var(--color-rule); }
.factors .i { width: 2.75rem; height: 2.75rem; padding: var(--space-sm); border-radius: var(--radius-sm); background: var(--color-paper-3); color: var(--color-ink); }
.factors strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--color-ink); line-height: 1.3; }
.factors span { display: block; color: var(--color-muted); }

/* ───────────────────────── steps ───────────────────────── */
.steps { padding-block: var(--space-3xl); background: var(--color-paper-2); }
.steps__list { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; gap: var(--space-xl); counter-reset: step; }
.steps__list li { counter-increment: step; position: relative; padding-left: 4rem; }
.steps__list li::before {
  content: counter(step); position: absolute; left: 0; top: calc(-1 * var(--space-3xs));
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--color-lime); border: 2px solid var(--color-ink);
  font-family: var(--font-display); font-weight: 600; color: var(--color-ink);
}
.steps__list li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.375rem - 1px); top: 3rem; bottom: calc(-1 * var(--space-xl) + var(--space-2xs));
  width: 2px; background: var(--color-rule-2);
}
.steps__list h3 { font-size: var(--text-lg); line-height: 1.25; }
.steps__list p { margin-top: var(--space-2xs); color: var(--color-muted); max-width: 26rem; }

/* ───────────────────────── reviews (dark) · right after the hero ───────────────────────── */
.reviews { padding-block: var(--space-3xl); background: var(--color-ink); color: var(--color-on-ink); }
.reviews .h2 { color: var(--color-on-ink); }
.reviews .lede { color: var(--color-on-ink-muted); }
.reviews :focus-visible { outline-color: var(--color-focus-dark); }
.reviews__top { display: grid; gap: var(--space-md); margin-top: var(--space-2xl); }

/* score card: the number does the talking */
.score {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-2xs); align-content: start;
  background: var(--color-ink-2); border: 1px solid var(--color-ink-3); border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.score__num {
  grid-row: 1 / span 2; align-self: center;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(3.5rem, 2.75rem + 2.5vw, 5rem); line-height: 1;
  letter-spacing: var(--tracking-display); color: var(--color-lime);
}
.score__stars { align-self: end; color: var(--color-star); font-size: var(--text-lg); letter-spacing: 0.08em; line-height: 1.2; }
.score__count { align-self: start; font-family: var(--font-display); font-weight: 600; color: var(--color-on-ink); }
.score__label { grid-column: 1 / -1; margin-top: var(--space-lg); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-on-ink-muted); }
.score__tags { grid-column: 1 / -1; list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.score__tags li {
  font-size: var(--text-sm); color: var(--color-on-ink); white-space: nowrap;
  padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); border: 1px solid var(--color-ink-3);
}
.score__link {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-lg);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-lime); white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.score__link:hover, .score__link:active { color: var(--color-on-ink); }
.score__link .i { width: 1rem; height: 1rem; transition: transform var(--dur-fast) var(--ease-out); }
.score__link:hover .i { transform: translateX(3px); }

/* review cards */
.quote {
  margin: 0; height: 100%; display: flex; flex-direction: column; gap: var(--space-sm);
  background: var(--color-ink-2); border: 1px solid var(--color-ink-3); border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.quote blockquote { margin: 0; }
.quote__stars { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); color: var(--color-star); font-size: var(--text-sm); letter-spacing: 0.08em; }
.quote__stars .g-logo { width: 1.125rem; height: 1.125rem; }
.quote p:not(.quote__stars) { font-size: var(--text-base); line-height: 1.55; color: var(--color-on-ink); }
.quote figcaption { display: flex; align-items: center; gap: var(--space-sm); margin-top: auto; padding-top: var(--space-md); font-size: var(--text-sm); color: var(--color-on-ink-muted); }
.quote figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--color-on-ink); }
.quote--featured { gap: var(--space-md); padding: var(--space-xl) var(--space-lg) var(--space-lg); }
.quote--featured .quote__stars { font-size: var(--text-md); }
.quote--featured p:not(.quote__stars) { font-family: var(--font-display); font-weight: 500; font-size: var(--text-quote); line-height: 1.38; letter-spacing: -0.012em; }
.avatar {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%;
  background: var(--color-lime); color: var(--color-on-lime);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
}

/* more reviews: a stacked, divided list on phones (every review shows as you scroll, like Google's own review feed);
   card grid from tablet up */
.reviews__grid { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
@media (max-width: 39.99rem) {
  .reviews__grid { gap: 0; margin-top: var(--space-lg); }
  .reviews__grid > li { border-top: 1px solid var(--color-ink-3); }
  .reviews__grid > li:last-child { border-bottom: 1px solid var(--color-ink-3); }
  .reviews__grid .quote { padding: var(--space-lg) 0; background: none; border: 0; border-radius: 0; }
  .reviews__grid .quote figcaption { padding-top: var(--space-xs); }
}
.reviews__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-2xl); }
.reviews__cta p { color: var(--color-on-ink-muted); font-size: var(--text-sm); }
.reviews__cta p a { color: var(--color-lime); font-weight: 700; white-space: nowrap; }
.reviews__cta p a:hover, .reviews__cta p a:active { color: var(--color-on-ink); }

/* ───────────────────────── service area ───────────────────────── */
.area { padding-block: var(--space-3xl); }
.area__grid { display: grid; gap: var(--space-2xl); align-items: center; }
.towns { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.towns li {
  display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap;
  padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-sm); border-radius: var(--radius-pill);
  background: var(--color-card); border: 1px solid var(--color-rule-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink);
}
.towns li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--color-lime); border: 2px solid var(--color-ink); }
.area__note { margin-top: var(--space-lg); color: var(--color-muted); }
.area__note a { white-space: nowrap; font-weight: 700; }

.map { margin: 0; }
.map__svg { width: 100%; height: auto; background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: var(--radius-lg); }
.map figcaption { margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); text-align: right; }
.map__contour { fill: none; stroke: var(--color-rule); stroke-width: 1.5; }
.map__area { fill: var(--color-lime-wash); stroke: var(--color-lime-3); stroke-width: 2; stroke-dasharray: 6 5; }
.map__road { fill: none; stroke: var(--color-rule-2); stroke-width: 3; stroke-linecap: round; }
.map__road--major { stroke: var(--color-muted); stroke-width: 4; }
.map__road--minor { stroke-width: 2; }
.map__roadlabel { font-family: var(--font-display); font-weight: 600; font-size: 11px; fill: var(--color-muted); letter-spacing: 0.04em; }
.map__town circle { fill: var(--color-lime); stroke: var(--color-ink); stroke-width: 2.5; }
.map__town--hub circle { stroke-width: 3; }
.map__town text {
  font-family: var(--font-display); font-weight: 600; font-size: 17px; fill: var(--color-ink);
  paint-order: stroke; stroke: var(--color-paper-2); stroke-width: 5px; stroke-linejoin: round;
}
.map__town--hub text { font-size: 18px; }
.map__north path { fill: var(--color-ink); }
.map__north text { font-family: var(--font-display); font-weight: 600; font-size: 11px; fill: var(--color-ink); }

/* ───────────────────────── faq ───────────────────────── */
.faq { padding-block: var(--space-3xl) var(--space-4xl); background: var(--color-paper-2); }
.faq__grid { display: grid; gap: var(--space-2xl); }
.help {
  margin-top: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-md);
  background: var(--color-card); border: 1px solid var(--color-rule); max-width: 24rem;
}
.help p { color: var(--color-muted); margin-bottom: var(--space-md); }
.help strong { color: var(--color-ink); font-family: var(--font-display); font-weight: 600; }
.faq__list details { border-bottom: 1px solid var(--color-rule-2); }
.faq__list details:first-child { border-top: 1px solid var(--color-rule-2); }
.faq__list summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 1.25rem 3.25rem 1.25rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.35; color: var(--color-ink);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--color-ink), var(--color-ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--color-ink), var(--color-ink)) center / 2px 12px no-repeat,
    var(--color-card);
  border: 1px solid var(--color-rule-2);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.faq__list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background:
    linear-gradient(var(--color-ink), var(--color-ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--color-ink), var(--color-ink)) center / 2px 12px no-repeat,
    var(--color-lime);
  border-color: var(--color-ink);
}
.faq__list summary:hover { color: var(--color-blue); }
.faq__list summary:active { color: var(--color-blue-2); }
.faq__list details p { padding-bottom: var(--space-lg); color: var(--color-muted); max-width: var(--measure); }
@media (prefers-reduced-motion: no-preference) {
  .faq__list details[open] p { animation: reveal var(--dur-base) var(--ease-out); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

/* ───────────────────────── close ───────────────────────── */
.close {
  position: relative; isolation: isolate; overflow: hidden; color: var(--color-on-ink);
  display: grid; align-content: end; min-height: 36rem;
  padding-block: var(--space-4xl) var(--space-3xl);
}
.close__media { position: absolute; inset: 0; z-index: -2; }
.close__media img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 30%; }
.close::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top,
      color-mix(in oklch, var(--color-overlay) 92%, transparent) 0%,
      color-mix(in oklch, var(--color-overlay) 74%, transparent) 42%,
      color-mix(in oklch, var(--color-overlay) 12%, transparent) 78%,
      color-mix(in oklch, var(--color-overlay) 0%, transparent) 100%);
}
.close__title {
  max-width: 14ch; color: var(--color-on-ink);
  font-size: var(--text-display-2); line-height: 1.04; letter-spacing: var(--tracking-display);
}
/* inline list: every item carries its separator in the gap; the one that starts a line hangs off the left edge and is clipped */
.close__sub { display: flex; flex-wrap: wrap; column-gap: var(--space-lg); overflow: hidden; margin-top: var(--space-md); color: var(--color-on-ink-muted); font-size: var(--text-md); }
.close__sub span { white-space: nowrap; margin-left: calc(-1 * var(--space-lg)); }
.close__sub span::before { content: "·"; display: inline-block; width: var(--space-lg); text-align: center; }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.close :focus-visible { outline-color: var(--color-focus-dark); }

/* ───────────────────────── footer · Ft1 ───────────────────────── */
.foot { background: var(--color-ink); color: var(--color-on-ink-muted); padding-block: var(--space-2xl); border-top: 1px solid var(--color-ink-3); }
.foot__inner { display: grid; gap: var(--space-lg); }
.foot__brand { display: inline-flex; width: fit-content; border-radius: var(--radius-sm); }
.foot__brand img { height: 2.75rem; width: auto; }
.foot__text { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.foot a { color: var(--color-lime); white-space: nowrap; }
.foot a:hover { color: var(--color-on-ink); }
.foot :focus-visible { outline-color: var(--color-focus-dark); }
.foot__fine { margin-top: var(--space-xs); font-size: var(--text-xs); }

/* ───────────────────────── legal placeholder pages (privacy.html, terms.html) ───────────────────────── */
.legal-page { padding-bottom: 0; }
.legal__head { background: var(--color-ink); padding-block: var(--space-md); }
.legal { max-width: 48rem; padding-block: var(--space-2xl) var(--space-3xl); }
.legal h1 { font-size: var(--text-h2); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); }
.legal h2 { margin-top: var(--space-xl); font-size: var(--text-lg); }
.legal ul { margin: var(--space-md) 0 0; padding-left: 1.25rem; display: grid; gap: var(--space-sm); max-width: var(--measure); }
.legal__meta { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.legal__lede { margin-top: var(--space-lg); font-size: var(--text-md); max-width: var(--measure); }
.legal h3 { margin-top: var(--space-lg); font-size: var(--text-base); }
.legal p { margin-top: var(--space-sm); max-width: var(--measure); }
.legal li { max-width: var(--measure); }
.legal :target { scroll-margin-top: var(--space-lg); }
.legal__callout { padding: var(--space-md) var(--space-lg); border-left: 3px solid var(--color-lime-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--color-paper-2); }
.legal__contact { line-height: 1.8; }
.legal__foot { padding-block: var(--space-lg); background: var(--color-ink); color: var(--color-on-ink-muted); font-size: var(--text-sm); }
.legal__foot a { color: var(--color-lime); white-space: nowrap; }
.legal__foot a:hover { color: var(--color-on-ink); }

/* ───────────────────────── reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .btn, .link-cta .i, .score__link .i, a.coupon__card, .choice__opt span, .work__grid img, .faq__list summary::after, .bar, .nav, .nav::before, .field input, .field select, .field label { transition: none; }
  .btn:active, .btn--primary:active, .btn--ghost:active, .btn--dark:active, .btn--ghost-light:active { transform: none; }
  .work__grid li:hover img, .link-cta:hover .i, .score__link:hover .i, a.coupon__card:hover { transform: none; }
}

/* ───────────────────────── sticky mobile bar · C4 ───────────────────────── */
.bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs);
  padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--color-card) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-rule);
  transition: transform var(--dur-base) var(--ease-out);
}
.bar .btn { min-height: 3rem; width: 100%; }
.bar.is-hidden { transform: translateY(110%); }

/* ═════════════════════════ ≥ 30rem (large phones) ═════════════════════════ */
@media (min-width: 30rem) {
  .hero__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═════════════════════════ ≥ 40rem (tablet) ═════════════════════════ */
@media (min-width: 40rem) {
  .brand img { height: 2.75rem; }
  .nav__phone { display: inline-flex; }
  .hero__media { height: clamp(22rem, 50vw, 28rem); }
  .hero__media img { object-position: 70% 35%; }  /* full frame: keep the squeegee and the clean arc in view */
  .hero__head { padding-bottom: calc(var(--space-2xl) + var(--form-overlap)); }
  .hero__head .rating-pill { font-size: var(--text-base); gap: var(--space-xs) var(--space-sm); }
  .hero__head .rating-pill__stars svg { width: 1.25rem; height: 1.25rem; }
  .hero__head .g-logo { width: 1.375rem; height: 1.375rem; }
  .form { --pad-t: var(--space-xl); --pad-x: var(--space-xl); padding-bottom: var(--space-lg); }
  .form__offer { margin-bottom: var(--space-lg); }
  .form__fields { margin-top: var(--space-lg); }
  .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map__town text { font-size: 14px; }
  .map__town--hub text { font-size: 15px; }
  .foot__inner { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-2xl); }
  .foot__text { justify-items: end; text-align: right; }
}

/* ═════════════════════════ ≥ 60rem (desktop) ═════════════════════════ */
@media (min-width: 60rem) {
  body { padding-bottom: 0; }
  .bar { display: none; }

  .nav__call { display: none; }
  .nav__cta { display: inline-flex; }

  /* hero · photo band, about one screen tall (min 100svh − 2.5rem so a sliver of the next section still shows;
     capped at 60rem on big monitors). Copy (left) and form card (right) are centred on the same line in the
     space below the header: the equal flexible [top] and [base] rows absorb the free height, and the form
     spans top → media-end with align-self: center. min-height, not height, so short laptops can grow. */
  .hero {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [text-start] minmax(0, 40rem)
      [text-end] var(--hero-gap, var(--space-3xl))
      [form-start] minmax(0, 30rem)
      [form-end] minmax(var(--gutter), 1fr) [full-end];
    grid-template-rows:
      [media-start] 7rem
      [top] minmax(var(--space-lg), 1fr)
      [head] auto [body] auto
      [base] minmax(var(--space-3xl), 1fr)
      [media-end points] auto;
  }
  .hero__media {
    grid-column: full; grid-row: media-start / media-end;
    height: auto; min-height: clamp(42rem, calc(100svh - 2.5rem), 60rem);
  }
  /* desktop crop: as wide as it can go while the squeegee still lands in the gap between the copy and the form */
  .hero__media img { object-position: 50% 30%; }
  .hero__media::after {
    background:
      radial-gradient(120% 95% at 0% 100%,
        color-mix(in oklch, var(--color-overlay) 94%, transparent) 0%,
        color-mix(in oklch, var(--color-overlay) 80%, transparent) 38%,
        color-mix(in oklch, var(--color-overlay) 0%, transparent) 72%),
      linear-gradient(to top,
        color-mix(in oklch, var(--color-overlay) 55%, transparent) 0%,
        color-mix(in oklch, var(--color-overlay) 0%, transparent) 40%),
      /* left-to-right fade so the headline holds up over bright sky in the upper left */
      linear-gradient(to right,
        color-mix(in oklch, var(--color-overlay) 62%, transparent) 0%,
        color-mix(in oklch, var(--color-overlay) 40%, transparent) 35%,
        color-mix(in oklch, var(--color-overlay) 0%, transparent) 55%),
      linear-gradient(color-mix(in oklch, var(--color-overlay) var(--hero-tint), transparent), color-mix(in oklch, var(--color-overlay) var(--hero-tint), transparent));
  }
  .hero__media { --hero-tint: 40%; }
  .hero__head { grid-column: text; grid-row: head; padding: 0 0 var(--space-lg); container-type: inline-size; }
  .hero__title { font-size: clamp(2.75rem, 9.6cqi, 4.25rem); }  /* "Streak-free windows" is 9.96em: always two lines */
  .hero__body { grid-column: text; grid-row: body; padding: 0; display: flex; flex-direction: column; }
  .hero__lede { order: 0; margin: 0; color: var(--color-on-ink); }
  .coupon { filter: drop-shadow(0 18px 30px var(--color-shadow-3)); }
  .hero__body > .coupon { display: block; order: 0; margin: var(--space-xl) 0 0; }
  .form__offer { display: none; }
  .coupon__card { --stub: 9rem; border-color: color-mix(in oklch, var(--color-on-ink) 75%, transparent); }
  .coupon__body { padding: var(--space-lg) var(--space-xl); }
  .coupon__title { font-size: var(--text-xl); }
  .hero__form { grid-column: form; grid-row: top / media-end; align-self: center; padding: 0; margin-top: 0; }
  /* solid white form card over the photo: the brightest, highest-contrast thing in the hero */
  .hero__form .form { max-width: none; border-color: transparent; }
  .hero__points {
    grid-column: text-start / form-end; grid-row: points;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-xl);
    padding: var(--space-2xl) 0;
  }

  .crew { padding-block: var(--space-4xl); }
  .crew__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); }
  .plans { padding-block: var(--space-4xl); }
  .plans__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
  .proof { padding-block: var(--space-4xl); }
  .proof__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-4xl); align-items: center; }

  .included { padding-block: var(--space-4xl); }
  .included__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); }
  .guarantee { align-items: center; padding: var(--space-lg) var(--space-xl); }

  .work { padding-block: var(--space-4xl); }
  .work__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-xl); }
  .work__grid {
    max-width: var(--page-max); margin-inline: auto; padding-bottom: 0; overflow: visible;
    grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 16rem);
  }
  .work__grid li { aspect-ratio: auto; }
  .work__grid li:nth-child(1), .work__grid li:nth-child(3) { grid-row: span 2; }
  .work__grid li:nth-child(2) { grid-column: span 2; }
  .work__grid li:nth-child(4) img { object-position: 50% 30%; }
  .work__grid li:nth-child(5) img { object-position: 50% 25%; }

  .price { padding-block: var(--space-4xl); }
  .price__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-4xl); align-items: start; }
  .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); }
  .factors li:nth-child(2) { border-top: 1px solid var(--color-rule); }

  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); }
  .steps__list li { padding-left: 0; padding-top: 4.25rem; }
  .steps__list li::before { top: 0; }
  .steps__list li:not(:last-child)::after {
    left: 3.5rem; right: calc(-1 * var(--space-2xl) + var(--space-sm)); top: calc(1.375rem - 1px); bottom: auto; width: auto; height: 2px;
  }

  .reviews { padding-block: var(--space-4xl); }
  .reviews__top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .score { padding: var(--space-xl); }
  .quote--featured { justify-content: center; padding: var(--space-2xl); }
  .reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .area { padding-block: var(--space-4xl); }
  .area__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4xl); }

  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-4xl); align-items: start; }
  .faq__aside { position: sticky; top: 7rem; }

  .close { min-height: clamp(36rem, 78vh, 46rem); padding-block: var(--space-4xl); }
  .close__media img { object-position: 50% 28%; }
  .close::before {
    background:
      linear-gradient(to top,
        color-mix(in oklch, var(--color-overlay) 90%, transparent) 0%,
        color-mix(in oklch, var(--color-overlay) 62%, transparent) 40%,
        color-mix(in oklch, var(--color-overlay) 0%, transparent) 72%),
      linear-gradient(to right,
        color-mix(in oklch, var(--color-overlay) 55%, transparent) 0%,
        color-mix(in oklch, var(--color-overlay) 0%, transparent) 55%);
  }
}

/* ═════════════════════════ ≥ 80rem (wide) ═════════════════════════ */
@media (min-width: 80rem) {
  .hero { --hero-gap: 9rem; }  /* 40 + 9 + 30 = 79rem: same content width as every other section (84rem page − 2 × 2.5rem gutter) */
  .hero__points { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-lg); }  /* four across needs ~1092px of content */
  .work__grid { grid-template-rows: repeat(2, 18rem); }
}
