/* ==========================================================================
   Pristine Path Cleaning — "Stepping Stones"
   tokens → fonts → base → components → header → sections → legal pages
   → consent → utilities → motion → print
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette: fresh mint, lilac, sunshine and slate. Text pairs are checked in README. */
  --ink: #22303e;
  --ink-soft: #46556a;
  --paper: #f8fbf9;
  --white: #ffffff;
  --mint-50: #eef9f4;
  --mint-100: #def4ea;
  --mint-300: #a8e6cf;
  --mint-500: #5fcfa6;
  --mint-800: #12634e;
  --lilac-50: #f5f1fd;
  --lilac-100: #ece5fb;
  --lilac-300: #cdbdf3;
  --lilac-800: #5a3fa8;
  --sun-100: #fff6d1;
  --sun-200: #fff1b8;
  --sun-400: #ffd54f;
  --sun-500: #f5c331;
  --stone-100: #eef0f3;
  --stone-200: #e2e6eb;
  --stone-500: #7c8896;
  --error: #b42318;
  --error-bg: #fdecea;

  --font-display: 'Sniglet', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Radio Canada', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.06rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.45rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.35rem, 1.5rem + 4.2vw, 4.9rem);

  --space-s: clamp(0.75rem, 0.7rem + 0.3vw, 1rem);
  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  --space-xl: clamp(3.5rem, 2.6rem + 4vw, 6rem);

  /* Pebble radii: every rounded thing on the site is a slightly uneven stone. */
  --stone-shape: 52% 48% 55% 45% / 58% 50% 50% 42%;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 2px 0 var(--stone-200), 0 18px 40px -24px rgba(34, 48, 62, 0.35);
  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Sniglet';
  src: url('../fonts/sniglet-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sniglet';
  src: url('../fonts/sniglet-800-latin.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Radio Canada';
  src: url('../fonts/radio-canada-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }

a { color: var(--mint-800); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a[href^='tel:'] { white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--lilac-800);
  outline-offset: 3px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.6em 1.3em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font: 700 var(--step-0) / 1.1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-sun {
  background: var(--sun-400);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.btn-sun:hover { background: var(--sun-500); color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn-sun:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-line {
  background: var(--white);
  color: var(--ink);
}
.btn-line:hover { background: var(--mint-100); color: var(--ink); }
.btn-lg { min-height: 56px; padding-inline: 1.6em; font-size: var(--step-1); }
.btn-block { width: 100%; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Section labels: a numbered stepping stone ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--ink-soft);
}
.kicker-stone {
  display: inline-grid;
  place-items: center;
  width: 2.4em;
  height: 2em;
  border: 2.5px solid var(--ink);
  border-radius: var(--stone-shape);
  background: var(--sun-400);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
}

.section { padding-block: var(--space-xl); }
.section-head { max-width: 760px; margin-bottom: var(--space-l); }
.section-head > p:last-child { color: var(--ink-soft); font-size: var(--step-1); }

.tick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tick-list li {
  position: relative;
  padding-left: 1.8em;
  margin-top: 0.45em;
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: var(--mint-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2322303e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.fine { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Header and the stepping-stone navigation ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid, not blurred: a backdrop-filter would trap the fixed mobile path inside the header. */
  background: var(--paper);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--stone-200), 0 10px 30px -20px rgba(34, 48, 62, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  white-space: nowrap;
}
.brand-name span { color: var(--mint-800); }
.brand-sub {
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.stone-path {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Three pebbles between stones, like gravel between pavers. */
.stone-path li + li::before {
  content: '';
  display: block;
  width: 22px;
  height: 8px;
  margin-inline: 2px;
  background:
    radial-gradient(3px 2.5px at 3px 4px, var(--stone-500) 90%, transparent 100%),
    radial-gradient(3px 2.5px at 11px 3px, var(--stone-500) 90%, transparent 100%),
    radial-gradient(3px 2.5px at 19px 5px, var(--stone-500) 90%, transparent 100%);
}
.stone-path li { display: flex; align-items: center; }

.stone {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 18px;
  overflow: visible;
  border: 2px solid var(--stone-500);
  border-radius: var(--stone-shape);
  /* "Dusty" until the visitor has walked past it. */
  background-color: var(--stone-200);
  background-image:
    radial-gradient(1.5px 1.5px at 18% 30%, rgba(34, 48, 62, 0.22) 90%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 64%, rgba(34, 48, 62, 0.22) 90%, transparent 100%),
    radial-gradient(2px 2px at 46% 80%, rgba(34, 48, 62, 0.18) 90%, transparent 100%),
    radial-gradient(1.5px 1.5px at 86% 22%, rgba(34, 48, 62, 0.2) 90%, transparent 100%);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}
.stone-path li:nth-child(2) .stone { border-radius: 46% 54% 48% 52% / 52% 58% 42% 48%; }
.stone-path li:nth-child(3) .stone { border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%; }
.stone-path li:nth-child(4) .stone { border-radius: 48% 52% 44% 56% / 56% 46% 54% 44%; }
.stone:hover { color: var(--ink); background-color: var(--white); transform: translateY(-2px); }
.stone-label { position: relative; z-index: 1; }

/* The wipe: a gloss band sweeps across once a stone turns clean. */
.stone::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.95) 50%, transparent 70%) -150% 0 / 200% 100% no-repeat;
}
.stone.is-clean {
  background-color: var(--mint-100);
  background-image: none;
  border-color: var(--mint-800);
}
.stone.is-clean::before { animation: wipe 0.7s ease-out; }
.stone[aria-current] {
  background-color: var(--sun-200);
  background-image: none;
  border-color: var(--ink);
}

.stone-sparkle {
  position: absolute;
  top: -9px;
  right: -6px;
  z-index: 2;
  width: 18px;
  height: 18px;
  fill: var(--sun-400);
  stroke: var(--ink);
  stroke-width: 1.4;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.stone.is-clean .stone-sparkle { transform: scale(0.8); }
.stone[aria-current] .stone-sparkle { transform: scale(1.1); animation: twinkle 2.4s ease-in-out infinite; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--mint-800); }
.header-cta { min-height: 46px; padding-inline: 1.1em; font-size: 0.98rem; }
.header-cta,
.stone-toggle { flex: none; }

/* The stone button: three pebbles that open the vertical path. */
.stone-toggle {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 48px;
  padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: var(--stone-shape);
  background: var(--stone-200);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.stone-toggle:hover { background: var(--mint-100); }
.stone-toggle[aria-expanded='true'] { background: var(--sun-400); }
.stone-toggle-pebbles { position: relative; width: 26px; height: 20px; }
.stone-toggle-pebbles span {
  position: absolute;
  width: 10px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.stone-toggle-pebbles span:nth-child(1) { left: 0; bottom: 0; }
.stone-toggle-pebbles span:nth-child(2) { left: 8px; top: 7px; }
.stone-toggle-pebbles span:nth-child(3) { right: 0; top: 0; }
.stone-toggle[aria-expanded='true'] .stone-toggle-pebbles span:nth-child(1) { transform: translate(8px, -13px); }
.stone-toggle[aria-expanded='true'] .stone-toggle-pebbles span:nth-child(3) { transform: translate(-8px, 14px); }

/* Desktop: the path sits in the header. */
@media (min-width: 1100px) {
  .stone-toggle { display: none; }
  .stone-nav { margin-right: 8px; }
}
@media (min-width: 1100px) and (max-width: 1259px) {
  .header-phone { display: none; }
}

/* Smaller screens: the stone button pulls down a vertical path. */
@media (max-width: 1099px) {
  .stone-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 49;
    display: none;
    padding: var(--space-l) var(--gutter);
    overflow-y: auto;
    background:
      radial-gradient(120% 60% at 50% 110%, var(--mint-100), transparent 70%),
      var(--paper);
    border-top: 1px solid var(--stone-200);
  }
  .stone-nav.is-open { display: block; }
  .stone-path {
    flex-direction: column;
    align-items: flex-start;
    width: min(100%, 420px);
    margin-inline: auto;
  }
  .stone-path li { flex-direction: column; align-items: flex-start; }
  .stone-path li:nth-child(2) { margin-left: 22%; }
  .stone-path li:nth-child(3) { margin-left: 8%; }
  .stone-path li:nth-child(4) { margin-left: 30%; }
  .stone-path li + li::before {
    width: 10px;
    height: 30px;
    margin: 4px 0 4px 40px;
    background:
      radial-gradient(3px 2.5px at 3px 4px, var(--stone-500) 90%, transparent 100%),
      radial-gradient(3px 2.5px at 7px 15px, var(--stone-500) 90%, transparent 100%),
      radial-gradient(3px 2.5px at 3px 26px, var(--stone-500) 90%, transparent 100%);
  }
  .stone { min-height: 60px; padding: 12px 30px; font-size: 1.2rem; }
}
/* The menu's call line only appears where the header has no phone link. */
.nav-call { display: none; }
@media (max-width: 719px) {
  .header-phone { display: none; }
  .nav-call {
    display: block;
    width: min(100%, 420px);
    margin: var(--space-l) auto 0;
    padding-top: var(--space-s);
    border-top: 2px dashed var(--stone-500);
    color: var(--ink-soft);
  }
  .nav-call a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--mint-800);
    font-weight: 700;
  }
}
@media (max-width: 479px) {
  :root { --header-h: 68px; }
  .brand { gap: 7px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.08rem; }
  .brand-name span { display: block; }
  .brand-sub { display: none; }
  .header-cta { padding-inline: 0.85em; font-size: 0.92rem; }
  .stone-toggle { width: 48px; }
}

/* ---------- Hero ---------- */
.hero {
  overflow-x: clip;
  padding-top: clamp(2rem, 1rem + 4vw, 4.5rem);
  background:
    radial-gradient(60% 50% at 85% 20%, var(--sun-100), transparent 70%),
    radial-gradient(50% 45% at 10% 10%, var(--lilac-50), transparent 70%);
}
.hero-copy { max-width: 940px; text-align: center; }
.hero-title {
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.swept {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  isolation: isolate;
}
.broom-trail {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -0.06em;
  z-index: -1;
  width: 112%;
  height: 0.62em;
}
.broom-swath { fill: var(--sun-400); }
.broom-streaks { fill: none; stroke: var(--sun-500); stroke-width: 3; stroke-linecap: round; }
.broom {
  position: absolute;
  top: 0.12em;
  left: calc(100% - 0.8em);
  width: 0.8em;
  height: 0.8em;
  opacity: 0;
}
.hero-lead {
  max-width: 720px;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
  font-size: var(--step-1);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin-top: var(--space-m);
}

.hero-copy { position: relative; z-index: 1; }
/* The scene is capped at 1320px; its hills are drawn wider than the viewBox and
   spill sideways, so the lawn always runs edge to edge. */
.hero-scene {
  position: relative;
  margin-top: calc(-1 * clamp(10px, 6vw, 110px));
  overflow: hidden;
}
.scene {
  width: min(100%, 1320px);
  height: auto;
  margin-inline: auto;
  overflow: visible;
}
.sweep-line {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-dasharray: 2 14;
  stroke-linecap: round;
}
.sparkles use { transform-box: fill-box; transform-origin: center; animation: twinkle 3s ease-in-out infinite; }
.sparkles use:nth-child(2) { animation-delay: -0.8s; }
.sparkles use:nth-child(3) { animation-delay: -1.6s; }
.sparkles use:nth-child(4) { animation-delay: -2.2s; }
.sparkles use:nth-child(5) { animation-delay: -1.1s; }
.sparkles use:nth-child(6) { animation-delay: -2.6s; }

.bottle {
  position: absolute;
  left: clamp(8px, 7vw, 120px);
  bottom: 2%;
  width: clamp(108px, 7vw + 70px, 178px);
  height: auto;
  filter: drop-shadow(0 12px 10px rgba(34, 48, 62, 0.18));
}
.bottle-brand { font-family: var(--font-display); font-weight: 800; font-size: 21px; fill: var(--ink); }
.bottle-city { font-family: var(--font-body); font-weight: 700; font-size: 16px; fill: var(--ink); }
.bottle-small { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; fill: var(--ink-soft); }
.mist circle { transform-box: fill-box; transform-origin: center; animation: mist 2.6s ease-out infinite; }
.mist circle:nth-child(2) { animation-delay: 0.4s; }
.mist circle:nth-child(3) { animation-delay: 0.8s; }
.mist circle:nth-child(4) { animation-delay: 1.2s; }

/* Narrow screens keep the right-hand part of the scene: the house and the last stones. */
@media (max-width: 759px) {
  .hero-scene { margin-top: 0; }
  .scene { width: 760px; max-width: none; margin-left: calc(100% - 760px); }
}

/* ---------- 1. The cleans: a winding trail ---------- */
.cleans {
  background: linear-gradient(#bfead8, var(--mint-50) 260px, var(--paper) 720px);
}
.trail {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The stepping stones running down the middle of the trail. */
.trail::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 64px;
  transform: translateX(-50%);
  background:
    radial-gradient(17px 9px at 22px 18px, var(--stone-200) 95%, transparent 100%),
    radial-gradient(15px 8px at 44px 58px, var(--stone-200) 95%, transparent 100%);
  background-size: 64px 80px;
}
.trail-stop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 132px 1fr;
  align-items: center;
  gap: var(--space-m);
}
.trail-stop + .trail-stop { margin-top: calc(-1 * clamp(40px, 9vw, 150px)); }
.trail-stone {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 124px;
  height: 104px;
  margin-inline: auto;
  border: 3px solid var(--ink);
  border-radius: var(--stone-shape);
  background: var(--mint-300);
  box-shadow: 0 7px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
}
.trail-stop:nth-child(2) .trail-stone { background: var(--lilac-300); border-radius: 46% 54% 48% 52% / 52% 58% 42% 48%; }
.trail-stop:nth-child(3) .trail-stone { background: var(--sun-400); border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%; }
.trail-card {
  grid-row: 1;
  grid-column: 1;
  padding: clamp(22px, 2.5vw, 34px);
  border: 2px solid var(--stone-200);
  border-radius: 30px 30px 30px 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.trail-stop:nth-child(even) .trail-card { grid-column: 3; border-radius: 30px 30px 8px 30px; }
.trail-card h3 { font-size: var(--step-2); margin-bottom: 0.3em; }
.price-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
  padding: 0.2em 0.9em;
  border-radius: 999px;
  background: var(--sun-200);
  font-weight: 600;
}
.price-tag strong { font-family: var(--font-display); font-size: 1.35em; }

.addons {
  margin-top: var(--space-l);
  padding: clamp(22px, 3vw, 36px);
  border: 2.5px dashed var(--stone-500);
  border-radius: 32px;
  background: var(--white);
}
.addons-title { font-size: var(--step-1); }
.addons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.addons-list li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.55em 1.2em;
  border-radius: var(--stone-shape);
  background: var(--stone-100);
}
.addons-list strong { font-family: var(--font-display); font-size: 1.15em; color: var(--mint-800); }
.addons .fine { margin: 0; }

@media (max-width: 859px) {
  .trail::before { left: 34px; }
  .trail-stop { grid-template-columns: 68px minmax(0, 1fr); gap: 16px; align-items: start; }
  .trail-stop + .trail-stop { margin-top: var(--space-m); }
  .trail-stone { grid-column: 1; width: 68px; height: 58px; font-size: 1.8rem; box-shadow: 0 5px 0 var(--ink); }
  .trail-card,
  .trail-stop:nth-child(even) .trail-card { grid-column: 2; border-radius: 8px 26px 26px 26px; }
}

/* ---------- 2. PCS moves ---------- */
.pcs { background: var(--lilac-50); }
.pcs-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The dashed footpath that links the five pebbles. */
.pcs-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 4%;
  right: 4%;
  border-top: 3px dashed var(--lilac-300);
}
.pcs-step { position: relative; }
.pcs-when {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1rem;
  padding: 0.35em 1em;
  border: 2.5px solid var(--ink);
  border-radius: var(--stone-shape);
  background: var(--white);
  color: var(--lilac-800);
  font-weight: 700;
  font-size: var(--step--1);
}
.pcs-step:nth-child(3) .pcs-when { background: var(--sun-400); color: var(--ink); }
.pcs-step h3 { font-size: var(--step-1); }
.pcs-step p:last-child { margin: 0; color: var(--ink-soft); }

.pcs-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
  margin-top: var(--space-l);
}
.pcs-note {
  padding: clamp(20px, 2.5vw, 30px);
  border: 2px solid var(--lilac-300);
  border-radius: var(--radius);
  background: var(--white);
}
.pcs-note p { margin: 0; }
.pcs-disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--lilac-300);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

@media (max-width: 999px) {
  .pcs-steps { grid-template-columns: 1fr; gap: 0; }
  .pcs-steps::before { top: 22px; bottom: 22px; left: 26px; right: auto; border-top: 0; border-left: 3px dashed var(--lilac-300); }
  .pcs-step { padding: 0 0 var(--space-m) 0; }
  .pcs-step h3, .pcs-step p:last-child { padding-left: 1.25rem; margin-left: 26px; }
  .pcs-when { margin-bottom: 0.6rem; }
}
@media (max-width: 719px) {
  .pcs-notes { grid-template-columns: 1fr; }
}

/* ---------- 3. Room list: a floor plan whose rooms open up ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0 0 var(--space-m);
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.tag {
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-every { background: var(--mint-100); color: var(--mint-800); }
.tag-deep { background: var(--lilac-100); color: var(--lilac-800); }
.tag-move { background: var(--sun-200); color: var(--ink); }

/* Each room draws its own 4px wall, so the walls meet in the 4px gaps; a
   cell left empty when a room opens reads as a light hatched hallway. */
.floorplan {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 4px;
  background: repeating-linear-gradient(45deg, var(--stone-100) 0 10px, var(--stone-200) 10px 12px);
}
.room {
  position: relative;
  box-shadow: 0 0 0 4px var(--ink);
  grid-column: span 2;
  border-radius: 2px;
  background-color: var(--paper);
}
.room-kitchen {
  grid-column: span 4;
  background-color: var(--white);
  background-image: repeating-conic-gradient(var(--stone-100) 0 25%, transparent 0 50%);
  background-size: 44px 44px;
}
.room-bath {
  background-color: var(--mint-50);
  background-image:
    linear-gradient(90deg, rgba(95, 207, 166, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(95, 207, 166, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
}
.room-living {
  background-color: var(--sun-100);
  background-image: repeating-linear-gradient(transparent 0 26px, rgba(245, 195, 49, 0.3) 26px 28px);
}
.room-move { background-color: var(--lilac-50); }
.room-door { background-color: var(--stone-100); }
.room.is-open { grid-column: 1 / -1; }
.room.is-open::after { display: none; }

/* A door swing in one corner of each room. */
.room::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-top: 2px dashed var(--stone-500);
  border-left: 2px solid var(--stone-500);
  border-top-left-radius: 100%;
  pointer-events: none;
}

.room-title { margin: 0; font-size: inherit; }
.room-title > .room-name,
.room-title > .room-meta { display: block; padding-inline: 22px; }
.room-title > .room-name { padding-top: 20px; font-size: var(--step-2); }
.room-title > .room-meta { padding-bottom: 20px; }
.room-meta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.room-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  width: 100%;
  min-height: 150px;
  padding: 22px 22px 22px 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.room-toggle:hover .room-name { color: var(--mint-800); }
.room-toggle:focus-visible { outline-offset: -6px; }
.room-toggle .room-name { font-size: var(--step-2); }
.room-toggle .room-meta { grid-column: 1; }
.room-check {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  border: 2.5px solid var(--ink);
  border-radius: var(--stone-shape);
  background: var(--white);
  color: var(--ink);
  transition: background-color 0.2s ease;
}
.room-check svg { width: 24px; height: 24px; color: var(--stone-500); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.room-toggle[aria-expanded='true'] { min-height: 0; }
.room-toggle[aria-expanded='true'] .room-check { background: var(--sun-400); }
.room-toggle[aria-expanded='true'] .room-check svg { color: var(--ink); transform: scale(1.15); }

.room-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-m);
  margin: 0 18px 18px;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 0 0 2px var(--stone-200);
}
.tasks { margin: 0; padding: 0; list-style: none; }
.tasks li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 0.55em 0;
  border-bottom: 1px dashed var(--stone-200);
}
.tasks li:last-child { border-bottom: 0; }
.tasks .tag { justify-self: start; }
.qa { margin: 0; }
.qa dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.25; }
.qa dd { margin: 0.35em 0 1.2em; color: var(--ink-soft); }
.qa dd:last-child { margin-bottom: 0; }

@media (max-width: 899px) {
  .floorplan { grid-template-columns: repeat(2, 1fr); }
  .room, .room-kitchen { grid-column: span 1; }
  .room-kitchen { grid-column: 1 / -1; }
  .room-panel { grid-template-columns: 1fr; }
}
@media (max-width: 399px) {
  .bottle { width: 92px; left: 4px; }
  .trail::before { left: 24px; }
  .trail-stop { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .trail-stone { width: 48px; height: 42px; font-size: 1.4rem; box-shadow: 0 4px 0 var(--ink); }
  .trail-card { padding: 18px; }
  .trail-card h3 { font-size: var(--step-1); }
}

@media (max-width: 539px) {
  .floorplan { grid-template-columns: 1fr; }
  .room-toggle { min-height: 112px; }
  .room::after { display: none; }
  .room-panel { margin: 0 8px 8px; }
  .tasks li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 4. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-l);
  align-items: start;
}
.about-story > p { font-size: var(--step-1); color: var(--ink-soft); }
.promises {
  counter-reset: promise;
  margin: var(--space-m) 0 0;
  padding: 0;
  list-style: none;
}
.promises li {
  counter-increment: promise;
  position: relative;
  padding: 0 0 1.1em 3.4rem;
}
.promises li::before {
  content: counter(promise);
  position: absolute;
  left: 0;
  top: -0.1em;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.1rem;
  border: 2px solid var(--ink);
  border-radius: var(--stone-shape);
  background: var(--mint-300);
  font-family: var(--font-display);
  font-weight: 800;
}
.promises li:nth-child(2)::before { background: var(--lilac-300); }
.promises li:nth-child(3)::before { background: var(--sun-400); }
.promises li:nth-child(4)::before { background: var(--stone-200); }

.about-side { display: grid; gap: var(--space-m); }
.area, .hours {
  padding: clamp(22px, 2.6vw, 32px);
  border: 2px solid var(--stone-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.area-intro { color: var(--ink-soft); font-size: var(--step--1); }
.area-list { margin: 0; padding: 0; list-style: none; }
.area-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0.4em 0;
  /* Dotted leader between town and drive time; the labels mask it with white. */
  background: radial-gradient(1.2px 1.2px at 50% 50%, var(--stone-500) 90%, transparent 100%) 0 calc(100% - 0.75em) / 8px 4px repeat-x;
}
.area-list li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-500);
  position: relative;
  z-index: 1;
}
.area-list span { padding-right: 6px; background: var(--white); }
.area-list span:first-child { margin-left: -10px; padding-left: 10px; }
.area-list span:first-child { font-weight: 700; }
.area-list span:last-child {
  margin-left: auto;
  padding: 0 0 0 6px;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.hours-list { margin: 0 0 1rem; }
.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0.45em 0;
  border-bottom: 1px dashed var(--stone-200);
}
.hours-list dt { font-weight: 700; }
.hours-list dd { margin: 0; color: var(--ink-soft); }
.hours .fine { margin: 0; }

