/* =========================================================
   Frank — shared foundation (all pages)
   Page-specific styles live in css/<page>.css
   ========================================================= */
:root {
  /* Palette (docs/07-brand.md §3). Figma variables mirror these names. */
  --paper: #ffffff; --mist: #f7f7f7; --ink: #222222; --stone: #666666; --line: #dddddd; --line-subtle: #ebebeb;
  --lawn-wash: #ddf1da; --lawn: #5bd97b; --lawn-deep: #133222; --evergreen: #24663d;
  --gulf-wash: #ddebf8; --gulf: #0062b5; --gulf-deep: #0b1c33;
  --sun-wash: #fff3c4; --sun: #ffd84a; --sun-deep: #2c1a0e;
  --ember: #c23600; --ember-wash: #fff0e6;

  /* Semantic tokens (07 §10): screens use these, never the palette directly */
  --background: var(--paper);
  --band: var(--mist);          /* 07 §9: header bands, alternating sections, side bars */
  --foreground: var(--ink);
  --muted: var(--mist);
  --muted-foreground: var(--stone);
  --border: var(--line);
  --border-subtle: var(--line-subtle);
  --primary: var(--gulf);
  --primary-hover: color-mix(in srgb, var(--primary) 86%, #000);
  --primary-foreground: var(--paper);
  --secondary: var(--mist);
  --secondary-foreground: var(--ink);
  --success: var(--evergreen);
  --success-subtle: var(--lawn-wash);
  --attention: var(--ember);
  --attention-subtle: var(--ember-wash);
  --info: var(--gulf);
  --info-subtle: var(--gulf-wash);
  --card: var(--paper);
  --bezel: #0f0f0f;

  /* Services (07 §5): always shown with a name or icon too */
  --svc-lawn-wash: var(--lawn-wash);   --svc-lawn: var(--lawn);   --svc-lawn-ink: var(--lawn-deep);
  --svc-clean-wash: var(--gulf-wash);  --svc-clean: var(--gulf);  --svc-clean-ink: var(--gulf-deep);
  --svc-extra-wash: var(--sun-wash);   --svc-extra: var(--sun);   --svc-extra-ink: var(--sun-deep);

  /* Brand colour-way (07 §4; switchable): full-bleed brand blocks, wordmark, hero badge. Default Live oak */
  --brand: var(--lawn-deep);
  --brand-foreground: var(--paper);
  --brand-muted: color-mix(in srgb, var(--lawn-wash) 72%, var(--brand));
  --brand-cta: var(--lawn);
  --brand-cta-foreground: var(--lawn-deep);
  --brand-head-weight: 400;
  --accent: var(--sun);
  --nav-glass: color-mix(in srgb, var(--band) 92%, transparent);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);

  --pad-x: 160px;
  --nav-h: 76px;

  /* Motion tokens — use these, don't invent new curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-state: 300ms;
  --dur-reveal: 800ms;
  --stagger: 70ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   Type (Figma text styles)
   ========================================================= */
.t-display { font-weight: 300; font-size: 72px; line-height: 76px; letter-spacing: -2px; }       /* Web/Display */
.t-h1      { font-weight: 300; font-size: 56px; line-height: 60px; letter-spacing: -1.4px; }     /* Web/H1 */
.t-h2      { font-weight: 300; font-size: 44px; line-height: 50px; letter-spacing: -1px; }       /* Web/H2 */
.t-h3      { font-weight: 400; font-size: 24px; line-height: 30px; letter-spacing: -0.3px; }     /* Web/H3 */
.t-lead    { font-weight: 300; font-size: 20px; line-height: 30px; letter-spacing: -0.1px; }     /* Web/Lead */
.t-body-l  { font-size: 16px; line-height: 26px; }                                               /* Web/Body */
.t-eyebrow { font-weight: 500; font-size: 13px; line-height: 16px; letter-spacing: 0.2px; }      /* Web/Eyebrow */
.t-price   { font-weight: 300; font-size: 40px; line-height: 44px; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; } /* Web/Price */
.t-body    { font-size: 14px; line-height: 20px; }                                               /* Body/M */
.t-strong  { font-size: 14px; line-height: 20px; font-weight: 500; }                             /* Body/M Strong */
.t-small   { font-size: 12px; line-height: 16px; }                                               /* Body/S */
.t-label   { font-size: 12px; line-height: 16px; font-weight: 500; }                             /* Label/S */
.t-logo    { font-weight: 500; font-size: 24px; line-height: 30px; letter-spacing: -0.3px; }

.c-muted { color: var(--muted-foreground); }
.c-fg { color: var(--foreground); }
.bg-muted { background: var(--muted); }
.bg-dark { background: var(--foreground); color: var(--background); }

.link {
  font-weight: 500; font-size: 14px; line-height: 20px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor;
  transition: text-decoration-color var(--dur-ui) ease, opacity var(--dur-ui) ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: transparent; } }

