/* design\components.css: the CSS of the components in design\components.md, the director's: the header, the footer,
   the exit popup, the call bar, the stop icon, and each section pattern, card, form box and call-to-action block as the
   home page built them. Every page loads it (the build copies it to site\assets\css\components.css). Every page uses these
   classes as they are; a page's own CSS only places and sizes its parts, with the tokens of system.css. */

/* ---------- layout ---------- */
main { display: block; }
.wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--section-y); position: relative; }
.band--cream { background: var(--c-paper); }
.band--sand { background: var(--c-paper-alt); }
.band--white { background: var(--c-white); }
.band--royal { background: var(--c-brand); color: var(--c-on-ink); }
.head { display: grid; gap: var(--space-3); max-width: var(--max-w-text); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.head__title { font-size: var(--fs-h2); color: var(--c-ink); }
.band--royal .head__title { color: var(--c-on-ink); }
.head__line { font-size: var(--fs-lead); color: var(--c-ink-soft); line-height: 1.5; }
.band--royal .head__line { color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.head__line a, .call-line a { color: var(--c-cobalt); font-weight: var(--fw-ui); text-decoration: none; white-space: nowrap; }
.head__line a:hover, .call-line a:hover { text-decoration: underline; }
.split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
.split--flip { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr); }
.split__text { align-content: center; }
.split__media { position: relative; min-width: 0; }
@media (max-width: 899px) {
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); }
  .split > .split__text { order: -1; }
}
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; stroke-width: var(--icon-stroke); stroke-linecap: var(--icon-cap); stroke-linejoin: var(--icon-join); }
.icon--fill { fill: currentColor; }
.stars { display: inline-flex; gap: 2px; color: var(--c-star); }
.chip { display: inline-flex; align-items: center; padding: 0.42em 0.85em; border-radius: var(--radius-pill); background: var(--c-brand-light); color: var(--c-brand-text); font-size: var(--fs-small); font-weight: var(--fw-strong); line-height: 1.2; }
.chip--home { background: var(--c-cobalt); color: var(--c-on-brand); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 52px; padding: 0 1.5em; border-radius: var(--radius-pill); border: 0; font: var(--fw-ui) var(--fs-ui) / 1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.btn--primary { background: var(--c-cobalt); color: var(--c-on-brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--c-cobalt) 32%, transparent); }
.btn--primary:hover { background: var(--c-cobalt-dark); }
.btn--primary:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-paper); }
.btn--call { background: var(--c-white); color: var(--c-cobalt); box-shadow: var(--shadow-s); }
.btn .icon { width: 1.15em; height: 1.15em; }
.link-more { display: inline-flex; align-items: center; gap: 0.45em; color: var(--c-cobalt); font-weight: var(--fw-ui); text-decoration: none; }
.link-more .icon { transition: transform var(--dur-fast) var(--ease-out); }
.link-more:hover .icon { transform: translateX(3px); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more[data-planned] { color: var(--c-ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.call-line { font-size: var(--fs-small); color: var(--c-ink-soft); text-align: center; }

/* ---------- the loop (the motif) ---------- */
.loop { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 4; --loop-inset: 14px; --loop-r: 20px; }
.loop rect { x: var(--loop-inset); y: var(--loop-inset); width: calc(100% - 2 * var(--loop-inset)); height: calc(100% - 2 * var(--loop-inset)); rx: var(--loop-r); fill: none; }
.loop__halo { stroke: var(--loop-halo); stroke-width: var(--loop-halo-width); stroke-opacity: 0.55; }
.loop__line { stroke: var(--loop-color); stroke-width: var(--loop-width); stroke-dasharray: var(--loop-dash); stroke-linecap: round; }
.loop__mask { stroke: var(--c-white); stroke-width: 18px; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.loop[data-loop-on] .loop__mask { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-slow) var(--ease-out); }
.loop--round { --loop-inset: -7px; --loop-r: 999px; }
.loop--frame { --loop-inset: 12px; --loop-r: 18px; }
@media (prefers-reduced-motion: reduce) { .loop .loop__mask { stroke-dashoffset: 0; transition: none; } }

/* ---------- the header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-white); animation: header-line linear both; animation-timeline: scroll(root); animation-range: 0 64px; }
@keyframes header-line { from { box-shadow: 0 1px 0 transparent; } to { box-shadow: 0 1px 0 var(--c-line), 0 8px 24px color-mix(in srgb, var(--c-brand) 8%, transparent); } }
.site-header__in { box-sizing: border-box; display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.75rem); height: var(--header-h); max-width: calc(var(--max-w) + 2 * var(--gutter) + 80px); margin-inline: auto; padding-inline: var(--gutter); }
.site-header__logo { display: block; flex: none; line-height: 0; }
.site-header__logo .logo { display: block; width: auto; height: 60px; }
.site-header__nav { flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: center; justify-content: center; gap: clamp(0.25rem, 1vw, 1rem); margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__item > a, .nav__group { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.6em 0.55em; border: 0; background: none; color: var(--c-ink); font: var(--fw-strong) 0.98rem / 1.2 var(--font-ui); text-decoration: none; cursor: pointer; border-radius: var(--radius-s); white-space: nowrap; }
.nav__item > a:hover, .nav__group:hover { color: var(--c-cobalt); background: var(--c-brand-light); }
.nav__item > a[data-planned], .nav__sub a[data-planned] { color: var(--c-ink); }
.nav__chev { width: 0.95em; height: 0.95em; transition: transform var(--dur-fast) var(--ease-out); }
.nav__group[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__sub { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; min-width: 220px; margin: 0; padding: 0.5rem; list-style: none; background: var(--c-white); border-radius: var(--radius-m); box-shadow: var(--shadow-m); display: none; }
.nav__group[aria-expanded="true"] + .nav__sub { display: grid; }
@media (hover: hover) and (min-width: 1100px) { .nav__item--group:hover > .nav__sub, .nav__item--group:focus-within > .nav__sub { display: grid; } .nav__item--group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } }
.nav__sub a { display: block; padding: 0.65em 0.85em; border-radius: var(--radius-s); color: var(--c-ink); font-weight: var(--fw-strong); text-decoration: none; }
.nav__sub a:hover { background: var(--c-brand-light); color: var(--c-cobalt); }
.site-header__phone { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-ink); text-decoration: none; flex: none; }
.site-header__ring { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-cobalt); font-size: 1.2rem; }
.site-header__num { display: grid; line-height: 1.15; }
.site-header__num b { font-size: 1.08rem; font-weight: var(--fw-ui); color: var(--c-brand-text); letter-spacing: 0.01em; }
.site-header__num small { font-size: var(--fs-tiny); color: var(--c-ink-soft); font-weight: var(--fw-strong); }
.site-header__phone:hover .site-header__ring { background: var(--c-cobalt); color: var(--c-on-brand); }
.site-header__cta { flex: none; min-height: 48px; padding-inline: 1.35em; }
.site-header__menu { display: none; width: 46px; height: 46px; border: 0; border-radius: var(--radius-s); background: var(--c-brand-light); color: var(--c-ink); cursor: pointer; }
.burger { display: grid; gap: 5px; width: 20px; margin: auto; }
.burger i { display: block; height: 2.4px; border-radius: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.site-header[data-open] .burger i:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.site-header[data-open] .burger i:nth-child(2) { opacity: 0; }
.site-header[data-open] .burger i:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }
@media (max-width: 1099px) {
  .site-header__menu { display: grid; place-items: center; }
  .site-header__nav { position: absolute; top: 100%; left: 0; right: 0; display: none; background: var(--c-white); box-shadow: 0 12px 24px color-mix(in srgb, var(--c-brand) 12%, transparent); padding: 0.5rem var(--gutter) 1.25rem; max-height: calc(100svh - var(--header-h)); overflow: auto; }
  .site-header[data-open] .site-header__nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item > a, .nav__group { width: 100%; justify-content: space-between; padding: 0.9em 0.25em; font-size: 1.08rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav__sub { position: static; translate: none; box-shadow: none; padding: 0 0 0.5rem 0.75rem; min-width: 0; }
  .site-header__in { gap: 0.75rem; }
  .site-header__nav + .site-header__phone { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header__logo .logo { height: 48px; }
  .site-header__num, .site-header__cta { display: none; }
  .site-header__ring { width: 46px; height: 46px; background: var(--c-cobalt); color: var(--c-on-brand); }
}

/* ---------- the stop icon ---------- */
.stop { position: absolute; z-index: 6; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--c-white); color: var(--c-ink); box-shadow: var(--shadow-s); cursor: pointer; opacity: 0.92; }
.stop:hover { opacity: 1; color: var(--c-cobalt); }
.stop:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 2px; }
.stop svg { width: 14px; height: 14px; }
.stop--on-media { top: 14px; right: 14px; }

/* ---------- stages, frames and glass ---------- */
.stage { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); isolation: isolate; }
.stage > video, .frame__clip > video, .frame > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.stage > .scene { position: absolute; inset: 0; z-index: 2; }
.frame { position: relative; border-radius: var(--radius-l); }
.frame__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--c-ink); }
.frame--tall { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-ink); }
.glass { box-sizing: border-box; background: var(--c-glass); border: 1px solid var(--c-glass-line); border-radius: var(--radius-m); box-shadow: var(--shadow-m); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); color: var(--c-ink); }

