/* thebriefcase.app — marketing surface · Father Framework DNA (hue 28 · brown)
 * Tokens/motion come from /family-office-kit/* — site maps aliases for copy CSS. */
:root,
.fo-kit {
  --hue: 28;
  --bg: var(--fo-bg, hsl(var(--hue) 22% 5%));
  --bg-2: hsl(var(--hue) 18% 8%);
  --panel: var(--fo-panel, hsl(var(--hue) 16% 10%));
  --panel-2: var(--fo-panel-2, hsl(var(--hue) 14% 13%));
  --fg: var(--fo-fg, #f4f4f5);
  --fg-2: var(--fo-fg-2, #a1a1aa);
  --fg-3: var(--fo-fg-3, #71717a);
  --line: var(--fo-border, rgba(255, 255, 255, 0.09));
  --accent: var(--fo-accent, hsl(var(--hue) 72% 62%));
  --accent-2: var(--fo-accent-2, hsl(var(--hue) 68% 58%));
  --ok: var(--fo-ok, #34d399);
  --font: var(--fo-font, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif);
  --ease: var(--comet-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
  /* Cinematic hero reads --bc-accent for hue */
  --bc-accent: var(--accent);
  --max: 1120px;
  --nav-h: 64px;
  /* Safe-area gutters only on chrome/content — ambient fill ignores these */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --nav-stack: calc(var(--nav-h) + var(--safe-top));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

/*
 * Full-bleed shell (login DNA) — color fills the visual viewport and continues
 * under browser chrome / status bar (viewport-fit=cover + matching theme-color).
 * Ambient is fixed inset:0; content scrolls over it. Nav floats; hero starts at y=0.
 */
html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  /* Match branded sign-in base so overscroll / chrome edge is the solid color */
  background: hsl(28 28% 7%);
  background-color: hsl(28 28% 7%);
}
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: var(--font);
  color: var(--fg);
  background: hsl(28 28% 7%);
  background-color: hsl(28 28% 7%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* ── Cinematic atmosphere ─────────────────────────────────── */
.cinema-grain {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: 0.03; mix-blend-mode: overlay;
}
/* No oval spotlight / letterbox — edges stay filled like family sign-in */
.cinema-vignette,
#fo-cinema-vignette {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}
.cinema-cursor-light {
  position: fixed; top: 0; left: 0; z-index: 88; pointer-events: none;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
  background: radial-gradient(circle, hsl(var(--hue) 72% 62% / 0.11), transparent 62%);
  mix-blend-mode: screen;
  will-change: transform;
}
.cinema-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cinema-reveal.is-in-frame {
  opacity: 1;
  transform: none;
  filter: none;
}
.cinema-magnetic {
  transform: translate3d(var(--mx, 0), var(--my, 0), 0)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.25s;
  position: relative;
}
.cinema-magnetic::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(
    420px circle at var(--shine-x, 50%) var(--shine-y, 40%),
    rgba(255,255,255,.12), transparent 55%
  );
  opacity: 0;
  transition: opacity 0.25s;
}
.cinema-magnetic:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cinema-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .cinema-magnetic { transform: none !important; }
  .cinema-grain { opacity: 0.03; }
  .cinema-cursor-light { display: none; }
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #c4954a; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }

/* Ambient — default dark (inner pages). Homepage uses .ambient--signin (gold login). */
.ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 20% -10%, hsl(var(--hue) 72% 42% / 0.22), transparent 55%),
    radial-gradient(100% 80% at 100% 0%, hsl(22 48% 32% / 0.16), transparent 50%),
    linear-gradient(165deg, #0a0814 0%, hsl(var(--hue) 22% 7%) 40%, #07060c 100%);
}
/*
 * GOLD login shell — exact DNA from family-signin-page .hero-shell (default colored).
 * Full viewport, continues through transparent nav.
 */
.ambient--signin {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.40), transparent 44%),
    radial-gradient(circle at 74% 84%, rgba(214, 158, 0, 0.38), transparent 50%),
    linear-gradient(165deg, #FFDD1A 0%, #FFD000 45%, #F2C200 100%);
}
.ambient--signin::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.35) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}
.ambient--signin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.38) 0%, transparent 58%);
  filter: blur(40px);
  opacity: 0.85;
  pointer-events: none;
}
.ambient:not(.ambient--signin)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, hsl(var(--hue) 58% 48% / 0.12) 0%, transparent 58%);
  pointer-events: none;
}

/* Site content stacks above ambient; color still bleeds full bleed behind */
body > *:not(.ambient):not(.cinema-grain):not(.cinema-vignette):not(.cinema-cursor-light) {
  position: relative;
  z-index: 1;
}

