/*
 * Fieldbook marketing site: premium direction (mockup v1, 17 Oct 2026).
 * Colours come only from --fb-* tokens (design system v1.3): no literal colours or colour functions.
 * Lifted unchanged from HSOS-Branding's mockup v1.2 (https://claude.ai/artifact/FR49o2Wtj9jgKqSx2m7gsk),
 * apart from this comment; the site's own additions are in site-pages.css. Loaded only with Site:FullSite off.
 * Load after fonts.css and fieldbook-tokens.css. CSP-safe: no inline styles needed anywhere.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--fb-appbar-height) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fb-bg);
  color: var(--fb-text);
  font-family: var(--fb-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--fb-primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fb-focus); outline-offset: 3px; border-radius: var(--fb-radius-xs); }
h1, h2, h3, h4 { font-family: var(--fb-font-display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--fb-content-max); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: var(--fb-gutter); } }

.eyebrow {
  font-family: var(--fb-font-mono); font-size: var(--fb-type-overline-size); font-weight: 500;
  letter-spacing: var(--fb-type-overline-letter-spacing); text-transform: uppercase;
  color: var(--fb-accent-text); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--fb-tertiary); border-radius: 2px; }

.h-display {
  font-size: clamp(2.75rem, 1.4rem + 4.2vw, 4.875rem); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.03em;
}
.h-card { font-size: 1.375rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.012em; }
.lede { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.55; color: var(--fb-text-muted); max-width: 36em; }
.muted { color: var(--fb-text-muted); }
.small { font-size: 0.875rem; line-height: 1.5; }

/* The straw underline that marks the brand line's last beat. */
.mark-straw {
  font-style: normal; color: var(--fb-primary);
  background: linear-gradient(transparent 68%, var(--fb-site-glow-straw) 68%, var(--fb-site-glow-straw) 92%, transparent 92%);
  padding-inline: 0.04em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--fb-radius-pill);
  font: 700 1rem/1 var(--fb-font-body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--fb-duration-fast) var(--fb-ease-standard), box-shadow var(--fb-duration-base) var(--fb-ease-standard), background var(--fb-duration-fast) var(--fb-ease-standard);
}
.btn-primary { background: var(--fb-primary); color: var(--fb-on-primary); box-shadow: var(--fb-shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--fb-shadow-lg); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--fb-shadow-sm); }
.btn-ghost { background: transparent; color: var(--fb-primary); border-color: var(--fb-line); }
.btn-ghost:hover { border-color: var(--fb-primary); background: var(--fb-hover); }
.btn-straw { background: var(--fb-site-spotlight-accent); color: var(--fb-brand-midnight); box-shadow: var(--fb-shadow-md); }
.btn-straw:hover { transform: translateY(-2px); box-shadow: var(--fb-shadow-lg); }
.btn .arrow { transition: transform var(--fb-duration-base) var(--fb-ease-spring); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--fb-site-appbar-translucent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fb-duration-base) var(--fb-ease-standard), box-shadow var(--fb-duration-base) var(--fb-ease-standard);
}
.site-header.is-scrolled { border-bottom-color: var(--fb-line-soft); box-shadow: var(--fb-shadow-xs); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--fb-appbar-height); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none !important; } :root:not([data-theme="light"]) .logo-dark { display: block !important; } }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--fb-text); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.nav a:not(.btn):hover { color: var(--fb-primary); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Sections ---------- */
.band { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.band-sunken { background: var(--fb-bg-sunken); }
.band-surface { background: var(--fb-surface); border-block: 1px solid var(--fb-line-soft); }
.band-spotlight { background: var(--fb-site-spotlight); color: var(--fb-site-on-spotlight); overflow: hidden; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px); isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); pointer-events: none;
}
.hero::before { width: 760px; height: 760px; right: -180px; top: -220px; background: radial-gradient(closest-side, var(--fb-site-glow-indigo), transparent); }
.hero::after { width: 620px; height: 620px; left: -220px; bottom: -300px; background: radial-gradient(closest-side, var(--fb-site-glow-straw), transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 6px 0 0; list-style: none; color: var(--fb-text-muted); font-size: 0.9375rem; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof svg { width: 18px; height: 18px; color: var(--fb-success); flex: none; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Hero stage: overlapping product vignettes */
.stage { position: relative; min-height: 560px; }
.stage > * { position: absolute; }
.stage .v-window { left: 0; top: 30px; width: 88%; }
.stage .v-phone { right: 0; top: 110px; width: 46%; max-width: 270px; }
.stage .v-alert { left: 0; bottom: 6px; width: 54%; max-width: 300px; }
.stage .v-badge { right: 3%; top: 8px; width: 92px; }
.illustration-note { position: absolute; left: 0; bottom: -36px; font-size: 0.8125rem; color: var(--fb-text-muted); }
@media (max-width: 960px) { .stage { min-height: 520px; max-width: 620px; margin-inline: auto; width: 100%; } }
@media (max-width: 560px) {
  .stage { min-height: 0; display: grid; gap: 16px; }
  .stage > * { position: static; width: 100% !important; max-width: none !important; }
  .stage .v-window, .stage .v-badge { display: none; }
  .stage .v-phone { max-width: 300px !important; justify-self: center; }
  .illustration-note { position: static; }
}

/* Floating loop for the hero cards (paused under reduced motion via the token durations) */
@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.is-ready .stage .v-phone { animation: float-a 7s var(--fb-ease-standard) 2s infinite; }
.is-ready .stage .v-badge { animation: float-b 6s var(--fb-ease-standard) 2.4s infinite; }
@media (prefers-reduced-motion: reduce) { .stage .v-phone, .stage .v-badge { animation: none !important; } }

/* ---------- Product vignettes (illustrations built from tokens) ---------- */
.v-window {
  background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow-xl); overflow: hidden;
}
.v-window .bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--fb-line-soft); background: var(--fb-bg); }
.v-window .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--fb-line); }
.v-window .bar b { margin-left: 10px; font: 600 0.8125rem/1 var(--fb-font-display); color: var(--fb-text-muted); }
.v-window .body { padding: 18px; }