/* ---------- the proof row ---------- */
.proof { box-sizing: border-box; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--space-4); max-width: calc(var(--max-w) + 2 * var(--gutter)); margin: 0 auto; padding: 1.4rem var(--gutter) 0.4rem; list-style: none; }
.proof__item { display: flex; align-items: center; gap: 0.8rem; }
.proof__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--c-brand-light); color: var(--c-cobalt); font-size: 1.35rem; }
.proof__icon--stars { width: auto; height: 48px; padding: 0 0.8rem; border-radius: var(--radius-pill); background: var(--c-accent-light); font-size: 0.95rem; }
.proof__icon--stars .stars { color: var(--c-star); }
.proof__big { display: block; font-size: 1.06rem; font-weight: var(--fw-ui); color: var(--c-ink); line-height: 1.2; }
.proof__small { display: block; font-size: var(--fs-small); color: var(--c-ink-soft); line-height: 1.3; }
@media (max-width: 1023px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; } }
@media (max-width: 560px) { .proof { gap: 1.1rem 1rem; } .proof__item { flex-direction: column; align-items: flex-start; gap: 0.45rem; } .proof__icon { width: 40px; height: 40px; font-size: 1.15rem; } .proof__icon--stars { height: 40px; padding: 0 0.6rem; font-size: 0.85rem; } .proof__big { font-size: 1rem; } .proof__small { font-size: 0.86rem; } }