/* Nav — transparent so login gold (or dark ambient) shows through the header */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-stack);
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav::before {
  content: none;
}
/* Homepage gold: dark chrome on the solid gold fill */
body:has(.ambient--signin) .nav {
  border-bottom-color: rgba(61, 40, 20, 0.12);
}
body:has(.ambient--signin) .nav .brand,
body:has(.ambient--signin) .nav-links a {
  color: #3d2814 !important;
}
body:has(.ambient--signin) .nav-links a:hover,
body:has(.ambient--signin) .nav-links a[aria-current="page"] {
  color: #3d2814 !important;
  background: rgba(0, 0, 0, 0.06) !important;
}
body:has(.ambient--signin) .nav-cta {
  color: #3d2814 !important;
  border-color: rgba(61, 40, 20, 0.22) !important;
  background: rgba(255, 255, 255, 0.35) !important;
}
body:has(.ambient--signin) .nav-toggle {
  color: #3d2814 !important;
  border-color: rgba(61, 40, 20, 0.2) !important;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); font-weight: 700; letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(145deg, hsl(var(--hue) 58% 48%), hsl(calc(var(--hue) + 14) 52% 32%));
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--fg-2); font-size: 13.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--fg); background: rgba(255,255,255,.05);
}
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--line) !important;
  color: var(--fg-2) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.nav-cta:hover {
  background: rgba(255,255,255,.06) !important;
  border-color: color-mix(in srgb, var(--fg-3) 40%, var(--line)) !important;
  color: var(--fg) !important;
}
.nav-toggle {
  display: none; appearance: none; border: 1px solid var(--line);
  background: transparent; color: var(--fg); border-radius: 10px;
  width: 40px; height: 40px; font-size: 18px; cursor: pointer;
}

/* Buttons — quiet, precise (no candy glow) */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .15s var(--ease), border-color .15s, color .15s, opacity .15s;
}
.btn:hover { transform: none; }
.btn-primary {
  background: hsl(var(--hue) 48% 46%);
  color: #faf6f0;
  border-color: color-mix(in srgb, hsl(var(--hue) 48% 56%) 55%, transparent);
  box-shadow: none;
  text-shadow: none;
}
.btn-primary:hover {
  background: hsl(var(--hue) 52% 52%);
  border-color: color-mix(in srgb, hsl(var(--hue) 55% 62%) 70%, transparent);
  box-shadow: none;
}
.btn-primary:active {
  background: hsl(var(--hue) 48% 40%);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
  box-shadow: none;
  backdrop-filter: none;
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--fg-3) 45%, var(--line));
  background: rgba(255,255,255,.04);
  color: var(--fg);
  box-shadow: none;
}
.btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding: 11px 8px;
  font-weight: 600;
}
.btn-link:hover { color: var(--fg); background: transparent; }

/*
 * Hero — solid GOLD login stage (no WebGL). Fill is .ambient--signin under nav.
 */
.hero,
.hero.container,
#site-hero.hero,
.hero--signin {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0;
  background: transparent;
  padding:
    calc(var(--nav-stack) + clamp(0.75rem, 2vw, 1.25rem))
    max(1.25rem, var(--safe-right))
    max(1.25rem, var(--safe-bottom))
    max(1.25rem, var(--safe-left));
}
@media (max-height: 640px) {
  #site-hero.hero {
    height: auto;
    min-height: 100dvh;
  }
}
.hero .eyebrow,
.hero h1,
.hero .lede,
.hero-actions,
.hero-meta,
.hero .trust-strip,
.hero .stack-row {
  width: min(var(--max), 100%);
  max-width: min(var(--max), 100%);
  flex-shrink: 0;
}
#site-hero .hero-depth,
#site-hero .fo-cinematic-hero-canvas,
#site-hero canvas[data-fo-depth-rich] {
  display: none !important;
}
.hero > * {
  position: relative;
  z-index: 1;
}
/* Gold login: dark ink on the solid yellow (family-signin default) */
#site-hero.hero--signin,
#site-hero.hero--signin .lede,
#site-hero.hero--signin .hero-meta {
  color: #3d2814;
  text-shadow: none;
}
#site-hero.hero--signin h1 {
  max-width: 18ch;
  color: #3d2814;
  text-shadow: none;
}
#site-hero.hero--signin .hero-accent {
  display: block;
  margin-top: 0.2em;
  font-size: 0.72em;
  letter-spacing: -0.03em;
  color: #3d2814;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  opacity: 0.82;
}
#site-hero.hero--signin .eyebrow {
  color: rgba(61, 40, 20, 0.72);
}
#site-hero.hero--signin .eyebrow .dot {
  background: #3d2814;
}
#site-hero.hero--signin .btn-primary {
  background: #3d2814;
  border-color: #3d2814;
  color: #ffd700;
}
#site-hero.hero--signin .btn-primary:hover {
  background: #4a3218;
  border-color: #4a3218;
  color: #ffe44d;
}
#site-hero.hero--signin .btn-ghost {
  color: #3d2814;
  border-color: rgba(61, 40, 20, 0.28);
  background: rgba(255, 255, 255, 0.28);
}
#site-hero.hero--signin .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(61, 40, 20, 0.4);
  color: #3d2814;
}
#site-hero.hero--signin .trust-pill,
#site-hero.hero--signin .stack-pill {
  color: #3d2814;
  border-color: rgba(61, 40, 20, 0.18);
  background: rgba(255, 255, 255, 0.35);
}
#site-hero.hero--signin .lede strong {
  color: #3d2814;
}
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 1.25rem auto 0;
  max-width: 48rem;
  align-items: center;
}