@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- 5. Quote builder ---------- */
.quote {
  background:
    radial-gradient(70% 40% at 100% 0%, var(--sun-100), transparent 70%),
    var(--mint-50);
}
.quote-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: var(--space-m);
  align-items: start;
}
.quote-builder { display: grid; gap: 16px; }
.q-group {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 2.6vw, 30px);
  border: 2px solid var(--stone-200);
  border-radius: var(--radius);
  background: var(--white);
}
.q-group legend {
  float: left;
  display: flex;
  align-items: center;
  gap: 0.55em;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
}
.q-group legend + * { clear: left; }
.q-num {
  display: inline-grid;
  place-items: center;
  width: 2em;
  height: 1.7em;
  border: 2px solid var(--ink);
  border-radius: var(--stone-shape);
  background: var(--mint-300);
  font-size: 0.9em;
}
.optional { font-family: var(--font-body); font-weight: 500; font-size: 0.8em; color: var(--ink-soft); }
.hint { margin: 0.5em 0 0; color: var(--ink-soft); font-size: var(--step--1); }
.q-contact > .hint { margin: 0 0 1rem; }
.req {
  margin-left: 0.3em;
  padding: 0.05em 0.5em;
  border-radius: 999px;
  background: var(--lilac-100);
  color: var(--lilac-800);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 0.1em;
}