/* ---------- the form box ---------- */
.formbox { box-sizing: border-box; background: var(--c-white); border-radius: 24px; box-shadow: var(--shadow-l); padding: 1.15rem 1.35rem 1.1rem; color: var(--c-ink); }
.pform { margin: 0; }
.pform fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pform__step { display: grid; gap: 0.8rem; }
.pform__top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem; font-size: var(--fs-small); color: var(--c-ink-soft); }
.pform__progress svg { display: block; width: 40px; height: 26px; }
.pp { fill: none; stroke: var(--c-brand-tint); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 3.4; transition: stroke var(--dur-med) var(--ease-out); }
.pform:not([data-kit-at]) .pp-0, .pform[data-kit-at="1"] .pp-0, .pform[data-kit-at="2"] :is(.pp-0, .pp-1), .pform[data-kit-at="3"] .pp { stroke: var(--c-cobalt); }
.pform__count { font-weight: var(--fw-ui); color: var(--c-ink); }
.pform__count i { font-style: normal; display: none; }
.pform:not([data-kit-at]) .pform__count i[data-n="1"], .pform[data-kit-at="1"] .pform__count i[data-n="1"], .pform[data-kit-at="2"] .pform__count i[data-n="2"], .pform[data-kit-at="3"] .pform__count i[data-n="3"] { display: inline; }
.pform__fast { display: inline-flex; align-items: center; gap: 0.35em; margin-left: auto; color: var(--c-ink-soft); font-weight: var(--fw-strong); font-size: var(--fs-tiny); }
.pform__q { padding: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 1.42rem; line-height: 1.15; color: var(--c-ink); font-variation-settings: 'SOFT' 100, 'WONK' 0; }
.pform__q--small { font-size: 1.12rem; margin-top: 0.35rem; }
.pform__q--sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pform__group { display: grid; gap: 0.7rem; }
.pform__promise { display: flex; align-items: center; gap: 0.45em; font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--c-lawn-text); margin-top: -0.2rem; }
.pform__promise .icon { font-size: 1.15em; }
.tiles { display: grid; gap: 0.6rem; position: relative; }
.tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tiles--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.tiles .pform__error { grid-column: 1 / -1; }
.tile, .pchip { position: relative; cursor: pointer; background: var(--c-white); border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--c-line); transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tile { display: grid; justify-items: center; align-content: start; gap: 0.35rem; padding: 0.55rem 0.5rem 0.7rem; }
.tile:hover, .pchip:hover { box-shadow: inset 0 0 0 1.5px var(--c-brand-tint), var(--shadow-s); }
.tile[data-kit-on], .pchip[data-kit-on] { background: var(--c-brand-light); box-shadow: inset 0 0 0 2.5px var(--c-cobalt), var(--shadow-s); }
.tile:has(.tile__input:focus-visible), .pchip:has(.tile__input:focus-visible) { outline: 3px solid var(--c-cobalt); outline-offset: 2px; }
.tile__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tile__art { display: block; width: 100%; max-width: 132px; height: auto; aspect-ratio: 120 / 72; }
.tile__label { font-size: 0.95rem; font-weight: var(--fw-ui); line-height: 1.2; text-align: center; color: var(--c-ink); }
.pchip { display: flex; align-items: center; gap: 0.55rem; padding: 0.8rem 0.9rem; font-weight: var(--fw-ui); font-size: 0.97rem; line-height: 1.2; }
.pchip .icon { color: var(--c-cobalt); font-size: 1.2em; }
.pchip__icons { display: inline-flex; flex: none; }
.pchip__icons .icon + .icon { margin-left: -0.3em; }
.tiles--row .pchip { flex: 1 1 auto; justify-content: center; }
/* the drawn vignettes */
.art-field { fill: color-mix(in srgb, var(--c-lawn-light) 40%, var(--c-white)); }
.art-lawn { fill: var(--c-lawn-light); }
.art-drive { fill: var(--c-paper-alt); }
.art-house { fill: var(--c-white); stroke: var(--c-brand); stroke-width: 1.4; }
.art-ridge { fill: none; stroke: var(--c-brand); stroke-width: 1.2; stroke-linecap: round; }
.art-tree { fill: var(--c-lawn); opacity: 0.6; }
.art-bed { fill: var(--c-accent-light); stroke: var(--c-accent); stroke-width: 1; }
.art-halo { fill: none; stroke: var(--c-white); stroke-width: 5.5; stroke-linecap: round; }
.art-loop { fill: none; stroke: var(--c-brand-tint); stroke-width: 2.3; stroke-dasharray: 5 3.6; stroke-linecap: round; transition: stroke var(--dur-med) var(--ease-out); }
.art-mask { fill: none; stroke: var(--c-white); stroke-width: 10; stroke-dasharray: 100 100; transition: stroke-dashoffset 0.65s var(--ease-out); }
.art-mask--open { stroke-dashoffset: 24; }
.art-mask--full { stroke-dashoffset: 0; }
.art-mask--gap { stroke-dashoffset: 100; }
.art-dog circle, circle.art-dog { fill: var(--c-accent); stroke: var(--c-brand); stroke-width: 1.4; }
.art-break path { fill: none; stroke: var(--c-coral); stroke-width: 2.4; stroke-linecap: round; transition: opacity var(--dur-fast); }
.art-ok { opacity: 0; transition: opacity var(--dur-med) var(--ease-out) 0.25s; }
.art-ok circle { fill: var(--c-lawn); }
.art-ok path { fill: none; stroke: var(--c-white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.art-old { fill: none; stroke: var(--c-ink-soft); stroke-opacity: 0.45; stroke-width: 1.8; stroke-dasharray: 2.5 3; transition: stroke-opacity var(--dur-med); }
.art-strap { fill: var(--c-brand); }
.art-box { fill: var(--c-ink); }
.art-cell { fill: none; stroke: var(--c-white); stroke-width: 1.4; }
.art-tip { fill: var(--c-white); }
.art-charge { fill: var(--c-coral); transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0.28); transition: transform 0.7s var(--ease-out) 0.1s, fill var(--dur-med) 0.25s; }
.tile:hover .art-mask--open { stroke-dashoffset: 12; }
.tile[data-kit-on] .art-mask--open, .tile[data-kit-on] .art-mask--gap { stroke-dashoffset: 0; }
.tile[data-kit-on] .art-loop { stroke: var(--c-cobalt); }
.tile[data-kit-on] .art-break path { opacity: 0; }
.tile[data-kit-on] .art-ok { opacity: 1; }
.tile[data-kit-on] .art-old { stroke-opacity: 0.12; }
.tile[data-kit-on] .art-charge { transform: scaleX(1); fill: var(--c-lawn); }
@media (prefers-reduced-motion: reduce) { .art-mask, .art-charge, .art-ok { transition: none; } }
/* fields */
.pfield { display: grid; gap: 0.35rem; }
.pfield label { font-weight: var(--fw-ui); font-size: var(--fs-small); color: var(--c-ink); }
.pfield input { box-sizing: border-box; width: 100%; height: 54px; padding: 0 1rem; border: 0; border-radius: 14px; background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line); font: var(--fw-text) 1.05rem / 1.2 var(--font-text); color: var(--c-ink); }
.pfield input:hover { box-shadow: inset 0 0 0 1.5px var(--c-brand-tint); }
.pfield input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-cobalt), 0 0 0 4px var(--c-brand-light); }
.pfield input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--c-coral); }
.pform__error { font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--c-coral-text); }
.pform__nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.35rem; }
.pform__back { padding: 0.7rem 0.25rem; border: 0; background: none; color: var(--c-ink-soft); font: var(--fw-strong) var(--fs-small) / 1 var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pform__back:hover { color: var(--c-ink); }
.pform__nav .btn { min-height: 54px; flex: 1; max-width: 320px; }
.pform__next--auto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; }
.pform__next--auto:focus-visible { position: static; width: auto; height: auto; clip-path: none; justify-self: end; padding: 0.6rem 1.1rem; border-radius: var(--radius-pill); background: var(--c-cobalt); color: var(--c-on-brand); font-weight: var(--fw-ui); }
.pform[data-kit-sending] .pform__send { opacity: 0.7; pointer-events: none; }
/* variants */
.formbox--compact { box-shadow: none; padding: 0; background: transparent; }
.formbox--compact .pform__top { display: none; }
.formbox--compact .pform__q { font-size: 1.15rem; }
@media (min-width: 640px) { .formbox--compact .tiles--4, .formbox--hero .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pform__fast { display: none; } .formbox { padding: 1rem 1rem 0.95rem; } }