/*
 * Unified marketing chips — soft rounded rects (radius 8), muted border.
 * Not neon capsules (999px), not bare broken text.
 */
.chip,
.trust-pill,
.stack-pill,
.stage-pill,
.lab-sc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-2);
  white-space: nowrap;
  box-shadow: none;
  text-shadow: none;
}
.chip:hover,
.trust-pill:hover {
  border-color: color-mix(in srgb, var(--fg-3) 35%, var(--line));
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}
.chip--on,
.stage-pill.on,
.lab-sc-pill.is-on,
.fo-chip.is-on {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--fg);
  box-shadow: none;
}
.chip--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--fg-3);
  padding-left: 0;
  padding-right: 0;
}
.trust-manifest {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-block: 1px solid color-mix(in srgb, var(--ok) 25%, var(--line));
  background:
    radial-gradient(900px 400px at 20% 0%, color-mix(in srgb, var(--ok) 12%, transparent), transparent 60%),
    radial-gradient(700px 360px at 90% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--panel) 70%, #05040a);
}
.trust-manifest .section-title { max-width: 22ch; }
.card--trust {
  border-color: color-mix(in srgb, var(--ok) 22%, var(--line));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--ok) 8%, transparent), transparent 50%),
    color-mix(in srgb, var(--panel) 94%, transparent);
}
.card--trust .glyph {
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  color: var(--ok);
}
.card-link { margin-top: 0.75rem !important; font-size: 13.5px; font-weight: 700; }
.card-link a { color: var(--accent); }
.trust-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 1.5rem;
}
/* Do not dim the full-bleed field — was 0.65 and fought edge fill */
.fo-cinematic-hero-canvas {
  border-radius: 0 !important;
  opacity: 1 !important;
}
.stack-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 1.25rem;
}
/* stack-pill shares .chip system above */

/* Scroll-pinned chapters */
.chapters-intro {
  padding: clamp(2rem, 4vw, 3rem) 0 1rem;
}
.fo-chapters-host {
  margin: 0 0 clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(80% 60% at 70% 40%, hsl(var(--hue) 60% 40% / 0.12), transparent 60%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.25));
}
/* Fill the sticky frame — avoid sparse dead air around chapter content */
.fo-chapters-host .fo-sc__chapter .chapter-frame {
  width: min(1040px, calc(100% - 4.5rem));
}
.fo-chapters-host .chapter-frame--icon {
  min-height: min(70vh, 560px);
}
.chapter-frame {
  width: min(1040px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
  position: relative;
  text-align: left;
}
.chapter-frame--icon {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: center;
}
.chapter-glow {
  position: absolute;
  width: 55%; height: 70%;
  right: -8%; top: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--hue) 72% 62% / 0.32), transparent 68%);
  filter: blur(12px);
  pointer-events: none; z-index: 0;
}
.chapter-glow--b {
  background: radial-gradient(circle, hsl(22 55% 40% / 0.32), transparent 68%);
  left: -10%; right: auto;
}
.chapter-glow--c {
  background: radial-gradient(circle, hsl(200 70% 55% / 0.28), transparent 68%);
  bottom: -15%; top: auto;
}
.chapter-frame > *:not(.chapter-glow) { position: relative; z-index: 1; }
.chapter-icon-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-self: center;
}
.chapter-icon-orb {
  width: clamp(120px, 18vw, 188px);
  height: clamp(120px, 18vw, 188px);
  border-radius: 36px;
  display: grid;
  place-items: center;
  color: #f5efe4;
  background:
    linear-gradient(155deg, rgba(255,255,255,.14), transparent 42%),
    linear-gradient(145deg, hsl(var(--hue) 55% 28%), hsl(var(--hue) 40% 12%));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow:
    0 28px 60px rgba(0,0,0,.45),
    0 0 48px hsl(var(--hue) 72% 50% / 0.28),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -12px 28px rgba(0,0,0,.25);
  position: relative;
}
.chapter-icon-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 42px;
  background: radial-gradient(circle at 30% 25%, hsl(var(--hue) 80% 70% / 0.35), transparent 55%);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.9;
}
.chapter-icon-orb svg {
  width: 54%;
  height: 54%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}
