/* QuickGC marketing site
   Built from docs/quickgc-landing-page-spec.md. Order: design tokens (spec §4,
   verbatim) → fonts → base and type (§5.1–5.2) → layout (§3) → components
   (§5.3) → header/footer → sections (§6) → motion.
   Rule: no hex values outside the two :root token blocks below. */

/* ==== Design tokens (spec §4, verbatim) ==== */
:root {
  /* Color: light (default) */
  --background: #f6f2ec;
  --surface: #fbf8f3;
  --surface-alt: #efe9e0;
  --border: #e4ddd1;
  --foreground: #241c1a;
  --muted-foreground: #6b5f58;
  --muted: #a89e94;
  --primary: #1E3A5F;
  --primary-container: #DCE3EC;
  --on-primary: #f6f2ec;
  --success: #4f6b3e;
  --warning: #b8792d;
  --danger: #9b3b3b;

  /* Type */
  /* Owner decision 2026-11-17: Newsreader replaces the spec's Fraunces, whose
     automatic "wonky" display letters (m, n, h, hooked f/j) read as broken. */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape */
  --radius-sm: 4px;    /* chips, tags */
  --radius-md: 8px;    /* buttons, inputs */
  --radius-lg: 12px;   /* cards, screenshots: never larger */
  --radius-full: 999px;

  /* Depth: warm ink-tinted, never black */
  --shadow-flat:   0 1px 0 rgba(36, 28, 26, 0.04);
  --shadow-rest:   0 4px 16px rgba(36, 28, 26, 0.06);
  --shadow-raised: 0 8px 24px rgba(36, 28, 26, 0.10);

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 56px; --space-10: 80px; --space-11: 96px;

  /* Layout */
  --container: 1200px;
  --header-h: 72px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17120f;
    --surface: #1f1915;
    --surface-alt: #29221d;
    --border: #332a24;
    --foreground: #f3ece0;
    --muted-foreground: #a89e94;
    --muted: #6b5f58;
    --primary: #A8C2DE;
    --primary-container: #1E2A3A;
    --on-primary: #17120f;
    --success: #7a9a65;
    --warning: #d09b5e;
    --danger: #c97878;

    /* Shadows read poorly on dark; lean on borders instead */
    --shadow-rest:   0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

html, body { background: var(--background); color: var(--foreground); }

/* Derived layout tokens (no colors here) */
:root {
  --gutter: 24px;
  --section-y: 64px;
  --hover-filter: brightness(0.92);
}
@media (max-width: 479.98px) { :root { --gutter: 20px; } }
@media (min-width: 768px) { :root { --section-y: 96px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }
@media (prefers-color-scheme: dark) { :root { --hover-filter: brightness(1.08); } }

/* ==== Fonts: self-hosted Google Fonts Latin subsets (SIL OFL, see assets/fonts/OFL.txt).
   Weight axes are trimmed to the weights used: Newsreader 400–500, Inter 400–600.
   Newsreader keeps its optical-size axis (6–72), applied automatically by font size. ==== */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/newsreader-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-latin-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
}

/* ==== Base ==== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; line-height: 1.53; } }

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
strong { font-weight: 600; }
p { text-wrap: pretty; }

a {
  color: var(--primary);
  text-decoration-line: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -200px; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 var(--space-4); border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* ==== Type scale (spec §5.2). Display/headline sizes scale with clamp() between ~375px and 1280px. ==== */
.display-lg, .headline-lg, .headline-md, .title-lg, .title-md, .wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}
.display-lg {
  font-size: clamp(2.375rem, 1.906rem + 1.99vw, 3.5rem);   /* 38 → 56 */
  line-height: 1.08;
  letter-spacing: -0.022em;                               /* tuned for Newsreader */
}
.headline-lg {
  font-size: clamp(2rem, 1.741rem + 1.1vw, 2.625rem);     /* 32 → 42 */
  line-height: 1.16;
  letter-spacing: -0.016em;
}
.headline-md {
  font-size: clamp(1.625rem, 1.418rem + 0.88vw, 2.125rem); /* 26 → 34 */
  line-height: 1.16;
  letter-spacing: -0.5px;
}
.title-lg { font-size: 1.25rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.1px; }
.title-md { font-size: 1rem; line-height: 1.375; font-weight: 500; letter-spacing: 0; }
.display-lg em, .headline-lg em, .headline-md em { font-style: italic; font-weight: 400; }