.v-phone {
  background: var(--fb-site-device); border-radius: 38px; padding: 10px; box-shadow: var(--fb-shadow-xl);
}
.v-phone .screen { background: var(--fb-bg); border-radius: 30px; overflow: hidden; padding: 18px 14px 20px; display: grid; gap: 10px; }
.v-phone .notch { width: 84px; height: 20px; margin: -8px auto 2px; border-radius: 0 0 14px 14px; background: var(--fb-site-device); }

.v-card { background: var(--fb-surface); border: 1px solid var(--fb-line-soft); border-radius: var(--fb-radius-md); padding: 12px; box-shadow: var(--fb-shadow-xs); }
.v-card.is-current { border-color: var(--fb-primary); box-shadow: var(--fb-shadow-md); }
.v-row { display: flex; align-items: center; gap: 10px; }
.v-title { font: 650 0.9375rem/1.25 var(--fb-font-display); }
.v-meta { font-size: 0.75rem; color: var(--fb-text-muted); line-height: 1.35; }
.v-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--fb-radius-pill); font-size: 0.75rem; font-weight: 700; background: var(--fb-selected); color: var(--fb-primary); }
.v-pill.done { background: var(--fb-success); color: var(--fb-on-success); }
.v-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: var(--fb-radius-pill); font-size: 0.8125rem; font-weight: 700; background: var(--fb-primary); color: var(--fb-on-primary); }
.v-btn.ghost { background: transparent; color: var(--fb-primary); box-shadow: inset 0 0 0 1.5px var(--fb-line); }
.v-btn.help { background: var(--fb-site-highlight); color: var(--fb-site-on-highlight); box-shadow: inset 0 0 0 1.5px var(--fb-tertiary); }
.v-progress { height: 6px; border-radius: 3px; background: var(--fb-line-soft); overflow: hidden; }
.v-progress > i { display: block; height: 100%; border-radius: 3px; background: var(--fb-primary); }
.v-progress.p25 > i { width: 25%; } .v-progress.p40 > i { width: 40%; } .v-progress.p60 > i { width: 60%; } .v-progress.p70 > i { width: 70%; } .v-progress.p85 > i { width: 85%; }
.v-progress.c2 > i { background: var(--fb-avatar-2); } .v-progress.c4 > i { background: var(--fb-avatar-4); } .v-progress.c7 > i { background: var(--fb-avatar-7); }
.v-greeting { display: flex; align-items: center; gap: 10px; }
.v-greeting .v-title { font-size: 1.125rem; }
.v-label { font-family: var(--fb-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fb-text-muted); }
.v-steps { display: flex; gap: 5px; }
.v-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--fb-line-soft); }
.v-steps i.on { background: var(--fb-primary); }
.v-steps i.now { background: var(--fb-tertiary); }
.v-together { display: flex; align-items: center; }
.v-together .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--fb-surface); }
.v-together .av:first-child { margin-left: 0; }