.chapter-icon-caption {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 20px hsl(var(--hue) 72% 55% / 0.45);
}
.chapter-copy { min-width: 0; }
.chapter-h {
  margin: 0 0 0.75rem;
  max-width: 16ch;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 750;
  text-shadow: 0 2px 40px hsl(var(--hue) 72% 40% / 0.3);
}
.chapter-p {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  color: var(--fg-2);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}
.chapter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .chapter-frame--icon {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .chapter-h { max-width: none; margin-left: auto; margin-right: auto; }
  .chapter-p { margin-left: auto; margin-right: auto; }
  .chapter-tags, .stage-suits, .stage-stack-grid, .stage-cta-row { justify-content: center; }
  .stage-suits { width: 100%; }
}

/* FO Stage — Slider-Revolution-class theater */
.stage-section {
  padding: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.fo-stage-host {
  width: 100%;
  min-height: min(72vh, 620px);
  margin: 0 auto 0.5rem;
}
.stage-slide-inner {
  position: relative;
  height: 100%;
  min-height: inherit;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem) 4.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 0.65rem;
  overflow: hidden;
}
.stage-bg-glow {
  position: absolute;
  width: 55%;
  height: 70%;
  right: -5%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(28 62% 42% / 0.38), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.stage-bg-glow--b {
  background: radial-gradient(circle, hsl(18 50% 38% / 0.32), transparent 68%);
  left: -8%;
  right: auto;
}
.stage-bg-glow--c {
  background: radial-gradient(circle, hsl(200 70% 55% / 0.28), transparent 68%);
  top: auto;
  bottom: -10%;
}
.stage-slide-inner > *:not(.stage-bg-glow) { position: relative; z-index: 1; }
.stage-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.stage-h {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.stage-p {
  margin: 0;
  max-width: 36rem;
  color: var(--fg-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.stage-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 0.5rem;
}
.stage-meta {
  font-size: 12.5px;
  color: var(--fg-3);
  font-weight: 600;
}
.stage-mock {
  margin-top: 0.75rem;
  width: min(420px, 100%);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 90%, #000);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
}
.stage-mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-2);
}
.stage-mock-chrome i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.stage-mock-chrome i:nth-child(1) { background: #ff5f57; }
.stage-mock-chrome i:nth-child(2) { background: #febc2e; }
.stage-mock-chrome i:nth-child(3) { background: #28c840; }
.stage-mock-chrome span { margin-left: 6px; }
.stage-mock-body {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px;
}
/* stage-pill shares .chip system; .on → chip--on */
.stage-suits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, 100%);
  margin-top: 0.5rem;
}
.stage-suit {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stage-suit b {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); font-size: 14px;
}
.stage-suit span { font-weight: 750; font-size: 14px; }
.stage-suit em { font-style: normal; font-size: 11px; color: var(--fg-3); }
.stage-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(480px, 100%);
  margin-top: 0.5rem;
}
.stage-stack-cell {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: rgba(0,0,0,.22);
}
.stage-stack-cell strong { display: block; font-size: 14px; margin-bottom: 2px; }
.stage-stack-cell span { font-size: 12px; color: var(--fg-3); }
.stage-rails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(480px, 100%);
  margin-top: 0.35rem;
}
.stage-rail-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}
.stage-rail-card strong { display: block; font-size: 14px; }
.stage-rail-card span { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 700px) {
  .stage-suits { grid-template-columns: 1fr; }
  .stage-h { max-width: none; }
}