.body-xl { font-size: 1.125rem; line-height: 1.556; }
@media (min-width: 768px) { .body-xl { font-size: 1.25rem; line-height: 1.5; } }
.body-sm { font-size: 0.875rem; line-height: 1.43; }
.label-md {
  font-family: var(--font-body);
  font-size: 0.75rem; line-height: 1.333; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.muted { color: var(--muted-foreground); }
.prose { max-width: 65ch; }

/* ==== Layout (spec §3) ==== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(720px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--band { background: var(--surface-alt); }

/* Two-column split: text 5 cols, visual 7 cols at ≥1024px. Text comes first in the DOM. */
.split { display: grid; gap: var(--space-8); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-7); }
  .split__text { grid-column: 1 / span 5; grid-row: 1; padding-inline-end: var(--space-4); }
  .split__visual { grid-column: 6 / span 7; grid-row: 1; }
  .split--reverse .split__text { grid-column: 8 / span 5; padding-inline: var(--space-4) 0; }
  .split--reverse .split__visual { grid-column: 1 / span 7; }
}

.grid-cards { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==== Components (spec §5.3) ==== */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.icon--navy { color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: filter 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: var(--hover-filter); box-shadow: var(--shadow-rest); }
.btn-primary:active { box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--foreground); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-alt); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 479.98px) { .btn-row .btn { flex: 1 1 100%; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
@media (min-width: 768px) { .card { padding: 28px; } }

.section-header { display: grid; gap: var(--space-3); max-width: 720px; margin-bottom: var(--space-9); }
.section-header .eyebrow { color: var(--primary); }
.section-header .intro { margin-top: var(--space-1); color: var(--muted-foreground); }
.section-header--center { margin-inline: auto; text-align: center; justify-items: center; }
.split__text .section-header { margin-bottom: var(--space-6); }
.split__text .icon-list { margin-top: var(--space-6); }

.badge {
  display: inline-block;
  background: var(--primary-container); color: var(--primary);
  border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2);
}

.pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  border-radius: var(--radius-full); padding: 2px 10px;
  font-size: 0.875rem; line-height: 1.43; font-weight: 500;
}
.pill--done { color: var(--success); background: var(--surface-alt); }
.pill--active { color: var(--primary); background: var(--primary-container); }
.pill--upcoming { color: var(--muted-foreground); background: var(--surface-alt); }

/* Screenshot frame (for real screenshots) and placeholder frame (until they exist). */
.screen {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-raised);
  background: var(--surface);
}
.screen img { width: 100%; }
.screen-placeholder {
  display: grid; place-items: center;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 10);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: var(--muted-foreground);
  text-align: center;
}

/* HTML mockups of the app (dashboard, budget, draw approval, sample views).
   Sized in em off a container-relative font size, so each mock scales with its slot.
   Tokens only (light and dark follow the page). */