/* Avatars: animal silhouette on a token-coloured disc */
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--fb-avatar-text); flex: none; }
.av svg { width: 24px; height: 24px; }
.av.lg { width: 44px; height: 44px; } .av.lg svg { width: 32px; height: 32px; }
.av.sm { width: 24px; height: 24px; } .av.sm svg { width: 18px; height: 18px; }
.av-1 { background: var(--fb-avatar-1); } .av-2 { background: var(--fb-avatar-2); } .av-3 { background: var(--fb-avatar-3); } .av-4 { background: var(--fb-avatar-4); }
.av-5 { background: var(--fb-avatar-5); } .av-6 { background: var(--fb-avatar-6); } .av-7 { background: var(--fb-avatar-7); } .av-8 { background: var(--fb-avatar-8); }

/* Help alert card (parent side) */
.v-alert {
  background: var(--fb-surface-raised); border: 1px solid var(--fb-line); border-left: 5px solid var(--fb-tertiary);
  border-radius: var(--fb-radius-lg); padding: 14px 16px; box-shadow: var(--fb-shadow-xl); display: grid; gap: 10px;
}
.v-alert .v-row { align-items: flex-start; }
.v-alert .pulse { position: relative; }
.v-alert .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--fb-tertiary); opacity: 0;
  animation: ring 2.4s var(--fb-ease-standard) infinite;
}
@keyframes ring { 0% { transform: scale(0.8); opacity: 0.9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .v-alert .pulse::after { animation: none; opacity: 0; } }

/* Week grid (Plan the week) */
.v-week { display: grid; grid-template-columns: 54px repeat(5, minmax(0, 1fr)); gap: 6px; font-size: 0.75rem; }
.v-week .h { font-family: var(--fb-font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--fb-text-muted); text-align: center; padding-bottom: 2px; }
.v-week .who { display: flex; align-items: center; }
.v-week .blk { border-radius: var(--fb-radius-sm); padding: 6px 7px; font-weight: 700; line-height: 1.2; min-height: 34px; color: var(--fb-avatar-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-week .b1 { background: var(--fb-avatar-7); } .v-week .b2 { background: var(--fb-avatar-2); } .v-week .b3 { background: var(--fb-avatar-4); }
.v-week .shared { grid-column: span 5; background: var(--fb-secondary); color: var(--fb-on-secondary); display: flex; align-items: center; gap: 8px; }
.v-week .off { background: var(--fb-bg-sunken); color: var(--fb-text-muted); font-weight: 600; }

/* ---------- Promises ---------- */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise {
  position: relative; background: var(--fb-surface); border: 1px solid var(--fb-line-soft); border-radius: var(--fb-radius-xl);
  padding: 30px 28px 32px; display: grid; gap: 14px; align-content: start; box-shadow: var(--fb-shadow-sm);
  transition: transform var(--fb-duration-base) var(--fb-ease-standard), box-shadow var(--fb-duration-base) var(--fb-ease-standard);
}
.promise:hover { transform: translateY(-4px); box-shadow: var(--fb-shadow-lg); }
.promise .step { font-family: var(--fb-font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fb-accent-text); }
.icon-tile { width: 52px; height: 52px; border-radius: var(--fb-radius-md); display: grid; place-items: center; background: var(--fb-selected); color: var(--fb-primary); }
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.gold { background: var(--fb-site-highlight); color: var(--fb-accent-text); }
.promise p { color: var(--fb-text-muted); }
.promise .callout { margin-top: 4px; padding: 12px 14px; border-radius: var(--fb-radius-md); background: var(--fb-site-highlight); color: var(--fb-site-on-highlight); font-size: 0.9375rem; line-height: 1.45; }
@media (max-width: 900px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split feature (copy + vignette) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.rev .split-copy { order: 2; }
.split-copy { display: grid; gap: 22px; align-content: start; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } .split.rev .split-copy { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks li { position: relative; }
.ticks li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px; background: var(--fb-success); }
.ticks li::after { content: ""; position: absolute; left: 9.5px; top: 6px; width: 7px; height: 12px; border: solid var(--fb-on-success); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.band-spotlight .ticks li::before { background: var(--fb-site-spotlight-accent); }
.band-spotlight .ticks li::after { border-color: var(--fb-brand-midnight); }
.pullquote { font: 650 1.3125rem/1.35 var(--fb-font-display); letter-spacing: -0.01em; color: var(--fb-primary); border-left: 4px solid var(--fb-tertiary); padding-left: 18px; }

/* Help story: four beats, staged in on reveal */
.help-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; position: relative; }
.beat { display: grid; gap: 12px; align-content: start; }
.beat .v-label { display: flex; align-items: center; gap: 8px; }
.beat .v-label b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fb-primary); color: var(--fb-on-primary); font-family: var(--fb-font-body); font-size: 0.75rem; letter-spacing: 0; }
.beat .v-card { display: grid; gap: 10px; }
.beat.child .v-card { background: var(--fb-bg); }
.status { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.875rem; color: var(--fb-success); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nudge { background: var(--fb-selected); border-radius: var(--fb-radius-md) var(--fb-radius-md) var(--fb-radius-md) 4px; padding: 10px 12px; font-size: 0.875rem; font-weight: 600; color: var(--fb-text); }
@media (max-width: 560px) { .help-story { grid-template-columns: minmax(0, 1fr); } }

/* Annual summary sheet */
.v-sheet { background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius-lg); box-shadow: var(--fb-shadow-xl); padding: 26px; display: grid; gap: 16px; position: relative; }
.v-sheet::before, .v-sheet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--fb-surface); border: 1px solid var(--fb-line); z-index: -1; }
.v-sheet::before { transform: translate(14px, 14px) rotate(1.5deg); }
.v-sheet::after { transform: translate(26px, 26px) rotate(3deg); opacity: 0.6; }
.sheet-wrap { position: relative; isolation: isolate; padding: 0 30px 30px 0; }
.v-part { border: 1px solid var(--fb-line-soft); border-radius: var(--fb-radius-md); padding: 14px; display: grid; gap: 8px; }
.v-part .v-row { justify-content: space-between; }
.v-lines { display: grid; gap: 6px; }
.v-lines i { height: 7px; border-radius: 4px; background: var(--fb-line-soft); }
.v-lines i:nth-child(2) { width: 88%; } .v-lines i:nth-child(3) { width: 64%; }
.v-actions { display: flex; gap: 6px; }
.v-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v-thumbs i { aspect-ratio: 4 / 3; border-radius: var(--fb-radius-sm); background: linear-gradient(135deg, var(--fb-site-glow-indigo), var(--fb-site-glow-straw)); border: 1px solid var(--fb-line-soft); }
.chip-date { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--fb-radius-md); background: var(--fb-site-highlight); color: var(--fb-site-on-highlight); font-size: 0.875rem; font-weight: 700; }