/* The plain link "Text Mr Frank ›" (04 ACT-8; Figma W13 "TMF / Link · chevron"): homepage hero and Mr Frank card; it opens the Text Mr Frank modal (W13d) */
.tlink {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 24px; line-height: 32px; font-weight: 400; color: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.tlink svg { flex: none; transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tlink:hover svg { transform: translateX(3px); } }
.tlink:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 700px) { .tlink { font-size: 20px; line-height: 28px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   Layout
   ========================================================= */
.section { padding: 120px var(--pad-x); display: flex; flex-direction: column; align-items: flex-start; gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head .t-lead { max-width: 680px; color: var(--muted-foreground); }
.section-head .t-eyebrow { color: var(--muted-foreground); }
.bg-dark .section-head .t-eyebrow { color: var(--background); opacity: .6; }
.bg-dark .section-head .t-lead { color: var(--background); opacity: .72; }
.divider { height: 1px; width: 100%; background: var(--border-subtle); flex-shrink: 0; }

/* =========================================================
   Components
   ========================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--success-subtle); color: var(--success);
  border-radius: 9999px; padding: 2px 10px;
  font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap;
}
.badge--muted { background: var(--muted); color: var(--foreground); }
.badge--attention { background: var(--attention-subtle); color: var(--attention); }

.caption {
  position: absolute; top: 16px; left: 16px;
  background: var(--background); color: var(--foreground);
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; line-height: 16px; white-space: nowrap;
}

/* Button — pill; press feedback; hover colour (mouse only) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; white-space: nowrap;
  font-weight: 500; font-size: 14px; line-height: 20px;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn--outline { background: var(--background); color: var(--foreground); border: 1px solid var(--border); }
.btn--sm { height: 36px; padding: 0 16px; }
.btn--md { height: 48px; padding: 0 24px; }
.btn--lg { height: 56px; padding: 0 32px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--primary-hover); }
  .btn--secondary:hover { background: color-mix(in srgb, var(--secondary) 92%, var(--foreground)); }
  .bg-dark .btn--secondary:hover { background: var(--background); }
  .btn--outline:hover { border-color: var(--foreground); }
}

/* Field — label inside the box */
.field {
  flex: 1 1 0; min-width: 0; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 16px; cursor: text;
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.field:focus-within { border-color: var(--foreground); box-shadow: 0 0 0 3px color-mix(in srgb, var(--foreground) 6%, transparent); }
.field__label { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.field__input {
  border: 0; outline: 0; padding: 0; background: transparent; width: 100%;
  font: inherit; font-size: 14px; line-height: 20px; color: var(--foreground);
}
.field__input::placeholder { color: var(--muted-foreground); opacity: 1; }
.field.is-invalid { animation: nudge 320ms var(--ease-out); border-color: var(--attention); }
@keyframes nudge { 20% { transform: translateX(-4px); } 45% { transform: translateX(3px); } 70% { transform: translateX(-2px); } }

.address-form { display: flex; gap: 12px; align-items: center; width: 100%; }

/* Address lookup (js/address-field.js, MKT-5): Google Places suggestions under the field, like sign-up's list */
.addr-combo { position: relative; }
.addr-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; text-align: left;
  background: var(--card); color: var(--foreground); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg, 16px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 10%, transparent); padding: 4px 0; overflow: hidden; }
.addr-sugg[hidden] { display: none; }
.addr-sugg--up { top: auto; bottom: calc(100% + 8px); }
.addr-sugg__list { list-style: none; margin: 0; padding: 0; }
.addr-sugg__opt { display: flex; gap: 12px; align-items: center; padding: 10px 16px; cursor: pointer; }
.addr-sugg__opt.is-hl, .addr-sugg__opt:hover { background: var(--muted); }
.addr-sugg__pin { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--muted); color: var(--foreground);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.addr-sugg__opt.is-hl .addr-sugg__pin, .addr-sugg__opt:hover .addr-sugg__pin { background: var(--card); }
.addr-sugg__copy { display: flex; flex-direction: column; min-width: 0; }
.addr-sugg__opt--manual { min-height: 44px; border-top: 1px solid var(--border-subtle); color: var(--primary); }
.addr-sugg__opt--manual:first-child { border-top: 0; }
.addr-sugg__opt--manual .addr-sugg__main { font-weight: 400; }
.addr-sugg__main { font-size: 14px; line-height: 20px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-sugg__sub { font-size: 13px; line-height: 18px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-sugg__by { margin: 0; padding: 8px 16px 6px; border-top: 1px solid var(--border-subtle); font-size: 12px; line-height: 16px; color: var(--muted-foreground); text-align: right; }
.addr-sugg__by[hidden] { display: none; }

/* Icons from 24px-root SVGs placed in a smaller slot */
.ico { position: relative; flex-shrink: 0; display: block; width: var(--s, 20px); height: var(--s, 20px); }
.ico > img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Phone frame. Set size + radius per instance; screens are <img class="phone__screen"> */
.phone { position: absolute; background: var(--card); overflow: hidden; box-shadow: var(--shadow-lg); }
.phone__screen { position: absolute; left: 0; top: 0; width: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 400ms var(--ease-out); }
.phone__screen.is-active, .phone__screen:only-of-type { opacity: 1; }
.phone__bezel { position: absolute; inset: 0; border: 7px solid var(--bezel); border-radius: inherit; pointer-events: none; }
.phone__island { position: absolute; background: var(--bezel); border-radius: 99px; }

/* Scale-to-fit wrapper for fixed-geometry art. Put data-fit-width="<design px>" on .fit;
   its single child is laid out at design size and scaled. base.js sets --k. */
.fit { --k: 1; position: relative; flex-shrink: 0; }
.fit > * { transform: scale(var(--k)); transform-origin: top left; }

/* =========================================================
   Nav (sticky) + mobile menu
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h); padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-glass);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__left { display: flex; align-items: center; gap: 48px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__menu-btn { display: none; width: 24px; height: 24px; position: relative; }
.nav__menu-btn img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity var(--dur-ui) ease, transform var(--dur-state) var(--ease-out); }
.nav__menu-btn .is-close { opacity: 0; transform: rotate(-45deg) scale(.8); }
.nav.is-open .nav__menu-btn .is-open-icon { opacity: 0; transform: rotate(45deg) scale(.8); }
.nav.is-open .nav__menu-btn .is-close { opacity: 1; transform: none; }

.nav-link {
  position: relative; padding: 6px 0;
  font-size: 14px; line-height: 20px; color: var(--muted-foreground);
  transition: color var(--dur-ui) ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out);
}
.nav-link[aria-current="page"] { color: var(--foreground); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--foreground); }
  .nav-link:hover::after { transform: scaleX(1); }
}

/* Mobile menu panel — drops from under the nav */
.menu {
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 49;
  background: var(--background); border-bottom: 1px solid var(--border-subtle);
  padding: 8px 24px 24px; display: none; flex-direction: column;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur-ui) var(--ease-out), transform 250ms var(--ease-out), visibility 0s linear 250ms;
  visibility: hidden;
}
.menu a.menu__link { padding: 14px 0; font-size: 20px; line-height: 26px; font-weight: 300; border-bottom: 1px solid var(--border-subtle);
  opacity: 0; transform: translateY(-4px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.menu a.menu__link[aria-current="page"] { font-weight: 400; }
.menu a.menu__link:not([aria-current="page"]) { color: color-mix(in srgb, var(--foreground) 80%, var(--background)); }
.menu .btn { margin-top: 20px; }
.nav.is-open + .menu { opacity: 1; transform: none; visibility: visible; transition: opacity var(--dur-ui) var(--ease-out), transform 250ms var(--ease-out); }
.nav.is-open + .menu a.menu__link { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 30ms + 40ms); }

/* =========================================================
   CTA band (shared)
   ========================================================= */
.cta-band { padding: 0 var(--pad-x) 120px; }
.cta-band__panel { background: var(--muted); border-radius: 16px; padding: 80px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta-band__panel .t-lead { color: var(--muted-foreground); }
.cta-band__panel .address-form { max-width: 560px; }

/* =========================================================
   FAQ accordion (shared). Markup: .faq > .faq__item > button.faq__q + .faq__a > div > p
   ========================================================= */
.faq-section { flex-direction: row; gap: 80px; }
.faq-head { width: 280px; flex-shrink: 0; }
.faq { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__q { display: flex; align-items: center; gap: 24px; width: 100%; padding: 24px 0; font-size: 24px; line-height: 30px; letter-spacing: -0.3px; -webkit-tap-highlight-color: transparent; transition: padding-bottom var(--dur-state) var(--ease-out); }
.faq__q > span:first-child { flex: 1; }
.faq__toggle { width: 24px; height: 24px; flex-shrink: 0; transition: transform var(--dur-state) var(--ease-out); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-state) var(--ease-out); }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { font-size: 16px; line-height: 26px; color: var(--muted-foreground); padding: 0 40px 24px 0; opacity: 0; transition: opacity var(--dur-state) var(--ease-out); }
.faq__item.is-open .faq__q { padding-bottom: 12px; }
.faq__item.is-open .faq__toggle { transform: rotate(45deg); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .faq__q:hover .faq__toggle { transform: scale(1.12); }
  .faq__item.is-open .faq__q:hover .faq__toggle { transform: rotate(45deg) scale(1.12); }
}

/* =========================================================
   Footer (shared)
   ========================================================= */
/* Footer: big wordmark left, spacious link columns right, legal along the bottom (after getcasa.com, Frank's own) */
.footer { background: var(--band); border-top: 1px solid var(--border-subtle); padding: 80px var(--pad-x) 40px; display: flex; flex-direction: column; gap: 72px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo { font-size: 48px; line-height: 1; letter-spacing: -0.02em; color: var(--brand); }
.footer__line { max-width: 300px; font-size: 16px; line-height: 24px; color: var(--muted-foreground); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: 16px; line-height: 22px; }
.footer__head { font-size: 14px; line-height: 20px; color: var(--muted-foreground); margin-bottom: 4px; }
.footer__col a { position: relative; color: var(--foreground); transition: color var(--dur-ui) ease; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover::after { transform: scaleX(1); } }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border-subtle); font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

/* =========================================================
   Motion system
   [data-enter]  — page-load entrance (hero). Stagger with style="--i:n"
   [data-reveal] — scroll reveal, once. Stagger with style="--i:n"
   ========================================================= */
.js [data-enter] {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger) + 80ms);
}
.js .is-loaded [data-enter] { opacity: 1; transform: none; }

.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* For elements whose resting opacity isn't 1 */
.js [data-reveal].is-in.o-60 { opacity: .6; }
.js [data-reveal].is-in.o-72 { opacity: .72; }

/* Hover lift for cards — only after reveal settles, mouse only */
.js .lift.is-settled, .no-reveal.lift { transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms ease; transition-delay: 0ms; }
@media (hover: hover) and (pointer: fine) {
  .js .lift.is-settled:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

/* Image zoom on hover inside a clipped photo (mouse only) */
.zoom-img img { transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .zoom-host:hover .zoom-img img, .zoom-img:hover img { transform: scale(1.03); } }

/* Endless marquee: .marquee > .marquee__track[data-marquee] (children duplicated by JS) */
.marquee { overflow: hidden; width: 100%; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 36s) linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* =========================================================
   Responsive (shared)
   ========================================================= */
/* Very big screens (after lassie.ai): content keeps the 1440 design's 1,120px width, centred, instead of stretching */
@media (min-width: 1441px) { :root { --pad-x: max(160px, calc((100vw - 1120px) / 2)); } }
@media (max-width: 1360px) { :root { --pad-x: 64px; } }

@media (max-width: 960px) {
  :root { --pad-x: 24px; --nav-h: 60px; }
  .nav__links, .nav__right .btn { display: none; }
  .nav__right { gap: 16px; }
  .nav__menu-btn { display: block; }
  .menu { display: flex; }

  .t-display { font-size: 44px; line-height: 48px; letter-spacing: -1.2px; }
  .t-h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.8px; }
  .t-h2 { font-size: 32px; line-height: 38px; letter-spacing: -0.6px; }
  .t-lead { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; } /* Figma mobile uses Body/M for leads */
  .t-h3 { font-size: 20px; line-height: 26px; }

  main { --pad-x: 20px; } /* Figma mobile: 20px content gutter; nav/CTA/footer keep 24px */
  .section { padding: 64px var(--pad-x); gap: 32px; }
  .section-head { gap: 12px; }

  .faq-section { flex-direction: column; gap: 16px; }
  .faq-head { width: auto; }
  .faq__a p { padding-right: 0; }

  .cta-band { padding: 0 var(--pad-x) 64px; }
  /* Figma mobile CTA: left-aligned, H2-mobile title, body lead, stacked full-width form, no footnote */
  .cta-band__panel { padding: 40px 24px; gap: 16px; align-items: stretch; text-align: left; }
  .cta-band__panel > * { white-space: normal !important; }
  .cta-band__panel .t-h1 { font-size: 32px; line-height: 38px; letter-spacing: -0.6px; }
  .cta-band__panel .t-lead { font-size: 16px; line-height: 26px; font-weight: 400; letter-spacing: 0; }
  .cta-band__panel .address-form { flex-direction: column; align-items: stretch; gap: 16px; max-width: none; }
  .cta-band__panel .address-form .btn { width: 100%; }
  .cta-band__note { display: none; }

  .footer { padding: 56px var(--pad-x) 32px; gap: 48px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer__logo { font-size: 36px; }
  .footer__line { font-size: 15px; line-height: 22px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; column-gap: 24px; }
  .footer__col { gap: 14px; font-size: 15px; }
  .footer__legal { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  .address-form { flex-direction: column; align-items: stretch; }
  .address-form .btn { width: 100%; }
}

/* =========================================================
   Reduced motion: keep fades, drop movement and autoplay
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-enter], .js [data-reveal], .menu, .menu a.menu__link { transform: none !important; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .btn:active { transform: none; }
  .js .lift.is-settled:hover { transform: none; }
  .zoom-img img { transform: none !important; }
}

/* =========================================================
   Savings claims switch (Q-ADV-01, pending legal).
   Every comparison with buying separately carries data-claim="savings".
   To take them all off the site, uncomment the line below and run tools/stamp_assets.py.
   ========================================================= */
/* [data-claim="savings"] { display: none !important; } */

/* Mr Frank claims switch (04 X-163, Q-COMMS-04 Blocking).
   Every place the site shows Mr Frank (the AI) running a member's visits, pros and plan carries data-claim="ai":
   the homepage section and hero line, the how-it-works section. If the live AI can't serve members at launch,
   uncomment the line below and run tools/stamp_assets.py. */
/* [data-claim="ai"] { display: none !important; } */

/* Text Mr Frank (04 ACT-8; Figma W13). Every entry point carries data-claim="text-start". text-start.js adds .text-start-on when
   /api/auth/config says a code can reach a new person here, and .text-start-local on a local server.
   X-181 hold: no channel can send on the live site yet (Twilio trial, toll-free verification; WhatsApp waits on Meta) and
   Q-COMMS-14 is open, so the next line keeps every entry hidden off a local server. Delete it once a channel sends and
   Q-COMMS-14 allows it, then run tools/stamp_assets.py. */
html:not(.text-start-local) { --text-start-held: 1; } html:not(.text-start-local) [data-claim="text-start"] { display: none !important; }
html:not(.text-start-on) [data-claim="text-start"] { display: none !important; }

/* "Or text Mr Frank" (04 X-166): the number is Frank's real toll-free line, (888) 629-2278, but it can't send texts yet
   (Twilio trial, toll-free verification) and texts wait on Q-COMMS-01 (Blocking), so it stays hidden. Delete this line
   once texts send and Q-COMMS-01 allows it. */
[data-claim="text-number"] { display: none !important; }

/* =========================================================
   Brand colour-ways (docs/07-brand.md §4). <html data-theme="…">; default is Live oak.
   Each changes only the deep brand blocks (brand band, closing CTA, wordmark, hero badge);
   the page, status and service colours stay the same in every one.
   Set by the Colours switcher (base.js), ?theme=… or localStorage 'frank.theme'.
   ========================================================= */
html[data-theme="night"] {
  --brand: var(--gulf-deep); --brand-foreground: var(--gulf-wash); --brand-muted: color-mix(in srgb, var(--gulf-wash) 72%, var(--gulf-deep));
  --brand-cta: var(--sun); --brand-cta-foreground: var(--gulf-deep);
}
html[data-theme="pecan"] {
  --brand: var(--sun-deep); --brand-foreground: var(--paper); --brand-muted: color-mix(in srgb, var(--paper) 72%, var(--sun-deep));
  --brand-cta: var(--sun); --brand-cta-foreground: var(--sun-deep);
}
html[data-theme="sun"] {
  --brand: var(--sun); --brand-foreground: var(--sun-deep); --brand-muted: color-mix(in srgb, var(--sun-deep) 78%, var(--sun));
  --brand-cta: var(--ink); --brand-cta-foreground: var(--sun);
}
html[data-theme="sun"] .t-logo { color: var(--foreground); }

/* ---------- Logo (07 §6a): the round-door mark + "mrfrank" in Hanken (light "mr", medium "frank"), one colour. One rule for every wordmark on the site and in the apps ---------- */
.t-logo, .hf-logo, .sf-logo, .wordmark, .ops-logo, .hm-flowhead__logo {
  display: inline-flex; align-items: center; gap: 0; white-space: nowrap;
  font-family: "Hanken Grotesk", system-ui, sans-serif; font-weight: 500;
  text-transform: lowercase; letter-spacing: -0.04em; text-decoration: none;
}
/* The mark takes the wordmark's colour, so it works on every ground with no variants */
.t-logo::before, .hf-logo::before, .sf-logo::before, .wordmark::before, .ops-logo::before, .hm-flowhead__logo::before {
  content: ""; flex: none; width: .9em; height: .9em; margin: -.02em .28em 0 0; background: currentColor;
  -webkit-mask: url(../assets/brand/frank-mark.svg) center / contain no-repeat; mask: url(../assets/brand/frank-mark.svg) center / contain no-repeat;
}
.logo-mr { font-weight: 300; }   /* markup "<span class=logo-mr>Mr</span> Frank": shows "mrfrank", reads "Mr Frank" */
.logo-tag { font-weight: 500; font-size: .62em; letter-spacing: 0; text-transform: none; color: var(--muted-foreground); margin-left: .38em; align-self: center; }

/* ---------- Contrasting brand elements ---------- */
.t-logo { color: var(--brand); }
.cta-band__panel { background: var(--brand); color: var(--brand-foreground); }
.cta-band__panel .t-h1, .cta-band__panel .t-h2, .cta-band__panel .t-display,
.brand-band__statement .t-h1, .brand-band__statement .t-h2, .brand-band__statement .t-display { font-weight: var(--brand-head-weight); }
.cta-band__panel .t-lead, .cta-band__note { color: var(--brand-muted) !important; }
.cta-band__panel .btn--primary { background: var(--brand-cta); color: var(--brand-cta-foreground); }
@media (hover: hover) and (pointer: fine) { .cta-band__panel .btn--primary:hover { background: color-mix(in srgb, var(--brand-cta) 88%, var(--brand-foreground)); } }
.cta-band__panel .field { border-color: transparent; }

/* Full-bleed brand band: one statement + a ticker of visits already done (ruled, like a log) */
.brand-band { background: var(--brand); color: var(--brand-foreground); padding: 88px 0 72px; display: flex; flex-direction: column; gap: 40px; overflow: hidden;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, color-mix(in srgb, var(--brand-foreground) 9%, transparent) 39px 40px); }
.brand-band__statement { padding: 0 var(--pad-x); max-width: 1120px; position: relative; }
.brand-band__statement p { color: var(--brand-muted); margin-top: 16px; max-width: 640px; }
.brand-band__tick { display: flex; gap: 12px; padding-right: 12px; }
.brand-band__item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 12px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand-foreground) 10%, var(--brand)); font-size: 15px; line-height: 20px; }
.brand-band__item::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--brand-cta); flex-shrink: 0; }
@media (max-width: 960px) { .brand-band { padding: 56px 0 48px; gap: 28px; } }

