/*
  Brightside Cleaning Co. (fictional business) - concept design by Parity. Revision 1 (2026-10-28).
  Palette: "Sunrise Cobalt" (cobalt + ink base, lemon and mint accents), derived from Fresh Linen in
  Cleaning Services Palettes; every text pair is recorded in the project note.
  Fonts: Fredoka (headings) + Manrope (body), self-hosted, SIL OFL 1.1.
  Mobile-first. Motion uses transform and opacity only, and all of it honours prefers-reduced-motion.
*/

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #121E3B;          /* text, dark bands, footer */
  --ink-2: #22315A;        /* hover on ink */
  --cobalt: #2445D6;       /* brand blue: hero field, links, selected states */
  --cobalt-700: #1A36B0;   /* hover on cobalt */
  --cobalt-tint: #E9EEFD;  /* panels and selected cards */
  --lemon: #FFD84D;        /* the fresh accent: fills only, always with ink text */
  --lemon-700: #F5C518;    /* pressed/hover lemon */
  --lemon-tint: #FFF6D1;
  --mint: #C8F5DD;         /* fills for ticks and savings */
  --mint-ink: #0B6B47;     /* text-safe green */
  --bg: #F6F8FE;
  --white: #FFFFFF;
  --muted: #4B5876;
  --border: #6B7896;       /* form control borders: 4.4:1 on white */
  --line: #D4DCF2;         /* decorative dividers only */
  --error: #B42318;
  --on-ink-muted: #C9D6FF;
  --on-cobalt-muted: #DCE4FF;
  --star: #FFD84D;

  --font-head: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 16px;
  --radius-lg: 26px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --util-h: 34px;          /* utility bar: scrolls away */
  --bar-h: 60px;           /* compact header: sticks */
  --dock-space: 0px;       /* room reserved for the phone action dock (set below) */
  --dock-h: 70px;          /* dock keys (58px) + their 12px offset from the bottom edge */
}
@media (min-width: 64rem) { :root { --util-h: 38px; --bar-h: 70px; } }
@media (max-width: 47.99rem) { :root { --dock-space: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  /* focused fields stay clear of the concept label and (on phones) the action dock */
  scroll-padding-bottom: calc(var(--dock-space) + 76px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--cobalt); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
a[href^="tel:"] { white-space: nowrap; } /* never split a phone number across two lines */
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
/* :where() keeps this reset at zero specificity, so component classes can set their own margins */
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; outline-color: var(--lemon); }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 2.6rem + 5vw, 7rem); }

/* Section heads: a lemon highlighter kicker over a big rounded heading */
.sec-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.sec-head__lede { color: var(--muted); font-size: 1.0625rem; margin-bottom: 0; }
.kicker {
  display: inline-block; margin-bottom: 1rem; padding: .15rem .6rem;
  font: 700 1.125rem/1.4 var(--font-head); letter-spacing: .02em;
  color: var(--ink); background: var(--lemon); border-radius: 6px;
  transform: rotate(-1.5deg);
}
.kicker--on-dark { background: var(--lemon); color: var(--ink); }

/* ---------- Buttons: rounded "keycaps" with a solid offset shadow (no pills) ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --edge: #050B1C; --bg-hover: var(--ink-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .65rem 1.35rem;
  border: 0; border-radius: 14px;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 4px 0 var(--edge);
  font: 600 1.075rem/1.15 var(--font-head); letter-spacing: .01em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), background-color .2s;
}
.btn .icon { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--bg-hover); transform: translateY(-1px); box-shadow: 0 5px 0 var(--edge); }
  .btn:hover .icon--arrow { transform: translateX(3px); }
}
.btn:focus-visible { background: var(--bg-hover); outline-offset: 4px; border-radius: 14px; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn--lemon { --bg: var(--lemon); --fg: var(--ink); --edge: var(--ink); --bg-hover: var(--lemon-700); }
.btn--outline { --bg: #fff; --fg: var(--ink); --edge: var(--ink); --bg-hover: var(--lemon-tint); box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 var(--edge); }
@media (hover: hover) and (pointer: fine) { .btn--outline:hover { box-shadow: inset 0 0 0 2px var(--ink), 0 5px 0 var(--edge); } }
.btn--outline:active { box-shadow: inset 0 0 0 2px var(--ink), 0 1px 0 var(--edge); }
.btn--lg { min-height: 58px; padding-inline: 1.7rem; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn__spinner {
  position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border: 2.5px solid rgb(18 30 59 / .3); border-top-color: var(--ink); border-radius: 50%;
  opacity: 0; animation: spin .8s linear infinite;
}
.btn[data-state="loading"] .btn__label { opacity: 0; }
.btn[data-state="loading"] .btn__spinner { opacity: 1; }
.btn__label { display: inline-flex; align-items: center; gap: .55em; transition: opacity .15s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Text link with an arrow (used where a full button would be too loud) */
.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  font: 600 1.05rem/1.2 var(--font-head); color: var(--cobalt); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.arrow-link .icon { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover .icon { transform: translateX(3px); } }

