/* Check’n Done sales site: the brand design system (direction A, "Foam light").
   Mobile-first: the base rules are the 390 phone; min-width steps at 768, 1024 and 1440.
   Fonts: Manrope (400/500/600/700/800) and JetBrains Mono (600) come from a Google Fonts <link> in each page.

   Grounds are white and Foam, type is Deep Water, buttons Check Blue. One brand gradient (Check Blue to
   Waterline) sits behind the hero video stage and the reasons band; the counter bar is the only dark strip.
   Motion is the hover layer only: buttons step 1px and press, linked cards lift 2px, arrows nudge 3px.
   Nothing moves on scroll. Reduced motion: no transitions, posters only.

   Contents: tokens · base · launch state · layout · type · buttons · counter bar · nav · hero and stage ·
   frames and video · cards · reasons band · explorer · feature media · HTML visuals · founders band and forms · FAQ ·
   closing · footer · modal · reduced motion.

   Type weights: h1 / h2 800 (tracking -0.03em); h3-level titles (.card__title, .xp__title,
   .form-card__head h3) 700, the brand kit's subtitle weight; body 400.

   Component contracts wired by site.js (Task 5). Names are media.json keys (liveops, checkndesk-ai, dosing, portal,
   proof); build-site.js inlines media.json as window.CND_MEDIA. The full <name>.mp4 is never in page markup: only the
   modal sets it, on open. Teasers play while >= 25% on screen.
   - Video: <figure class="vid" data-video="NAME"><img src="/assets/video/NAME-poster.jpg" alt="" width="1280"
     height="720"><video src="/assets/video/NAME-teaser.mp4" muted playsinline loop preload="none" aria-hidden="true"
     tabindex="-1"></video><button class="vid__play" type="button" data-video-open="NAME" aria-label="Watch full · 0:30 ·
     TITLE"><span class="vid__icon" aria-hidden="true">▶</span> Watch full · 0:30</button></figure>
     (site.js vidHtml(name, entry) builds exactly this; an empty <figure class="vid" data-video> is filled on load, and an
     empty [data-video-open] button gets its label.) The teaser plays while >= 25% on screen, pauses off screen.
   - Hover card: any element with data-video-hover="NAME" (usually .card.card--link) holding a .vid or a
     .card__media with the poster <img> and <video class="card__teaser" src="…-teaser.mp4" muted playsinline loop
     preload="none" aria-hidden="true">; the teaser plays on hover / focus only on (hover: hover) and (pointer: fine).
     A ▶ (.vid__play[data-video-open]) inside sits above .card__cover.
   - Video soon (no video yet): <div class="soon"><img src="/assets/video-soon.svg" alt="Video coming soon"></div>, no ▶.
   - Any element with data-video-open="NAME" opens the modal; data-where="…" on it or an ancestor names the place in
     the video_play event (else explorer / card / hero / feature / page).
   - Explorer: <div class="xp"><div class="xp__list"><button class="xp__item" type="button" aria-expanded="true"
     data-media="NAME | zoom:FILE | soon"><span class="xp__title"></span><span class="xp__text"></span></button>…</div>
     <div class="xp__stage"></div></div>. FILE is a media.json zoom file ("zoom/doses" or "doses"); data-alt on the item
     overrides its media.json alt. "html:ID" shows the HTML visual held in <template id="ID"> (feature pages, .hv). An empty stage is
     filled from the expanded item; server-rendered stage markup is kept on load.
   - Modal: one <dialog class="vmodal">, made by site.js (see the modal section).
   - Meters: the [data-counter-meter] element needs role="progressbar" and an aria-label (site.js sets
     aria-valuemin / aria-valuenow / aria-valuemax). */

/* ---------------------------------------------------------------- tokens */
:root {
  --deep: #102C46;          /* Deep Water: type, the counter bar, dark cards */
  --blue: #0A69C2;          /* Check Blue: buttons, links, focus */
  --blue-hover: #0A5DAD;    /* Check Blue stepped 14% toward Deep Water */
  --aqua: #39C6D4;          /* Waterline: only on navy or in the gradient */
  --daqua: #0E7C88;         /* Deep Aqua: aqua as text on light grounds */
  --sun: #F5B83D;           /* Pool Sun: meters and tiny marks, never text on white */
  --foam: #F4F8FB;
  --white: #fff;
  --ok: #12805C; --warn: #B45F06; --bad: #C2372B;

  --ink: var(--deep);
  --ink-2: #2B4560;         /* leads and answers, about 10:1 on white */
  --muted: #4A6075;         /* labels and meta, about 6.4:1 on white */
  --line: #D9E3EC;          /* hairlines and card borders */
  --line-strong: #B9CAD9;   /* field borders, hovered card borders */
  --tint: #E8F0F7;          /* eyebrow pill, soft fills */
  --on-dark: rgba(255, 255, 255, .84);

  --grad: linear-gradient(150deg, var(--blue) 0%, var(--blue) 18%, var(--aqua) 100%);
  --shadow-frame: 0 24px 60px -12px rgba(16, 44, 70, .35);
  --shadow-card: 0 12px 24px -12px rgba(16, 44, 70, .18);

  --f-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --t-h1: clamp(38px, 3.4vw + 24px, 72px);
  --t-h2: clamp(30px, 1.6vw + 23px, 48px);
  --t-h3: 20px;
  --t-lead: 18px;
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 13px;
  --t-stat: clamp(56px, 4vw + 40px, 96px);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --r-sm: 10px;             /* fields, small chips */
  --r-md: 14px;             /* frames, inner media */
  --r-lg: 20px;             /* cards, stage, form card */
  --r-pill: 999px;          /* buttons, eyebrow, play pill */

  --gut: 20px;              /* side margin of .wrap */
  --max: 1280px;
  --nav-h: 64px;
  --padt: 72px;             /* section top padding */
  --padb: 72px;             /* section bottom padding */
  --head-gap: 32px;         /* section heading to its content */

  --m-in: 140ms; --m-out: 200ms; --m-press: 90ms; --m-image: 600ms;
  --m-ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 768px) { :root { --gut: 32px; --padt: 96px; --padb: 88px; --t-lead: 19px; } }