/* =========================================================
   Washes (07 §4): a section or card on one family's wash.
   Never two adjacent sections in the same wash.
   ========================================================= */
.wash-lawn  { background-color: var(--lawn-wash); --layer: var(--lawn-deep); }
.wash-gulf  { background-color: var(--gulf-wash); --layer: var(--gulf-deep); }
.wash-sun   { background-color: var(--sun-wash);  --layer: var(--sun-deep); }
.wash-paper { background-color: var(--paper);     --layer: var(--ink); }
.wash-mist  { background-color: var(--mist);      --layer: var(--ink); }
.wash-lawn .section-head .t-eyebrow, .wash-gulf .section-head .t-eyebrow, .wash-sun .section-head .t-eyebrow { color: var(--layer); opacity: .75; }

/* =========================================================
   Devices (07 §7)
   ========================================================= */
/* Structural layers, tinted by the block's family (--layer) at ~14% */
.paper--ruled { background-image: repeating-linear-gradient(to bottom, transparent 0 27px, color-mix(in srgb, var(--layer, var(--ink)) 14%, transparent) 27px 28px); }
.paper--graph { background-image:
  linear-gradient(to right, color-mix(in srgb, var(--layer, var(--ink)) 6%, transparent) 1px, transparent 1px),
  linear-gradient(to bottom, color-mix(in srgb, var(--layer, var(--ink)) 6%, transparent) 1px, transparent 1px);
  background-size: 24px 24px; }