/* ---------- the exit popup ---------- */
.exit { box-sizing: border-box; width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); overflow: auto; }
.exit:focus, .exit:focus-visible { outline: none; }
.exit::backdrop { background: color-mix(in srgb, var(--c-ink) 58%, transparent); }
.exit[open] { animation: exit-in var(--dur-med) var(--ease-out); }
@keyframes exit-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.exit__in { position: relative; display: grid; gap: 0.7rem; padding: 1.6rem 1.75rem 1.5rem; }
.exit__art { width: 100%; max-width: 300px; height: auto; justify-self: center; }
.exit__loop-halo { fill: none; stroke: var(--c-white); stroke-width: 7; stroke-linecap: round; }
.exit__loop { fill: none; stroke: var(--c-cobalt); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.9 0.7; }
.exit__loop, .exit__loop-halo { stroke-dashoffset: 0; }
.exit[data-kit-on] .exit__loop { animation: exit-loop 1.4s var(--ease-out) 0.2s both; }
@keyframes exit-loop { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 0.9 0.7; } }
.exit__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); text-align: center; }
.exit__line { text-align: center; color: var(--c-ink-soft); font-size: var(--fs-lead); margin-bottom: 0.3rem; }
.exit__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--c-white); color: var(--c-ink); font-size: 1.25rem; box-shadow: var(--shadow-s); cursor: pointer; }
.exit__close:hover { color: var(--c-cobalt); }
html[data-kit-modal] { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .exit[open], .exit[data-kit-on] .exit__loop { animation: none; } }