/* Infinite canvas section */
.canvas-section {
  padding: 0 0 clamp(2rem, 4vw, 3.5rem);
}
.canvas-intro { margin-bottom: 1rem; }
.product-canvas {
  width: min(1200px, calc(100% - 1.5rem));
  height: min(52vh, 520px);
  min-height: 360px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
  background-color: color-mix(in srgb, var(--panel) 88%, #000);
}
.canvas-hint {
  margin: 12px auto 0;
  text-align: center;
  color: var(--fg-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.icv-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--panel) 92%, var(--accent)), var(--panel-2));
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(8px);
}
.icv-card strong {
  font-size: 14.5px;
  letter-spacing: -.02em;
  color: var(--fg);
}
.icv-card span:not(.icv-tag) {
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.4;
}
.icv-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  margin-bottom: 2px;
}
.feature-panel--depth {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 0;
}
/* Static companion panel — never a second 3D briefcase next to the hero */
.feature-panel--static {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 50%),
    var(--panel);
}
.feature-panel-label {
  position: absolute;
  left: 14px; top: 12px; z-index: 2;
  font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-2);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  padding: 5px 9px; border-radius: 6px;
  border: 1px solid var(--line);
}
.feature-panel--static .feature-panel-label {
  position: static;
  align-self: flex-start;
  margin-bottom: 4px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.45);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.45); }
  70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero h1 {
  margin: 0 auto .85rem;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 750;
}
.hero .lede {
  margin: 0 auto 1.75rem;
  max-width: 42rem;
  color: var(--fg-2); font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta {
  margin-top: 1.5rem; color: var(--fg-3); font-size: 13px; font-weight: 600;
}
.hero-visual {
  margin: 2.75rem auto 0;
  width: min(920px, 100%);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}
.hero-visual-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.hero-visual-chrome i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.hero-visual-chrome i:nth-child(1) { background: #ff5f57; }
.hero-visual-chrome i:nth-child(2) { background: #febc2e; }
.hero-visual-chrome i:nth-child(3) { background: #28c840; }
.hero-visual-body {
  display: grid; grid-template-columns: 160px 1fr 180px;
  height: calc(100% - 42px); min-height: 280px;
}
.hv-rail {
  border-right: 1px solid var(--line);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 6px;
}
.hv-rail.right { border-right: 0; border-left: 1px solid var(--line); }
.hv-tab {
  height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.04); color: var(--fg-3);
  font-size: 11px; font-weight: 650; display: flex; align-items: center; padding: 0 10px;
}
.hv-tab.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--fg); }
.hv-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hv-title { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.hv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hv-card {
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); padding: 12px; min-height: 72px;
}
.hv-card b { display: block; font-size: 12px; margin-bottom: 4px; }
.hv-card span { font-size: 11px; color: var(--fg-3); }
.hv-stat {
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); padding: 8px 10px; margin-bottom: 8px;
}
.hv-stat strong { display: block; font-size: 14px; }
.hv-stat em { font-style: normal; font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }

/* Sections */
section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
section.alt { background: color-mix(in srgb, var(--panel) 55%, transparent); border-block: 1px solid var(--line); }
.section-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .5rem;
}
.section-title {
  margin: 0 0 .75rem; font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -.03em; font-weight: 750; line-height: 1.15;
}
.section-sub { margin: 0 0 1.75rem; max-width: 40rem; color: var(--fg-2); font-size: 1.05rem; }

/* Grid cards */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.05), transparent 42%),
    color-mix(in srgb, var(--panel) 92%, transparent);
  padding: 1.25rem 1.35rem;
  box-shadow:
    0 16px 40px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow:
    0 22px 50px rgba(0,0,0,.32),
    0 0 40px hsl(var(--hue) 72% 50% / 0.08),
    inset 0 1px 0 rgba(255,255,255,.1);
}
.card .glyph {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); font-weight: 800; font-size: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--fg-2); font-size: 14.5px; }

/* Feature rows */
.feature-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem;
  align-items: center; margin: 2rem 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-copy h3 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.02em; }
.feature-copy p { margin: 0; color: var(--fg-2); }
.feature-panel {
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--panel); min-height: 220px; padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* .chip geometry defined once under trust-strip (soft 8px radius — not 999 capsules) */