.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.stepper label { display: block; margin-bottom: 0.4em; font-weight: 700; }
.stepper-control { display: flex; align-items: center; gap: 8px; }
.stepper-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: var(--stone-shape);
  background: var(--stone-100);
  color: var(--ink);
  font: 800 1.5rem / 1 var(--font-display);
  cursor: pointer;
}
.stepper-btn:hover { background: var(--sun-200); }
.stepper-btn:disabled { background: var(--white); border-style: dashed; color: var(--ink-soft); cursor: not-allowed; }
.stepper-control input {
  width: 4.2em;
  min-height: 48px;
  padding: 0 4px;
  border: 2px solid var(--stone-500);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  font: 800 1.4rem / 1 var(--font-display);
  text-align: center;
  appearance: textfield;
}
.stepper-control input::-webkit-inner-spin-button,
.stepper-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.choice-row { display: grid; gap: 10px; }
.choice-row-3 { grid-template-columns: repeat(3, 1fr); }
.choice-row-4 { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input,
.extra input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice-face {
  display: grid;
  align-content: center;
  gap: 2px;
  height: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 2px solid var(--stone-500);
  border-radius: 18px;
  background: var(--white);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.choice-title { font-weight: 700; line-height: 1.2; }
.choice-note { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.3; }
.choice:hover .choice-face { background: var(--mint-50); }
.choice input:checked + .choice-face {
  border-color: var(--mint-800);
  background: var(--mint-100);
  box-shadow: inset 0 0 0 2px var(--mint-800);
}
.choice input:focus-visible + .choice-face { outline: 3px solid var(--lilac-800); outline-offset: 3px; }
.choice input:disabled + .choice-face {
  border-style: dashed;
  background: var(--stone-100);
  box-shadow: none;
  cursor: not-allowed;
}
.choice input:disabled:checked + .choice-face { border-style: solid; border-color: var(--mint-800); background: var(--mint-100); }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.extra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  border: 2px solid var(--stone-200);
  border-radius: 16px;
  cursor: pointer;
}
.extra:hover { background: var(--mint-50); }
.extra-box {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  background: var(--white);
}
.extra-box svg { width: 20px; height: 20px; color: var(--ink); transform: scale(0); transition: transform 0.2s ease; }
.extra input:checked + .extra-box { background: var(--sun-400); }
.extra input:checked + .extra-box svg { transform: scale(1); }
.extra input:focus-visible + .extra-box { outline: 3px solid var(--lilac-800); outline-offset: 3px; }
.extra input:disabled + .extra-box { background: var(--mint-100); border-color: var(--mint-800); }
.extra input:disabled + .extra-box svg { transform: scale(1); color: var(--mint-800); }
.extra:has(input:disabled) { cursor: default; background: var(--mint-50); }
.extra-text { line-height: 1.3; }
.extra-price { display: block; font-weight: 700; color: var(--mint-800); font-size: 0.9rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.35em; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--stone-500);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.stepper-control input:focus-visible { outline: 3px solid var(--lilac-800); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid='true'] { border-color: var(--error); background: var(--error-bg); }
.field-error { margin: 0.35em 0 0; color: var(--error); font-size: var(--step--1); font-weight: 600; }
.field-error:empty { display: none; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.estimate { position: sticky; top: calc(var(--header-h) + 20px); }
/* On one-column layouts the price card sits below the form, so a pill keeps the price in view. */
.estimate-peek { display: none; }
.estimate-card {
  padding: clamp(22px, 2.6vw, 30px);
  border: 3px solid var(--ink);
  border-radius: 30px 30px 30px 10px;
  background: var(--lilac-100);
  box-shadow: 0 8px 0 var(--ink);
}
.estimate-title { font-size: var(--step-1); }
.estimate-lines {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.estimate-lines li {
  padding: 0.4em 0;
  border-bottom: 1px dashed var(--lilac-300);
}
.estimate-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.5em;
  margin: 0 0 0.6rem;
}
.estimate-label { flex-basis: 100%; font-weight: 700; }
.estimate-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
}
.estimate-unit { color: var(--ink-soft); font-weight: 600; }
.estimate-note { font-size: var(--step--1); color: var(--ink-soft); }
.estimate-card .btn { margin: 0.4rem 0 1rem; }
.estimate-card .estimate-note:last-of-type { margin-bottom: 0; }
.estimate-card a { color: var(--lilac-800); font-weight: 700; }

.form-status:empty { display: none; }
.form-status {
  margin-top: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.form-status.is-success { background: var(--mint-100); color: var(--mint-800); border: 2px solid var(--mint-800); }
.form-status.is-error { background: var(--error-bg); color: var(--error); border: 2px solid var(--error); }
.form-status a { color: inherit; }

@media (max-width: 1023px) {
  .quote-form { grid-template-columns: minmax(0, 1fr); }
  .estimate { position: static; }
  .estimate-peek {
    position: sticky;
    top: calc(var(--header-h) + 10px);
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    justify-self: end;
    margin: 0 0 -6px;
    padding: 0.35em 1.1em;
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    background: var(--lilac-100);
    box-shadow: 0 4px 0 var(--ink);
    font-weight: 700;
    font-size: var(--step--1);
  }
  .estimate-peek strong { font-family: var(--font-display); font-size: 1.5em; line-height: 1; }
  .choice-row-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .choice-row-3 { grid-template-columns: 1fr; }
  .extras, .field-grid { grid-template-columns: 1fr; }
  .steppers { grid-template-columns: 1fr; }
}

/* ---------- Footer: footprints on a freshly mopped floor ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--space-m);
  background-color: var(--mint-50);
  background-image:
    linear-gradient(90deg, rgba(34, 48, 62, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(34, 48, 62, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  border-top: 3px solid var(--ink);
}
.footprints { width: 100%; height: 120px; }
.footprints-sheen { fill: none; stroke: var(--white); stroke-width: 30; stroke-linecap: round; opacity: 0.8; }
.footprints-trail use { fill: var(--stone-500); }
/* The prints fade out where the mop has already been. */
.footprints-trail use:nth-child(n+8) { opacity: 0.6; }
.footprints-trail use:nth-child(n+10) { opacity: 0.35; }
.footprints-trail use:nth-child(n+12) { opacity: 0.15; }
.footprints-sparkles { fill: var(--sun-400); stroke: var(--ink); stroke-width: 1.2; }

.footer-floor {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-m);
  padding-bottom: var(--space-l);
}
/* Each group sits one step lower than the last, like prints walking across the floor. */
.footer-step:nth-child(2) { margin-top: 18px; }
.footer-step:nth-child(3) { margin-top: 36px; }
.footer-step:nth-child(4) { margin-top: 54px; }
.footer-step p { color: var(--ink-soft); margin: 0.8rem 0 0; max-width: 34ch; }
.footer-title { font-size: var(--step-1); margin-bottom: 0.4em; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { color: var(--ink-soft); }
.footer-list a,
.footer-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
}
.footer-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.footer-list a:hover, .footer-button:hover { color: var(--mint-800); }
.footer-legal {
  margin: 0;
  padding-top: var(--space-s);
  border-top: 2px dashed var(--stone-500);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

@media (max-width: 899px) {
  .footer-floor { grid-template-columns: 1fr 1fr; }
  .footer-step:nth-child(n) { margin-top: 0; }
  .footer-step:nth-child(even) { margin-top: 24px; }
}
@media (max-width: 539px) {
  .footer-floor { grid-template-columns: 1fr; }
  .footer-step:nth-child(even) { margin-top: 0; margin-left: 28px; }
}

/* ---------- Legal pages ---------- */
.legal-head {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--space-l);
  background:
    radial-gradient(50% 80% at 100% 0%, var(--sun-100), transparent 70%),
    var(--mint-50);
  border-bottom: 2px dashed var(--stone-500);
}
.legal-head .container { max-width: 820px; }
.legal-head h1 { font-size: var(--step-4); }
.legal-head p:last-child { margin: 0; font-size: var(--step-1); color: var(--ink-soft); }
.legal-updated {
  display: inline-block;
  padding: 0.2em 0.9em;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--stone-200);
  font-weight: 600;
  font-size: var(--step--1);
}
.legal-body { padding-block: var(--space-l) var(--space-xl); }
.prose { max-width: 820px; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose code { font-size: 0.92em; padding: 0.05em 0.35em; border-radius: 6px; background: var(--stone-100); }
.callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--lilac-50);
  border: 2px solid var(--lilac-300);
}
.toc {
  margin: var(--space-m) 0;
  padding: 20px 24px;
  border: 2px dashed var(--stone-500);
  border-radius: var(--radius);
  background: var(--white);
}
.toc h2 { margin: 0 0 0.5em; font-size: var(--step-1); }
.toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 1.3em; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 0.35em 0; min-height: 44px; line-height: 1.4; }