.mock {
  container-type: inline-size;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-raised);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  text-align: left;
}
.mock__inner { font-size: clamp(7px, 1.55cqi, 13px); line-height: 1.35; }
.mock__bar {
  display: flex; align-items: center; gap: 0.5em;
  padding: 0.7em 1em; background: var(--surface); border-bottom: 1px solid var(--border);
}
.mock__dots { display: flex; gap: 0.35em; }
.mock__dots i { width: 0.65em; height: 0.65em; border-radius: 50%; background: var(--border); }
.mock__project { margin-left: 0.6em; font-weight: 600; }
.mock__role { margin-left: auto; color: var(--muted-foreground); font-size: 0.9em; }
.mock__app { display: grid; grid-template-columns: 11em 1fr; min-height: 30em; }
.mock__nav { display: grid; align-content: start; gap: 0.2em; padding: 1em 0.6em; background: var(--surface); border-right: 1px solid var(--border); }
.mock__nav span { padding: 0.45em 0.7em; border-radius: var(--radius-md); color: var(--muted-foreground); }
.mock__nav .is-active { background: var(--primary-container); color: var(--primary); font-weight: 600; }
.mock__main { padding: 1.4em 1.6em; display: grid; align-content: start; gap: 1.1em; }
.mock__h { font-family: var(--font-display); font-size: 1.9em; line-height: 1.1; }
.mock__sub { color: var(--muted-foreground); font-size: 0.95em; margin-top: 0.2em; }
.mock__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9em; }
.mock__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1em; }
.mock__label { font-size: 0.8em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.mock__big { font-family: var(--font-display); font-size: 1.6em; margin-top: 0.15em; }
.mock__progress { height: 0.5em; border-radius: var(--radius-full); background: var(--surface-alt); margin-top: 0.7em; overflow: hidden; }
.mock__progress i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.mock__rings { display: flex; gap: 1.2em; margin-top: 0.6em; }
.mock__ring {
  --pct: 50;
  display: grid; place-items: center;
  width: 4.6em; height: 4.6em; border-radius: 50%;
  background: conic-gradient(var(--ring-color, var(--primary)) calc(var(--pct) * 1%), var(--surface-alt) 0);
  position: relative; font-weight: 600; font-size: 0.95em;
}
.mock__ring::before { content: ""; position: absolute; inset: 0.55em; border-radius: 50%; background: var(--surface); }
.mock__ring b { position: relative; }
.mock__ring-cap { display: block; text-align: center; margin-top: 0.35em; font-size: 0.8em; color: var(--muted-foreground); }
.mock__list { display: grid; gap: 0.45em; list-style: none; margin: 0; padding: 0; }
.mock__list li { display: flex; align-items: center; gap: 0.7em; padding: 0.6em 0.8em; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.mock__date { margin-left: auto; color: var(--muted-foreground); font-size: 0.9em; white-space: nowrap; }
.mock__who { font-size: 0.8em; padding: 0.15em 0.6em; border-radius: var(--radius-full); background: var(--surface-alt); color: var(--muted-foreground); white-space: nowrap; }
.mock__who--you { background: var(--primary-container); color: var(--primary); }
.mock__dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--primary); flex: none; }
.mock__dot--warn { background: var(--warning); }
.mock__dot--ok { background: var(--success); }

/* Budget table */
.mock__table { width: 100%; border-collapse: collapse; font-size: 1em; }
.mock__table th, .mock__table td { padding: 0.55em 0.8em; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mock__table th:first-child, .mock__table td:first-child { text-align: left; }
.mock__table thead th { font-size: 0.8em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 500; }
.mock__table .is-group td { background: var(--surface-alt); font-weight: 600; }
.mock__table .is-total td { font-weight: 700; border-bottom: 0; }
.mock__table .is-uncat td:first-child { color: var(--warning); }
.mock__table .is-over { color: var(--danger); }
.mock__table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.mock__tabs { display: flex; gap: 0.5em; }
.mock__tabs span { padding: 0.3em 0.8em; border-radius: var(--radius-full); border: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.9em; }
.mock__tabs .is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Draw approval */
.mock--draw .mock__inner { font-size: clamp(8px, 1.65cqi, 14px); }
.mock__draw { padding: 1.6em 1.8em; display: grid; gap: 1.1em; }
.mock__draw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.mock__badge { font-size: 0.85em; font-weight: 600; padding: 0.3em 0.8em; border-radius: var(--radius-full); color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); white-space: nowrap; }
.mock--draw .mock__table td:nth-child(2), .mock--draw .mock__table th:nth-child(2) { text-align: left; color: var(--muted-foreground); }
.mock__actions { display: flex; justify-content: flex-end; gap: 0.7em; }
.mock__btn { padding: 0.6em 1.4em; border-radius: var(--radius-md); border: 1px solid var(--border); font-weight: 600; background: var(--surface); }
.mock__btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Phone sample views */
.mock--phone { border-radius: calc(var(--radius-lg) * 1.5); aspect-ratio: 9 / 16; border-width: 4px; border-color: var(--foreground); }
.mock--phone .mock__inner { font-size: clamp(6px, 5.4cqi, 12px); padding: 1.2em 1em 0; display: flex; flex-direction: column; gap: 0.7em; height: 100%; }
.mock__phone-tabs { margin: auto -1em 0; display: flex; justify-content: space-around; padding: 0.7em 0.3em 0.9em; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted-foreground); font-size: 0.85em; }
.mock__phone-tabs .is-active { color: var(--primary); font-weight: 600; }
.mock--phone .mock__h { font-size: 1.5em; }
.mock--phone .mock__card { padding: 0.7em; }
.mock--phone .mock__big { font-size: 1.3em; }
.mock--phone .mock__list li { padding: 0.5em 0.6em; gap: 0.5em; }