@media (min-width: 1024px) { :root { --gut: 48px; --nav-h: 72px; --padt: 120px; --padb: 104px; --head-gap: 48px; --t-h3: 22px; --t-lead: 20px; } }
@media (min-width: 1440px) { :root { --gut: 80px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--white); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.snav-open body { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sbar :focus-visible, .section--brand :focus-visible, .card--dark :focus-visible { outline-color: #fff; }
::selection { background: rgba(57, 198, 212, .35); }
.skip { position: absolute; left: var(--gut); top: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); z-index: 50; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 8px 16px; background: var(--deep); color: #fff; border-radius: var(--r-pill); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* Anchors land below the sticky nav (#founders, #waitlist, #faq, #features ...). */
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------------------------------------------------------------- launch state (ported) */
/* html[data-launch] shows the pre-launch or the public copy of a block; while the state call is out
   (data-launch-pending, 1.5 s at most) every [data-when] block keeps its space but stays invisible. */
html[data-launch="prelaunch"] [data-when="public"], html[data-launch="public"] [data-when="prelaunch"] { display: none !important; }
html[data-launch-pending] [data-when] { visibility: hidden; }

/* Founding spots: site.js sets html[data-spots] to none | open | full.
   [data-spots-when="open|full|known|none"] shows a block only in that state ("known" = open or full);
   [data-spots-not="full"] hides a block only when the spots are full (it shows while the state is unknown). */
html:not([data-spots="open"]) [data-spots-when="open"],
html:not([data-spots="full"]) [data-spots-when="full"],
html:not([data-spots="open"]):not([data-spots="full"]) [data-spots-when="known"],
html[data-spots="open"] [data-spots-when="none"], html[data-spots="full"] [data-spots-when="none"] { display: none !important; }
html:not([data-spots="open"]):not([data-spots="full"]) [data-counter-meter] { display: none; }
html[data-spots="full"] [data-spots-not="full"] { display: none !important; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gut), 880px); }
.section { padding: var(--padt) 0 var(--padb); background: var(--white); }
.section--foam { background: var(--foam); }
.section--brand { background: var(--grad); color: #fff; }
.section__head { display: grid; gap: var(--s-4); margin-bottom: var(--head-gap); max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.grid-2, .grid-3 { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.split { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 768px) {
  .grid-2, .grid-3 { gap: var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- type */
h1, .h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
h2, .h2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
h3, .h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.section--brand .lead { color: var(--on-dark); }
.muted { color: var(--muted); }
h2 .muted, h1 .muted { color: var(--muted); }
.section--brand h2 .muted { color: rgba(255, 255, 255, .72); }
.small { font-size: var(--t-small); }
.label { font-size: var(--t-label); font-weight: 600; color: var(--muted); }
.num, .mono { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.measure { max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); width: max-content; max-width: 100%;
  padding: 6px 14px; border-radius: var(--r-pill); background: var(--tint); color: var(--blue);
  font-size: var(--t-label); font-weight: 700; line-height: 1.4;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.section--brand .eyebrow, .card--dark .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }

/* Links: running text and .link rest on a faint hairline; the ink line draws left to right on hover. */
.link {
  color: var(--blue); font-weight: 600;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat,
              linear-gradient(rgba(10, 105, 194, .25), rgba(10, 105, 194, .25)) left bottom / 100% 1px no-repeat;
  transition: background-size var(--m-out) var(--m-ease);
}
.link:hover { background-size: 100% 1px, 100% 1px; transition-duration: var(--m-in); }
/* "Learn more →": the arrow nudges 3px. */
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.more::after { content: '→'; transition: transform var(--m-out) var(--m-ease); }
.more:hover::after, .card--link:hover .more::after, a.card:hover .more::after { transform: translateX(3px); transition-duration: var(--m-in); }

/* ---------------------------------------------------------------- buttons */
/* One pair: .btn--primary (Check Blue, the main action) and .btn--secondary (white with a hairline). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--r-pill);
  font: 700 16px/1.2 var(--f-sans); letter-spacing: -.005em; white-space: nowrap; text-align: center;
  cursor: pointer; text-decoration: none;
  transition: transform var(--m-out) var(--m-ease), background-color var(--m-out) var(--m-ease), border-color var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { transform: translateY(-1px); transition-duration: var(--m-in); }
  .btn--primary:not(:disabled):hover { background: var(--blue-hover); }
  .btn--secondary:not(:disabled):hover { background: var(--foam); border-color: var(--ink); }
}
.btn:not(:disabled):active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.btn--lg { min-height: 56px; padding: 0 var(--s-6); font-size: 17px; }
.btn-row { display: flex; flex-direction: column; gap: var(--s-3); }
.btn-row .btn { width: 100%; }
@media (min-width: 768px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
}
.btn-row--center { justify-content: center; }

/* ---------------------------------------------------------------- counter bar (partials/bar.html) */
.sbar { background: var(--deep); color: #fff; font-size: var(--t-label); font-weight: 600; line-height: 1.4; }
.sbar__inner {
  width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; min-height: 40px; padding: 8px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; text-align: center;
}
.sbar__text b { font-family: var(--f-mono); font-weight: 600; color: var(--sun); }
.sbar__meter { display: inline-block; width: 96px; height: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .2); overflow: hidden; flex: none; }
.sbar__fill { display: block; height: 100%; width: 0; background: var(--sun); border-radius: inherit; }
@media (min-width: 768px) { .sbar { font-size: var(--t-small); } }

/* ---------------------------------------------------------------- nav (partials/nav.html) */
.snav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.snav__inner {
  width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
}
.snav__logo { display: inline-flex; align-items: center; flex: none; }
.snav__logo img { height: 28px; width: auto; }
.snav__toggle {
  width: 44px; height: 44px; margin-right: -6px; padding: 0; border: 0; background: none; border-radius: var(--r-sm);
  display: inline-grid; place-content: center; gap: 5px;
}
.snav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--m-out) var(--m-ease), opacity var(--m-out); }
.snav.is-open .snav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.snav.is-open .snav__toggle span:nth-child(2) { opacity: 0; }
.snav.is-open .snav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Under 1024 the menu is a sheet under the bar, opened by the toggle. */
.snav__menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  background: #fff; padding: var(--s-3) var(--gut) var(--s-6); border-top: 1px solid var(--line);
}
.snav.is-open .snav__menu { display: flex; flex-direction: column; gap: var(--s-5); }
.snav__links { display: flex; flex-direction: column; }
.snav__link {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 17px; font-weight: 600;
}
.snav__actions { display: flex; flex-direction: column; gap: var(--s-3); }
.snav__actions .btn { width: 100%; }
@media (min-width: 1024px) {
  .snav__toggle { display: none; }
  .snav__menu, .snav.is-open .snav__menu {
    display: flex; flex-direction: row; align-items: center; gap: var(--s-6);
    position: static; height: auto; overflow: visible; padding: 0; border: 0; background: none;
  }
  .snav__logo img { height: 34px; }
  .snav__links { flex-direction: row; align-items: center; gap: var(--s-6); }
  .snav__link {
    min-height: 0; border: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
    background: linear-gradient(currentColor, currentColor) left calc(100% + 4px) / 0 1px no-repeat; padding: 4px 0;
    transition: color var(--m-out), background-size var(--m-out) var(--m-ease);
  }
  .snav__link:hover { color: var(--ink); background-size: 100% 1px; transition-duration: var(--m-in); }
  .snav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }
  .snav__actions { flex-direction: row; }
  .snav__actions .btn { width: auto; min-height: 44px; }
}

/* ---------------------------------------------------------------- hero and stage */
/* <section class="hero"><div class="wrap hero__inner"> eyebrow, h1, .lead, .btn-row.hero__ctas, .hero__note
   [data-counter-hero] </div><div class="wrap"><div class="stage"> .frame or .vid </div></div></section> */
.hero { background: linear-gradient(180deg, #fff 0%, var(--foam) 100%); padding-top: var(--s-8); overflow: hidden; }
.hero__inner { display: grid; justify-items: center; text-align: center; gap: var(--s-5); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 34em; }
.hero__ctas { width: 100%; justify-content: center; margin-top: var(--s-2); }
.hero__note { font-size: var(--t-small); font-weight: 600; color: var(--daqua); }
.hero__offer { margin: 0; font-size: var(--t-small); color: var(--muted); }
.hero--left .hero__inner { justify-items: start; text-align: left; }
.hero--left .hero__ctas { justify-content: flex-start; }
.stage {
  margin-top: var(--s-7); background: var(--grad); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--s-4) var(--s-4) 0;
}
.stage > .frame, .stage > .vid { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.stage--whole { border-radius: var(--r-lg); padding-bottom: var(--s-4); margin-bottom: var(--padb); }
.stage--whole > .frame, .stage--whole > .vid { border-radius: var(--r-md); }
@media (min-width: 768px) {
  .hero { padding-top: var(--s-9); }
  .stage { margin-top: var(--s-8); padding: var(--s-7) var(--s-7) 0; }
  .stage--whole { padding-bottom: var(--s-7); }
}
@media (min-width: 1440px) { .stage { padding: var(--s-8) var(--s-9) 0; } .stage--whole { padding-bottom: var(--s-8); } }

/* ---------------------------------------------------------------- frames and video */
/* .frame: a browser-style window: <div class="frame"><div class="frame__bar"><i></i><i></i><i></i></div>
   <div class="frame__body"> img | .vid </div></div> */
.frame { background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-frame); }
.frame__bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame__body { position: relative; }
.frame__body > img { width: 100%; }
@media (min-width: 768px) { .frame__bar { height: 36px; } .frame__bar i { width: 11px; height: 11px; } }

/* .vid (Task 5 wires it): <figure class="vid" data-video> poster <img>, teaser <video>, .vid__play button.
   The teaser stays transparent until site.js adds .is-playing, so the poster is what paints first. */
.vid { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); border-radius: var(--r-md); }
.frame .vid, .frame__body .vid { border-radius: 0; }
.vid > img, .vid > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid > video { opacity: 0; transition: opacity 300ms linear; }
.vid.is-playing > video { opacity: 1; }
.vid__icon { font-size: .85em; line-height: 1; color: var(--blue); }
.vid__play {
  position: absolute; right: var(--s-3); bottom: var(--s-3); z-index: 2;
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
  border: 0; border-radius: var(--r-pill); background: #fff; color: var(--ink);
  font: 700 var(--t-small)/1 var(--f-sans); box-shadow: 0 8px 20px -6px rgba(16, 44, 70, .4);
  transition: transform var(--m-out) var(--m-ease), background-color var(--m-out);
}
@media (hover: hover) and (pointer: fine) { .vid__play:hover { transform: translateY(-1px); background: var(--foam); transition-duration: var(--m-in); } }
.vid__play:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
@media (min-width: 768px) { .vid__play { right: var(--s-5); bottom: var(--s-5); min-height: 48px; padding: 0 var(--s-5); font-size: 15px; } }
/* "Video soon" frame: assets/video-soon.svg, no play button. */
.soon { aspect-ratio: 16 / 9; width: 100%; background: var(--foam); }
.soon > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- cards */
/* .card (white, hairline) on Foam; .card--dark (Deep Water) on the brand band. A linked card is an <a class="card">
   or a .card--link holding its link: it lifts 2px and its border steps darker. */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); overflow: hidden;
  transition: transform 180ms var(--m-ease), border-color var(--m-out), box-shadow var(--m-out);
}
.card__media { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--foam); }
.card__media > img, .card__media > picture > img, .card__media > video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-image) var(--m-ease); }
.card__media--inset { margin: 0; border-radius: var(--r-md); }
/* Hover card teaser: the <video> sits over the poster, transparent until .card__media.is-playing. */
.card__media { position: relative; }
.card__media > video { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms linear; }
.card__media.is-playing > video { opacity: 1; }
.card__media > .vid { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.card__media .vid__play, .card .vid__play { z-index: 2; }
.card__title { font-size: var(--t-h3); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.card__text { color: var(--ink-2); font-size: var(--t-body); line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: var(--s-2); }
.card--dark { background: var(--deep); color: #fff; border-color: rgba(255, 255, 255, .08); }
.card--dark .card__text { color: var(--on-dark); }
.card--dark .card__media { background: #0B2236; }
.card--dark .more { color: var(--aqua); }
a.card { text-decoration: none; }
/* A link stretched over the whole card: <a class="more card__cover" href>Learn more</a> */
.card__cover::before { content: ''; position: absolute; inset: 0; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover, .card--link:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-card); transition-duration: 180ms, var(--m-in), var(--m-in); }
  .card--dark.card--link:hover, a.card--dark:hover { border-color: rgba(57, 198, 212, .45); box-shadow: 0 16px 32px -14px rgba(5, 20, 35, .55); }
  a.card:hover .card__media > img, .card--link:hover .card__media > img, .card--link:hover .card__media > picture > img { transform: scale(1.03); }
}
@media (min-width: 1024px) { .card { padding: var(--s-6); } .card__media { margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-6)) 0; } }