.table-wrap { margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--stone-200); text-align: left; vertical-align: top; }
.prose th { background: var(--mint-100); font-weight: 700; }

@media (max-width: 719px) {
  .toc ol { columns: 1; }
  /* Rows stack into label/value blocks instead of scrolling sideways. */
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose tr { margin-bottom: 14px; border: 2px solid var(--stone-200); border-radius: var(--radius-s); background: var(--white); }
  .prose td { position: relative; padding: 10px 14px 10px calc(6.5rem + 24px); }
  .prose td:last-child { border-bottom: 0; }
  .prose td::before { content: attr(data-label); position: absolute; left: 14px; top: 10px; width: 6.5rem; font-weight: 700; }
}

/* ---------- 404 ---------- */
.lost { padding-block: var(--space-xl); }
.lost-inner { max-width: 680px; text-align: center; }
.lost-art { width: min(100%, 480px); height: auto; margin: 0 auto var(--space-m); }
.lost h1 { font-size: var(--step-4); }
.lost p { color: var(--ink-soft); font-size: var(--step-1); }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: var(--space-m); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px 24px;
  border: 3px solid var(--ink);
  border-radius: 28px 28px 28px 10px;
  background: var(--white);
  box-shadow: 0 8px 0 var(--ink), 0 24px 50px -20px rgba(34, 48, 62, 0.5);
}
.consent-title { margin: 0 0 0.4em; font-size: var(--step-1); }
.consent-text { margin: 0 0 1rem; font-size: var(--step--1); color: var(--ink-soft); }
.consent-text a { color: var(--mint-800); font-weight: 600; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.consent-btn {
  flex: 1 1 130px;
  min-height: 48px;
  padding: 0.5em 1em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--sun-200);
  color: var(--ink);
  font: 700 var(--step-0) / 1.1 var(--font-body);
  cursor: pointer;
}
.consent-btn:hover { background: var(--sun-400); }
.consent-link {
  min-height: 44px;
  padding: 0 0.4em;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 var(--step--1) / 1 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.consent-link:hover { color: var(--mint-800); }

.consent-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
}
.consent-dialog::backdrop { background: rgba(34, 48, 62, 0.55); }
.consent-dialog-inner { padding: 26px; }
.consent-categories { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.consent-category { padding: 14px 0; border-bottom: 1px dashed var(--stone-500); }
.consent-category p { margin: 0.3em 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.consent-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent-category-head h3 { margin: 0; font-size: var(--step-0); }
.consent-always { font-size: var(--step--1); font-weight: 700; color: var(--mint-800); }
.consent-switch { position: relative; display: inline-flex; align-items: center; min-width: 56px; min-height: 44px; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.consent-switch-track {
  position: relative;
  width: 56px;
  height: 32px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--stone-200);
  transition: background-color 0.2s ease;
}
.consent-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.consent-switch input:checked + .consent-switch-track { background: var(--mint-500); }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(24px); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--lilac-800); outline-offset: 3px; }
.consent-btn-save { background: var(--mint-100); }
.consent-btn-save:hover { background: var(--mint-300); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Motion ---------- */
@keyframes wipe { to { background-position: 150% 0; } }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.55) rotate(20deg); opacity: 0.6; }
}
@keyframes mist {
  0% { transform: translate(-14px, 4px) scale(0.3); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(8px, -4px) scale(1.2); opacity: 0; }
}
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes broom-run {
  0% { left: -4%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 0.8em); opacity: 0; }
}

.js .broom-trail { animation: sweep 1.3s cubic-bezier(0.5, 0, 0.3, 1) 0.4s both; }
.js .broom { animation: broom-run 1.3s cubic-bezier(0.5, 0, 0.3, 1) 0.4s both; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .broom { display: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .footprints, .consent, .consent-dialog, .hero-scene, .stone-toggle, .estimate .btn { display: none; }
  body { background: #fff; }
  .section { padding-block: 1.5rem; }
  .js .reveal { opacity: 1; transform: none; }
}