/* Lists with a leading icon (feature bullets, check lists) */
.icon-list { display: grid; gap: var(--space-3); list-style: none; padding: 0; }
.icon-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.icon-list .icon { margin-top: 1px; color: var(--primary); }
.icon-list--checks { gap: var(--space-2); }
.icon-list--checks .icon { color: var(--success); margin-top: 1px; }

.icon-tile {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--primary-container); color: var(--primary);
}

/* ==== Header (spec §6.1) ==== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--background);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  height: var(--header-h);
}
.wordmark {
  font-weight: 500; font-size: 1.375rem; line-height: 1; letter-spacing: -0.3px;
  color: var(--foreground); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; gap: 0.5rem;
}
.wordmark:hover { color: var(--foreground); }
.wordmark__mark { width: 32px; height: 32px; border-radius: 7px; flex: none; }

.nav-main { display: none; }
.nav-main ul { display: flex; align-items: center; gap: var(--space-1); }
.nav-main a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  font-size: 0.9375rem; font-weight: 500; color: var(--foreground); text-decoration: none;
  border-radius: var(--radius-md);
}
.nav-main a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.btn--header { min-height: 44px; }
@media (max-width: 479.98px) { .btn--header { padding: 0 var(--space-4); font-size: 0.9375rem; } }

.menu-toggle {
  display: none;
  width: 48px; height: 48px; margin-inline-end: -12px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: var(--radius-md);
  color: var(--foreground); cursor: pointer;
}
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Under 1024px: the menu button replaces the nav when JS runs. Without JS the
   header keeps the waitlist button, and the page is navigated by scrolling. */
@media (max-width: 1023.98px) {
  .js .menu-toggle { display: inline-flex; }
  .js .header-actions .btn--header { display: none; }
}
@media (min-width: 1024px) {
  .nav-main { display: block; margin-inline-start: auto; }
}

.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-rest);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { padding-block: var(--space-2); }
.mobile-nav li + li { border-top: 1px solid var(--border); }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  color: var(--foreground); font-weight: 500; text-decoration: none;
}
.mobile-nav a:not(.btn):hover { color: var(--primary); }
.mobile-nav .btn { width: 100%; margin-block: var(--space-2) var(--space-6); }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* ==== Hero (§6.2) ==== */
.hero { padding-block: var(--space-10) var(--space-11); }
@media (max-width: 767.98px) { .hero { padding-block: var(--space-9) var(--space-10); } }
.hero .eyebrow { color: var(--primary); margin-bottom: var(--space-4); }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { color: var(--muted-foreground); margin-bottom: var(--space-7); max-width: 34em; }
.hero .fineprint { margin-top: var(--space-4); }
.hero__visual .screen-placeholder { box-shadow: var(--shadow-raised); }
@media (min-width: 1280px) {
  .hero__visual { margin-inline-end: -48px; }
}

/* ==== The problem (§6.3) ==== */
.problem .section-header { margin-bottom: var(--space-6); }
.problem .prose { margin-inline: auto; }
.shift {
  display: grid; gap: var(--space-6);
  margin: var(--space-9) auto 0; padding: 0; list-style: none;
  max-width: 960px;
}
@media (min-width: 768px) { .shift { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); } }
.shift li { display: grid; gap: var(--space-2); align-content: start; }
.shift__before {
  display: flex; align-items: center; gap: var(--space-2);
  color: var(--muted-foreground);
}
.shift__before .struck {
  text-decoration-line: line-through;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
}
.shift__after { display: flex; gap: var(--space-2); align-items: flex-start; font-weight: 500; }
.shift__after .icon { color: var(--primary); margin-top: 1px; }