/* Pricing */
.price-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem;
  background: var(--panel); display: flex; flex-direction: column; gap: 10px;
}
.price-card.featured {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 20px 50px rgba(0,0,0,.3);
}
.price-card .plan { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.price-card .amount { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.price-card .amount span { font-size: 14px; font-weight: 600; color: var(--fg-3); }
.price-card ul { margin: 8px 0 14px; padding: 0 0 0 1.1rem; color: var(--fg-2); font-size: 14px; }
.price-card li { margin: 6px 0; }

/* Download */
.download-box {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.35rem 1.5rem;
  background: var(--panel);
  display: grid; gap: 0.85rem;
}
.download-box h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; font-weight: 650; }

/* Download room — the installer remains visible as context beneath family sign-in. */
.download-gate {
  position: relative;
  isolation: isolate;
  min-height: 430px;
}
.download-gate__content {
  transition: filter .35s var(--fo-breathe-ease, ease), opacity .35s ease, transform .35s var(--fo-breathe-ease, ease);
}
.download-gate:not(.is-unlocked) .download-gate__content {
  filter: blur(5px) saturate(.72);
  opacity: .42;
  transform: scale(.992);
  pointer-events: none;
  user-select: none;
}
.download-gate__veil {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px) 18px;
  background: color-mix(in srgb, var(--bg) 28%, transparent);
}
.download-gate.is-unlocked .download-gate__veil { display: none; }
.download-login {
  width: min(430px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .055);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
}
.download-login__mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 17px;
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel-2));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}
.download-login__mark img { width: 38px; height: 38px; object-fit: contain; }
.download-login__eyebrow {
  margin: 0 0 7px;
  color: var(--accent-2, var(--accent));
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.download-login h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2rem); letter-spacing: -.035em; }
.download-login__intro { margin: 9px 0 20px; color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.download-login__field { display: grid; gap: 7px; margin-top: 12px; }
.download-login__field span { color: var(--fg-2); font-size: 12px; font-weight: 650; }
.download-login__field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--bg) 54%, transparent);
  color: var(--fg);
  font: 500 15px/1 var(--fo-font, system-ui);
  outline: none;
}
.download-login__field input:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.download-login__submit { width: 100%; min-height: 48px; margin-top: 18px; }
.download-login__submit[disabled] { opacity: .65; cursor: wait; }
.download-login__status { min-height: 18px; margin: 12px 0 0; color: var(--fg-3); font-size: 12.5px; text-align: center; }
.download-login__status.is-error { color: #fca5a5; }
.download-login__trust { margin: 15px 0 0; color: var(--fg-3); font-size: 11px; text-align: center; }
.download-login__trust span { color: #34d399; font-size: 8px; vertical-align: 1px; }

@media (max-width: 640px) {
  .download-gate { min-height: 560px; }
  .download-gate__veil { align-items: start; padding-top: 10px; }
  .download-login { border-radius: 18px; }
}
.file-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: space-between; padding: 12px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.file-row:last-of-type { border-bottom: none; }
.file-row code { font-size: 12.5px; color: var(--fg-2); }

/* Footer — slim marketing bar */
.footer {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 max(0.85rem, calc(0.5rem + var(--safe-bottom)));
  margin-top: 0.5rem;
  color: var(--fg-3);
  font-size: 13px;
  background: transparent;
}
.footer--slim .footer-slim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding-bottom: 0.55rem;
}
.footer--slim .brand--slim {
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.footer--slim .brand--slim .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 10px;
}
.footer-slim-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.15rem;
}
.footer-slim-links a {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-3);
  border-radius: 8px;
}
.footer-slim-links a:hover {
  color: var(--fg);
  background: rgba(0, 0, 0, 0.05);
}
/* legacy multi-col footer (inner pages if any still use it) */
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1rem 1rem;
}
.footer-brand .footer-tagline {
  margin: 0;
  max-width: 28rem;
  line-height: 1.45;
  color: var(--fg-2);
  font-size: 13px;
}
.footer strong {
  display: block; color: var(--fg-2); margin-bottom: 6px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.footer a { color: var(--fg-3); font-weight: 550; }
.footer-grid a { display: block; padding: 3px 0; }
.footer a:hover { color: var(--fg); }

/* Bottom footer bar — only home for version / changelog / gitea */
.footer-bottom {
  margin-top: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 1.25rem;
  justify-content: space-between;
  align-items: center;
  min-height: 0;
}
.footer-copy {
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.4;
}
.footer-meta,
.footer-meta--bottom {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.15rem;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--fg-3);
}
.footer-meta a,
.footer-bottom .footer-meta a {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0.2rem 0.1rem !important;
  margin: 0 !important;
  font-size: 12.5px !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
  color: var(--fg-3) !important;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap;
}
.footer-meta a:hover,
.footer-bottom .footer-meta a:hover {
  color: var(--fg) !important;
  background: transparent !important;
}
.footer-meta a[data-site-version] {
  color: var(--fg-2) !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.footer-meta-sep {
  display: inline-block;
  color: color-mix(in srgb, var(--fg-3) 50%, transparent);
  user-select: none;
  padding: 0 0.65rem;
  font-weight: 400;
}
/* Legacy pill classes — never paint as capsules */
.footer .version-pill,
.footer .footer-pill,
.footer-pills a,
.footer-bottom-pills a {
  display: inline !important;
  padding: 0.35rem 0.15rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fg-3) !important;
  font-weight: 550 !important;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 1.25rem;
  }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Page hero compact — same under-nav bleed as home */
.page-hero {
  padding:
    calc(var(--nav-stack) + 1.75rem)
    0
    1.5rem;
}
.page-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.page-hero p { margin: 0; color: var(--fg-2); max-width: 40rem; }