/* ---------- the call bar on the phone ---------- */
.callbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; padding: 8px; border-radius: 22px; background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-l); visibility: hidden; transform: translateY(130%); transition: transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med); }
.callbar[data-kit-on] { visibility: visible; transform: none; transition: transform var(--dur-med) var(--ease-out), visibility 0s; }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 50px; border-radius: 16px; font-weight: var(--fw-ui); font-size: 1rem; text-decoration: none; }
.callbar__call { background: var(--c-brand-light); color: var(--c-cobalt); }
.callbar__cta { background: var(--c-cobalt); color: var(--c-on-brand); }
@media (min-width: 900px) { .callbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .callbar, .callbar[data-kit-on] { transition: none; } }

/* ---------- reviews and the rating ---------- */
.review { box-sizing: border-box; display: grid; gap: 0.8rem; margin: 0; padding: 1.4rem 1.5rem; background: var(--c-white); border-radius: var(--radius-m); box-shadow: var(--shadow-s); break-inside: avoid; }
.review__src { display: flex; align-items: center; gap: 0.55rem; font-size: var(--fs-tiny); font-weight: var(--fw-ui); color: var(--c-ink-soft); }
.review__src .stars { font-size: 1rem; }
.review__src--letter { color: var(--c-accent-text); }
.review__text { margin: 0; }
.review__text p { font-size: 1.04rem; line-height: 1.55; color: var(--c-ink); }
.review__name { font-weight: var(--fw-ui); color: var(--c-brand-text); }
.rating { display: flex; align-items: center; gap: 1.4rem; }
.rating__owners { position: relative; margin: 0; width: 112px; flex: none; text-align: center; }
.rating__photo { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.rating__owners figcaption { margin-top: 0.75rem; font-size: var(--fs-tiny); font-weight: var(--fw-ui); color: var(--c-ink-soft); }
.rating__owners .loop { inset: 0 0 auto 0; height: 112px; }
.rating__score { display: grid; justify-items: start; gap: 0.25rem; }
.rating__num { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 4rem; line-height: 0.9; color: var(--c-brand-text); font-variation-settings: 'SOFT' 100, 'WONK' 0; }
.rating__stars { font-size: 1.4rem; }
.rating__count { font-weight: var(--fw-ui); color: var(--c-ink); }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tab { display: inline-flex; align-items: center; gap: 0.55em; min-height: 52px; padding: 0 1.3em; border: 0; border-radius: var(--radius-pill); background: var(--c-white); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); font: var(--fw-ui) 1rem / 1 var(--font-ui); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), translate var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.tab .icon { font-size: 1.2em; color: var(--c-cobalt); }
.tab:hover { box-shadow: inset 0 0 0 1.5px var(--c-brand-tint); }
.tab[aria-selected="true"] { background: var(--c-brand); color: var(--c-on-brand); box-shadow: none; }
.tab[aria-selected="true"] .icon { color: var(--c-accent); }
.tab:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 2px; }
.nb { white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1.5px solid var(--c-line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0.25rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h3); line-height: 1.25; color: var(--c-ink); font-variation-settings: 'SOFT' 100, 'WONK' 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-cobalt); }
.faq__item summary:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 2px; border-radius: 6px; }
.faq__plus { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--c-brand-light); color: var(--c-cobalt); font-size: 1.15rem; transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-fast); }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--c-cobalt); color: var(--c-on-brand); }
.faq__item p { padding: 0 3.5rem 1.4rem 0.25rem; color: var(--c-ink-soft); font-size: 1.06rem; }