/* ---------- Families grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--fb-surface); border: 1px solid var(--fb-line-soft); border-radius: var(--fb-radius-lg); padding: 26px 22px; display: grid; gap: 12px; align-content: start; }
.tile p { color: var(--fb-text-muted); font-size: 0.9875rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Exploded diagram ---------- */
.diagram-stage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.diagram-stage figure { margin: 0; }
.diagram-stage svg { width: 100%; height: auto; display: block; }
.legend { display: grid; gap: 14px; counter-reset: part; list-style: none; padding: 0; margin: 0; }
.legend li { background: var(--fb-surface); border: 1px solid var(--fb-line-soft); border-radius: var(--fb-radius-lg); padding: 18px 20px; display: grid; gap: 4px; }
.legend li.is-focal { border-color: var(--fb-tertiary); box-shadow: var(--fb-shadow-md); }
.legend b { font-family: var(--fb-font-display); font-size: 1.125rem; }
.legend span { color: var(--fb-text-muted); font-size: 0.9375rem; }
@media (max-width: 920px) { .diagram-stage { grid-template-columns: minmax(0, 1fr); } }

/* Exploded reveal: parts settle from further apart (transform on the part groups only) */
.js .diagram-stage [data-part] { transition: transform var(--fb-duration-slower) var(--fb-ease-enter), opacity var(--fb-duration-slower) var(--fb-ease-enter); }
.js .diagram-stage:not(.is-in) [data-part] { opacity: 0; }
.js .diagram-stage:not(.is-in) [data-part="cover"] { transform: translateY(-60px); }
.js .diagram-stage:not(.is-in) [data-part="week"] { transform: translateY(-30px); }
.js .diagram-stage:not(.is-in) [data-part="record"] { transform: translateY(30px); }
.diagram-stage [data-part="week"] { transition-delay: calc(var(--fb-stagger) * 2); }
.diagram-stage [data-part="day"] { transition-delay: calc(var(--fb-stagger) * 4); }
.diagram-stage [data-part="record"] { transition-delay: calc(var(--fb-stagger) * 6); }