/* ---------------------------------------------------------------- reasons band */
/* <section class="section section--brand reasons"> .section__head (h2 + .lead) and .grid-3 of .card--dark.card--link */
.reasons .section__head h2 { color: #fff; }
/* Card rail (the home's reasons): [data-rail] > .rail__head (.section__head + .rail__nav arrows) + .rail__track, a row
   of cards that scrolls sideways with snap. It bleeds to the page edge, and part of the next card always shows, so it
   reads as "more this way". Arrows from 768px; below that it is swiped. Nothing moves by itself. */
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
.rail__head > .section__head { margin-bottom: 0; }
.rail__nav { display: none; gap: var(--s-2); flex: none; }
.rail__btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background var(--m-in) var(--m-ease), opacity var(--m-in) var(--m-ease); }
.rail__btn svg { width: 22px; height: 22px; }
.rail__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.rail__btn:disabled { opacity: .35; cursor: default; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: var(--s-4);
  margin: var(--s-6) calc(-1 * var(--gut)) 0; padding: 6px var(--gut) var(--s-5); scroll-padding-inline: var(--gut);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
/* Under the rail: the way to the full list (/features). */
.rail__foot { margin: var(--s-2) 0 0; }
.rail__foot .btn:hover { background: rgba(255, 255, 255, .14); }
.rail__track:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: var(--r-md); }
@media (min-width: 640px) { .rail__track { grid-auto-columns: 44%; } }
@media (min-width: 768px) { .rail__nav { display: flex; } }
@media (min-width: 1024px) { .rail__track { gap: var(--s-5); grid-auto-columns: calc((100% - 3 * var(--s-5)) / 3.3); } }
.reasons .grid-3 { gap: var(--s-4); }
@media (min-width: 1024px) { .reasons .grid-3 { gap: var(--s-5); } }

/* ---------------------------------------------------------------- explorer (Task 5 wires it) */
/* <div class="xp"><div class="xp__list" role="tablist|list"><button class="xp__item" aria-expanded="true|false"
   data-media><span class="xp__title"></span><span class="xp__text"></span></button>...</div>
   <div class="xp__stage"> .frame | .vid | img </div></div> */
.xp { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.xp__list { display: grid; gap: var(--s-2); }
.xp__item {
  display: grid; gap: 4px; width: 100%; text-align: left; padding: var(--s-4) var(--s-5);
  background: transparent; border: 1px solid transparent; border-radius: var(--r-md); color: var(--ink);
  transition: background-color var(--m-out), border-color var(--m-out), box-shadow var(--m-out);
}
.xp__title { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.xp__text { font-size: var(--t-body); color: var(--ink-2); line-height: 1.55; }
.xp__item[aria-expanded="false"] .xp__text { color: var(--muted); }
.xp__item[aria-expanded="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow-card), inset 3px 0 0 var(--blue); }
@media (hover: hover) and (pointer: fine) { .xp__item[aria-expanded="false"]:hover { background: rgba(255, 255, 255, .7); border-color: var(--line); transition-duration: var(--m-in); } }
.section:not(.section--foam) .xp__item[aria-expanded="true"] { background: var(--foam); }
/* Learn more under an explorer item (home): shown for the active item only, lined up with its text. */
.xp__more { justify-self: start; margin: calc(-1 * var(--s-1)) 0 var(--s-2) var(--s-5); }
.xp__item[aria-expanded="false"] + .xp__more { display: none; }
.xp__stage { position: relative; border-radius: var(--r-lg); background: var(--grad); padding: var(--s-4); }
/* The stage keeps one 16:9 box whatever it shows, so swapping a teaser for a zoom never changes its height. A zoom is
   contained on the gradient; its shadow follows the picture (drop-shadow), not the letterboxed box. */
.xp__stage > .vid, .xp__stage > .soon, .xp__stage > picture, .xp__stage > img { display: block; width: 100%; aspect-ratio: 16 / 9; }
.xp__stage > picture > img, .xp__stage > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(16, 44, 70, .35)); }
.xp__stage > .vid, .xp__stage > .soon, .xp__stage > .frame { border-radius: var(--r-md); box-shadow: var(--shadow-frame); }
.xp__stage > .soon { overflow: hidden; }
/* A screen zoom sits in a window: a thin translucent frame hugging the screen at its own shape, set in from the
   top-left and running just off the stage's right or bottom edge (the stage clips it). The stage keeps its 16:9 box,
   so nothing jumps. */
.xp__stage:has(> picture) { overflow: hidden; }
.xp__stage > picture { position: relative; }
.xp__stage > picture > img {
  position: absolute; left: 6%; top: 8%; width: auto; height: auto; max-width: 104%; max-height: 108%;
  filter: none;
  border: 8px solid rgba(255, 255, 255, .3); border-radius: 18px; background: #fff; background-clip: padding-box;
  box-shadow: 0 30px 60px rgba(8, 30, 56, .35);
}
.xp__head { margin-bottom: var(--s-5); }
.xp + .xp, .xp-block + .xp-block { margin-top: var(--s-8); }
@media (min-width: 1024px) {
  .xp { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); }
  .xp__stage { padding: var(--s-6); }
  /* Mirrored explorer (home, middle block): stage on the left, list and its heading on the right. */
  .xp-block--flip .xp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .xp-block--flip .xp__stage { order: -1; }
  .xp-block--flip .xp__head { margin-left: calc((100% - var(--s-7)) * 7 / 12 + var(--s-7)); }
}