.paper--dots { background-image: radial-gradient(color-mix(in srgb, var(--layer, var(--ink)) 22%, transparent) 1px, transparent 1.5px); background-size: 16px 16px; }

/* Human marks (07 §7): the circle and the Sun highlight were retired on 19 Nov 2026 (user); only the stamp remains. */
/* Stamp: scalloped seal. Fresh-cut "Done" by default; .stamp--sun for "New" */
.stamp { --stamp: var(--lawn); --stamp-ink: var(--lawn-deep); --sz: 72px;
  display: inline-grid; place-items: center; width: var(--sz); height: var(--sz); flex-shrink: 0;
  background: var(--stamp); color: var(--stamp-ink); font-size: calc(var(--sz) * .19); line-height: 1; font-weight: 500; letter-spacing: .02em; text-align: center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.00 6.00A7.76 7.76 0 0 1 62.40 7.78A7.76 7.76 0 0 1 73.79 12.98A7.76 7.76 0 0 1 83.25 21.19A7.76 7.76 0 0 1 90.02 31.72A7.76 7.76 0 0 1 93.55 43.74A7.76 7.76 0 0 1 93.55 56.26A7.76 7.76 0 0 1 90.02 68.28A7.76 7.76 0 0 1 83.25 78.81A7.76 7.76 0 0 1 73.79 87.02A7.76 7.76 0 0 1 62.40 92.22A7.76 7.76 0 0 1 50.00 94.00A7.76 7.76 0 0 1 37.60 92.22A7.76 7.76 0 0 1 26.21 87.02A7.76 7.76 0 0 1 16.75 78.81A7.76 7.76 0 0 1 9.98 68.28A7.76 7.76 0 0 1 6.45 56.26A7.76 7.76 0 0 1 6.45 43.74A7.76 7.76 0 0 1 9.98 31.72A7.76 7.76 0 0 1 16.75 21.19A7.76 7.76 0 0 1 26.21 12.98A7.76 7.76 0 0 1 37.60 7.78A7.76 7.76 0 0 1 50.00 6.00Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.00 6.00A7.76 7.76 0 0 1 62.40 7.78A7.76 7.76 0 0 1 73.79 12.98A7.76 7.76 0 0 1 83.25 21.19A7.76 7.76 0 0 1 90.02 31.72A7.76 7.76 0 0 1 93.55 43.74A7.76 7.76 0 0 1 93.55 56.26A7.76 7.76 0 0 1 90.02 68.28A7.76 7.76 0 0 1 83.25 78.81A7.76 7.76 0 0 1 73.79 87.02A7.76 7.76 0 0 1 62.40 92.22A7.76 7.76 0 0 1 50.00 94.00A7.76 7.76 0 0 1 37.60 92.22A7.76 7.76 0 0 1 26.21 87.02A7.76 7.76 0 0 1 16.75 78.81A7.76 7.76 0 0 1 9.98 68.28A7.76 7.76 0 0 1 6.45 56.26A7.76 7.76 0 0 1 6.45 43.74A7.76 7.76 0 0 1 9.98 31.72A7.76 7.76 0 0 1 16.75 21.19A7.76 7.76 0 0 1 26.21 12.98A7.76 7.76 0 0 1 37.60 7.78A7.76 7.76 0 0 1 50.00 6.00Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stamp--sun { --stamp: var(--sun); --stamp-ink: var(--sun-deep); }
.stamp--gulf { --stamp: var(--gulf); --stamp-ink: var(--paper); }
.stamp svg, .stamp img { width: 42%; height: 42%; }

/* Service family props (07 §5): put .svc--lawn / --clean / --extra on any element, then use --svc-c (signal), --svc-w (wash), --svc-i (ink) */
.svc--lawn  { --svc-c: var(--svc-lawn);  --svc-w: var(--svc-lawn-wash);  --svc-i: var(--svc-lawn-ink); }
.svc--clean { --svc-c: var(--svc-clean); --svc-w: var(--svc-clean-wash); --svc-i: var(--svc-clean-ink); }
.svc--extra { --svc-c: var(--svc-extra); --svc-w: var(--svc-extra-wash); --svc-i: var(--svc-extra-ink); }

/* Service tile: icon in its family's wash (07 §5) */
.svc-tile { display: inline-grid; place-items: center; width: var(--sz, 40px); height: var(--sz, 40px); border-radius: 12px; flex-shrink: 0; }
.svc-tile--lawn  { background: var(--svc-lawn-wash);  color: var(--svc-lawn-ink); }
.svc-tile--clean { background: var(--svc-clean-wash); color: var(--svc-clean-ink); }
.svc-tile--extra { background: var(--svc-extra-wash); color: var(--svc-extra-ink); }
/* Lists mix colour (07 §5): a family alternates wash and signal; one-offs are neutral */
.svc-tile--lawn-signal  { background: var(--svc-lawn);  color: var(--svc-lawn-ink); }
.svc-tile--extra-signal { background: var(--svc-extra); color: var(--svc-extra-ink); }
.svc-tile--neutral      { background: var(--line-subtle); color: var(--ink); }

/* ---------- Colours switcher ---------- */
.theme-switch { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px;
  border-radius: 999px; background: var(--card); color: var(--foreground); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: 13px; line-height: 16px; }
.theme-switch__label { font-weight: 500; margin-right: 4px; }
.theme-switch button { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; position: relative;
  transition: transform var(--dur-press) var(--ease-out); }
.theme-switch button span { width: 20px; height: 20px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%); }
.theme-switch button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--foreground); }
.theme-switch button:active { transform: scale(.92); }
@media (max-width: 560px) { .theme-switch__label { display: none; } .theme-switch { padding: 6px; } }
@media (prefers-reduced-motion: reduce) { .theme-switch button:active { transform: none; } }

/* Pages fade into each other where the browser supports cross-document View Transitions (website plan §4) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