/* Sections / footer — side safe areas on notched devices; fill still edge-to-edge */
section .container,
.page-hero.container,
.footer .container {
  padding-left: max(0px, calc(var(--safe-left) - 0px));
  padding-right: max(0px, calc(var(--safe-right) - 0px));
}
.footer {
  padding-bottom: max(0.85rem, calc(0.5rem + var(--safe-bottom)));
}

/* Table */
.table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { background: rgba(255,255,255,.04); color: var(--fg-2); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-2, .feature-row, .footer-grid, .hero-visual-body { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .hv-rail.right { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0; padding: 12px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: grid; place-items: center; }
  .hero-visual { aspect-ratio: 4/3; }
}



/* Closing CTA — useful last band before slim footer */
.closing-cta {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 2rem);
}
.closing-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 20px;
  border: 1px solid rgba(61, 40, 20, 0.14);
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.62), rgba(255, 244, 200, 0.5));
  box-shadow: 0 16px 40px rgba(61, 40, 20, 0.08);
}
.closing-cta .section-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.closing-lede {
  margin: 0 0 1rem !important;
  max-width: 40rem;
}
.closing-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.closing-facts li {
  position: relative;
  padding: 0.45rem 0.65rem 0.45rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(61, 40, 20, 0.1);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(61, 40, 20, 0.88);
}
.closing-facts li strong {
  color: #3d2814;
  font-weight: 700;
}
.closing-cta-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding-top: 0.15rem;
}
.closing-cta-side .btn {
  justify-content: center;
  text-align: center;
  width: 100%;
}
.btn-closing {
  min-height: 48px;
  font-size: 15.5px;
  font-weight: 700;
}
.closing-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
  margin-top: 0.35rem;
  font-size: 13px;
  font-weight: 600;
  color: rgba(61, 40, 20, 0.5);
}
.closing-meta-row a {
  color: #5c3a0a;
}
.closing-meta-row a:hover {
  color: #3d2506;
}
.closing-note {
  margin: 0.35rem 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(61, 40, 20, 0.58);
}
@media (max-width: 820px) {
  .closing-cta-panel {
    grid-template-columns: 1fr;
  }
  .closing-cta .section-title { max-width: none; }
}

/* Slim footer on gold home */
body.page-home .footer--slim .footer-slim-links a {
  color: rgba(61, 40, 20, 0.72);
}
body.page-home .footer--slim .footer-slim-links a:hover {
  color: #3d2814;
  background: rgba(61, 40, 20, 0.06);
}
body.page-home .footer--slim .brand--slim {
  color: #3d2814 !important;
}

/* Homepage gold — brown DNA + dark brown ink (never light-on-yellow / near-black) */
body.page-home {
  background: #FFD700 !important;
  background-color: #FFD700 !important;
  color: #3d2814;
  --hue: 28;
  --fg: #3d2814;
  --fg-2: rgba(61, 40, 20, 0.78);
  --fg-3: rgba(61, 40, 20, 0.55);
  --line: rgba(61, 40, 20, 0.14);
  --accent: #5c3a0a;
  --accent-2: #7a4f12;
  --panel: rgba(255, 250, 230, 0.78);
  --panel-2: rgba(255, 255, 255, 0.55);
  --bg: #FFD700;
  --bg-2: #F2C200;
  --fo-fg: #3d2814;
  --fo-fg-2: rgba(61, 40, 20, 0.78);
  --fo-fg-3: rgba(61, 40, 20, 0.55);
  --fo-accent: #5c3a0a;
  --fo-accent-2: #7a4f12;
  --fo-panel: rgba(255, 250, 230, 0.78);
  --fo-panel-2: rgba(255, 255, 255, 0.55);
  --fo-border: rgba(61, 40, 20, 0.14);
  --fo-bg: #FFD700;
}
html:has(body.page-home) {
  background: #FFD700 !important;
  background-color: #FFD700 !important;
  --hue: 28;
}
/* Section titles, body copy, cards on gold inherit dark ink */
body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4,
body.page-home p,
body.page-home li,
body.page-home .section-title,
body.page-home .section-sub,
body.page-home .section-kicker,
body.page-home .card,
body.page-home .card h3,
body.page-home .card p,
body.page-home .feature-copy,
body.page-home .feature-copy p,
body.page-home .lede,
body.page-home code {
  color: inherit;
}
body.page-home .section-kicker,
body.page-home a:not(.btn):not(.nav-cta):not(.brand) {
  color: #5c3a0a;
}
body.page-home a:not(.btn):not(.nav-cta):not(.brand):hover {
  color: #3d2506;
}
body.page-home .card {
  color: #3d2814;
  border-color: rgba(61, 40, 20, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.55), rgba(255, 248, 220, 0.42));
  box-shadow: 0 10px 28px rgba(61, 40, 20, 0.08);
}
body.page-home .card p,
body.page-home .section-sub {
  color: rgba(61, 40, 20, 0.78);
}
body.page-home section.alt {
  background: rgba(255, 248, 220, 0.42);
  border-block-color: rgba(61, 40, 20, 0.1);
}
body.page-home .trust-manifest {
  color: #3d2814;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(92, 58, 10, 0.08), transparent 60%),
    rgba(255, 248, 220, 0.5);
  border-block-color: rgba(61, 40, 20, 0.12);
}
body.page-home .card--trust {
  border-color: rgba(61, 40, 20, 0.14);
  background: rgba(255, 255, 255, 0.48);
}
/*
 * Dark theater islands only (hosts themselves) — not the gold-stage intros.
 * .stage-section / .chapters-intro / .canvas-section titles stay dark ink on gold.
 */