/* ==== Personas (§6.4) ==== */
.persona { display: flex; flex-direction: column; gap: var(--space-3); }
.persona .icon-tile { margin-bottom: var(--space-2); }
.persona .body-sm { color: var(--muted-foreground); }
.persona .icon-list { margin-top: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.personas__note { margin-top: var(--space-7); text-align: center; color: var(--muted-foreground); }

/* ==== Schedule mock (§6.5) ==== */
.schedule-mock { padding: var(--space-6); box-shadow: var(--shadow-raised); }
@media (min-width: 768px) { .schedule-mock { padding: var(--space-7); } }
.schedule-mock ol { list-style: none; padding: 0; display: grid; }
.chapter { display: grid; gap: var(--space-3); padding-block: var(--space-5); }
.chapter:first-child { padding-top: 0; }
.chapter:last-child { padding-bottom: 0; }
.chapter + .chapter { border-top: 1px solid var(--border); }
.chapter__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.progress {
  height: 6px; border-radius: var(--radius-full);
  background: var(--surface-alt); overflow: hidden;
}
.progress span { display: block; height: 100%; background: var(--primary); border-radius: var(--radius-full); }
.progress--100 span { width: 100%; }
.progress--60 span { width: 60%; }
.progress--0 span { width: 0; }

/* ==== Homeowner tools (§6.6) ==== */
.tool { display: grid; gap: var(--space-3); align-content: start; }
.tool .icon { color: var(--primary); }
.tool .body-sm { color: var(--muted-foreground); }

/* ==== Budget (§6.7) ==== */
.budget-table { margin-top: var(--space-7); padding: var(--space-5); overflow-x: auto; }
.budget-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.budget-table caption { caption-side: bottom; text-align: start; padding-top: var(--space-3); color: var(--muted-foreground); }
.budget-table th, .budget-table td { padding: var(--space-2) var(--space-1); text-align: end; white-space: nowrap; }
.budget-table th:first-child, .budget-table td:first-child { text-align: start; padding-inline-start: 0; }
.budget-table th:last-child, .budget-table td:last-child { padding-inline-end: 0; }
.budget-table thead th { font-weight: 500; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
.budget-table tbody th { font-weight: 500; }
.budget-table tbody tr + tr > * { border-top: 1px solid var(--border); }
@media (max-width: 379.98px) {
  .budget-table { padding: var(--space-4) var(--space-3); }
  .budget-table table { font-size: 0.75rem; }
  .budget-table th, .budget-table td { padding-inline: 3px; }
}

/* ==== Approvals (§6.8) ==== */
.steps { position: relative; display: grid; gap: var(--space-5); list-style: none; padding: 0; counter-reset: step; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .steps::before {
    content: ""; position: absolute; z-index: 0;
    top: calc(28px + 16px); left: 8%; right: 8%;
    height: 1px; background: var(--border);
  }
}
.step { position: relative; z-index: 1; display: grid; gap: var(--space-3); align-content: start; justify-items: start; }
.step__num {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--primary); color: var(--on-primary);
  font-weight: 600; font-size: 0.9375rem; line-height: 1;
}
.step .body-sm { color: var(--muted-foreground); }
.step .badge, .step .pill { margin-top: var(--space-1); }
.approvals__visual { max-width: 880px; margin: var(--space-9) auto 0; }

/* ==== Builders (§6.9) ==== */
.builders .btn { margin-top: var(--space-7); }
.feature-list { display: grid; list-style: none; padding: 0; column-gap: var(--space-7); }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-list li {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); row-gap: var(--space-1);
  align-content: start;
  padding-block: var(--space-5);
  border-top: 1px solid var(--border);
}
.feature-list .icon { grid-row: span 2; color: var(--primary); }
.feature-list .body-sm { color: var(--muted-foreground); }

/* ==== Trust (§6.10) ==== */
.trust-list { display: grid; gap: var(--space-4); list-style: none; padding: 0; }
.trust-list li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-4); row-gap: var(--space-1); align-content: start; }
.trust-list .icon-tile { grid-row: span 2; }
.trust-list .body-sm { color: var(--muted-foreground); }