/* ---------- Founding families ---------- */
.founding { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.big-number { font: 800 clamp(7rem, 4rem + 12vw, 14rem)/0.82 var(--fb-font-display); letter-spacing: -0.06em; color: var(--fb-site-spotlight-accent); display: grid; justify-items: start; }
.big-number small { font: 500 0.8125rem/1.4 var(--fb-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fb-site-spotlight-muted); margin-top: 18px; }
.founding-copy { display: grid; gap: 22px; justify-items: start; }
.founding-copy .eyebrow { color: var(--fb-site-spotlight-accent); }
.founding-copy .eyebrow::before { background: var(--fb-site-spotlight-accent); }
.founding-copy p { color: var(--fb-site-spotlight-muted); max-width: 34em; }
.band-spotlight .rosettes { position: absolute; right: -40px; bottom: -40px; display: flex; gap: 10px; opacity: 0.18; transform: rotate(-12deg); pointer-events: none; }
.band-spotlight .rosettes img { width: 140px; height: 140px; }
@media (max-width: 800px) { .founding { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Form ---------- */
.join { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-card { background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius-xl); padding: clamp(22px, 4vw, 40px); box-shadow: var(--fb-shadow-lg); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: 0.9375rem; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.field .hint { font-size: 0.8125rem; color: var(--fb-text-muted); }
.input, .select {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--fb-radius-md); border: 1.5px solid var(--fb-line-input);
  background: var(--fb-surface); color: var(--fb-text); font: 400 1rem var(--fb-font-body);
  transition: border-color var(--fb-duration-fast) var(--fb-ease-standard), box-shadow var(--fb-duration-fast) var(--fb-ease-standard);
}
.input:focus, .select:focus { outline: none; border-color: var(--fb-primary); box-shadow: 0 0 0 4px var(--fb-selected); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: var(--fb-radius-pill); border: 1.5px solid var(--fb-line-input); font-weight: 600; font-size: 0.9375rem; transition: all var(--fb-duration-fast) var(--fb-ease-standard); }
.chip input:checked + span { background: var(--fb-primary); border-color: var(--fb-primary); color: var(--fb-on-primary); }
.chip input:focus-visible + span { outline: 3px solid var(--fb-focus); outline-offset: 2px; }
.form-foot { font-size: 0.8125rem; color: var(--fb-text-muted); }
.success { display: grid; gap: 8px; padding: 20px; border-radius: var(--fb-radius-lg); background: var(--fb-site-highlight); color: var(--fb-site-on-highlight); }
@media (max-width: 920px) { .join { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq details { border-bottom: 1px solid var(--fb-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 650 1.0625rem/1.35 var(--fb-font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--fb-selected); color: var(--fb-primary); font: 500 1.25rem/1 var(--fb-font-body); transition: transform var(--fb-duration-base) var(--fb-ease-spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--fb-text-muted); }
@media (max-width: 820px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--fb-bg-sunken); border-top: 1px solid var(--fb-line-soft); padding-block: 56px 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { font-size: 0.9375rem; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--fb-text-muted); text-decoration: none; }
.foot-grid a:hover { color: var(--fb-primary); text-decoration: underline; }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--fb-line); display: grid; gap: 10px; font-size: 0.875rem; color: var(--fb-text-muted); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Scroll reveals (progressive: content is visible without JS) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(var(--fb-reveal-distance));
  transition: opacity var(--fb-duration-slower) var(--fb-ease-enter), transform var(--fb-duration-slower) var(--fb-ease-enter);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-group] > * { transition-delay: calc(var(--fb-stagger) * var(--i, 0)); }
.js [data-reveal-group] > :nth-child(2) { --i: 1; } .js [data-reveal-group] > :nth-child(3) { --i: 2; }
.js [data-reveal-group] > :nth-child(4) { --i: 3; } .js [data-reveal-group] > :nth-child(5) { --i: 4; }
.js [data-reveal-group] > :nth-child(6) { --i: 5; }

/* Hero entrance: lines rise in sequence after the logo */
.js .hero-copy > * { opacity: 0; transform: translateY(var(--fb-reveal-distance)); }
.is-ready .hero-copy > * { opacity: 1; transform: none; transition: opacity var(--fb-duration-slower) var(--fb-ease-enter), transform var(--fb-duration-slower) var(--fb-ease-enter); }
.is-ready .hero-copy > :nth-child(1) { transition-delay: 200ms; }
.is-ready .hero-copy > :nth-child(2) { transition-delay: calc(200ms + var(--fb-stagger) * 2); }
.is-ready .hero-copy > :nth-child(3) { transition-delay: calc(200ms + var(--fb-stagger) * 4); }
.is-ready .hero-copy > :nth-child(4) { transition-delay: calc(200ms + var(--fb-stagger) * 6); }
.is-ready .hero-copy > :nth-child(5) { transition-delay: calc(200ms + var(--fb-stagger) * 8); }
.js .stage > * { opacity: 0; transform: translateY(24px) scale(0.98); }
.is-ready .stage > * { opacity: 1; transform: none; transition: opacity var(--fb-duration-slower) var(--fb-ease-enter), transform 900ms var(--fb-ease-enter); }
.is-ready .stage .v-window { transition-delay: 350ms; }
.is-ready .stage .v-phone { transition-delay: 550ms; }
.is-ready .stage .v-alert { transition-delay: 900ms; }
.is-ready .stage .v-badge { transition-delay: 1150ms; }
.is-ready .stage .illustration-note { transition-delay: 1300ms; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero-copy > *, .js .stage > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .diagram-stage [data-part] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Help story beats light up one after another once revealed */
.js .help-story .beat { opacity: 0.6; transform: translateY(8px); transition: opacity var(--fb-duration-slow) var(--fb-ease-enter), transform var(--fb-duration-slow) var(--fb-ease-enter); }
.js .help-story.is-in .beat { opacity: 1; transform: none; }
.js .help-story.is-in .beat:nth-child(2) { transition-delay: 500ms; }
.js .help-story.is-in .beat:nth-child(3) { transition-delay: 1000ms; }
.js .help-story.is-in .beat:nth-child(4) { transition-delay: 1500ms; }
@media (prefers-reduced-motion: reduce) { .js .help-story .beat { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Visually hidden */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Footer, phase 1 (Privacy · Terms · Support · Contact only); on a phone the links go under the logo */
.foot-grid.p1 { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
@media (max-width: 560px) { .foot-grid.p1 { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.foot-grid.p1 img { height: 40px; width: auto; display: block; margin-bottom: 10px; }
.foot-links { display: flex !important; gap: 24px !important; flex-wrap: wrap; }
.v-badge { filter: drop-shadow(0 8px 14px var(--fb-site-glow-indigo)); }

[hidden] { display: none !important; }
.h-display .line { display: block; }
@media (min-width: 961px) { .h-display .line { white-space: nowrap; } }

/* Phone cards: space the lines so "Keep going" clears the step bar (mirrors hsos-website PR #25) */
.v-phone .v-card { display: grid; gap: 6px; }
.v-phone .v-card .v-steps { margin-block: 4px; }
.v-phone .v-card .v-btn { justify-self: start; }
/* Avatars show the child's initial, as the app does today (animal avatars wait until the app ships them) */
.av { font: 700 0.8125rem/1 var(--fb-font-body); }
.av.lg { font-size: 1.125rem; } .av.sm { font-size: 0.6875rem; }
/* Founding band: small print under the button; "300" is wider than "50", so scale the figure down a step */
.founding-copy .fine { font-size: 0.8125rem; color: var(--fb-site-spotlight-muted); }
.big-number { font-size: clamp(6rem, 3rem + 9vw, 11rem); }
.big-number small { max-width: 16em; }