/* ---------- Shared Parity concept pill: identical on all four demos (Revision 1 integration, 2026-10-28) ---------- */
.concept-notice { position: fixed; z-index: 80; left: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
.concept-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px 8px 12px; border-radius: 999px;
  background: #1F2933; color: #F6F2EA;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .01em;
  white-space: nowrap; text-decoration: none;
  box-shadow: 0 6px 18px rgb(31 41 51 / .28);
}
.concept-pill:link, .concept-pill:visited, .concept-pill:hover { color: #F6F2EA; }
.concept-pill:hover span { text-decoration: underline; text-underline-offset: .2em; }
.concept-pill:focus-visible { outline: 3px solid #F6F2EA; outline-offset: 2px; box-shadow: 0 0 0 7px #1F2933, 0 6px 18px rgb(31 41 51 / .28); }
.concept-pill__mark { display: block; width: 16px; height: 16px; flex: none; } /* official Parity icon (2026-11-11) */
.concept-pill__short { display: none; }
/* Narrow phones: shorter visible text on one line; the full text stays the link's accessible name */
@media (max-width: 360px) {
  .concept-pill__long { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; }
  .concept-pill__short { display: inline; }
}
/* Phones: sit directly above the action dock while it's showing */
@media (max-width: 47.99rem) {
  .dock-on .concept-notice, html:not(.js) .concept-notice { bottom: calc(var(--dock-h) + 10px); }
}

/* ---------- Header: utility bar that scrolls away + compact sticky bar ---------- */
.site-header {
  position: sticky; top: calc(-1 * var(--util-h)); z-index: 50;
  view-transition-name: site-header;
}
.util { height: var(--util-h); background: var(--ink); color: #fff; font-size: .8125rem; line-height: 1; }
@media (min-width: 64rem) { .util { font-size: .875rem; } }
.util__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.util__rating, .util__hours { margin: 0; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.util__star { width: 15px; height: 15px; fill: var(--star); }
/* single-class selectors only, so these breakpoint toggles can't be outranked */
.util__long, .util__pre { display: none; }
.util__hours { display: none; color: var(--on-ink-muted); }
@media (min-width: 36rem) { .util__long { display: inline; } .util__short { display: none; } }
@media (min-width: 48rem) { .util__hours { display: inline-flex; } .util__pre { display: inline; } }
.util__hours .icon { width: 15px; height: 15px; }
.util__phone {
  display: inline-flex; align-items: center; gap: .4rem; height: 100%; padding-inline: .25rem;
  color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.util__phone .icon { width: 16px; height: 16px; color: var(--lemon); }
@media (hover: hover) and (pointer: fine) { .util__phone:hover { text-decoration: underline; } }
.util__phone:focus-visible { outline-color: var(--lemon); outline-offset: -3px; }

.bar { background: #fff; border-bottom: 2px solid var(--ink); transition: box-shadow .3s; }
.site-header.is-stuck .bar { box-shadow: 0 10px 24px -14px rgb(18 30 59 / .35); }
.bar__inner { position: relative; display: flex; align-items: center; gap: .75rem; min-height: var(--bar-h); }

.logo { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; }
.logo__mark { width: 40px; height: 40px; }
.logo__name { display: block; font: 600 1.4rem/1 var(--font-head); letter-spacing: -.01em; }
.logo__sub { display: block; margin-top: 3px; font-size: .625rem; font-weight: 800; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.logo:focus-visible { border-radius: 10px; }

.nav { display: none; }
.nav__list { display: flex; flex-direction: column; gap: .15rem; }
.nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 .85rem;
  color: var(--ink); font: 500 1.1rem/1.2 var(--font-head); text-decoration: none; border-radius: 10px;
}
.nav a[aria-current="page"] { color: var(--cobalt); }
.nav.is-open {
  display: block; position: absolute; top: calc(100% + 2px); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  padding: .5rem var(--gutter) 1rem; background: #fff; border-bottom: 2px solid var(--ink);
  box-shadow: 0 22px 30px -20px rgb(18 30 59 / .35);
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--cobalt-tint); } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: 0 .9rem;
  background: #fff; border: 2px solid var(--ink); border-radius: 12px; font: 600 1rem/1 var(--font-head); cursor: pointer;
}
/* Two bars (the lower one shorter) that cross into an X when open */
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2.5px; border-radius: 2px; background: currentColor;
  transform-origin: left center; transition: transform .25s var(--ease-out);
}
.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { bottom: 1px; transform: scaleX(.66); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform-origin: center; transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform-origin: center; transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 64rem) {
  .nav { display: block; }
  .nav__list { flex-direction: row; gap: .1rem; }
  .nav a {
    position: relative; min-height: 44px; padding: 0 .8rem; border-radius: 8px; isolation: isolate;
  }
  /* lemon highlighter swipe behind the word */
  .nav a::before {
    content: ""; position: absolute; z-index: -1; left: .55rem; right: .55rem; bottom: 11px; height: 10px;
    background: var(--lemon); border-radius: 3px 3px 1px 1px; transform: scaleX(0); transform-origin: left center;
    box-shadow: inset 0 -2px 0 var(--ink); /* ink base line: the marker passes 3:1 on white (lemon alone is 1.4:1) */
    transition: transform .3s var(--ease-out);
  }
  .nav a[aria-current="page"]::before { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--ink); }
  .nav-toggle { display: none; }
}
@media (min-width: 64rem) and (hover: hover) and (pointer: fine) {
  .nav a:hover { background: transparent; }
  .nav a:hover::before { transform: scaleX(1); }
}
@media (min-width: 64rem) { .nav a:focus-visible::before { transform: scaleX(1); } }

/* ---------- Hero: the estimator is the centrepiece ---------- */
.hero {
  position: relative; overflow: clip; color: #fff;
  padding-block: clamp(1.25rem, .5rem + 3vw, 4rem) clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  background:
    radial-gradient(60% 70% at 85% 30%, #2C4FE0 0%, transparent 70%),
    radial-gradient(50% 60% at 0% 100%, #1E3CC4 0%, transparent 70%),
    var(--cobalt);
}
/* The rising sun behind the estimator (desktop only, never behind text) */
.hero::before {
  content: ""; position: absolute; z-index: 0; display: none;
  width: 560px; height: 560px; right: -140px; bottom: -330px; border-radius: 50%;
  background: var(--lemon);
  box-shadow: 0 0 0 36px rgb(255 216 77 / .18), 0 0 0 80px rgb(255 216 77 / .08);
}
@media (min-width: 64rem) { .hero::before { display: block; } }
.hero__grid {
  position: relative; z-index: 1; display: grid; gap: 1rem clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "est" "ticks";
}
@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-areas: "intro est" "ticks est";
    grid-template-rows: auto 1fr; align-items: start;
  }
}
.hero__intro { grid-area: intro; }
@media (min-width: 64rem) { .hero__intro { padding-top: 1.5rem; } }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .75rem;
  font-size: .875rem; font-weight: 600; color: var(--on-cobalt-muted);
}
.hero__kicker .icon { width: 18px; height: 18px; color: var(--lemon); }
.hero h1 { font-size: clamp(2.2rem, 1.25rem + 3.9vw, 4rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: .35em; }
.hero h1 .hl { color: var(--lemon); }
.hero__sub { max-width: 30rem; margin-bottom: 0; color: var(--on-cobalt-muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.5; }
/* Phones: the estimator's price and Book button must sit on the first screen, so the sub-line goes */
@media (max-width: 39.99rem) {
  .hero__sub { display: none; }
  .hero h1 { margin-bottom: .1em; }
}
.hero__ticks { grid-area: ticks; display: flex; flex-wrap: wrap; gap: .5rem; align-self: start; }
@media (min-width: 64rem) { .hero__ticks { flex-direction: column; gap: .7rem; margin-top: .25rem; } }
.hero__ticks li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .75rem .35rem .4rem;
  background: var(--cobalt-700); border-radius: 10px; font-size: .9rem; font-weight: 600; color: #fff;
}
@media (min-width: 64rem) { .hero__ticks li { background: transparent; padding: 0; font-size: 1rem; } }
.hero__ticks .tick-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); }
.hero__ticks .tick-dot .icon { width: 15px; height: 15px; stroke-width: 2.8; }
.hero__more { position: relative; z-index: 1; margin: 1.25rem auto 0; color: var(--on-cobalt-muted); font-size: .95rem; }
.hero__more a { color: #fff; font-weight: 700; }
.hero__more a:focus-visible, .hero a:focus-visible { outline-color: var(--lemon); }

/* Estimator card */
.est { grid-area: est; position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 6px 0 var(--ink), 0 40px 70px -30px rgb(5 11 28 / .65);
}
@media (min-width: 40rem) { .est { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.est__controls { display: grid; gap: .8rem; padding: .95rem .95rem 1rem; }
@media (min-width: 40rem) { .est__controls { gap: 1.1rem; padding: 1.5rem 1.4rem 1.6rem; } }
.est__title { display: flex; align-items: center; gap: .45rem; margin: 0; font: 600 1.05rem/1.2 var(--font-head); }
.est__title .icon { width: 20px; height: 20px; color: var(--cobalt); }
/* Phones: the title stays as the group's accessible name but is visually hidden to keep the Book button on screen */
@media (max-width: 39.99rem) {
  .est__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .est__controls { gap: .7rem; padding-top: .85rem; }
  .est__result { padding-top: .8rem; }
}
.est fieldset { margin: 0; }
.est legend { margin-bottom: .35rem; font-size: .875rem; font-weight: 700; }

.est__result {
  position: relative; display: grid; align-content: start; gap: .1rem;
  padding: .9rem .95rem 1rem; background: var(--lemon); color: var(--ink);
}
@media (min-width: 40rem) { .est__result { padding: 1.5rem 1.4rem 1.4rem; align-content: center; } }
.est__label { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.est__service { margin: 0; font-size: .9rem; font-weight: 600; }
.est__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; margin: .1rem 0 .6rem; }
@media (min-width: 40rem) { .est__row { display: block; margin: .2rem 0 .9rem; } }
.est__price { display: flex; align-items: baseline; gap: .4rem; margin: 0; white-space: nowrap; }
.est__price .odo { font-size: clamp(2.9rem, 2.2rem + 2.6vw, 4.6rem); color: var(--ink); }
.est__price .odo__cur { color: var(--ink); }
.est__unit { font-weight: 700; font-size: .95rem; }
.est__walk { margin: .2rem 0 .4rem; font: 600 2rem/1.1 var(--font-head); }
.est__save {
  display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .3rem .65rem;
  background: var(--ink); color: #fff; border-radius: 8px; font-size: .85rem; font-weight: 700;
}
@media (min-width: 40rem) { .est__save { margin-top: .5rem; } }
.est__save .icon { width: 15px; height: 15px; stroke-width: 2.6; color: var(--mint); }
.est__save.is-pop { animation: pop .45s var(--ease-spring); }
.est__fine { margin: .7rem 0 0; font-size: .8125rem; line-height: 1.45; }
.est__result .btn:focus-visible { outline-color: var(--ink); }
.est__result a:not(.btn):focus-visible { outline-color: var(--ink); }

/* Segmented controls with a sliding pill (bedrooms, bathrooms, how often) */
.seg {
  --cols: var(--n, 5); --rows: 1;
  position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  padding: 4px; background: var(--cobalt-tint); border: 2px solid var(--border); border-radius: 14px;
}
.seg--grid { --cols: 2; --rows: 2; }
.seg__opt { position: relative; z-index: 1; display: flex; }
.seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt > span {
  display: grid; place-items: center; align-content: center; width: 100%; min-height: 44px; padding: .25rem .3rem; border-radius: 10px;
  font: 600 1.05rem/1.15 var(--font-head); text-align: center; pointer-events: none; transition: color .25s;
}
.seg__opt small { display: block; font: 700 .75rem/1.2 var(--font-body); color: var(--mint-ink); transition: color .25s; }
.seg__opt input:checked + span { background: var(--cobalt); color: #fff; }
.seg__opt input:checked + span small { color: #fff; }
.seg.has-pill .seg__opt input:checked + span { background: transparent; }
.seg__opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 1px; }
.seg__opt input:disabled + span { opacity: .45; text-decoration: line-through; }
.seg__pill {
  position: absolute; z-index: 0; top: 4px; left: 4px;
  width: calc((100% - 8px) / var(--cols)); height: calc((100% - 8px) / var(--rows));
  border-radius: 10px; background: var(--cobalt);
  box-shadow: 0 3px 0 var(--ink);
  transform: translate(calc(var(--x, 0) * 100%), calc(var(--y, 0) * 100%));
}
.seg.is-ready .seg__pill { transition: transform .45s var(--ease-spring); }
.seg--text .seg__opt > span { font: 600 .875rem/1.2 var(--font-body); }
.seg--grid .seg__opt > span { min-height: 48px; }

/* Rolling-digit price ("odometer"). The real number is in text elsewhere; this is visual only. */
.odo { display: inline-flex; align-items: flex-start; font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.odo__cur { font-size: .5em; margin: .16em .04em 0 0; }
.odo__digits { display: inline-flex; }
.odo__col { display: inline-block; height: 1.05em; overflow: hidden; }
.odo__strip { display: block; transform: translateY(calc(var(--d, 0) * -10%)); }
.odo__strip > span { display: block; height: 1.05em; text-align: center; }
.odo.is-live .odo__strip { transition: transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--k, 0) * 45ms); }

/* ---------- Services: a price list, not a card grid ---------- */
.services { background: #fff; overflow-x: clip; }
.menu { border-top: 2px solid var(--ink); }
.svc {
  position: relative; isolation: isolate; display: grid; gap: .5rem 1.25rem; padding: 1.5rem 0 1.6rem;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "icon main" "price price" "go go";
  border-bottom: 2px solid var(--ink);
}
@media (min-width: 48rem) {
  .svc { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "icon main price" "icon main go"; align-items: start; padding: 1.9rem 0; }
}
@media (min-width: 64rem) {
  .svc { grid-template-columns: 72px minmax(0, 1fr) 11rem 17.5rem; grid-template-areas: "icon main price go"; align-items: center; gap: 1.5rem; }
}
.svc::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--cobalt-tint);
  opacity: 0; transition: opacity .25s;
}
@media (hover: hover) and (pointer: fine) { .svc:hover::before { opacity: 1; } }
.svc:focus-within::before { opacity: 1; }
.svc__icon { grid-area: icon; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--ink); background: var(--white); }
@media (min-width: 48rem) { .svc__icon { width: 64px; height: 64px; } }
.svc__icon .icon { width: 28px; height: 28px; }
.svc--lemon .svc__icon { background: var(--lemon); }
.svc--mint .svc__icon { background: var(--mint); }
.svc--cobalt .svc__icon { background: var(--cobalt-tint); }
.svc__main { grid-area: main; }
.svc__main h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-bottom: .3rem; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.svc__tag { padding: .2rem .55rem; border-radius: 7px; background: var(--ink); color: var(--lemon); font: 700 .75rem/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.svc__desc { margin: 0 0 .6rem; color: var(--muted); max-width: 38rem; }
.svc__inc { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .9rem; font-weight: 600; }
.svc__inc li { display: inline-flex; align-items: center; gap: .35rem; }
.svc__inc .icon { width: 17px; height: 17px; color: var(--mint-ink); stroke-width: 2.6; }
.svc__price { grid-area: price; display: flex; align-items: baseline; gap: .45rem; margin: .4rem 0 0; }
@media (min-width: 48rem) { .svc__price { flex-direction: column; align-items: flex-end; gap: 0; margin: 0; text-align: right; } }
@media (min-width: 64rem) { .svc__price { align-items: flex-start; text-align: left; } }
.svc__from { font-size: .875rem; font-weight: 600; color: var(--muted); }
.svc__amount { font: 600 2.2rem/1 var(--font-head); color: var(--cobalt); }
.svc__amount--text { font-size: 1.35rem; }
.svc__go { grid-area: go; justify-self: start; }
@media (min-width: 48rem) { .svc__go { justify-self: end; } }
@media (min-width: 64rem) { .svc__go { justify-self: stretch; } }

/* ---------- How it works: bold numbered band ---------- */
.process { --pnum: clamp(4.5rem, 3.5rem + 4vw, 7rem); position: relative; padding-block: clamp(4rem, 2.6rem + 5vw, 6.5rem); background: var(--ink); color: #fff; overflow: clip; }
.process h2 { max-width: 38rem; margin-bottom: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.process__steps { position: relative; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .process__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.pstep { position: relative; }
/* The ink background behind each numeral masks the dashed connector, so it appears to join them */
.pstep__num {
  position: relative; z-index: 1; display: inline-block; margin-bottom: .6rem; padding-right: .6rem; background: var(--ink);
  font: 700 var(--pnum)/.9 var(--font-head); letter-spacing: -.03em; color: var(--lemon);
}
.pstep h3 { font-size: 1.55rem; margin-bottom: .4rem; }
.pstep__text { color: var(--on-ink-muted); max-width: 22rem; margin: 0; }
@media (min-width: 48rem) {
  .process__steps::before {
    content: ""; position: absolute; top: calc(var(--pnum) * .45); left: 0; right: 30%; height: 3px;
    background: repeating-linear-gradient(90deg, var(--lemon) 0 12px, transparent 12px 22px);
    opacity: .6; transform-origin: left center;
  }
  .js .process__steps::before { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .2s; }
  .js .process__steps.is-visible::before { transform: scaleX(1); }
}
.process .kicker { margin-bottom: 1rem; }

/* ---------- What's included: an interactive floor plan ---------- */
.included { background: var(--bg); }
.plan-wrap { display: grid; gap: 1.5rem clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 64rem) { .plan-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.plan-legend { margin: 0 0 .75rem; font-size: .875rem; color: var(--muted); }
/* Walls are the ink background showing through the gaps between rooms */
.plan {
  position: relative; display: grid; gap: 6px; padding: 6px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: minmax(9.5rem, 1.25fr) minmax(7.5rem, 1fr);
  grid-template-areas:
    "k k k k l l l l l l"
    "b b b d d d d d d d";
  background: var(--ink); border-radius: 18px;
  box-shadow: 0 6px 0 rgb(18 30 59 / .25);
}
@media (min-width: 40rem) { .plan { grid-template-rows: minmax(13rem, 1.25fr) minmax(10rem, 1fr); } }
@media (min-width: 64rem) { .plan { grid-template-rows: minmax(16rem, 1.25fr) minmax(12.5rem, 1fr); } }
.room {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-width: 0; padding: .7rem .75rem; border: 0; border-radius: 6px; background: #fff; color: var(--ink);
  text-align: left; cursor: pointer; overflow: hidden;
  transition: background-color .25s;
}
.room--kitchen { grid-area: k; border-top-left-radius: 13px; }
.room--living { grid-area: l; border-top-right-radius: 13px; }
.room--bath { grid-area: b; border-bottom-left-radius: 13px; }
.room--bed { grid-area: d; border-bottom-right-radius: 13px; }
.room__name { position: relative; z-index: 1; font: 600 clamp(1rem, .9rem + .5vw, 1.3rem)/1.1 var(--font-head); }
.room__count { position: relative; z-index: 1; font-size: .8rem; font-weight: 700; color: var(--muted); }
.room__art {
  position: absolute; z-index: 0; right: 6%; bottom: 10%; width: 62%; height: 62%;
  color: var(--ink); opacity: .35; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .25s, color .25s;
}
.room__spark {
  position: absolute; z-index: 1; top: .55rem; right: .55rem; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--ink); color: var(--lemon);
  opacity: 0; transform: scale(.3) rotate(-30deg); transition: transform .45s var(--ease-spring), opacity .2s;
}
.room__spark .icon { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) { .room:hover { background: var(--cobalt-tint); } .room:hover .room__art { opacity: .55; } }
.room[aria-selected="true"] { background: var(--mint); }
.room[aria-selected="true"] .room__art { opacity: .6; color: var(--mint-ink); }
.room[aria-selected="true"] .room__count { color: var(--mint-ink); }
.room[aria-selected="true"] .room__spark { opacity: 1; transform: none; }
.room:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -7px; border-radius: 6px; }
.room--kitchen:focus-visible { border-top-left-radius: 13px; }
.room--living:focus-visible { border-top-right-radius: 13px; }
.room--bath:focus-visible { border-bottom-left-radius: 13px; }
.room--bed:focus-visible { border-bottom-right-radius: 13px; }
/* Front door: a short gap in the outside wall (decorative) */
.plan__door { position: absolute; z-index: 2; left: 66%; bottom: 0; width: 13%; height: 6px; background: var(--bg); pointer-events: none; }

.room-panel { min-width: 0; }
.tabpanel { padding: 1.4rem 1.25rem 1.25rem; background: #fff; border: 2px solid var(--ink); border-radius: 18px; }
@media (min-width: 40rem) { .tabpanel { padding: 1.75rem 1.75rem 1.5rem; } }
.tabpanel:focus-visible { outline-offset: 3px; border-radius: 18px; }
.js .tabpanel.is-entering { animation: panel-in .35s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
html:not(.js) .tabpanel + .tabpanel { margin-top: 1rem; }
.tabpanel__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; margin: 0 0 1rem; font-size: 1.6rem; }
.tabpanel__count { font: 700 .875rem/1.2 var(--font-body); color: var(--muted); }
.check-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.check-table th, .check-table td { padding: .7rem .5rem; text-align: left; vertical-align: middle; border-bottom: 1.5px solid var(--line); }
.check-table tr:last-child > * { border-bottom: 0; }
.check-table thead th { padding-top: 0; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.check-table tbody th { font-weight: 600; padding-left: 0; }
.check-table thead th:first-child { padding-left: 0; }
.check-table .c { width: 5rem; text-align: center; padding-inline: .25rem; }
@media (min-width: 36rem) { .check-table .c { width: 6rem; } }
.tick { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--mint); color: var(--mint-ink); }
.tick .icon { width: 17px; height: 17px; stroke-width: 2.8; }
.dash { color: var(--muted); font-weight: 700; }

.extras { display: grid; gap: 1rem clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 2rem; }
@media (min-width: 48rem) { .extras { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.extras__box { padding: 1.25rem 1.35rem; border-radius: 16px; font-size: .95rem; }
.extras__box--add { background: var(--lemon-tint); border: 2px solid var(--ink); }
.extras__box--not { background: #fff; border: 2px dashed var(--border); }
.extras__title { margin: 0 0 .6rem; font-size: 1.15rem; }
.addon-list { display: grid; gap: .35rem; margin-bottom: .6rem; }
.addon-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1.5px dotted var(--border); padding-bottom: .3rem; }
.addon-list__price { font-weight: 800; white-space: nowrap; }
.extras__note { margin: 0; color: var(--muted); font-size: .875rem; }
.extras__box--not p { margin: 0; }

/* ---------- Reviews: big score + conversation-style quotes ---------- */
.reviews-sec { background: var(--cobalt-tint); }
.reviews-grid { display: grid; gap: 2rem clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 64rem) { .reviews-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.score__big { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0 .25rem; }
.score__num { font: 700 clamp(5rem, 3.5rem + 6vw, 8.5rem)/.85 var(--font-head); color: var(--cobalt); letter-spacing: -.04em; }
.score__of { font: 600 1.2rem/1.2 var(--font-head); }
.score__src { margin: .5rem 0 0; color: var(--muted); font-weight: 600; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 22px; height: 22px; fill: var(--ink); stroke: none; }
.quote-stars { margin: 0 0 .6rem; }
.quote-stars .stars svg { width: 20px; height: 20px; }
.quotes { display: grid; gap: 1.1rem; }
.quote-card { position: relative; margin: 0; padding: 1.4rem 1.5rem 1.3rem; background: #fff; border-radius: 22px 22px 22px 6px; border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
@media (min-width: 48rem) {
  .quotes > li:nth-child(2) .quote-card { margin-left: 3.5rem; border-radius: 22px 22px 6px 22px; }
  .quotes > li:nth-child(3) .quote-card { margin-left: 1.5rem; }
}
.quote-card blockquote { margin: 0 0 .9rem; font-size: 1.05rem; line-height: 1.6; }
.quote-card blockquote p { margin: 0; }
.quote-card blockquote p::before { content: "\201C"; display: block; height: .55em; margin-bottom: .1em; font: 700 3.2rem/1 var(--font-head); color: var(--cobalt); }
.quote-card figcaption { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.quote-card figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--lemon); color: var(--ink); font: 600 1rem/1 var(--font-head); flex: none; }
.small-note { margin: 1.25rem 0 0; font-size: .875rem; color: var(--muted); }

/* ---------- Team ---------- */
.team { background: #fff; }
.team__grid { display: grid; gap: clamp(2rem, 4vw, 4.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 60rem) { .team__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.team__photo { position: relative; width: min(100%, 26rem); margin: 0 auto; }
.team__photo picture { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 14px 14px 0 var(--lemon); background: var(--cobalt-tint); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__badge {
  position: absolute; left: 0; bottom: 6%; display: grid; place-items: center; width: 7.5rem; height: 7.5rem; padding: .75rem;
  border-radius: 50%; background: var(--cobalt); color: #fff; text-align: center; transform: rotate(-8deg);
  font: 600 1rem/1.15 var(--font-head);
}
.team__badge strong { display: block; font-size: 1.9rem; line-height: 1; }
.owner-quote { margin: 0 0 2rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--lemon-tint); border-left: 6px solid var(--lemon); font: 500 1.25rem/1.45 var(--font-head); }
.owner-quote p { margin: 0; }
.owner-quote footer { margin-top: .5rem; font: 500 .9rem/1.4 var(--font-body); color: var(--muted); }
.features { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)); }
.feature { display: flex; gap: .85rem; align-items: flex-start; }
.feature h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.feature__text { margin: 0; color: var(--muted); font-size: .95rem; }
.feature__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); flex: none; }
.feature__icon .icon { width: 22px; height: 22px; }

/* ---------- Service area ---------- */
.area-band { padding-block: clamp(2.75rem, 2rem + 3vw, 4.25rem); background: var(--mint); }
.area { display: grid; gap: 1.25rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 60rem) { .area { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.area h2 { margin-bottom: .35rem; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); }
.area__lede { margin: 0; }
.towns { display: flex; flex-wrap: wrap; gap: .5rem; }
.towns li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem .45rem .65rem;
  background: #fff; border: 2px solid var(--ink); border-radius: 10px; font-weight: 700; font-size: .95rem;
}
.towns .icon { width: 18px; height: 18px; color: var(--cobalt); }

/* ---------- Quote form (full version of the estimator) ---------- */
.quote { background: var(--bg); }
.quote__grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "home" "estimate" "details"; }
@media (min-width: 64rem) {
  .quote__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    grid-template-areas: "home estimate" "details estimate";
    column-gap: 2rem; align-items: start;
  }
}
.qpanel { min-width: 0; padding: clamp(1.25rem, .9rem + 1.6vw, 2.1rem); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); }
.qpanel--home { grid-area: home; }
.qpanel--details { grid-area: details; }
.qstep { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; font-size: 1.5rem; }
.qstep__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lemon); color: var(--ink); font-size: 1.1rem; }
fieldset { min-width: 0; margin: 0 0 1.6rem; padding: 0; border: 0; }
fieldset:last-child { margin-bottom: 0; }
legend { display: block; margin-bottom: .65rem; padding: 0; font-weight: 700; }
.optional { font-weight: 500; color: var(--muted); }
.hint { margin: .45rem 0 0; font-size: .875rem; color: var(--muted); }

/* Radio cards */
.choices { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__box {
  position: relative; display: flex; flex-direction: column; gap: .2rem; width: 100%; min-height: 100%;
  padding: .95rem 1rem; background: #fff; border: 2px solid var(--border); border-radius: 14px;
  pointer-events: none; transition: border-color .2s, background-color .2s, transform .15s, box-shadow .2s;
}
.choice__icon { width: 26px; height: 26px; margin-bottom: .35rem; color: var(--cobalt); }
.choice__title { font: 600 1.05rem/1.25 var(--font-head); padding-right: 1.4rem; }
.choice__meta { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.choice__save { align-self: flex-start; margin-top: .3rem; padding: .1rem .5rem; border-radius: 6px; background: var(--mint); color: var(--mint-ink); font-size: .8rem; font-weight: 800; }
.choice__tag { font-size: .75rem; font-weight: 800; color: var(--cobalt); letter-spacing: .02em; }
.choice__check {
  position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 7px; background: var(--cobalt); color: #fff;
  opacity: 0; transform: scale(.3); transition: transform .4s var(--ease-spring), opacity .2s;
}
.choice__check .icon { width: 14px; height: 14px; stroke-width: 3; }
@media (hover: hover) and (pointer: fine) { .choice:hover .choice__box { border-color: var(--cobalt); } }
.choice input:active + .choice__box { transform: scale(.98); }
.choice input:checked + .choice__box { border-color: var(--cobalt); background: var(--cobalt-tint); box-shadow: 0 3px 0 var(--cobalt); }
.choice input:checked + .choice__box .choice__check { opacity: 1; transform: scale(1); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice input:disabled { cursor: not-allowed; }
.choice input:disabled + .choice__box { opacity: .5; border-style: dashed; }

.seg-row { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-bottom: .5rem; }
@media (min-width: 36rem) { .seg-row { grid-template-columns: 1.25fr 1fr; } }
.seg-row fieldset { margin-bottom: 0; }

/* Add-on chips */
.addons { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip__body {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .45rem 1rem .45rem .6rem;
  background: #fff; border: 2px solid var(--border); border-radius: 12px; font-weight: 600; pointer-events: none;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.chip__box {
  display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--ink); transition: background-color .2s, border-color .2s;
}
.chip__box svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chip__box path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--ease-out) .05s; }
.chip__price { font-size: .875rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .chip:hover .chip__body { border-color: var(--ink); } }
.chip input:active + .chip__body { transform: scale(.97); }
.chip input:checked + .chip__body { border-color: var(--ink); background: var(--lemon-tint); }
.chip input:checked + .chip__body .chip__box { background: var(--lemon); border-color: var(--ink); }
.chip input:checked + .chip__body .chip__box path { stroke-dashoffset: 0; }
.chip input:checked + .chip__body .chip__price { color: var(--ink); }
.chip input:focus-visible + .chip__body { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.chip input:disabled { cursor: default; }
.chip input:disabled + .chip__body { border-style: dashed; }

/* Text inputs */
.fields-2 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.field { margin-bottom: 1.15rem; }
.field > label, .field__label { display: block; margin-bottom: .35rem; font-weight: 700; }
.field__control { position: relative; }
.input, .select {
  width: 100%; min-height: 50px; padding: .7rem 2.6rem .7rem .9rem;
  font-size: max(16px, 1rem); line-height: 1.4; color: var(--ink);
  background: #fff; border: 2px solid var(--border); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.select {
  appearance: none; padding-right: 2.4rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121E3B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 14px;
}
textarea.input { min-height: 112px; resize: vertical; padding-right: .9rem; }
/* :focus as well as :focus-visible, because date inputs focus an inner segment and don't always match :focus-visible */
.input:focus, .input:focus-within, .select:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-color: var(--cobalt); border-radius: 12px; }
.field__control::after {
  content: ""; position: absolute; right: .85rem; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1' y='1' width='22' height='22' rx='7' fill='%230B6B47'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--ease-spring); pointer-events: none;
}
.field__control--area::after { display: none; }
.field.is-valid .field__control::after { opacity: 1; transform: scale(1); }
.field.is-invalid .input { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__error { display: flex; gap: .4rem; align-items: flex-start; margin: .4rem 0 0; color: var(--error); font-size: .9rem; font-weight: 600; }
.field__error::before {
  content: "!"; display: grid; place-items: center; width: 18px; height: 18px; margin-top: .1em; flex: none;
  border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; font-weight: 800;
}
.field__error:empty { display: none; }
.shake { animation: shake .4s var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.group-error { margin-top: .5rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-row { display: grid; gap: .9rem; margin-top: .5rem; }
.policy-line { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.policy-line .icon { width: 18px; height: 18px; margin-top: .1em; color: var(--cobalt); }
.form-status { margin: 0; font-weight: 700; color: var(--error); }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--mint-ink); }

/* Estimate panel in the full form */
.estimate {
  grid-area: estimate; position: relative; overflow: hidden; align-self: start;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 var(--ink);
}
@media (min-width: 64rem) { .estimate { position: sticky; top: calc(var(--bar-h) + 1.5rem); } }
.estimate__top { padding: 1.4rem 1.5rem 1.25rem; background: var(--lemon); }
.estimate__body { padding: 1.1rem 1.5rem 1.4rem; }
.estimate::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 4px var(--cobalt); opacity: 0;
}
.estimate.is-bump::after { animation: ring .7s var(--ease-out); }
@keyframes ring { 30% { opacity: .9; } 100% { opacity: 0; } }
.estimate__label { margin: 0 0 .2rem; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.estimate__service { margin: 0 0 .4rem; font: 600 1.1rem/1.3 var(--font-head); }
.estimate__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin: 0; }
.estimate__price .odo { font-size: clamp(3.1rem, 2.6rem + 1.8vw, 4rem); }
.estimate__unit { font-weight: 700; }
.estimate__walk { margin: .2rem 0 0; font: 600 1.9rem/1.15 var(--font-head); }
.estimate__save {
  display: inline-flex; align-items: center; gap: .4rem; margin: .7rem 0 0; padding: .3rem .7rem; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: .875rem; font-weight: 700;
}
.estimate__save .icon { width: 16px; height: 16px; stroke-width: 2.6; color: var(--mint); }
.estimate__save.is-pop { animation: pop .45s var(--ease-spring); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.estimate__lines { display: grid; gap: .5rem; margin: 0; font-size: .95rem; }
.estimate__lines li { display: flex; justify-content: space-between; gap: 1rem; }
.estimate__lines li span:last-child { font-weight: 800; white-space: nowrap; }
.estimate__lines .is-discount span:last-child { color: var(--mint-ink); }
.estimate__lines.is-fresh { animation: fade-in .35s var(--ease-out); }
@keyframes fade-in { from { opacity: .2; } }
.estimate__inc { margin-top: 1.1rem; padding: 1rem 1.05rem; background: var(--cobalt-tint); border-radius: 14px; font-size: .925rem; }
.estimate__inc-title { margin: 0 0 .5rem; font-weight: 800; }
.estimate__inc-link { display: inline-flex; align-items: center; min-height: 36px; font-weight: 700; }
.estimate__fine { margin: 1rem 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.checklist { display: grid; gap: .35rem; margin: 0 0 .35rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.45; }
.checklist .icon { width: 18px; height: 18px; margin-top: .15em; color: var(--mint-ink); stroke-width: 2.6; }

/* Success state */
.success {
  max-width: 40rem; margin-inline: auto; padding: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(1.25rem, 1rem + 2vw, 3rem);
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); text-align: center; box-shadow: 0 6px 0 var(--ink);
}
.success__icon { width: 76px; height: 76px; margin: 0 auto 1.25rem; }
.success__icon rect { fill: var(--mint); stroke: var(--mint-ink); stroke-width: 3; stroke-dasharray: 220; stroke-dashoffset: 220; }
.success__icon path { fill: none; stroke: var(--mint-ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; }
.success.is-shown .success__icon rect { animation: draw .6s var(--ease-out) forwards; }
.success.is-shown .success__icon path { animation: draw .45s var(--ease-out) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.success__title:focus { outline: none; }
.success__title:focus-visible { outline: 3px solid var(--cobalt); }
.success__text { color: var(--muted); }
.summary { display: grid; gap: .5rem; margin: 1.5rem 0; padding: 1.1rem 1.25rem; background: var(--cobalt-tint); border-radius: 14px; text-align: left; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.demo-note { margin: 0 0 1.5rem; padding: .9rem 1rem; border: 2px dashed var(--border); border-radius: 12px; font-size: .9rem; color: var(--ink); }

/* ---------- FAQ: two columns of questions ---------- */
.faq-sec { background: #fff; }
.faq-head { display: grid; gap: 1rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: end; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 60rem) { .faq-head { grid-template-columns: 1fr auto; } }
.faq-head h2 { margin: 0; }
.faq-head__aside { margin: 0; color: var(--muted); }
.faq { display: grid; gap: 0 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 60rem) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq__col { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1.5px solid var(--line); }
.faq__q { margin: 0; font: 600 1.15rem/1.3 var(--font-head); letter-spacing: 0; }
.faq__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 64px;
  padding: 1rem 0; background: none; border: 0; text-align: left; font: inherit; cursor: pointer;
}
.faq__btn:focus-visible { outline-offset: 2px; }
.faq__icon { position: relative; width: 34px; height: 34px; border-radius: 10px; background: var(--lemon); flex: none; transition: background-color .2s, transform .3s var(--ease-out); }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px;
  border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__item.is-open .faq__icon { background: var(--mint); }
@media (hover: hover) and (pointer: fine) { .faq__btn:hover .faq__icon { background: var(--lemon-700); } }
.faq__panel { display: grid; grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__a { max-width: 40rem; margin: 0; padding: 0 3rem 1.25rem 0; color: var(--ink); }
.js .faq__panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s var(--ease-out), visibility 0s linear .35s; }
.js .faq__item.is-open .faq__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s var(--ease-out), visibility 0s; }

/* ---------- Final CTA: lemon band ---------- */
.cta-band { position: relative; overflow: clip; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); background: var(--lemon); }
.cta-band__grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 60rem) { .cta-band__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.cta-band h2 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); margin-bottom: .3rem; }
.cta-band__lede { margin: 0 0 1.5rem; font-size: 1.125rem; font-weight: 600; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.cta-band__phone { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; color: var(--ink); font: 600 1.15rem/1 var(--font-head); }
.cta-band__phone:focus-visible { outline-color: var(--ink); }
.cta-band .btn:focus-visible { outline-color: var(--ink); }
.cta-band__photo { justify-self: center; width: min(100%, 22rem); }
.cta-band__photo picture { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); box-shadow: -14px 14px 0 var(--cobalt); background: #fff; }
.cta-band__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 59.99rem) { .cta-band__photo { display: none; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; background: var(--ink); color: #fff; }
@media (max-width: 47.99rem) { .site-footer { padding-bottom: calc(var(--dock-space) + 5rem); } }
@media (min-width: 48rem) { .site-footer { padding-bottom: 5rem; } } /* last line clears the fixed concept label */
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--lemon); }
.footer__grid { display: grid; gap: 2.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr)); }
.footer__brand { grid-column: 1 / -1; max-width: 26rem; }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer__brand { grid-column: auto; } }
.site-footer .logo { color: #fff; margin: 0 0 1rem; }
.site-footer .logo__sub { color: var(--on-ink-muted); }
.footer__muted { color: var(--on-ink-muted); }
.footer__head { margin-bottom: .9rem; font: 600 1.05rem/1.2 var(--font-head); color: var(--lemon); }
.footer__links li + li { margin-top: .1rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { text-decoration: underline; } }
.footer__nap { font-style: normal; line-height: 1.75; }
.footer__nap a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .18);
  font-size: .875rem; color: var(--on-ink-muted);
}
.footer__bottom p { margin: 0; } /* not flex: flex drops the spaces around the year <span> */
.footer__bottom a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- Phone action dock: floating keys, the live price travels with you ---------- */
.dock {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px;
  transition: transform .3s var(--ease-out), opacity .2s, visibility 0s;
}
@media (min-width: 48rem) { .dock { display: none; } }
.js .dock:not(.is-on) { transform: translateY(130%); opacity: 0; visibility: hidden; transition: transform .3s var(--ease-out), opacity .2s, visibility 0s linear .3s; }
.dock__call, .dock__book { display: flex; align-items: center; min-height: 58px; border-radius: 16px; text-decoration: none; box-shadow: 0 4px 0 #050B1C, 0 14px 30px -10px rgb(5 11 28 / .55); }
.dock__call { flex-direction: column; justify-content: center; gap: 1px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; }
.dock__call .icon { width: 22px; height: 22px; color: var(--lemon); }
.dock__book { justify-content: space-between; gap: .5rem; padding: 0 .55rem 0 1rem; background: var(--lemon); color: var(--ink); font: 600 1.1rem/1.1 var(--font-head); box-shadow: 0 4px 0 var(--ink), 0 14px 30px -10px rgb(5 11 28 / .55); }
.dock__price { display: inline-flex; align-items: baseline; gap: 2px; padding: .45rem .6rem; border-radius: 10px; background: var(--ink); color: #fff; font: 600 1.15rem/1 var(--font-head); white-space: nowrap; }
.dock__price small { font: 700 .75rem/1 var(--font-body); color: var(--on-ink-muted); }
.dock__book.is-bump .dock__price { animation: pop .4s var(--ease-spring); }
.dock a:active { transform: translateY(3px); }
.dock a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); background: var(--cobalt); color: #fff; }
.page-hero::after {
  content: ""; position: absolute; right: -90px; bottom: -220px; width: 360px; height: 360px; border-radius: 50%;
  background: var(--lemon); box-shadow: 0 0 0 30px rgb(255 216 77 / .18);
}
@media (max-width: 47.99rem) { .page-hero::after { display: none; } }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.8rem); letter-spacing: -.02em; max-width: 46rem; }
.page-hero__lede { max-width: 40rem; color: var(--on-cobalt-muted); font-size: 1.125rem; }
.page-hero a:focus-visible { outline-color: var(--lemon); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.2rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose section { padding-top: .5rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  background: var(--cobalt-700); color: #fff; border-radius: 10px; font-weight: 700; text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .toc a:hover { background: var(--ink); } }
.callout { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 6px solid var(--lemon); background: var(--lemon-tint); border-radius: 0 14px 14px 0; }
.callout p:last-child { margin: 0; }
.two-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 60rem) { .two-col { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3.5rem; } }
.perk-list { display: grid; gap: 1.1rem; }
.form-card { padding: clamp(1.25rem, .9rem + 1.6vw, 2.1rem); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 0 6px 0 var(--ink); }
.form-card__title { font-size: 1.7rem; }
.checks { display: grid; gap: .55rem; }
.check { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 44px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--cobalt); flex: none; cursor: pointer; }
.section--tight-top { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.h2-sm { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }

/* ---------- Scroll reveals (basic motion set) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Page transitions (cross-document, progressive enhancement) ---------- */
@view-transition { navigation: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s linear; transition-delay: 0s; }
  .js .process__steps::before { transform: none; transition: none; }
  .btn, .btn:hover, .btn:active, .dock a:active, .choice input:active + .choice__box, .chip input:active + .chip__body { transform: none; }
  .btn, .btn .icon, .arrow-link .icon, .nav a::before { transition: none; }
  .seg.is-ready .seg__pill, .odo.is-live .odo__strip { transition: none; }
  .choice__check, .field__control::after, .room__spark { transition: opacity .2s; transform: none; }
  .js .dock, .js .dock:not(.is-on) { transform: none; transition: opacity .2s, visibility 0s; }
  .shake, .est__save.is-pop, .estimate__save.is-pop, .estimate.is-bump::after, .js .tabpanel.is-entering, .estimate__lines.is-fresh, .dock__book.is-bump .dock__price { animation: none; }
  .success.is-shown .success__icon rect, .success.is-shown .success__icon path { animation: none; stroke-dashoffset: 0; }
  .btn__spinner { animation: none; border-color: var(--ink); border-right-color: transparent; }
  .js .faq__panel, .js .faq__item.is-open .faq__panel { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}


/* ---------- Legal links in the footer (2026-10-31) ---------- */
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__bottom .footer-legal a { min-height: 44px; text-decoration: underline; text-underline-offset: .2em; }
.footer__bottom .footer-legal a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }

/* ===== CSP utilities (2026-11-15): these replace style="" attributes, which a Content-Security-Policy without
   'unsafe-inline' blocks (Website Security Standard). ===== */
.icon-sprite { display: none; }
[data-header-sentinel] { position: absolute; top: 44px; height: 1px; width: 1px; }
.legal-cta { margin-top: 2.5rem; }
.callout--spaced { margin-top: 2rem; }
.hint--form-intro { margin: -.25rem 0 1.25rem; }
.sec-head--tight { margin-bottom: 1.75rem; }
.hint--estimator { margin-bottom: 1.6rem; }
/* CSP (2026-11-15): stagger indexes come from data-i="N" instead of style="--i:N", because the site's
   Content-Security-Policy has no 'unsafe-inline' (Website Security Standard). Add a rule here if an index above 9 is used. */
[data-i="0"] { --i: 0; }
[data-i="1"] { --i: 1; }
[data-i="2"] { --i: 2; }
[data-i="3"] { --i: 3; }
[data-i="4"] { --i: 4; }
[data-i="5"] { --i: 5; }
[data-i="6"] { --i: 6; }
[data-i="7"] { --i: 7; }
[data-i="8"] { --i: 8; }
[data-i="9"] { --i: 9; }