/* ---------- the footer ---------- */
.site-footer { background: var(--c-white); border-top: 1px solid var(--c-line); color: var(--c-ink); }
.site-footer__in { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: 4rem var(--gutter) 2.5rem; }
.site-footer__logo { display: inline-block; line-height: 0; }
.site-footer__logo .logo { width: auto; height: 76px; }
.site-footer__line { margin-top: 0.9rem; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 1.25rem; line-height: 1.25; max-width: 18rem; font-variation-settings: 'SOFT' 100, 'WONK' 0; }
.site-footer__contact { display: grid; gap: 0.55rem; margin-top: 1.25rem; font-size: var(--fs-small); }
.site-footer__contact > * { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0; font-style: normal; color: var(--c-ink-soft); text-decoration: none; }
.site-footer__contact .icon { margin-top: 0.15em; color: var(--c-cobalt); }
.site-footer__phone { color: var(--c-brand-text) !important; font-weight: var(--fw-ui); font-size: 1.15rem; }
.site-footer__contact a:hover { color: var(--c-cobalt); }
.site-footer__title { font-weight: var(--fw-ui); margin-bottom: 0.75rem; }
.site-footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.site-footer__col a { color: var(--c-ink-soft); text-decoration: none; font-size: var(--fs-small); }
.site-footer__col a:hover { color: var(--c-cobalt); text-decoration: underline; }
.site-footer__legal { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: 1.25rem var(--gutter) 2rem; border-top: 1px solid var(--c-line); font-size: var(--fs-tiny); color: var(--c-ink-soft); }
.site-footer__note { flex: 1 1 100%; }
.site-footer__legal ul { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.site-footer__legal a { color: var(--c-ink-soft); }
@media (max-width: 899px) { .site-footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 84px; } }