body.page-home .fo-stage-host,
body.page-home .fo-chapters-host,
body.page-home .product-canvas,
body.page-home .stage-slide-inner {
  --fg: #f5efe4;
  --fg-2: #d4c4a8;
  --fg-3: #a89478;
  --line: rgba(255, 245, 220, 0.12);
  --accent: hsl(28 58% 58%);
  --accent-2: hsl(28 50% 48%);
  --panel: hsl(28 22% 11%);
  --panel-2: hsl(28 18% 15%);
  --bg: hsl(28 24% 8%);
  color: #f5efe4;
}
body.page-home .fo-stage-host,
body.page-home .fo-chapters-host {
  background:
    radial-gradient(80% 60% at 70% 40%, hsl(28 50% 28% / 0.35), transparent 60%),
    linear-gradient(180deg, hsl(28 28% 8%), hsl(28 30% 6%));
  border-radius: 18px;
}
/* Explicit: intro titles on gold never go light */
body.page-home .stage-section > .container,
body.page-home .chapters-intro,
body.page-home .canvas-section > .container,
body.page-home .stage-section .section-title,
body.page-home .stage-section .section-kicker,
body.page-home .stage-section .section-sub,
body.page-home .chapters-intro .section-title,
body.page-home .chapters-intro .section-kicker,
body.page-home .chapters-intro .section-sub,
body.page-home .canvas-section .section-title,
body.page-home .canvas-section .section-kicker,
body.page-home .canvas-section .section-sub {
  color: #3d2814;
}
body.page-home .stage-section .section-kicker,
body.page-home .chapters-intro .section-kicker,
body.page-home .canvas-section .section-kicker {
  color: #5c3a0a;
}
body.page-home .stage-section .section-sub,
body.page-home .chapters-intro .section-sub,
body.page-home .canvas-section .section-sub {
  color: rgba(61, 40, 20, 0.78);
}
body.page-home .fo-stage-host .stage-h,
body.page-home .fo-chapters-host .chapter-h,
body.page-home .fo-stage-host .stage-kicker,
body.page-home .fo-stage-host .stage-suit span,
body.page-home .fo-stage-host .stage-stack-cell strong,
body.page-home .fo-stage-host .stage-rail-card strong {
  color: #f5efe4;
}
body.page-home .fo-stage-host .stage-p,
body.page-home .fo-chapters-host .chapter-p,
body.page-home .fo-stage-host .stage-meta,
body.page-home .fo-stage-host .stage-suit em,
body.page-home .fo-stage-host .stage-stack-cell span,
body.page-home .fo-stage-host .stage-rail-card span {
  color: #d4c4a8;
}
body.page-home .canvas-hint {
  color: rgba(61, 40, 20, 0.55);
}
body.page-home .footer {
  color: #3d2814;
  border-top-color: rgba(61, 40, 20, 0.12);
  background: transparent;
}
body.page-home .footer a { color: rgba(61, 40, 20, 0.72); }
body.page-home .footer a:hover { color: #3d2814; }
body.page-home .footer strong { color: #3d2814; }
body.page-home .footer-copy { color: rgba(61, 40, 20, 0.65); }
body.page-home .footer-meta a { color: rgba(61, 40, 20, 0.72) !important; }
body.page-home .footer-meta a[data-site-version] { color: #3d2814 !important; }
body.page-home .footer-meta-sep { color: rgba(61, 40, 20, 0.35); }
/* Brand mark on gold: brown (not purple) */
body.page-home .brand-mark {
  background: linear-gradient(145deg, hsl(28 52% 38%), hsl(28 48% 22%));
  color: #faf6f0;
  box-shadow: 0 6px 16px rgba(61, 40, 20, 0.22);
}
/* Mobile open nav on gold */
body.page-home .nav-links.open {
  background: rgba(255, 215, 0, 0.97);
  border-bottom-color: rgba(61, 40, 20, 0.12);
}