/* ==== Navy feature panel (§6.11) ==== */
.panel-navy {
  background: var(--primary); color: var(--on-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: grid; gap: var(--space-8); align-items: center;
}
@media (min-width: 768px) { .panel-navy { padding: var(--space-9); } }
@media (min-width: 1024px) { .panel-navy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-9); } }
.panel-navy .eyebrow { color: var(--primary-container); margin-bottom: var(--space-3); }
.panel-navy h2 { margin-bottom: var(--space-4); }
.panel-navy p { max-width: 52ch; }
.panel-navy .btn { margin-top: var(--space-7); }
.btn-inverse { background: var(--on-primary); color: var(--primary); }
.btn-inverse:hover { filter: var(--hover-filter); box-shadow: var(--shadow-rest); }
/* Light mode: the navy focus ring would vanish on navy, so use cream inside the panel. */
.panel-navy :focus-visible { outline-color: var(--on-primary); }
.sample-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); max-width: 420px; }
.sample-views .screen-placeholder { --ratio: 9 / 16; }
.sample-views figcaption { margin-top: var(--space-2); text-align: center; }

@media (prefers-color-scheme: dark) {
  .panel-navy { background: var(--primary-container); color: var(--foreground); }
  .panel-navy .eyebrow { color: var(--primary); }
  .panel-navy :focus-visible { outline-color: var(--primary); }
  .btn-inverse { background: var(--primary); color: var(--on-primary); }
}

/* ==== Platforms (§6.12) ==== */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6) var(--space-9); list-style: none; padding: 0; }
.platforms li { display: grid; justify-items: center; gap: var(--space-3); font-weight: 500; min-width: 140px; }
.platforms .icon-tile { width: 56px; height: 56px; border-radius: var(--radius-lg); }
.platforms .icon { width: 28px; height: 28px; }
.platforms-note { margin-top: var(--space-7); text-align: center; color: var(--muted-foreground); }

/* ==== FAQ (§6.13): native details/summary ==== */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 56px; padding-block: var(--space-4);
  font-size: 1.125rem; line-height: 1.4; font-weight: 500;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary .icon { color: var(--primary); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding-bottom: var(--space-5); color: var(--muted-foreground); max-width: 65ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary .icon { transition: transform 200ms ease; }
}

/* ==== Waitlist CTA (§6.14) ==== */
.cta-card {
  max-width: 640px; margin-inline: auto;
  text-align: center; box-shadow: var(--shadow-rest);
  display: grid; justify-items: center; gap: var(--space-4);
}
@media (min-width: 768px) { .cta-card { padding: var(--space-9) var(--space-8); } }
.cta-card .eyebrow { color: var(--primary); }
.cta-card p { color: var(--muted-foreground); max-width: 46ch; }
.cta-card .btn { min-width: min(240px, 100%); margin-top: var(--space-3); }
.role-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }

/* ==== Footer (§6.15) ==== */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding-block: var(--space-9) var(--space-7);
}
.footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .wordmark { font-size: 1.25rem; }
.footer-brand p { margin-top: var(--space-2); color: var(--muted-foreground); max-width: 32ch; }
.footer-col h2 { color: var(--muted-foreground); margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  color: var(--foreground); text-decoration: none;
}
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom {
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
}

/* ==== Simple pages: 404, privacy, terms (§6.16, §12.3) ==== */
.simple-page { padding-block: var(--space-11); min-height: calc(70vh - var(--header-h)); }
.simple-page .section-header { margin-bottom: var(--space-7); }
.simple-page .btn { margin-top: var(--space-2); }

/* ==== Motion: reveal on scroll (§8.1.4). Hidden state only when JS runs and motion is OK. ==== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(12px);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- Cookie notice (built by assets/js/main.js: initCookieNotice). Says the site does not track.
   scripts/check-cookie-consent.sh flags any change that would need a real opt-in. ---- */
.cookie-notice {
  position: fixed;
  z-index: 30; /* above page content, below the header, menus and skip link */
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 34rem;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.cookie-notice__text { flex: 1 1 16rem; margin: 0; }
.cookie-notice__text strong { font-weight: 600; }
.cookie-notice__text a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.cookie-notice__ok { flex: 0 0 auto; }
@media (max-width: 520px) {
  .cookie-notice__ok { flex: 1 1 100%; }
}
@media print {
  .cookie-notice { display: none; }
}