/* ---------------------------------------------------------------- feature media and explorer rows (build-site.js) */
/* facts: <ul class="facts"><li><b class="num">…</b> text</li></ul> */
.facts { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.facts > li { padding-top: var(--s-4); border-top: 2px solid var(--blue); color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.facts > li b { display: block; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }

/* ---------------------------------------------------------------- HTML visuals (feature pages) */
/* partials/hv-*.html: product screens drawn in HTML from the old page's demo data, for points of view no video shows.
   <div class="hv" role="img" aria-label="…"><div class="hv__panel" aria-hidden="true"> … </div></div>
   build-site.js puts them in the explorer stage ("html:hv-NAME", swapped in from a <template>) and in related cards
   (.card__media--hv). The box is 16:9 and its type scales with its width (container units); .hv__x parts drop out
   when the box is narrow, so a phone shows fewer rows rather than smaller text. */
.hv { container-type: inline-size; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.hv__panel {
  width: min(100%, 40em); display: grid; gap: .3em; padding: 1.1em 1.25em; border-radius: .9em;
  background: #fff; color: var(--ink); box-shadow: 0 1.2em 2.4em -1em rgba(16, 44, 70, .45);
  font: 400 clamp(9px, 2.25cqw, 14px)/1.3 var(--f-sans); text-align: left;
}
.hv__panel--wide { width: min(100%, 46em); }
.hv b, .hv strong { font-weight: 700; }
.hv__stack { display: grid; min-width: 0; }
.hv__brand { display: flex; align-items: center; gap: .6em; margin-right: auto; }
.hv small { font-size: .85em; color: var(--muted); }
.hv__head { display: flex; justify-content: space-between; align-items: center; gap: .8em; padding-bottom: .35em; }
.hv__head > b { font-size: 1.1em; font-weight: 800; letter-spacing: -.01em; }
.hv__head > span { color: var(--muted); font-size: .9em; }
.hv__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .8em; padding: .5em 0; border-top: 1px solid var(--line); }
.hv__row > span:first-child { display: grid; min-width: 0; }
.hv__row b, .hv__row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv__row--tech { grid-template-columns: 2.1em minmax(0, 1fr) auto 3.2em; }
.hv__row--stop { grid-template-columns: 3.4em minmax(0, 1fr) auto; }
.hv__amt, .hv__mono { font-family: var(--f-mono); font-weight: 600; }
.hv__time { font-family: var(--f-mono); font-weight: 600; color: var(--muted); text-align: right; }
.hv__chip { justify-self: end; padding: .2em .65em; border-radius: var(--r-pill); font-size: .8em; font-weight: 700; white-space: nowrap; background: var(--tint); color: var(--blue); }
.hv__chip--ok { background: #E2F3EB; color: var(--ok); }
.hv__chip--warn { background: #FBEEDD; color: var(--warn); }
.hv__chip--bad { background: #FBE5E3; color: var(--bad); }
.hv__chip--muted { background: var(--foam); color: var(--muted); }
.hv__av { width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--blue); font-size: .8em; font-weight: 800; }
.hv__logo { width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: .5em; background: var(--deep); color: #fff; font-size: .8em; font-weight: 800; }
.hv__foot { display: flex; align-items: center; justify-content: space-between; gap: .8em; padding-top: .6em; border-top: 1px solid var(--line); }
.hv__btns { display: flex; flex-wrap: wrap; gap: .5em; }
.hv__btn { display: inline-flex; align-items: center; padding: .45em 1em; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-weight: 700; white-space: nowrap; }
.hv__btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hv__tabs { display: flex; gap: .4em; flex-wrap: wrap; padding: .2em 0 .5em; }
.hv__tabs > span { padding: .3em .8em; border-radius: var(--r-pill); background: var(--foam); color: var(--muted); font-size: .85em; font-weight: 700; }
.hv__tabs > span.is-on { background: var(--deep); color: #fff; }
.hv__switch { justify-self: end; width: 2.4em; height: 1.4em; border-radius: var(--r-pill); background: var(--ok); position: relative; }
.hv__switch::after { content: ''; position: absolute; top: .2em; right: .2em; width: 1em; height: 1em; border-radius: 50%; background: #fff; }
/* Ticks: a check in a filled circle (done), an open circle (to do). */
.hv__tick { width: 1.3em; height: 1.3em; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: .8em; font-weight: 800; }
.hv__tick::before { content: '✓'; }
.hv__tick--todo { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.hv__tick--todo::before { content: ''; }
.hv__tick--next { background: var(--blue); }
.hv__tick--next::before { content: '›'; }
/* Stats, checklist and photos (an open visit). */
.hv__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5em; padding: .3em 0 .5em; }
.hv__stat { display: grid; gap: .15em; padding: .5em .6em; border-radius: .55em; background: var(--foam); }
.hv__stat strong { font-size: 1.05em; white-space: nowrap; }
.hv__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1em; }
.hv__label { font-size: .8em; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hv__checks { display: grid; gap: .3em; padding-top: .3em; }
.hv__checks > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5em; }
.hv__checks em { font-style: normal; font-family: var(--f-mono); font-weight: 600; color: var(--muted); font-size: .85em; }
.hv__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4em; padding-top: .3em; }
.hv__photos > span { aspect-ratio: 4 / 3; border-radius: .45em; display: flex; align-items: flex-start; padding: .35em; background: linear-gradient(180deg, #CFE6F5 0 38%, #D9CBB1 38% 100%); }
.hv__photos > span:nth-child(1) { background: linear-gradient(180deg, #CFE6F5 0 38%, #6E9C77 38% 100%); }
.hv__photos > span:nth-child(2) { background: linear-gradient(180deg, #CFE6F5 0 38%, #39A6D8 38% 100%); }
.hv__photos i { font-style: normal; font-size: .75em; font-weight: 700; padding: .1em .5em; border-radius: var(--r-pill); background: rgba(16, 44, 70, .7); color: #fff; }
/* Readings: four tiles. */
.hv__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
.hv__tile { display: grid; gap: .3em; align-content: start; padding: .55em .7em; border-radius: .6em; background: var(--foam); }
.hv__tile > .hv__head { padding: 0; font-size: .9em; }
.hv__tile > .hv__head > b { font-size: 1em; font-weight: 700; }
.hv__big { font: 600 1.7em/1 var(--f-mono); }
.hv__big small { font-size: .45em; margin-left: .2em; }
.hv__range { position: relative; height: .45em; border-radius: var(--r-pill); background: linear-gradient(90deg, #F3C9C4, #CFEBDD 30% 70%, #F3C9C4); }
.hv__range > i { position: absolute; top: -.25em; width: .25em; height: .95em; border-radius: 2px; background: var(--ink); }
.hv__scale { display: flex; justify-content: space-between; font: 600 .75em/1 var(--f-mono); color: var(--muted); }
.hv__spark { display: flex; align-items: flex-end; gap: .3em; height: 2.6em; }
.hv__spark > i { flex: 1; border-radius: .2em .2em 0 0; background: var(--daqua); }
.hv__spark > i:last-child { background: var(--bad); }
.hv__doses { display: grid; gap: .3em; }
.hv__doses > li { display: flex; justify-content: space-between; gap: .6em; }
/* Chat (Check'n Desk AI). */
.hv__chat { display: grid; gap: .5em; }
.hv__when { justify-self: center; font-size: .8em; color: var(--muted); }
.hv__msg { max-width: 82%; padding: .55em .8em; border-radius: .8em; background: var(--foam); }
.hv__msg--me { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: .2em; }
.hv__msg--ai { border-bottom-left-radius: .2em; }
/* Flow: a closed visit and the three jobs it sets off. */
.hv__flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: center; gap: .6em; }
.hv__node { display: grid; gap: .2em; justify-items: start; padding: .7em .8em; border-radius: .6em; background: var(--foam); }
.hv__node--core { background: var(--deep); color: #fff; }
.hv__node--core small { color: rgba(255, 255, 255, .75); }
.hv__arrow { color: var(--blue); font-weight: 800; }
.hv__lanes { display: grid; gap: .45em; }
.hv__lane { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1em .5em; align-items: center; padding: .45em .6em; border-radius: .55em; box-shadow: inset 0 0 0 1px var(--line); }
.hv__lane small { grid-column: 2; }
/* Score bars. */
.hv__score { display: flex; align-items: center; gap: .8em; padding-bottom: .4em; }
.hv__score .hv__big { color: var(--ok); }
.hv__bar { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 3em; align-items: center; gap: .7em; padding: .35em 0; }
.hv__bar > span:nth-child(2) { height: .55em; border-radius: var(--r-pill); background: var(--foam); overflow: hidden; }
.hv__bar > span:nth-child(2) > i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.hv__bar > b { font-family: var(--f-mono); font-weight: 600; text-align: right; }
.hv__note { display: flex; align-items: center; gap: .6em; padding: .55em .7em; margin-top: .3em; border-radius: .6em; background: var(--foam); }
/* Import: four sources into Check'n Done. */
.hv__import { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1em; padding-top: .3em; }
.hv__sources { display: grid; gap: .45em; }
.hv__src { display: flex; align-items: center; gap: .6em; padding: .55em .7em; border-radius: .6em; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.hv__src > i { width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: .4em; background: var(--tint); color: var(--blue); font-style: normal; font-size: .8em; font-weight: 800; }
.hv__dest { display: grid; gap: .4em; justify-items: start; padding: 1em; border-radius: .8em; background: var(--deep); color: #fff; }
.hv__dest small { color: rgba(255, 255, 255, .75); }
@container (max-width: 460px) {
  .hv__x { display: none !important; }
  .hv__panel { font-size: clamp(9px, 2.9cqw, 13px); padding: .9em 1em; }
  .hv__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .1em 0 .3em; }
  .hv__row { padding: .35em 0; }
  .hv__head { padding-bottom: .2em; }
  .hv__foot { padding-top: .4em; }
  .hv__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv__tile { padding: .45em .6em; gap: .2em; }
  .hv__scale { display: none; }
}
/* A wide box with little height (the explorer stage from 768 up): the open visit keeps three checklist steps. */
@container (min-width: 461px) and (max-width: 700px) { .hv__xw { display: none; } }
/* In the explorer stage the panel sits on the gradient; in a related card it fills the dark media box. */
.xp__stage > .hv { display: grid; }
.card__media--hv { display: grid; background: #0B2236; }
.card__media--hv > .hv { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; padding: 5%; }
.card__media--hv .hv__panel { box-shadow: none; }

/* ---------------------------------------------------------------- founders band and forms */
/* <section class="section founders" id="founders"> the founders card (.fcta), then .split: text column (h3, .ticks,
   form.invite#invite-open) and .card.form-card#waitlist holding form.form#waitlist-form. The top padding is one step
   tighter than a section's: the card's seal art spills into it. */
.founders { background: linear-gradient(180deg, var(--foam) 0%, #E6F2F7 100%); padding-top: var(--s-8); }
.founders__text { display: grid; gap: var(--s-5); align-content: start; }
.meter { display: block; height: 10px; border-radius: var(--r-pill); background: var(--tint); overflow: hidden; }
.meter__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sun); }
.ticks { display: grid; gap: var(--s-3); }
.ticks > li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.ticks > li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue);
}
.ticks > li::after {
  content: ''; position: absolute; left: 7px; top: 6px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.form-card { padding: var(--s-5); box-shadow: var(--shadow-card); gap: var(--s-5); }
@media (min-width: 768px) { .form-card { padding: var(--s-7); } }
.form-card__head { display: grid; gap: var(--s-2); }
.form-card__head h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.form-card__head p { color: var(--ink-2); }
.form { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); } }
.form > .field--full, .form > .btn-row, .form > .form__error, .form > .form-card__head { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field__label { font-size: var(--t-label); font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 48px; padding: 0 var(--s-4); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--m-in), box-shadow var(--m-in);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23102C46' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
.field input::placeholder { color: #6B7F92; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 105, 194, .18); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--bad); }
/* The honeypot (hp_field): off screen, never focusable by people. */
.trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: var(--bad); font-size: var(--t-small); font-weight: 600; min-height: 1.4em; }
.form__error:empty { min-height: 0; }
.form__note { font-size: var(--t-small); color: var(--muted); }
/* The founders code step (form#start-code-form): a wide code box, and two quiet text buttons under it. */
.form > .form__links { grid-column: 1 / -1; margin: 0; font-size: var(--t-small); color: var(--muted); }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--ink); }
#st-code { font: 600 24px/1 var(--f-mono); letter-spacing: .35em; text-align: center; }
/* The founders dialog (site.js initFounderModal): the form card over the product itself, a picture of the Route
   Dashboard blurred ahead of time (assets/photos/workspace-blur), first with "Getting your workspace ready…". */
.fmodal { width: min(100% - 2 * var(--gut), 640px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.fmodal::backdrop { background: rgba(9, 28, 45, .28); }
.fmodal__ground { position: fixed; inset: 0; z-index: -1; background: #EEF3F8 url("/assets/photos/workspace-blur.jpg") center top / cover no-repeat; }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .fmodal__ground { background-image: image-set(url("/assets/photos/workspace-blur.webp") type("image/webp"), url("/assets/photos/workspace-blur.jpg") type("image/jpeg")); }
}
.fmodal__ground::after { content: ""; position: absolute; inset: 0; background: rgba(16, 44, 70, .18); }
.fmodal__body { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: var(--r-lg); }
.fmodal__loading { display: none; }
.fmodal.is-loading .fmodal__body { display: none; }
.fmodal.is-loading .fmodal__loading {
  display: grid; justify-items: center; gap: var(--s-4); margin: 0 auto; width: max-content; max-width: 100%;
  padding: var(--s-6) var(--s-7); border-radius: var(--r-lg); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-frame);
  color: var(--ink); font-size: 18px; font-weight: 700; text-align: center;
}
.fmodal__loading p { margin: 0; }
.fmodal__spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: fmodal-spin .9s linear infinite; }
@keyframes fmodal-spin { to { transform: rotate(360deg); } }
.fmodal:not(.is-loading) .fmodal__body { animation: fmodal-in .3s var(--m-ease) both; }
@keyframes fmodal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .fmodal__spinner { animation: none; border-top-color: var(--line); }
  .fmodal:not(.is-loading) .fmodal__body { animation: none; }
}
.fmodal__body > .form-card { margin: 0; }
.fmodal__close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--foam); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.fmodal__close:hover { background: var(--line); }
.form__done:empty { display: none; }
.form__done { padding: var(--s-5); border-radius: var(--r-md); background: #E7F4EE; color: var(--ink); border: 1px solid rgba(18, 128, 92, .25); font-size: 17px; font-weight: 600; }
.form__done:focus { outline: none; }
.form__done:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
/* The invite opener: label, then input and the secondary button side by side from 390 up. */
.invite { display: grid; gap: 6px; }
.invite__row { display: flex; gap: var(--s-2); }
.invite__row input { flex: 1; min-width: 0; }
.invite__row .btn { flex: none; }

/* ---------------------------------------------------------------- "works with" strip (partials/works-with.html) */
.ww-band { padding: var(--s-7) 0; border-bottom: 1px solid var(--line); }
.ww { display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.ww__title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ww__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); margin: 0; padding: 0; list-style: none; }
.ww__item { display: inline-flex; align-items: center; min-height: 32px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-2); opacity: .72; }
.ww__item--logo { opacity: 1; }
.ww__item--logo img { display: block; flex: none; max-width: none; height: 32px; width: auto; }
.ww__item--stripe img { height: 40px; margin: 0 -10px; } /* the wordmark file carries its own clear space */
.ww__item--gpay img { height: 59px; margin: -13px -24px; } /* Google's file: the mark fills ~54% of it; sized, not edited */
.ww__more { font-size: 15px; }
@media (min-width: 768px) { .ww__item { font-size: 21px; } }

/* ---------------------------------------------------------------- FAQ (every answer open) */
/* <div class="faq"><div class="faq__item" data-when?><h3>…</h3><p>…</p></div>…</div> (site.js builds the JSON-LD). */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s-7); }
.faq__item { padding: var(--s-5) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.faq__item h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.faq__item p { color: var(--ink-2); }
@media (min-width: 1024px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- closing */
/* <section class="section closing"><div class="wrap closing__inner"> h2, .btn-row.btn-row--center </div></section> */
.closing { background: var(--foam); text-align: center; }
.closing__inner { display: grid; justify-items: center; gap: var(--s-6); }
.closing h2 { font-size: clamp(34px, 2.6vw + 24px, 64px); max-width: 14ch; }
.closing .btn-row { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- built for your size (home) */
/* <section class="section sizes"> .section__head--center, then <div class="sizes__tabs" role="tablist" data-size-tabs> of
   <button class="sizes__tab" role="tab" aria-selected aria-controls> (.sizes__benefit muted line, .sizes__name bold),
   then one <div class="sizes__panel" role="tabpanel"> per tab: .sizes__text (.sizes__statement, .ticks, .more) and
   .sizes__media holding a .vid; a brand-gradient panel sits behind it, offset up and to the right. site.js initSizeTabs. */
.sizes__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); max-width: 960px; margin: 0 auto var(--s-7); }
.sizes__tab {
  display: grid; gap: 4px; align-content: start; text-align: left; padding: var(--s-4) var(--s-5);
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: background-color var(--m-out), border-color var(--m-out), color var(--m-out);
}
.sizes__benefit { font-size: var(--t-small); font-weight: 600; line-height: 1.4; color: var(--muted); }
.sizes__name { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
.sizes__tab[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.sizes__tab[aria-selected="true"] .sizes__benefit { color: rgba(255, 255, 255, .78); }
@media (hover: hover) and (pointer: fine) { .sizes__tab[aria-selected="false"]:hover { background: var(--foam); border-color: var(--line-strong); transition-duration: var(--m-in); } }
.sizes__panel { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: center; }
.sizes__panel:focus { outline: none; }
.sizes__panel:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; border-radius: var(--r-md); }
.sizes__panel.is-in { animation: sizes-in 150ms linear; }
@keyframes sizes-in { from { opacity: 0; } to { opacity: 1; } }
.sizes__text { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.sizes__statement { font-size: clamp(24px, 1vw + 20px, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.sizes__media { position: relative; padding: var(--s-5) var(--s-5) 0 0; }
.sizes__media::before { content: ''; position: absolute; top: 0; right: 0; bottom: var(--s-5); left: var(--s-5); border-radius: var(--r-lg); background: var(--grad); }
.sizes__media > .vid { position: relative; border-radius: var(--r-lg); box-shadow: var(--shadow-frame); }
@media (min-width: 1024px) {
  .sizes__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .sizes__media { padding: var(--s-6) var(--s-6) 0 0; }
  .sizes__media::before { bottom: var(--s-6); left: var(--s-6); }
}
/* Phones: one row of tabs that scrolls sideways and snaps; the panel stacks text first, then the video. */
@media (max-width: 768px) {
  .sizes__tabs {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut); scroll-padding-inline: var(--gut);
  }
  .sizes__tabs::-webkit-scrollbar { display: none; }
  .sizes__tab { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
}

/* ---------------------------------------------------------------- founders card (partials/founders-cta.html) */
/* <div class="fcta"> .fcta__art (aria-hidden inline SVG brand seal filled with pool water, spilling out of the top-left edge) and one
   .fcta__body per launch state: h2, .lead, .fcta__count (counter hooks; "Limited founding spots" with no data),
   .fcta__note, .btn-row of .btn--light and .btn--outline-light. No motion beyond the button hover. */
.fcta {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--s-5) var(--s-6); border-radius: 24px;
  background: linear-gradient(160deg, #102C46 0%, #071726 100%); color: #fff;
}
/* Phones: the seal art sits above the text, scaled down, spilling past the card's top-left corner. */
.fcta__art { width: min(82%, 300px); margin: calc(-1 * var(--s-8)) 0 var(--s-3) calc(-1 * var(--s-5) - 8px); pointer-events: none; }
.fcta__art svg { width: 100%; height: auto; overflow: visible; }
.fcta__body { display: grid; gap: var(--s-4); justify-items: start; }
.fcta__body h2 { color: #fff; }
.fcta__body .lead { color: var(--on-dark); }
.fcta__count { font-size: 18px; font-weight: 700; line-height: 1.3; color: #fff; }
/* "47 of 50": the numbers in JetBrains Mono, "of" in Manrope, smaller and muted. */
.fcta__count b { font-weight: 600; color: #fff; margin-right: 4px; }
.fcta__num { font: 600 clamp(34px, 1.8vw + 24px, 52px)/1 var(--f-mono); letter-spacing: -.03em; }
.fcta__of { font: 700 20px/1 var(--f-sans); color: rgba(255, 255, 255, .72); margin: 0 2px; }
/* One card, two headings: the opening card (Founders section) and the closing card (.fcta-band) read differently. */
.fcta__h--close { display: none; }
.fcta-band .fcta__h--open { display: none; }
.fcta-band .fcta__h--close { display: block; }
.fcta__note { font-size: var(--t-small); font-weight: 700; color: var(--aqua); }
.fcta .btn-row { margin-top: var(--s-2); width: 100%; }
.btn--light { background: #fff; color: var(--deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
@media (hover: hover) and (pointer: fine) {
  .btn--light:not(:disabled):hover { background: var(--foam); }
  .btn--outline-light:not(:disabled):hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
}
.fcta :focus-visible { outline-color: #fff; }
/* From 768: the seal art fills the card's left 40% and spills past its top-left corner; the text takes the right side. */
@media (min-width: 768px) {
  .fcta { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: 380px; padding: var(--s-7) var(--s-7) var(--s-7) 0; }
  .fcta__art { position: absolute; left: calc(-1 * min(40px, var(--gut) - 8px)); top: -56px; width: 36%; max-width: 420px; margin: 0; }
  .fcta__body { grid-column: 2; }
  .fcta .btn-row { width: auto; }
}
@media (min-width: 1024px) {
  .fcta { min-height: 460px; padding: var(--s-8) var(--s-8) var(--s-8) 0; }
  .fcta__art { top: -84px; left: max(-24px, calc(-1 * (var(--gut) - 8px))); }
}
/* Public state (spec §12): no seal art; the closing card is a plain dark card with its text in one column. */
html[data-launch="public"] .fcta__art { display: none; }
html[data-launch="public"] .fcta { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: var(--s-6) var(--s-5); }
html[data-launch="public"] .fcta__body { grid-column: auto; }
@media (min-width: 768px) { html[data-launch="public"] .fcta { padding: var(--s-7); } }
@media (min-width: 1024px) { html[data-launch="public"] .fcta { padding: var(--s-8); } }

/* ---------------------------------------------------------------- footer (partials/footer.html) */
.sfoot { background: #fff; border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); }
.sfoot__inner { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; display: grid; gap: var(--s-7); }
.sfoot__brand { display: grid; gap: var(--s-3); align-content: start; }
.sfoot__brand img { height: 28px; width: auto; }
.sfoot__tagline { font-weight: 700; color: var(--ink); }
.sfoot__cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sfoot__title { font-size: var(--t-label); font-weight: 700; color: var(--muted); margin-bottom: var(--s-3); }
.sfoot__list { display: grid; gap: var(--s-2); }
.sfoot__link {
  color: var(--ink); font-size: 15px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) left calc(100% + 2px) / 0 1px no-repeat;
  transition: background-size var(--m-out) var(--m-ease);
}
.sfoot__link:hover { background-size: 100% 1px; transition-duration: var(--m-in); }
.sfoot__legal { font-size: var(--t-label); color: var(--muted); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.sfoot__btn { padding: 0; border: 0; font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; background-color: transparent; }
.sfoot__btn[hidden] { display: none; }

/* ---------------------------------------------------------------- cookie notice (site.js initConsent)
   <div class="consent" role="region"> .consent__text (with the privacy link), .consent__note (GPC), .consent__actions (Accept, Decline).
   A small card fixed at the bottom; it never blocks the page. Full width on phones, bottom-left from 768px. */
.consent {
  position: fixed; z-index: 60; left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
  display: grid; gap: var(--s-3); padding: var(--s-5); background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 48px rgba(16, 44, 70, .18);
  font-size: var(--t-small); line-height: 1.5;
}
.consent__text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.consent__note { color: var(--muted); font-size: var(--t-label); }
.consent__actions { display: flex; gap: var(--s-2); }
.consent__actions .btn { flex: 1; min-height: 44px; padding: 0 var(--s-4); }
@media (min-width: 768px) {
  .consent { right: auto; left: var(--s-5); bottom: var(--s-5); max-width: 400px; }
  .consent__actions .btn { flex: 0 0 auto; }
}
@media print { .consent { display: none; } }
@media (min-width: 1024px) {
  .sfoot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .sfoot__cols { grid-template-columns: 2fr 1fr; }
  .sfoot__cols .sfoot__col:first-child .sfoot__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
  .sfoot__legal { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- video modal (Task 5 creates the dialog) */
/* site.js makes it on first use and appends it to <body>; pages do not write it:
   <dialog class="vmodal" aria-labelledby="vmodal-title"><div class="vmodal__head"><p class="vmodal__title" id="vmodal-title">
   </p><button class="vmodal__close" aria-label="Close video">✕</button></div><div class="vmodal__box"><video
   class="vmodal__video" controls playsinline></video></div></dialog>. The title and ✕ sit on the backdrop above the
   video, so they never cover the product screen. While open, html.vmodal-open locks the page scroll. */
html.vmodal-open body { overflow: hidden; }
.vmodal { width: min(100% - 2 * var(--gut), 1200px, (100vh - 140px) * 16 / 9); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.vmodal::backdrop { background: rgba(16, 44, 70, .78); }
.vmodal__box { position: relative; border-radius: var(--r-md); overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.vmodal__video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vmodal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-3); }
.vmodal__title { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.01em; min-width: 0; }
.vmodal__close {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 18px; font-weight: 700; display: grid; place-items: center;
}
@media (hover: hover) and (pointer: fine) { .vmodal__close:hover { background: var(--foam); } }

/* ---------------------------------------------------------------- reduced motion */
/* ---------------------------------------------------------------- guides (/guides and /guides/<slug>) */
/* .ghero (left hero), .gcrumbs, .gmeta, .glayout (contents + article), .gtoc, .prose (the article), .gcallout,
   .gfaq, .gsources, .gcta (closing box), .gfeature (one feature card), .gindex/.ghub/.gcards/.gcard (the index), .gdraft. */
.ghero { --tone: var(--blue); --tone-ink: var(--blue); --tone-soft: #E3EEF9; position: relative; overflow: hidden; padding: var(--s-7) 0; background: linear-gradient(180deg, var(--foam) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.ghero h1 { max-width: 20ch; font-size: clamp(34px, 2.2vw + 22px, 56px); }
.ghero .lead { max-width: 62ch; margin-top: var(--s-4); }
.gcrumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); font-size: var(--t-small); color: var(--muted); }
.gcrumbs a { color: var(--blue); font-weight: 600; }
.gcrumbs a:hover { text-decoration: underline; }
.gmeta { margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); }
.gdraft { margin: 0; padding: var(--s-3) var(--gut); background: var(--sun); color: var(--deep); font-weight: 700; text-align: center; font-size: var(--t-small); }
.glayout { display: grid; gap: var(--s-6); padding: var(--s-7) 0 var(--s-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .glayout { grid-template-columns: 240px minmax(0, 720px); gap: var(--s-8); } }
.gtoc { font-size: var(--t-small); }
@media (min-width: 1024px) { .gtoc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; } }
.gtoc__title { font-size: var(--t-label); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.gtoc ol { display: grid; gap: var(--s-2); margin: 0; padding: 0 0 0 var(--s-4); border-left: 2px solid var(--line); list-style: none; }
.gtoc a { color: var(--ink-2); line-height: 1.4; }
.gtoc a:hover { color: var(--blue); }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { position: relative; margin-top: var(--s-8); padding-top: var(--s-4); font-size: clamp(26px, 1vw + 20px, 34px); line-height: 1.2; color: var(--ink); }
.prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--grad); }
.prose .gsources h2::before, .prose .gfaq h2::before { width: 32px; }
.prose h3 { margin-top: var(--s-6); font-size: var(--t-h3); color: var(--ink); }
.prose > h2:first-child { margin-top: 0; }
.prose a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s-2); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose .gtable { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--deep); color: #fff; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.gcallout { padding: var(--s-5); border-radius: var(--r-md); background: var(--tint); border-left: 4px solid var(--blue); color: var(--ink); }
.gcallout > * + * { margin-top: var(--s-2); }
.gcallout--answer { background: linear-gradient(120deg, #E6F7F9 0%, #fff 70%); border: 1px solid #BFE6EB; border-left: 4px solid var(--aqua); box-shadow: var(--shadow-card); }
.gcallout__label { font-size: var(--t-label); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--daqua); }
.gchecks { list-style: none !important; padding-left: 0 !important; }
.gchecks > li { position: relative; padding-left: 30px; }
.gchecks > li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--daqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.gfaq { margin-top: var(--s-8); }
.gfaq__item { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.gfaq__item h3 { margin: 0 0 var(--s-2); font-size: 18px; }
.gsources { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.gsources h2 { font-size: 22px; margin-top: 0; }
.gsources ul { font-size: 15px; }
.gcta { position: relative; overflow: hidden; margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--r-lg); background: var(--grad); color: rgba(255, 255, 255, .9); box-shadow: var(--shadow-frame); }
.gcta::before { content: ""; position: absolute; inset: 0; background: url("/assets/photos/pool-water.webp") center / cover; opacity: .22; mix-blend-mode: luminosity; pointer-events: none; }
.gcta > * { position: relative; }
.gcta__title { font-size: 24px; font-weight: 800; line-height: 1.25; color: #fff; }
.gcta__text { margin-top: var(--s-2); }
.gcta .btn-row { margin-top: var(--s-5); }
.gcta :focus-visible { outline-color: #fff; }
.gcta .btn--secondary { background: #fff; }
.gfeature__inner { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) { .gfeature__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } .gfeature .section__head { margin-bottom: 0; } }
.gfeature .card__media > picture > img { object-fit: contain; }
.gindex { padding: var(--s-7) 0 var(--s-8); display: grid; gap: var(--s-8); }
.ghub__head { margin-bottom: var(--s-5); }
.ghub__head .lead { max-width: 62ch; margin-top: var(--s-2); }
.gcards { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gcard { display: grid; gap: var(--s-2); align-content: start; padding: 0 0 var(--s-5); overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.gcard > :not(.gcard__media) { margin-inline: var(--s-5); }
.gcard:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-frame); }
.gcard__media { display: block; height: 168px; margin-bottom: var(--s-3); overflow: hidden; background: linear-gradient(150deg, var(--tone, var(--blue)) 0%, var(--tone-2, var(--aqua)) 140%); }
.gcard__media > picture { display: block; height: 100%; padding: 18px 18px 0; }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 10px 10px 0 0; box-shadow: 0 10px 30px -10px rgba(16, 44, 70, .5); transition: transform .35s ease; }
.gcard__media--photo > picture { padding: 0; }
.gcard__media--photo img { border-radius: 0; box-shadow: none; }
.gcard:hover .gcard__media img { transform: scale(1.03); }
.gcard__eyebrow { font-size: var(--t-label); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tone-ink, var(--daqua)); }
.gcard__title { font-size: 20px; font-weight: 800; line-height: 1.3; }
.gcard__text { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.gcard .more { margin-top: var(--s-2); }
.gempty { padding: var(--s-6) 0; }
.gcredit { margin-top: var(--s-5); font-size: 13px; color: var(--muted); }
.gcredit a { color: var(--muted); }
/* Guides: pictures and colour. Hub tones set --tone (the ground of pictures and accents) and --tone-ink (accent text,
   always dark enough on white). Never violet. */
[data-tone="blue"] { --tone-2: #39C6D4; --tone: #0A69C2; --tone-ink: #0A69C2; --tone-soft: #E3EEF9; }
[data-tone="sun"] { --tone-2: #D9661A; --tone: #F5B83D; --tone-ink: #9A5A05; --tone-soft: #FDF1DA; }
[data-tone="aqua"] { --tone-2: #0A69C2; --tone: #12A3B3; --tone-ink: #0E7C88; --tone-soft: #E2F6F8; }
[data-tone="green"] { --tone-2: #39C6D4; --tone: #12805C; --tone-ink: #12805C; --tone-soft: #E1F3EC; }
[data-tone="deep"] { --tone-2: #0A69C2; --tone: #102C46; --tone-ink: #102C46; --tone-soft: #E6ECF2; }
[data-tone="teal"] { --tone-2: #0A69C2; --tone: #0E7C88; --tone-ink: #0E7C88; --tone-soft: #E2F6F8; }
.ghero__inner { display: grid; gap: var(--s-6); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .ghero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-8); } }
.ghero .eyebrow { background: var(--tone-soft); color: var(--tone-ink); }
.ghero .eyebrow__dot { background: var(--tone); }
.ghero__visual { position: relative; padding: var(--s-5); border-radius: var(--r-lg); background: linear-gradient(150deg, var(--tone) 0%, var(--tone-2, var(--aqua)) 135%); box-shadow: var(--shadow-frame); }
.ghero__visual::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("/assets/photos/pool-water.webp") center / cover; opacity: .2; mix-blend-mode: luminosity; pointer-events: none; }
.ghero__visual > * { position: relative; }
.ghero__visual .gframe { box-shadow: 0 24px 50px -16px rgba(6, 20, 36, .55); }
.ghero__visual .frame__body img { width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #fff; }
.ghero__visual:has(> .gphoto) { padding: 0; overflow: hidden; }
.gphoto { display: block; }
.gphoto img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.ghero__visual > .gphoto img { border-radius: var(--r-lg); max-height: 440px; }
.gframe .frame__body { background: #fff; }
.gframe .frame__body img { display: block; width: 100%; height: auto; }
.gshot { margin: var(--s-6) 0; padding: var(--s-5); border-radius: var(--r-lg); background: linear-gradient(150deg, var(--tone, var(--blue)) 0%, var(--tone-2, var(--aqua)) 135%); }
.gshot .gframe { box-shadow: 0 18px 40px -16px rgba(6, 20, 36, .5); }
.gfaq__item h3 { color: var(--ink); }
.gfaq__item h3::before { content: "Q"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 6px; background: var(--tint); color: var(--blue); font-size: 13px; font-weight: 800; vertical-align: 2px; }
.ghub { padding-top: var(--s-5); border-top: 4px solid var(--tone); }
.ghub__head h2 { color: var(--ink); }
.ghub__head h2::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 12px; border-radius: 50%; background: var(--tone); vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .gcard:hover .gcard__media img { transform: none; } }


/* ---------------------------------------------------------------- price calculator (/tools/pool-service-price-calculator) */
/* A landing page: .pc-top (logo only), .pc-hero, .pc-grid (form + result), .pc-unlock (lead form), .pc-report (unlocked),
   .pc-method, .pc-faq, .pc-foot, .pc-mini (phone price bar). [data-pc][data-unlocked] swaps locked-only / unlocked-only. */
.pc-body { background: var(--foam); }
[data-pc]:not([data-unlocked]) [data-pc-unlocked-only], [data-pc][data-unlocked] [data-pc-locked-only] { display: none !important; }
.pc-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pc-top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.pc-top__link { font-size: var(--t-small); font-weight: 700; color: var(--blue); }
.pc-top__link:hover { text-decoration: underline; }
.pc-hero { padding: var(--s-6) 0 var(--s-7); background: linear-gradient(150deg, var(--deep) 0%, #0A4F94 60%, var(--blue) 100%); color: #fff; position: relative; overflow: hidden; }
.pc-hero::before { content: ""; position: absolute; inset: 0; background: url("/assets/photos/pool-water.webp") center / cover; opacity: .18; mix-blend-mode: luminosity; }
.pc-hero > .wrap { position: relative; }
.pc-hero h1 { color: #fff; font-size: clamp(32px, 2.6vw + 20px, 56px); max-width: 18ch; }
.pc-hero .lead { color: var(--on-dark); max-width: 56ch; margin-top: var(--s-3); }
.pc-hero .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.pc-grid { display: grid; gap: var(--s-5); padding: 0 0 var(--s-6); grid-template-columns: minmax(0, 1fr); margin-top: calc(-1 * var(--s-6)); position: relative; }
@media (min-width: 1024px) { .pc-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: start; } .pc-result { position: sticky; top: 84px; } }
.pc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: var(--s-5); }
@media (min-width: 768px) { .pc-card { padding: var(--s-6); } }
.pc-form { display: grid; gap: var(--s-5); }
.pc-q { display: grid; gap: var(--s-2); }
.pc-q + .pc-q { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.pc-q__label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: 17px; font-weight: 800; color: var(--ink); }
.pc-val { font-size: 22px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-hint { font-size: 14px; color: var(--muted); line-height: 1.5; }
.pc-hint a { color: var(--blue); text-decoration: underline; }
.pc-select, .pc-step input, .pc-money input { height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); }
.pc-select { width: 100%; padding: 0 var(--s-4); }
.pc-step { display: flex; align-items: center; gap: var(--s-2); }
.pc-step > button { flex: none; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--tint); color: var(--blue); font-size: 26px; font-weight: 800; transition: background .15s, transform .1s; }
.pc-step > button:hover { background: #D6E6F6; }
.pc-step > button:active { transform: scale(.96); }
.pc-step > input { width: 100%; max-width: 140px; text-align: center; }
.pc-money { display: flex; align-items: center; gap: 6px; }
.pc-money > span { font-size: 18px; font-weight: 800; color: var(--muted); }
.pc-money > input { width: 140px; padding: 0 var(--s-3); }
.pc-money--inline > input { width: 100px; text-align: center; }
.pc-step input::-webkit-outer-spin-button, .pc-step input::-webkit-inner-spin-button, .pc-money input::-webkit-outer-spin-button, .pc-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-range { width: 100%; height: 36px; accent-color: var(--blue); }
.pc-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pc-chip { min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; transition: border-color .15s, background .15s; }
.pc-chip b { color: var(--muted); font-weight: 700; }
.pc-chip:hover { border-color: var(--ink); }
.pc-chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.pc-chip[aria-pressed="true"] b { color: var(--aqua); }
.pc-result__card { background: linear-gradient(160deg, #fff 0%, #F2F8FD 100%); border-color: #CFE0F0; }
.pc-result__label { font-size: var(--t-label); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--daqua); }
.pc-result__price { margin-top: 4px; font-size: clamp(48px, 3vw + 34px, 72px); font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-result__price small { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.pc-result__note { margin-top: var(--s-4); color: var(--ink-2); line-height: 1.55; }
.pc-market { margin-top: var(--s-5); }
.pc-market__bar { position: relative; height: 14px; border-radius: 99px; background: var(--line); }
.pc-market__range { position: absolute; top: 0; bottom: 0; left: var(--range-l); right: calc(100% - var(--range-r)); border-radius: 99px; background: #BFE6EB; }
.pc-market__typ { position: absolute; top: 0; bottom: 0; left: var(--typ-l); right: calc(100% - var(--typ-r)); background: var(--daqua); border-radius: 99px; }
.pc-market__cost, .pc-market__you { position: absolute; top: -6px; width: 4px; height: 26px; border-radius: 4px; transform: translateX(-2px); }
.pc-market__cost { left: var(--cost); background: var(--bad); }
.pc-market__you { left: var(--you); background: var(--blue); box-shadow: 0 0 0 3px #fff; }
.pc-market__keys { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); font-size: 13px; color: var(--muted); }
.pc-market__keys i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pc-market__label { margin-top: var(--s-3); font-size: 14px; color: var(--muted); line-height: 1.5; }
.pc-verdict { margin-top: var(--s-3); padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.5; background: var(--tint); color: var(--ink); }
.pc-verdict[data-kind="above"] { background: #FDF1DA; color: #6B3F03; }
.pc-verdict[data-kind="below"] { background: #FDE8E6; color: #8A231A; }
.pc-verdict[data-kind="in"] { background: #E1F3EC; color: #0C5A40; }
.pc-verdict:empty { display: none; }
.pc-result__cta { width: 100%; margin-top: var(--s-5); justify-content: center; }
.pc-mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--deep); color: #fff; box-shadow: 0 -8px 24px rgba(16, 44, 70, .25); transition: transform .2s; }
.pc-mini b { font-size: 22px; color: #fff; }
.pc-mini small { color: var(--on-dark); }
.pc-mini .btn { flex: none; }
.pc-mini.is-hidden { transform: translateY(110%); }
@media (min-width: 1024px) { .pc-mini { display: none; } }
.pc-unlock { padding: var(--s-4) 0 var(--s-6); }
.pc-unlock__card { display: grid; gap: var(--s-6); background: linear-gradient(150deg, var(--blue) 0%, var(--aqua) 140%); color: #fff; border: 0; box-shadow: var(--shadow-frame); }
@media (min-width: 1024px) { .pc-unlock__card { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: start; } }
.pc-unlock__text h2 { color: #fff; font-size: clamp(26px, 1vw + 20px, 36px); }
.pc-unlock__text .muted { color: var(--on-dark); }
.pc-ticks { display: grid; gap: var(--s-2); margin: var(--s-4) 0; padding: 0; list-style: none; }
.pc-ticks li { position: relative; padding-left: 30px; color: #fff; }
.pc-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230A69C2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pc-lead { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-md); background: #fff; color: var(--ink); }
.pc-lead .btn { width: 100%; justify-content: center; }
.pc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pc-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.pc-privacy { font-size: 13px; color: var(--muted); }
.pc-privacy a { color: var(--blue); text-decoration: underline; }
.pc-report { display: grid; gap: var(--s-4); padding: var(--s-4) 0 var(--s-7); }
.pc-report > h2 { font-size: clamp(26px, 1vw + 20px, 36px); }
.pc-report h3 { font-size: 20px; margin-bottom: var(--s-4); }
.pc-tiers, .pc-levers { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .pc-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pc-levers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc-tier__name { font-size: var(--t-label); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pc-tier__price { margin-top: 6px; font-size: 40px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-tier__visit { color: var(--muted); font-weight: 600; }
.pc-tier__text { margin-top: var(--s-3); font-size: 15px; color: var(--ink-2); }
.pc-tier--best { border: 2px solid var(--blue); box-shadow: var(--shadow-frame); }
.pc-tier--best .pc-tier__name { color: var(--blue); }
.pc-split__bar { display: flex; height: 22px; border-radius: 99px; overflow: hidden; background: var(--line); }
.pc-split__bar i { flex: 0 0 0; transition: flex-basis .3s; }
.pc-split__bar i:nth-child(1), .pc-split__legend .k1 { background: #0A69C2; }
.pc-split__bar i:nth-child(2), .pc-split__legend .k2 { background: #5EA3E0; }
.pc-split__bar i:nth-child(3), .pc-split__legend .k3 { background: #102C46; }
.pc-split__bar i:nth-child(4), .pc-split__legend .k4 { background: #39C6D4; }
.pc-split__bar i:nth-child(5), .pc-split__legend .k5 { background: #F5B83D; }
.pc-split__bar i:nth-child(6), .pc-split__legend .k6 { background: #12805C; }
.pc-split__legend { display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .pc-split__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.pc-split__legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.pc-split__legend li b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-split__legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.pc-route__grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
@media (min-width: 768px) { .pc-route__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pc-route__grid > div { padding: var(--s-4); border-radius: var(--r-md); background: var(--foam); }
.pc-route__grid dt { font-size: 14px; color: var(--muted); }
.pc-route__grid dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-route__grid > div:nth-child(4) { background: #E1F3EC; }
.pc-route__grid > div:nth-child(4) dd { color: var(--ok); }
.pc-route__note { margin-top: var(--s-3); font-size: 14px; color: var(--muted); }
.pc-lever__num { font-size: 34px; font-weight: 800; color: var(--ok); font-variant-numeric: tabular-nums; }
.pc-lever p:last-child { margin-top: 4px; color: var(--ink-2); }
.pc-extras table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pc-extras th, .pc-extras td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.pc-extras th { background: var(--deep); color: #fff; }
.pc-extras .gtable { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--s-3); }
.pc-next { background: var(--deep); color: var(--on-dark); border: 0; }
.pc-next h3 { color: #fff; }
.pc-next .btn-row { margin: var(--s-5) 0 var(--s-3); }
.pc-next .pc-hint { color: var(--on-dark); }
.pc-next .pc-hint a { color: #fff; }
.pc-next .btn--secondary { background: #fff; }
.pc-method, .pc-faq { padding: var(--s-6) 0; }
.pc-method h2, .pc-faq h2 { font-size: clamp(24px, 1vw + 18px, 32px); margin-bottom: var(--s-4); }
.pc-method ul { display: grid; gap: var(--s-2); padding-left: 1.2em; list-style: disc; color: var(--ink-2); max-width: 75ch; }
.pc-method h3 { margin-top: var(--s-5); font-size: 18px; }
.pc-sources a { color: var(--blue); text-decoration: underline; }
.pc-foot { padding: var(--s-6) 0 calc(var(--s-8) + 40px); border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.pc-foot a { color: var(--ink-2); }
.pc-foot p + p { margin-top: var(--s-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .btn:hover, .btn:active, a.card:hover, .card--link:hover, .vid__play:hover { transform: none !important; }
  a.card:hover .card__media > img, .card--link:hover .card__media > img { transform: none !important; }
  .vid > video, .card__media > video { display: none; }
}