/* ---------- inner pages: the header (plan.md "## Part 2": one layout per page, all in the home page's language) ---------- */
.ihero { position: relative; padding: 12px 12px 0; }
.ihero__copy { position: relative; z-index: 5; display: grid; gap: 1rem; align-content: start; }
.ihero__title { font-size: var(--fs-h1); color: var(--c-ink); }
.ihero__line { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-ink-soft); max-width: 34rem; }
.ihero__on .ihero__title, .ihero__title--on { color: var(--c-white); text-shadow: 0 2px 28px color-mix(in srgb, var(--c-ink) 40%, transparent); }
.ihero__on .ihero__line, .ihero__line--on { color: color-mix(in srgb, var(--c-white) 93%, transparent); text-shadow: 0 1px 14px color-mix(in srgb, var(--c-ink) 45%, transparent); }
.ihero__formwrap { position: relative; z-index: 5; }
.ihero .stop { z-index: 7; }
/* a clip that fills its box reaches 1 px past it (kit.md, video) */
.ihero__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--c-ink); }
.ihero__clip > video, .ihero__clip > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
/* the header that changes its picture (kit rotate), inside any of the boxes above */
.ihero [data-kit-scene="rotate"], .ihero[data-kit-scene="rotate"] { isolation: isolate; }
.ihero__slides { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ihero__slides [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
.ihero__slides [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) .ihero__slides [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
.ihero__slides [data-kit-slide][data-prev] { visibility: visible; z-index: 1; opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) .ihero__slides [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
.ihero__slides [data-kit-slide] video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); clip-path: inset(2px); }
.ihero__slides [data-kit-slide] video[data-kit-shown] { clip-path: none; }
.ihero__slides [data-kit-slide] img.kit-first { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* Hidden Dog Fences: split, the words and the form box left on cream, a tall framed video right ringed by the loop */
.ihero--split .ihero__in { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 0.5rem + 3.4vw, 4.5rem); align-items: center; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(1.25rem, 0.5rem + 2vw, 2.75rem) var(--gutter) 0; }
.ihero--split .ihero__copy { gap: 0.9rem; }
.ihero--split .ihero__formwrap { margin-top: 0.6rem; }
.ihero--split .ihero__media { position: relative; aspect-ratio: 4 / 5; max-height: min(780px, calc(100svh - var(--header-h) - 40px)); justify-self: end; width: 100%; border-radius: var(--radius-l); }
@media (min-width: 1100px) { .ihero--split .formbox--hero .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .ihero { padding: 8px 8px 0; }
  .ihero--split .ihero__in { grid-template-columns: minmax(0, 1fr); padding: 1rem 0.5rem 0; gap: 0; }
  .ihero--split .ihero__copy { display: contents; }
  .ihero--split .ihero__title { order: 1; font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
  .ihero--split .ihero__line { order: 2; margin-top: 0.6rem; font-size: 1.02rem; }
  .ihero--split .ihero__media { order: 3; justify-self: stretch; aspect-ratio: 16 / 10; max-height: none; margin-top: 1rem; border-radius: 22px; }
  .ihero--split .ihero__formwrap { order: 4; margin-top: -2.25rem; padding: 0 6px; }
}

/* ---------- inner pages: the parts the home page built, shared (home.css keeps its own copy, unchanged) ---------- */
/* the close: a framed footage loop (or a framed print) ringed by the loop, beside the form, on Royal */
.close__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.close__media { aspect-ratio: 1 / 1.02; }
.close__media .frame__clip video, .close__media .frame__clip img { object-position: var(--pos, 46% 50%); }
.close__media .frame__clip img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.close .head { margin-bottom: 1.5rem; }
.close .head__title { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); }
.close .formbox { box-shadow: 0 30px 70px color-mix(in srgb, var(--c-ink) 35%, transparent); }
.close .cta-row { margin-bottom: 1.25rem; }
@media (max-width: 899px) { .close__in { grid-template-columns: minmax(0, 1fr); } .close__media { aspect-ratio: 16 / 11; } }
/* reviews that rest on type: two rows of cards on the computer, a swipe row on the phone */
.reviews__grid { column-count: 3; column-gap: 1.25rem; }
.reviews__grid .review { margin-bottom: 1.25rem; }
.reviews__grid--two { column-count: 2; }
@media (max-width: 1023px) { .reviews__grid { column-count: 2; } }
@media (max-width: 699px) {
  .reviews__grid { display: flex; gap: 0.9rem; column-count: initial; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 1rem; scrollbar-width: none; }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .reviews__grid .review { flex: 0 0 84%; margin: 0; scroll-snap-align: center; }
}
.band > .wrap > .head + .reviews__grid { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
/* the FAQ: the head sticky on the left, the answers on the right */
.faq__in { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 899px) { .faq__in { grid-template-columns: minmax(0, 1fr); } .faq__head { position: static; } }
/* a business's own print, shown as it is: white border, a soft print shadow, a slight tilt, the loop round it */
.print { position: relative; margin: 0; padding: 10px 10px 12px; background: var(--c-white); border-radius: 6px; box-shadow: var(--shadow-print); rotate: var(--tilt, -1.5deg); }
.print img { display: block; width: 100%; height: auto; border-radius: 2px; }
.print figcaption { margin-top: 0.55rem; font-size: var(--fs-tiny); font-weight: var(--fw-strong); color: var(--c-ink-soft); text-align: center; }

/* ---------- the selling pages' form (form.mjs startedForm): it opens on the page's own question ---------- */
.tiles--dogs .pchip { min-height: 60px; }
.tiles--parish { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pchip--parish { gap: 0.6rem; padding-block: 0.6rem; }
.pchip__shape { display: grid; place-items: center; width: 36px; height: 30px; flex: none; }
.pchip__shape svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pchip__shape path { fill: var(--c-lawn-light); stroke: var(--c-lawn); stroke-width: 1.3; vector-effect: non-scaling-stroke; transition: fill var(--dur-fast), stroke var(--dur-fast); }
.pchip--parish[data-kit-on] .pchip__shape path { fill: var(--c-cobalt); stroke: var(--c-cobalt-dark); }

/* ---------- the skeleton's own pages ---------- */
.thanks, .not-found { text-align: left; }
.legal h1, .not-found h1 { font-size: var(--fs-h1); }
