/* ============================================================
   Living Legacy — Main Stylesheet
   Built on the Living Legacy Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..700;1,400..600&family=Outfit:wght@300..700&family=Figtree:ital,wght@0,300..700;1,300..600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Design System Tokens ──────────────────────────────────── */
:root {
  /* Core palette */
  --granite:         #27292b;
  --oxblood-velvet:  #64221e;
  --federal-blue:    #2d6072;
  --sky-blue:        #b0e0ee;
  --porcelain-cream: #eee5d5;
  --mossy-green:     #767a5e;
  --silverware:      #d1d8df;
  --hearth-taupe:    #a98f63;
  --white:           #ffffff;

  /* Tints & shades */
  --granite-800: #3a3d40;
  --granite-600: #5b5f63;
  --granite-400: #8a8e92;
  --granite-200: #c7cacd;
  --federal-blue-700: #234b5a;
  --federal-blue-500: #3d7e96;
  --federal-blue-300: #7aa6b6;
  --federal-blue-100: #dceaf0;
  --oxblood-700: #4e1a17;
  --oxblood-300: #a4635f;
  --oxblood-100: #f2e0de;
  --sky-blue-300: #8fd2e5;
  --sky-blue-100: #e3f4f9;
  --cream-300: #e2d4bd;
  --cream-100: #f7f2e9;
  --silverware-300: #b6c0cb;
  --silverware-100: #eaeef2;
  --mossy-green-300: #9ea287;
  --mossy-green-100: #e7e8df;

  /* Semantic — text */
  --text-strong:     var(--granite);
  --text-body:       var(--granite-800);
  --text-muted:      var(--granite-600);
  --text-quiet:      var(--granite-400);
  --text-inverse:    var(--white);
  --text-accent:     var(--federal-blue);
  --text-link:       var(--federal-blue);
  --text-link-hover: var(--oxblood-velvet);

  /* Semantic — surfaces */
  --surface-page:         var(--cream-100);
  --surface-card:         var(--white);
  --surface-sunken:       var(--porcelain-cream);
  --surface-quiet:        var(--silverware-100);
  --surface-inverse:      var(--granite);
  --surface-accent:       var(--federal-blue);
  --surface-accent-quiet: var(--sky-blue-100);
  --surface-warm:         var(--porcelain-cream);

  /* Semantic — borders */
  --border-subtle: var(--silverware);
  --border-muted:  var(--silverware-300);
  --border-strong: var(--granite-200);
  --border-accent: var(--federal-blue);

  /* Semantic — interaction */
  --accent:       var(--federal-blue);
  --accent-hover: var(--federal-blue-700);
  --accent-press: #1c3d49;
  --accent-soft:  var(--sky-blue);
  --focus-ring:   var(--sky-blue-300);

  /* Semantic — status */
  --danger:          var(--oxblood-velvet);
  --danger-surface:  var(--oxblood-100);
  --success:         var(--mossy-green);
  --success-surface: var(--mossy-green-100);
  --info:            var(--federal-blue);
  --info-surface:    var(--sky-blue-100);
  --notice:          var(--hearth-taupe);
  --notice-surface:  #f0e8db;

  /* Typography */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-ui:      "Outfit", "Trebuchet MS", system-ui, sans-serif;
  --font-text:    "Figtree", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --text-display-1: clamp(36px, 4.2vw, 60px);
  --text-display-2: clamp(26px, 3.0vw, 44px);
  --text-h1:        36px;
  --text-h2:        28px;
  --text-h3:        20px;
  --text-h4:        17px;
  --text-lead:      20px;
  --text-body-lg:   17px;
  --text-body-md:   15px;
  --text-body-sm:   13px;
  --text-caption:   12px;
  --text-overline:  11px;

  --leading-tight:   1.08;
  --leading-snug:    1.24;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --tracking-display: -0.015em;
  --tracking-heading: -0.01em;
  --tracking-body:    0;
  --tracking-overline: 0.12em;

  /* Spacing */
  --space-0:  0px;
  --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:  48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;
  --gutter-page:       24px;
  --gutter-page-lg:    48px;
  --section-gap:       80px;
  --max-width-prose:   660px;
  --max-width-content: 1120px;

  /* Radius */
  --radius-xs:      6px;
  --radius-sm:      10px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-2xl:     40px;
  --radius-pill:    999px;
  --radius-control: var(--radius-pill);
  --radius-card:    var(--radius-lg);
  --radius-panel:   var(--radius-xl);
  --radius-field:   var(--radius-md);
  --radius-media:   var(--radius-lg);

  /* Elevation */
  --shadow-none:       none;
  --shadow-xs:         0 1px 2px rgba(39,41,43,.06);
  --shadow-sm:         0 2px 6px rgba(39,41,43,.07);
  --shadow-md:         0 6px 18px rgba(39,41,43,.09);
  --shadow-lg:         0 18px 44px rgba(39,41,43,.12);
  --shadow-inset:      inset 0 1px 2px rgba(39,41,43,.08);
  --shadow-focus:      0 0 0 3px var(--focus-ring);
  --shadow-card:       var(--shadow-sm);
  --shadow-card-hover: var(--shadow-md);
  --shadow-popover:    var(--shadow-lg);
  --blur-veil:         blur(12px);

  /* Motion */
  --dur-instant: 80ms;
  --dur-fast:    140ms;
  --dur-base:    220ms;
  --dur-slow:    380ms;
  --ease-soft:   cubic-bezier(.22,.8,.28,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --ease-lift:   cubic-bezier(.34,1.4,.64,1);
  --transition-control: background-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
  --press-scale: 0.97;
  --lift-y: -2px;

  /* Legacy aliases — keep existing template references working */
  --charcoal:    var(--granite);
  --burgundy:    var(--oxblood-velvet);
  --teal:        var(--federal-blue);
  --teal-dark:   var(--federal-blue-700);
  --teal-light:  var(--sky-blue);
  --cream:       var(--porcelain-cream);
  --cream-light: var(--cream-100);
  --cream-dark:  var(--cream-300);
  --olive:       var(--mossy-green);
  --gray-light:  var(--silverware);
  --sky:         var(--sky-blue);
  --charcoal-75: rgba(39,41,43,0.75);
  --brown-mid:   var(--mossy-green);
  --brown-dark:  var(--granite);
  --gold-light:  var(--sky-blue);
  --taupe:       var(--porcelain-cream);

  /* Legacy font aliases */
  --font-serif: var(--font-display);
  --font-sans:  var(--font-ui);

  /* Legacy spacing aliases */
  --space-xs: var(--space-2);
  --space-sm: var(--space-4);
  --space-md: var(--space-7);
  --space-lg: var(--space-10);
  --space-xl: var(--space-12);

  /* Layout */
  --max-w:        1200px;
  --max-w-narrow: 760px;
  --max-w-mid:    960px;

  /* Legacy transition alias */
  --transition: var(--dur-fast) var(--ease-soft);

  /* Brand gradients */
  --grad-taupe-sky:   linear-gradient(150deg, var(--cream-100) 0%, #d2edf5 100%);
  --grad-taupe-white: linear-gradient(150deg, var(--porcelain-cream) 0%, var(--white) 100%);
  --grad-sky-federal: linear-gradient(150deg, var(--sky-blue) 0%, var(--federal-blue) 100%);
}

/* ── Scroll entrance animations ─────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }
[data-animate][data-delay="5"] { transition-delay: 0.5s; }

[data-animate="card"] {
  opacity: 0;
  transform: scale(0.88) translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-lift);
}
[data-animate="card"].is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
[data-animate="card"][data-delay="1"] { transition-delay: 0.08s; }
[data-animate="card"][data-delay="2"] { transition-delay: 0.16s; }
[data-animate="card"][data-delay="3"] { transition-delay: 0.24s; }
[data-animate="card"][data-delay="4"] { transition-delay: 0.32s; }
[data-animate="card"][data-delay="5"] { transition-delay: 0.40s; }

/* Lottie player sizing */
lottie-player { display: block; }
.hero__visual lottie-player,
.families-hero__visual lottie-player {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-media);
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  font-family: var(--font-text);
  font-size: var(--text-body-md);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
}

/* ── Font Awesome Duotone — global icon defaults ─────────── */
.llp-icon {
  --fa-primary-color:    var(--federal-blue);
  --fa-secondary-color:  var(--federal-blue);
  --fa-secondary-opacity: 0.3;
}
.sample .llp-icon,
.site-footer .llp-icon {
  --fa-primary-color:    var(--porcelain-cream);
  --fa-secondary-color:  var(--porcelain-cream);
  --fa-secondary-opacity: 0.35;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--text-link);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-soft);
}
a:hover { color: var(--text-link-hover); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: var(--leading-snug);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  color: var(--text-strong);
}
h1 { font-size: var(--text-display-1); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-display-2); letter-spacing: var(--tracking-display); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-family: var(--font-ui); font-weight: var(--weight-semibold); }

p { margin-bottom: 1.25em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

*:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem; }
.container--narrow { max-width: var(--max-w-narrow); }
.container--mid    { max-width: var(--max-w-mid); }

.grid   { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-control);
  font-family: var(--font-ui);
  font-size: var(--text-body-md);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: var(--transition-control);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(var(--lift-y)); }
.btn:active { transform: scale(var(--press-scale)); }

.btn-primary {
  background: var(--federal-blue);
  color: var(--white);
  border-color: var(--federal-blue);
}
.btn-primary:hover {
  background: var(--federal-blue-700);
  border-color: var(--federal-blue-700);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--federal-blue);
  border-color: var(--federal-blue);
}
.btn-secondary:hover { background: var(--federal-blue); color: var(--white); }

.btn-cream {
  background: var(--cream-100);
  color: var(--granite);
  border-color: var(--cream-300);
}
.btn-cream:hover { background: var(--cream-300); color: var(--granite); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
}

.btn-lg { padding: 1.1rem 2.25rem; font-size: var(--text-body-lg); }
.btn-sm { padding: 0.55rem 1.25rem; font-size: var(--text-body-sm); }

/* ── Section ────────────────────────────────────────────────── */
.section     { padding-block: var(--space-xl); }
.section--sm { padding-block: var(--space-lg); }
.section--lg { padding-block: calc(var(--space-xl) * 1.25); }

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--federal-blue);
  margin-bottom: 0.75rem;
}

.section-header { margin-bottom: var(--space-lg); }
.section-header p { font-size: var(--text-body-lg); color: var(--text-muted); max-width: 600px; }
.section-header.text-center p { margin-inline: auto; }

/* ── Site Header — cream glass ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--cream-100) 85%, transparent);
  backdrop-filter: var(--blur-veil);
  -webkit-backdrop-filter: var(--blur-veil);
  border-bottom: 1px solid var(--cream-300);
  overflow: visible;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1.5rem;
}
.site-header__logo img,
.site-header__logo svg { height: 28px; width: auto; }
.site-header__logo { flex-shrink: 0; }

/* ── Nav ────────────────────────────────────────────────────── */
.site-nav ul { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.site-nav a:hover,
.site-nav a.current-menu-item {
  background: rgba(39,41,43,0.06);
  color: var(--text-strong);
}

/* Ghost button overrides for light header */
.site-header .btn-ghost {
  color: var(--federal-blue);
  border-color: rgba(45,96,114,0.35);
  background: transparent;
}
.site-header .btn-ghost:hover {
  background: rgba(45,96,114,0.07);
  color: var(--federal-blue);
  border-color: var(--federal-blue);
}

/* ── Mega Menu ── */
.mega-trigger { position: static; list-style: none; }
.mega-trigger__link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.mega-chevron {
  transition: transform var(--dur-base) var(--ease-soft);
  flex-shrink: 0;
  opacity: 0.7;
}
.mega-trigger.is-open .mega-chevron { transform: rotate(180deg); opacity: 1; }

.mega-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  background: #1e2022;
  border-top: 2px solid var(--federal-blue);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-popover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease-soft), visibility var(--dur-base);
  z-index: 200;
  pointer-events: none;
}
.mega-trigger.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-panel__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding-block: 1.75rem;
}
.mega-panel__intro {
  padding-right: 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
  justify-content: center;
}
.mega-panel__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--sky-blue);
  margin: 0;
}
.mega-panel__tagline {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--leading-relaxed);
  margin: 0;
}
.mega-panel__all {
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color var(--dur-fast) var(--ease-soft);
}
.mega-panel__all:hover { color: var(--white); }
.mega-panel__intro .btn-primary {
  background: var(--cream-100);
  color: var(--granite);
  border-color: var(--cream-100);
}
.mega-panel__intro .btn-primary:hover { background: var(--white); border-color: var(--white); }

.mega-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding-left: 0.5rem;
}
.mega-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  transition: background var(--dur-fast) var(--ease-soft);
  position: relative;
}
.mega-tile:nth-child(2n+1) { border-left: none; }
.mega-tile:nth-child(n+3)  { border-top: 1px solid rgba(255,255,255,0.06); }
.mega-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--federal-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-soft);
}
.mega-tile:hover { background: rgba(255,255,255,0.04); }
.mega-tile:hover::after { transform: scaleX(1); }
.mega-tile__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.1rem;
  --fa-primary-color: var(--sky-blue);
  --fa-secondary-color: var(--sky-blue);
  --fa-secondary-opacity: 0.35;
}
.mega-tile__body { display: flex; flex-direction: column; gap: 0.2rem; }
.mega-tile__name {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--white);
  line-height: var(--leading-snug);
}
.mega-tile__desc {
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.42);
  line-height: 1.45;
}

@media (max-width: 960px) {
  .mega-panel { position: fixed; top: auto; left: 0; right: 0; }
  .mega-panel__inner { grid-template-columns: 1fr; }
  .mega-panel__intro { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding-right: 0; padding-bottom: 1rem; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1rem; }
  .mega-panel__grid { padding-left: 0; margin-top: 1rem; }
  .mega-tile { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); padding: 0.875rem 0.75rem; }
  .mega-tile:nth-child(2n+1) { border-left: none; }
  .mega-tile:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.06); }
  .mega-tile::after { left: 0; right: 0; }
}

.site-header__cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.nav-close { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--granite);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-soft), opacity var(--dur-base) var(--ease-soft);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--grad-taupe-sky);
  color: var(--granite);
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(177,225,238,0.35) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-areas:
    "text   visual"
    "actions visual"
    "trust   visual";
  column-gap: var(--space-lg);
  row-gap: 0;
  align-items: start;
  position: relative; z-index: 1;
}
.hero__text    { grid-area: text; }
.hero__actions { grid-area: actions; }
.hero__trust   { grid-area: trust; }
.hero__visual  { grid-area: visual; grid-row: 1 / -1; display: flex; justify-content: center; align-items: center; align-self: center; }
.hero__label { color: var(--federal-blue); }
.hero h1 { font-size: clamp(28px, 3.2vw, 48px); color: var(--granite); margin-bottom: 1.25rem; }
.hero h1 em { display: block; font-style: italic; color: var(--federal-blue); }
.hero__sub {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: var(--leading-relaxed);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__trust {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(45,96,114,0.15);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-body-sm); color: var(--text-muted); }
.hero__trust-item svg { width: 16px; height: 16px; color: var(--federal-blue); }
.hero__visual img { width: 100%; max-width: 460px; border-radius: var(--radius-media); }

/* Ghost button on light hero/page-hero backgrounds */
.hero .btn-ghost,
.page-hero .btn-ghost,
.families-hero .btn-ghost { color: var(--federal-blue); border-color: rgba(45,96,114,0.4); }
.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover,
.families-hero .btn-ghost:hover { background: rgba(45,96,114,0.07); color: var(--federal-blue); border-color: var(--federal-blue); }

/* ── Trust Bar ──────────────────────────────────────────────── */
.trust-bar { background: var(--porcelain-cream); border-bottom: 1px solid var(--cream-300); padding-block: 1.25rem; }
.trust-bar__inner { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-bar__item { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-ui); font-size: var(--text-body-sm); font-weight: var(--weight-medium); color: var(--granite); }
.trust-bar__item svg { width: 18px; height: 18px; color: var(--federal-blue); }

/* ── How It Works ───────────────────────────────────────────── */
.how-it-works { background: var(--cream-100); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.step__number {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--federal-blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: var(--text-body-lg); font-weight: var(--weight-bold); flex-shrink: 0;
}
.step h4 { color: var(--granite); }
.step p  { font-size: var(--text-body-md); color: var(--text-muted); }

/* ── Sample Section ─────────────────────────────────────────── */
.sample { background: var(--grad-taupe-sky); color: var(--granite); position: relative; overflow: hidden; }
.sample__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; position: relative; z-index: 1; }
.sample__label { color: var(--federal-blue); }
.sample h2 { color: var(--granite); margin-bottom: 1rem; }
.sample p  { color: var(--text-muted); font-size: var(--text-body-lg); }
.sample__player {
  background: var(--federal-blue);
  border: none;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.sample__player-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.sample__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--porcelain-cream); overflow: hidden; flex-shrink: 0; }
.sample__player-meta h4 { color: var(--white); font-size: var(--text-body-lg); margin-bottom: 0.25rem; }
.sample__player-meta span { color: rgba(255,255,255,0.65); font-size: var(--text-body-sm); }
.audio-player { background: rgba(0,0,0,0.2); border-radius: var(--radius-field); padding: 1rem 1.25rem; }
.audio-player audio { width: 100%; accent-color: var(--sky-blue); }
.sample__cta { margin-top: 2rem; }

/* ── Deliverable ────────────────────────────────────────────── */
.deliverable { background: var(--cream-100); }
.deliverable__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: var(--space-md); }
.deliverable__card {
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base) var(--ease-soft);
}
.deliverable__card:hover { box-shadow: var(--shadow-card-hover); }
.deliverable__card svg { width: 40px; height: 40px; color: var(--federal-blue); margin: 0 auto 1rem; }
.deliverable__card h4 { margin-bottom: 0.5rem; }
.deliverable__card p { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0; }
@media (max-width: 700px) {
  .deliverable__cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .deliverable__card { padding: 1.25rem 1rem; }
  .deliverable__card svg { width: 28px; height: 28px; margin-bottom: 0.625rem; }
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials { background: var(--sky-blue); color: var(--granite); overflow: visible; position: relative; z-index: 2; padding-bottom: 140px; }
.testimonials .section-label { color: var(--federal-blue); }
.testimonials h2 { color: var(--granite); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: var(--space-md); position: relative; z-index: 3; }
.testimonials + .cloud-divider { margin-top: -200px; z-index: 1; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base) var(--ease-soft);
}
.testimonial:hover { box-shadow: var(--shadow-card-hover); }
.testimonial__stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; color: var(--federal-blue); }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-style: italic;
  color: var(--granite);
  margin-bottom: 1.5rem;
  line-height: var(--leading-relaxed);
}
.testimonial__author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial__author-img { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-300); overflow: hidden; flex-shrink: 0; }
.testimonial__author h5 { font-family: var(--font-ui); font-size: var(--text-body-sm); font-weight: var(--weight-semibold); color: var(--granite); margin-bottom: 0.125rem; }
.testimonial__author span { font-size: var(--text-caption); color: var(--text-muted); }
.testimonials--pending { display: none; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing { background: var(--cream-100); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: var(--space-md); }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease-soft);
}
.pricing-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(var(--lift-y)); }
.pricing-card--featured {
  background: var(--federal-blue);
  border-color: var(--federal-blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.pricing-card--featured::before { display: none; }
.pricing-card--featured h3,
.pricing-card--featured h4,
.pricing-card--featured .pricing-card__price,
.pricing-card--featured .pricing-card__price-note { color: var(--white); }
.pricing-card--featured .pricing-card__feature { color: rgba(255,255,255,0.85); }
.pricing-card--featured .pricing-card__feature svg,
.pricing-card--featured .pricing-card__feature .llp-icon {
  color: var(--porcelain-cream);
  --fa-primary-color:   var(--porcelain-cream);
  --fa-secondary-color: var(--porcelain-cream);
  --fa-secondary-opacity: 0.6;
}

.pricing-card__tag { font-family: var(--font-ui); font-size: var(--text-caption); font-weight: var(--weight-bold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--federal-blue); margin-bottom: 0.5rem; }
.pricing-card--featured .pricing-card__tag { color: var(--sky-blue); }

.pricing-card h3 { font-size: var(--text-h2); margin-bottom: 0.5rem; }
.pricing-card p  { font-size: var(--text-body-sm); color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-card--featured p { color: rgba(255,255,255,0.75); }

.pricing-card__price { font-family: var(--font-ui); font-size: 2.5rem; font-weight: 800; color: var(--granite); line-height: 1; margin-bottom: 0.25rem; }
.pricing-card__price-note { font-size: var(--text-body-sm); color: var(--text-muted); margin-bottom: 1.75rem; }

.pricing-card__features { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 2rem; flex: 1; }
.pricing-card__feature { display: flex; align-items: flex-start; gap: 0.625rem; font-size: var(--text-body-md); color: var(--text-muted); }
.pricing-card__feature svg { width: 18px; height: 18px; color: var(--federal-blue); flex-shrink: 0; margin-top: 2px; }

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-note { text-align: center; margin-top: var(--space-md); font-size: var(--text-body-sm); color: var(--text-muted); }
.pricing-note a { color: var(--federal-blue); font-weight: var(--weight-medium); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--porcelain-cream); }
.faq-list { max-width: var(--max-w-narrow); margin-inline: auto; margin-top: var(--space-md); }
.faq-item { border-bottom: 1px solid var(--cream-300); }
.faq-item:first-child { border-top: 1px solid var(--cream-300); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; cursor: pointer;
  font-family: var(--font-ui); font-weight: var(--weight-medium); font-size: var(--text-body-lg);
  color: var(--granite);
  background: none; border: none; width: 100%; text-align: left; gap: 1rem;
  transition: color var(--dur-fast) var(--ease-soft);
}
.faq-question:hover { color: var(--federal-blue); }

.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon span {
  position: absolute; background: var(--federal-blue); border-radius: 1px;
  transition: transform var(--dur-base) var(--ease-soft), opacity var(--dur-base) var(--ease-soft);
}
.faq-icon span:first-child { width: 18px; height: 2px; top: 8px; left: 0; }
.faq-icon span:last-child  { width: 2px; height: 18px; top: 0; left: 8px; transform-origin: center; }
.faq-item.open .faq-icon span:last-child { transform: rotate(90deg); opacity: 0; }

.faq-answer { height: 0; overflow: hidden; transition: height var(--dur-slow) var(--ease-in-out); }
.faq-answer__inner { padding-bottom: 1.25rem; font-size: var(--text-body-md); color: var(--text-muted); line-height: var(--leading-relaxed); }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--grad-taupe-sky);
  color: var(--granite);
  padding-block: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--granite); margin-bottom: 1rem; }
.cta-banner p  { color: var(--text-muted); font-size: var(--text-body-lg); max-width: 560px; margin-inline: auto; margin-bottom: 2rem; }
.cta-banner__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-banner .guarantee { margin-top: 1.5rem; font-size: var(--text-body-sm); color: var(--text-muted); }
.cta-banner .btn-primary { background: var(--federal-blue); color: var(--white); border-color: var(--federal-blue); }
.cta-banner .btn-primary:hover { background: var(--federal-blue-700); border-color: var(--federal-blue-700); color: var(--white); }
.cta-banner .btn-primary .llp-icon { color: var(--sky-blue); --fa-primary-color: var(--sky-blue); --fa-secondary-color: var(--sky-blue); }
.cta-banner .btn-ghost,
.cta-banner .btn-secondary { color: var(--federal-blue); border-color: var(--federal-blue); }
.cta-banner .btn-ghost:hover,
.cta-banner .btn-secondary:hover { background: rgba(45,96,114,0.07); color: var(--federal-blue); border-color: var(--federal-blue); }

/* ── Guarantee Strip ────────────────────────────────────────── */
.guarantee-strip { background: var(--porcelain-cream); padding-block: var(--space-md); border-top: 1px solid var(--cream-300); border-bottom: 1px solid var(--cream-300); }
.guarantee-strip__inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.guarantee-strip img { width: 80px; }
.guarantee-strip__text h4 { font-size: var(--text-body-lg); color: var(--granite); }
.guarantee-strip__text p  { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0; }

/* ── Site Footer — federal blue ─────────────────────────────── */
.site-footer { background: var(--federal-blue); color: rgba(255,255,255,0.65); padding-block: var(--space-lg); }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.footer-brand p { font-size: var(--text-body-sm); margin-top: 1rem; max-width: 280px; line-height: var(--leading-relaxed); color: rgba(255,255,255,0.6); }
.footer-nav h5 { font-family: var(--font-ui); font-size: var(--text-overline); font-weight: var(--weight-bold); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: var(--text-body-sm); color: rgba(255,255,255,0.55); transition: color var(--dur-fast) var(--ease-soft); }
.footer-nav a:hover { color: var(--sky-blue); }
.site-footer__bottom { padding-top: var(--space-md); border-top: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--text-caption); }
.site-footer__bottom a { color: rgba(255,255,255,0.45); transition: color var(--dur-fast) var(--ease-soft); }
.site-footer__bottom a:hover { color: var(--sky-blue); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero { background: var(--grad-taupe-sky); color: var(--granite); padding-block: var(--space-lg); text-align: center; position: relative; overflow: hidden; }
.page-hero .section-label { color: var(--federal-blue); }
.page-hero h1 { color: var(--granite); margin-bottom: 1rem; max-width: 900px; margin-inline: auto; }
.page-hero p  { color: var(--text-muted); max-width: 560px; margin-inline: auto; font-size: var(--text-body-lg); }
.page-hero--split { text-align: left; }
.page-hero--split h1,
.page-hero--split p { margin-inline: 0; max-width: none; }
.page-hero--split h1 em { font-style: italic; }
@media (max-width: 700px) {
  .page-hero--split .container { grid-template-columns: 1fr !important; }
  .page-hero--split .container > div:last-child { display: none; }
}

/* ── About Page ─────────────────────────────────────────────── */
/* Tint the taupe memory cloud → federal blue on About page */
.about-cloud lottie-player { filter: hue-rotate(160deg) saturate(1.1) brightness(0.88); }

.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.founder-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: start; }
.founder-photo { width: 120px; height: 120px; border-radius: var(--radius-md); overflow: hidden; background: var(--cream-300); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-info h3 { font-size: var(--text-h2); margin-bottom: 0.25rem; }
.founder-info .founder-role { font-size: var(--text-body-sm); color: var(--federal-blue); font-weight: var(--weight-medium); margin-bottom: 1rem; }
.founder-info p { font-size: var(--text-body-md); color: var(--text-muted); }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: var(--space-md); }
.value-card {
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--porcelain-cream);
  border: 1px solid var(--cream-300);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.value-card__icon { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.value-card__icon .llp-icon { font-size: 40px !important; }
.value-card h4 { margin-bottom: 0.5rem; }
.value-card p  { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0; }

/* ── Partner Apply Page ─────────────────────────────────────── */
.apply-org-links {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0;
}
.apply-org-links a {
  color: var(--federal-blue);
  text-decoration: none;
  font-style: italic;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-soft);
}
.apply-org-links a:hover { color: var(--oxblood-velvet); }
.apply-org-links__sep { color: var(--silverware); margin: 0 0.875rem; font-style: normal; user-select: none; }

/* ── Contact Page ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-lg); align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--text-muted); font-size: var(--text-body-md); }
.contact-info .contact-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-point { display: flex; gap: 1rem; align-items: flex-start; }
.contact-point svg { width: 22px; height: 22px; color: var(--federal-blue); margin-top: 2px; flex-shrink: 0; }
.contact-point h5 { font-size: var(--text-body-sm); font-weight: var(--weight-semibold); margin-bottom: 0.25rem; }
.contact-point p  { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0; }
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-card);
  padding: 2rem 1rem;
  box-shadow: var(--shadow-card);
}
.contact-form-wrap h3 { margin-bottom: 1.5rem; }

/* ── Facilities Page ────────────────────────────────────────── */
.facilities-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: var(--space-md); }
.benefit-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base) var(--ease-soft);
}
.benefit-card:hover { box-shadow: var(--shadow-card-hover); }
.benefit-card__icon { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.benefit-card__icon .llp-icon { font-size: 40px !important; }
.benefit-card h4 { margin-bottom: 0.5rem; }
.benefit-card p  { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0; }

/* ── Timeline ───────────────────────────────────────────────── */
.process-timeline { max-width: var(--max-w-narrow); margin-inline: auto; display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--cream-300); }
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--federal-blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: var(--text-body-lg); font-weight: var(--weight-bold);
  flex-shrink: 0; position: relative; z-index: 1;
}
.timeline-content h4 { margin-bottom: 0.5rem; padding-top: 0.875rem; }
.timeline-content p  { font-size: var(--text-body-md); color: var(--text-muted); }

/* ── Families Page ──────────────────────────────────────────── */
.families-hero { background: var(--grad-taupe-sky); padding-block: var(--space-xl); color: var(--granite); position: relative; overflow: hidden; }
.families-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-lg); align-items: center; position: relative; z-index: 1; }
.families-hero .section-label { color: var(--federal-blue); }
.families-hero h1 { color: var(--granite); margin-bottom: 1.25rem; }
.families-hero h1 em { display: block; font-style: italic; color: var(--federal-blue); }
.families-hero p { color: var(--text-muted); font-size: var(--text-body-lg); margin-bottom: 2rem; line-height: var(--leading-relaxed); }
.families-hero__image { border-radius: var(--radius-media); overflow: hidden; }
.families-hero__image img { width: 100%; height: 400px; object-fit: cover; }

.problem-section { background: var(--cream-100); }
.problem-section p.lead { font-size: var(--text-body-lg); color: var(--text-muted); max-width: 640px; }
.pain-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.pain-point {
  background: var(--white);
  border-left: 4px solid var(--oxblood-velvet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  font-size: var(--text-body-md);
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}
.pain-point strong { color: var(--granite); display: block; margin-bottom: 0.25rem; }

/* ── Objections ─────────────────────────────────────────────── */
.objections { background: var(--porcelain-cream); }
.objection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.objection {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--cream-300);
  box-shadow: var(--shadow-card);
}
.objection__icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.objection__icon--q { background: var(--oxblood-100); color: var(--oxblood-velvet); font-weight: var(--weight-bold); font-size: var(--text-body-lg); }
.objection__icon--a { background: var(--federal-blue-100); color: var(--federal-blue); font-weight: var(--weight-bold); font-size: var(--text-body-lg); }
.objection h5 { font-size: var(--text-body-md); color: var(--granite); margin-bottom: 0.375rem; }
.objection p  { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0; }

/* ── Comparison Table ───────────────────────────────────────── */
.comparison { background: var(--cream-100); }
.comparison-table { width: 100%; border-collapse: collapse; margin-top: var(--space-md); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.comparison-table th { background: var(--federal-blue); color: var(--white); padding: 1rem 1.25rem; text-align: left; font-family: var(--font-ui); font-size: var(--text-body-sm); font-weight: var(--weight-semibold); }
.comparison-table th:first-child { width: 40%; }
.comparison-table td { padding: 0.875rem 1.25rem; font-size: var(--text-body-sm); border-bottom: 1px solid var(--cream-300); color: var(--text-muted); background: var(--white); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td.check   { color: var(--federal-blue); font-weight: var(--weight-semibold); }
.comparison-table td.cross   { color: var(--oxblood-velvet); }
.comparison-table td.feature { font-weight: var(--weight-medium); color: var(--granite); }

/* ── Headphones icon alias ──────────────────────────────────── */
.icon-headphones { display: inline-block; }

/* ── Facility Callout ───────────────────────────────────────── */
.facility-callout { background: var(--porcelain-cream); border-top: 1px solid var(--cream-300); border-bottom: 1px solid var(--cream-300); padding-block: var(--space-md); }
.facility-callout__inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.facility-callout__icon { color: var(--federal-blue); flex-shrink: 0; }
.facility-callout__text { flex: 1; min-width: 240px; }
.facility-callout__text h3 { font-size: var(--text-h3); margin-bottom: 0.4rem; }
.facility-callout__text p  { font-size: var(--text-body-md); color: var(--text-muted); margin: 0; }
.facility-callout__cta { flex-shrink: 0; }

/* ── Product Section ────────────────────────────────────────── */
.product-section { display: grid; grid-template-columns: 1fr auto; gap: var(--space-lg); align-items: start; }
.product-section--reverse { direction: rtl; }
.product-section--reverse > * { direction: ltr; }
.product-section__lead { font-size: var(--text-body-lg); color: var(--granite); margin-bottom: 1rem; font-weight: var(--weight-medium); }
.product-section__meta { display: flex; flex-direction: column; gap: 0.625rem; margin: 1.25rem 0 1.5rem; }
.product-detail { display: flex; align-items: center; gap: 0.625rem; font-size: var(--text-body-md); color: var(--text-muted); }
.product-detail svg { color: var(--federal-blue); flex-shrink: 0; width: 18px; height: 18px; }
.product-section__price { margin-bottom: 1.25rem; }
.product-price { font-family: var(--font-ui); font-size: 2.25rem; font-weight: 800; color: var(--granite); line-height: 1; }
.product-price-note { display: block; font-size: var(--text-body-sm); color: var(--text-muted); margin-top: 0.25rem; }
.product-section__icon { display: flex; align-items: flex-start; justify-content: center; padding-top: 0.5rem; opacity: 0.12; color: var(--federal-blue); }
.product-section__icon svg { width: 96px; height: 96px; }

/* ── QR Keepsake Visual ─────────────────────────────────────── */
#qr-keepsake .product-section { align-items: center; }
.qr-keepsake-visual { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.qr-keepsake-visual svg { border-radius: var(--radius-md); box-shadow: var(--shadow-md); display: block; }
@keyframes qr-dot-in {
  from { opacity: 0; transform: scale(0.15); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Product Mockup Image ───────────────────────────────────── */
.product-section__mockup { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-section__mockup img { max-width: 340px; width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); display: block; }

/* ── Audio Archive Visual ───────────────────────────────────── */
#raw-audio-feed .product-section { align-items: center; }
.audio-archive-visual { position: relative; width: 300px; height: 310px; flex-shrink: 0; }

.aav__pill {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-pill);
  padding: 11px 14px 11px 16px;
  box-shadow: var(--shadow-sm);
}
.aav__pill--1 { top: 0;     animation: aav-enter 0.45s var(--ease-out) 0s    both, aav-float 5.2s ease-in-out 0.45s infinite; }
.aav__pill--2 { top: 72px;  animation: aav-enter 0.45s var(--ease-out) 0.3s  both, aav-float 6.4s ease-in-out 0.75s infinite; }
.aav__pill--3 { top: 144px; animation: aav-enter 0.45s var(--ease-out) 0.6s  both, aav-float 4.8s ease-in-out 1.05s infinite; }

.aav__pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sky-blue); flex-shrink: 0; }
.aav__pill--2 .aav__pill-dot { background: var(--cream-300); }
.aav__pill--3 .aav__pill-dot { background: var(--federal-blue); opacity: 0.4; }

.aav__pill-label { flex: 1; font-family: var(--font-ui); font-size: var(--text-caption); color: var(--granite); letter-spacing: 0.01em; }
.aav__pill-play { width: 28px; height: 28px; border-radius: 50%; background: var(--federal-blue); flex-shrink: 0; position: relative; }
.aav__pill-play::after {
  content: '';
  position: absolute;
  top: 50%; left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent var(--white);
}

.aav__waveform {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 68px;
  padding: 0 8px;
  animation: aav-enter 0.45s var(--ease-out) 0.9s both;
}
.aav__bar {
  display: block;
  flex: 1;
  background: var(--federal-blue);
  border-radius: 3px 3px 0 0;
  opacity: 0.2;
  transform-origin: bottom;
  animation: aav-eq 1.9s ease-in-out infinite;
}
.aav__bar:nth-child(1) { height: 28%; animation-delay: 0s;    animation-duration: 1.6s; }
.aav__bar:nth-child(2) { height: 65%; animation-delay: 0.18s; animation-duration: 2.1s; }
.aav__bar:nth-child(3) { height: 42%; animation-delay: 0.36s; animation-duration: 1.8s; }
.aav__bar:nth-child(4) { height: 88%; animation-delay: 0.54s; animation-duration: 1.5s; }
.aav__bar:nth-child(5) { height: 55%; animation-delay: 0.72s; animation-duration: 2.3s; }
.aav__bar:nth-child(6) { height: 72%; animation-delay: 0.9s;  animation-duration: 1.7s; }
.aav__bar:nth-child(7) { height: 38%; animation-delay: 1.08s; animation-duration: 2.0s; }
.aav__bar:nth-child(8) { height: 20%; animation-delay: 1.26s; animation-duration: 1.9s; }

.aav__orb { position: absolute; border-radius: 50%; }
.aav__orb--1 { width: 18px; height: 18px; background: var(--sky-blue); top: 8px;   right: -8px;  animation: aav-enter 0.45s var(--ease-out) 1.1s both, aav-pulse 3.8s ease-in-out 1.55s infinite; }
.aav__orb--2 { width: 10px; height: 10px; background: var(--mossy-green); top: 180px; right: -14px; animation: aav-enter 0.45s var(--ease-out) 1.35s both, aav-pulse 5.2s ease-in-out 1.8s  infinite; }
.aav__orb--3 { width: 24px; height: 24px; background: var(--cream-300); bottom: 74px; left: -12px; animation: aav-enter 0.45s var(--ease-out) 1.6s both, aav-pulse 4.5s ease-in-out 2.05s infinite; }

.aav__ring {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--sky-blue);
  bottom: 70px; right: -16px;
  animation: aav-enter 0.45s var(--ease-out) 1.8s both, aav-ring 7s ease-in-out 2.25s infinite;
}

@keyframes aav-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aav-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}
@keyframes aav-eq {
  0%, 100% { transform: scaleY(1);   opacity: 0.20; }
  50%       { transform: scaleY(1.7); opacity: 0.40; }
}
@keyframes aav-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%       { transform: scale(1.35); opacity: 1; }
}
@keyframes aav-ring {
  0%, 100% { transform: scale(1) rotate(0deg);   opacity: 0.35; }
  50%       { transform: scale(1.2) rotate(25deg); opacity: 0.65; }
}

/* ── Product Pricing Table ──────────────────────────────────── */
.product-pricing-table { border: 1px solid var(--cream-300); border-radius: var(--radius-card); overflow: hidden; margin-top: var(--space-md); box-shadow: var(--shadow-card); }
.product-pricing-row { display: grid; grid-template-columns: 1.5fr 2fr 1fr auto; gap: 1rem; padding: 1rem 1.25rem; align-items: center; border-bottom: 1px solid var(--cream-300); background: var(--white); }
.product-pricing-row:last-child { border-bottom: none; }
.product-pricing-row--header { background: var(--granite); color: var(--white); font-family: var(--font-ui); font-size: var(--text-caption); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; border-bottom-color: rgba(255,255,255,0.1); }
.product-pricing-row__name { display: flex; align-items: center; gap: 0.5rem; font-weight: var(--weight-medium); color: var(--granite); font-size: var(--text-body-md); }
.product-pricing-row__name svg { color: var(--federal-blue); flex-shrink: 0; }
.product-pricing-row__desc { font-size: var(--text-body-sm); color: var(--text-muted); }
.product-pricing-row__price { font-family: var(--font-ui); font-weight: 800; font-size: var(--text-body-lg); color: var(--granite); }

/* ── Signup Page ────────────────────────────────────────────── */
.signup-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-lg); align-items: start; }
.signup-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 90px; }
.signup-sidebar__card {
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.signup-sidebar__card h3 { font-size: var(--text-h3); margin-bottom: 1.25rem; }
.signup-sidebar__features { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.5rem; }
.signup-sidebar__features li { display: flex; align-items: center; gap: 0.625rem; font-size: var(--text-body-sm); color: var(--text-muted); }
.signup-sidebar__features li svg { color: var(--federal-blue); flex-shrink: 0; }
.signup-sidebar__price { border-top: 1px solid var(--cream-300); padding-top: 1rem; }
.signup-sidebar__price-value { font-family: var(--font-ui); font-size: 2.25rem; font-weight: 800; color: var(--granite); line-height: 1; }
.signup-sidebar__price-note { display: block; font-size: var(--text-body-sm); color: var(--text-muted); margin-top: 0.25rem; }
.signup-sidebar__guarantee { background: var(--federal-blue); color: var(--white); border-radius: var(--radius-sm); padding: 1.125rem 1.25rem; display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--text-body-sm); }
.signup-sidebar__guarantee svg { flex-shrink: 0; margin-top: 1px; }
.signup-sidebar__guarantee strong { display: block; margin-bottom: 0.25rem; }
.signup-sidebar__guarantee .llp-icon {
  color: var(--white);
  --fa-primary-color:   var(--white);
  --fa-secondary-color: var(--white);
  --fa-secondary-opacity: 0.4;
}
.signup-sidebar__privacy { display: flex; gap: 0.625rem; align-items: flex-start; font-size: var(--text-caption); color: var(--text-muted); }
.signup-sidebar__privacy svg { flex-shrink: 0; color: var(--federal-blue); margin-top: 1px; }
.signup-sidebar__privacy p { margin: 0; }
.signup-sidebar__help { text-align: center; }
.signup-sidebar__help p { font-size: var(--text-body-sm); color: var(--text-muted); margin-bottom: 0; }

/* ── Cadence Picker ─────────────────────────────────────────── */
.cadence-picker { margin-bottom: 2.75rem; }
.cadence-picker__header { text-align: center; margin-bottom: 2rem; }
.cadence-picker__header .section-label { margin-bottom: 0.5rem; }
.cadence-picker__header h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.5rem; }
.cadence-picker__header p { color: var(--text-muted); font-size: var(--text-body-sm); max-width: 480px; margin-inline: auto; margin-bottom: 0; }
.cadence-picker__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.cadence-option {
  background: var(--white);
  border: 2px solid var(--cream-300);
  border-radius: var(--radius-card);
  padding: 1.625rem 1.375rem 1.5rem;
  cursor: pointer;
  text-align: left;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease, background 0.22s ease;
}
.cadence-option:hover:not(.cadence-option--active) {
  border-color: rgba(45,96,114,0.45);
  box-shadow: 0 6px 22px rgba(45,96,114,0.12);
  transform: translateY(-2px);
}
.cadence-option--active {
  border-color: transparent;
  background: var(--federal-blue);
  box-shadow: 0 12px 40px rgba(45,96,114,0.38), 0 2px 8px rgba(45,96,114,0.2);
  transform: translateY(-4px) scale(1.015);
}

.cadence-option__badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 1.125rem;
  border: 1px solid rgba(255,255,255,0.3);
}
.cadence-option:not(.cadence-option--active) .cadence-option__badge {
  background: var(--teal);
  border-color: transparent;
}
.cadence-option__check {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--cream-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.cadence-option--active .cadence-option__check {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}
.cadence-option__check-inner {
  display: none;
  width: 5px;
  height: 8px;
  border: 2px solid var(--federal-blue);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.cadence-option--active .cadence-option__check-inner { display: block; }
.cadence-option__content { display: block; }
.cadence-option__freq {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--granite);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  transition: color 0.22s;
}
.cadence-option--active .cadence-option__freq { color: var(--white); }
.cadence-option__sessions {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
  transition: color 0.22s;
}
.cadence-option--active .cadence-option__sessions { color: rgba(255,255,255,0.72); }
.cadence-option__price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--federal-blue);
  border-top: 1px solid var(--cream-300);
  padding-top: 0.75rem;
  margin-top: 1.125rem;
  transition: color 0.22s, border-color 0.22s;
}
.cadence-option--active .cadence-option__price {
  color: rgba(255,255,255,0.9);
  border-top-color: rgba(255,255,255,0.2);
}

/* ── Cadence form reveal animation ──────────────────────────── */
@keyframes cadence-reveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cadence-form.is-entering {
  animation: cadence-reveal 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@media (max-width: 660px) {
  .cadence-picker__header h2 { font-size: 1.35rem; }
  .cadence-picker__header p  { font-size: 0.82rem; }
  .cadence-picker { margin-bottom: 2rem; }
  .cadence-picker__header { margin-bottom: 1.5rem; }
}

/* ── Mobile: compact single-column rows ─────────────────────── */
@media (max-width: 580px) {
  .cadence-picker__options { grid-template-columns: 1fr; gap: 0.5rem; }
  .cadence-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
  }
  /* No scale on compact rows — just the bg + shadow reads as selected */
  .cadence-option--active { transform: none !important; box-shadow: 0 6px 24px rgba(45,96,114,0.3) !important; }
  .cadence-option:hover:not(.cadence-option--active) { transform: none; }
  /* Reset 3rd-card rule from old 2-col layout */
  .cadence-option:last-child { grid-column: auto; max-width: none; margin-inline: 0; }
  /* Check: pull out of absolute flow, becomes leftmost flex item */
  .cadence-option__check { position: static; flex-shrink: 0; width: 20px; height: 20px; }
  .cadence-option__check-inner { width: 4px; height: 7px; }
  /* Content: grows to fill */
  .cadence-option__content { flex: 1; min-width: 0; }
  .cadence-option__badge { display: inline-block; font-size: 0.55rem; padding: 0.15rem 0.45rem; margin-bottom: 0.2rem; }
  .cadence-option__freq { font-size: 0.92rem; margin-bottom: 0.1rem; }
  .cadence-option__sessions { font-size: 0.76rem; }
  /* Price: right-aligned, no divider on mobile */
  .cadence-option__price { border-top: none; padding-top: 0; margin-top: 0; font-size: 0.8rem; flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 400px) {
  .cadence-option { padding: 0.75rem 0.875rem; gap: 0.75rem; }
  .cadence-option__freq { font-size: 0.88rem; }
}

.ghl-form-placeholder {
  border: 2px dashed var(--cream-300);
  border-radius: var(--radius-card);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: var(--cream-100);
}
.ghl-form-placeholder__inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.ghl-form-placeholder svg { color: var(--federal-blue); opacity: 0.4; }
.ghl-form-placeholder h3 { color: var(--granite); }
.ghl-form-placeholder p { color: var(--text-muted); font-size: var(--text-body-sm); max-width: 360px; margin: 0 auto; }

.signup-referral-notice {
  background: var(--sky-blue-100);
  border: 1px solid var(--federal-blue-100);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: var(--text-body-sm);
  color: var(--federal-blue);
}
.signup-referral-notice svg { flex-shrink: 0; margin-top: 1px; }
.signup-referral-notice p { margin: 0; color: var(--granite); }

/* ── Paper texture backgrounds ──────────────────────────────── */
.bg-paper {
  background-color: var(--porcelain-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
.bg-paper-light {
  background-color: var(--cream-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ── Timeline on dark backgrounds ──────────────────────────── */
.on-dark .timeline-content h4 { color: var(--white); }
.on-dark .timeline-content p  { color: rgba(255,255,255,0.65); }
.on-dark .timeline-item::before { background: rgba(255,255,255,0.15); }

/* ── Brand Symbol Accents ───────────────────────────────────── */
.sym-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sym {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.sym-floating       { animation: sym-drift var(--sym-dur, 9s) ease-in-out infinite; }
.sym-floating-slow  { animation: sym-drift calc(var(--sym-dur, 9s) * 1.3) ease-in-out infinite; }
@keyframes sym-drift {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-15px); }
  75%       { transform: translateY(8px); }
}

/* ── Benefit strip ──────────────────────────────────────────── */
.benefit-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem 4rem;
  margin-top: var(--space-md);
}
.benefit-strip-item { padding-top: 1.25rem; border-top: 2px solid var(--sky-blue); }
.benefit-strip-item__icon { color: var(--federal-blue); margin-bottom: 0.875rem; }
.benefit-strip-item__icon svg { width: 28px; height: 28px; }
.benefit-strip-item h4 { margin-bottom: 0.5rem; font-size: var(--text-body-lg); }
.benefit-strip-item p  { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0; }

/* ── Segment tile grid ──────────────────────────────────────── */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: var(--space-md);
  box-shadow: var(--shadow-card);
}
.segment-tile {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--cream-300);
  border-bottom: 1px solid var(--cream-300);
  background: var(--white);
  text-decoration: none;
  display: block;
  transition: background var(--dur-fast) var(--ease-soft);
}
.segment-tile:nth-child(3n) { border-right: none; }
.segment-tile:nth-child(n+4) { border-bottom: none; }
.segment-tile:hover { background: var(--cream-100); }
.segment-tile--dark {
  background: var(--grad-sky-federal);
  border-color: transparent;
}
.segment-tile--dark:hover { background: linear-gradient(135deg, #9fd4e5 0%, var(--federal-blue-700) 100%); }
.segment-tile__emoji { font-size: 2.25rem; margin-bottom: 1rem; display: block; }
.segment-tile h4 { font-size: var(--text-body-lg); color: var(--granite); margin-bottom: 0.4rem; }
.segment-tile--dark h4 { color: var(--white); }
.segment-tile p { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0 0 0.875rem; line-height: var(--leading-relaxed); }
.segment-tile--dark p { color: rgba(255,255,255,0.6); }
.segment-tile__arrow { font-size: var(--text-body-sm); font-weight: var(--weight-semibold); color: var(--federal-blue); }
.segment-tile--dark .segment-tile__arrow { color: var(--sky-blue); }
@media (max-width: 760px) {
  .segment-grid { grid-template-columns: 1fr 1fr; }
  .segment-tile:nth-child(3n) { border-right: 1px solid var(--cream-300); }
  .segment-tile:nth-child(2n) { border-right: none; }
  .segment-tile:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 500px) {
  .segment-grid { grid-template-columns: 1fr; }
  .segment-tile { border-right: none !important; }
  .segment-tile:last-child { border-bottom: none; }
}

/* ── Testimonials: section renders only when PHP finds approved reviews ── */

/* ── Legal Document (Terms / Privacy) ────────────────────── */
.legal-doc { font-size: var(--text-body-md); color: var(--text-body); line-height: var(--leading-relaxed); }
.legal-doc > p:first-child { font-size: var(--text-body-lg); color: var(--olive); margin-bottom: 2.5rem; }
.legal-doc h2 { font-family: var(--font-display); font-size: var(--text-h2); color: var(--charcoal); margin-top: 2.75rem; margin-bottom: 0.875rem; padding-top: 2rem; border-top: 1px solid var(--cream-300); }
.legal-doc h2:first-of-type { margin-top: 2rem; }
.legal-doc h3 { font-size: var(--text-h4); font-weight: var(--weight-semibold); color: var(--charcoal); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-doc p { margin-bottom: 1rem; }
.legal-doc ul { padding-left: 1.25rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-doc ul li { color: var(--text-body); }
.legal-doc a { color: var(--federal-blue); text-decoration: underline; }
.legal-doc a:hover { color: var(--oxblood-velvet); }

/* ── Facility Testimonial Strip ─────────────────────────────── */
.facility-testimonial-strip { background: var(--federal-blue); padding-block: var(--space-md); }
.facility-testimonial { text-align: center; max-width: 680px; margin-inline: auto; }
.facility-testimonial .testimonial__stars { justify-content: center; margin-bottom: 1rem; color: var(--sky-blue); }
.facility-testimonial blockquote { font-family: var(--font-display); font-size: var(--text-h3); font-style: italic; color: var(--white); line-height: var(--leading-relaxed); margin-bottom: 1rem; }
.facility-testimonial cite { font-size: var(--text-body-sm); color: rgba(255,255,255,0.65); font-style: normal; }

/* ── Cloud Section Dividers ─────────────────────────────────── */
.cloud-divider {
  display: block;
  line-height: 0;
  font-size: 0;
  margin-top: -1px;
  margin-bottom: -1px;
  position: relative;
}
.cloud-divider svg { display: block; width: 100%; height: 220px; }
.cloud-divider--natural svg { height: auto; }
.cloud-divider--rise { position: relative; z-index: 1; margin-top: -220px; }
.has-cloud-below { padding-bottom: calc(var(--space-xl) * 0.5) !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sample__inner,
  .families-hero__inner,
  .contact-grid,
  .founder-grid { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { width: 100px; height: 100px; margin: 0 auto; }
  .founder-info .founder-role { margin-bottom: 0.75rem; }
  .founder-info p { text-align: left; }
  .hero__inner { display: flex; flex-direction: column; }
  .hero__visual lottie-player { height: 280px; width: auto; max-width: 100%; }
  .hero__actions { margin-top: 1.5rem; }
  .families-hero__image { display: none; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }

  .product-section,
  .product-section--reverse { grid-template-columns: 1fr; direction: ltr; }
  .product-section__icon { display: none; }
  .audio-archive-visual { display: none; }
  .qr-keepsake-visual { display: none; }
  .product-section__mockup { display: none; }
  .signup-layout { grid-template-columns: 1fr; }
  .signup-sidebar { position: static; order: 2; }
  .signup-form-col { order: 1; }
  .signup-sidebar__card { padding: 1.25rem; }
  .signup-sidebar__features { gap: 0.5rem; margin-bottom: 1.25rem; }
  .signup-form-heading-mobile { display: none; }
  .product-pricing-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .product-pricing-row--header { display: none; }
  .product-pricing-row__name { grid-column: 1 / -1; }
  .facility-callout__inner { flex-direction: column; align-items: flex-start; }
  .facilities-benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  /* Signup page — tighten form wrap and hide redundant heading */
  .contact-form-wrap { padding: 0 !important; }
  .signup-form-col-heading { display: none; }
  :root { --space-xl: 64px; --space-lg: 40px; }

  .site-header__cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; z-index: 400; }

  /* ── Flyout nav — federal blue ──────────── */
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 94vw);
    height: 100dvh;
    background: var(--federal-blue);
    box-shadow: -8px 0 48px rgba(0,0,0,0.28);
    z-index: 350;
    overflow-y: auto;
    padding: 72px 1.125rem 2.5rem;
    transform: translateX(110%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.32s;
    visibility: hidden;
    display: block;
  }
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .site-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; }
  .site-nav > ul > li:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
  .site-nav a {
    color: rgba(255,255,255,0.9);
    font-family: var(--font-ui);
    font-size: var(--text-body-md);
    font-weight: var(--weight-regular);
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    justify-content: flex-start;
    width: 100%;
  }
  .site-nav a:hover { color: var(--sky-blue); }

  /* Close button */
  .nav-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1.1rem; line-height: 1;
  }
  .nav-close:hover { background: rgba(255,255,255,0.22); }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(39,41,43,0.5);
    z-index: 340;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
    backdrop-filter: blur(2px);
  }
  .nav-overlay.is-active { opacity: 1; pointer-events: auto; }

  /* Hamburger → X animation */
  .nav-toggle span { transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Partners subnav — animated expand within flyout */
  .mega-panel {
    position: static;
    background: none;
    box-shadow: none;
    display: block;
    visibility: visible;
    transform: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  }
  .mega-trigger.is-open .mega-panel { max-height: 700px; opacity: 1; pointer-events: auto; }
  .mega-trigger.is-open .mega-chevron { transform: rotate(180deg); }
  .mega-panel__inner { display: block; padding: 0; }
  .mega-panel__intro { display: none; }
  .mega-panel__grid { grid-template-columns: 1fr; padding: 0.25rem 0 0.5rem; gap: 0; }
  .mega-tile { border: none !important; border-top: 1px solid rgba(255,255,255,0.08) !important; border-radius: 0 !important; padding: 0.55rem 0.25rem; background: transparent; gap: 0.625rem; }
  .mega-tile:first-child { border-top: none !important; }
  .mega-tile__name { color: rgba(255,255,255,0.82); font-size: 0.8125rem; font-weight: 400; line-height: 1.2; }
  .mega-tile__desc { display: none; }
  .mega-tile__icon { --fa-primary-color: var(--sky-blue); --fa-secondary-color: var(--sky-blue); color: var(--sky-blue); font-size: 1rem !important; width: 20px; text-align: center; flex-shrink: 0; }
  .mega-tile::after { display: none; }
  .mega-chevron { transition: transform 0.25s ease; display: inline-block; color: rgba(255,255,255,0.6); }

  /* Hero lottie — 40% smaller on mobile */
  .hero__visual lottie-player { max-width: 276px; margin-inline: auto; }

  .hero__actions,
  .cta-banner__actions { flex-direction: column; align-items: flex-start; }
  .cta-banner__actions { align-items: center; }

  .hero__trust { display: none; }
  .trust-bar__inner { gap: 1rem; justify-content: flex-start; }
  .timeline-item { grid-template-columns: 40px 1fr; gap: 0.75rem; align-items: start; }
  .timeline-item::before { left: 19px; top: 40px; }
  .timeline-dot { width: 40px; height: 40px; font-size: var(--text-body-md); }
  .timeline-content h4 { padding-top: 0.5rem; }
  .deliverable__cards { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .deliverable__card { flex-direction: column; align-items: center; text-align: center; padding: 1rem 0.75rem; gap: 0.5rem; }
  .deliverable__card .llp-icon { font-size: 26px !important; margin: 0 auto 0.25rem; }
  .deliverable__card svg { width: 26px; height: 26px; margin: 0 auto 0.25rem; }
  .deliverable__card h4 { font-size: 0.8rem; margin-bottom: 0; line-height: 1.3; }
  .deliverable__card p { display: none; }
  .objection-grid { grid-template-columns: 1fr; }
  .facilities-benefits { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; text-align: center; }

  .storytime-spotlight__body { flex-direction: column; }
  .storytime-stat-card { max-width: 100%; }

  /* ── Spotlight list: stack description below bold label on mobile ── */
  .storytime-spotlight__list li { flex-wrap: wrap; }
  .storytime-spotlight__list li > span { flex: 1; }
  .st-list-desc { display: block; color: var(--text-muted); font-size: var(--text-body-sm); margin-top: 0.125rem; }

  /* ── Facilities hero: hide decorative image on mobile ── */
  .facilities-hero-img { display: none; }

  /* ── Partners apply: single-column stacked layout on mobile ── */
  .partners-apply-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
  .partners-apply-sidebar { position: static; }
}

/* ── Facilities hero grid ──────────────────────────────── */
.facilities-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
.facilities-hero-img { flex-shrink: 0; width: 260px; max-width: 100%; }

/* ── Partners apply layout ──────────────────────────────── */
.partners-apply-layout { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.partners-apply-sidebar { position: sticky; top: 100px; }

/* ── Spotlight list: description line (always inherits, overridden at mobile) ── */
.st-list-desc { display: inline; }

/* ── Story Time Spotlight ──────────────────────────────── */
.storytime-spotlight__inner { }

.storytime-spotlight__badge {
  display: inline-block;
  background: var(--federal-blue);
  color: var(--white);
  font-size: var(--text-body-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 1.75rem;
}

.storytime-spotlight__body {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}

.storytime-spotlight__text { flex: 1; }

.storytime-spotlight__text h2 { margin-top: 0.5rem; }

.storytime-spotlight__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.storytime-spotlight__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

.storytime-spotlight__list li svg {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--teal);
}

.storytime-spotlight__visual {
  flex-shrink: 0;
  width: 240px;
}

.storytime-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.storytime-stat-card__price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--federal-blue);
  line-height: 1;
}

.storytime-stat-card__label {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.storytime-stat-card__detail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.storytime-stat-card__detail span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.storytime-stat-card__detail svg { color: var(--teal); flex-shrink: 0; }

/* ── Story Time Page ──────────────────────────────────── */
.storytime-hero-price-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.storytime-hero-price-card .storytime-stat-card__price { font-size: 3rem; }

.storytime-captures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.storytime-capture-item { }

.storytime-capture-item__icon {
  color: var(--federal-blue);
  margin-bottom: 0.75rem;
}

.storytime-capture-item__icon svg { width: 24px; height: 24px; }

.storytime-capture-item h4 {
  font-size: var(--text-body-lg);
  margin-bottom: 0.4rem;
}

.storytime-capture-item p {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: var(--leading-relaxed);
}

.storytime-pricing-card {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2.5rem;
}

.storytime-pricing-card__price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--federal-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.storytime-pricing-card__price span {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-muted);
}

.storytime-calendar-wrap {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.storytime-guarantee {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.storytime-guarantee__icon {
  flex-shrink: 0;
  color: var(--teal);
}

.storytime-guarantee__icon svg { width: 40px; height: 40px; }

.storytime-guarantee h3 { margin: 0 0 0.5rem; }

.storytime-guarantee p { margin: 0; color: var(--text-muted); }

@media (max-width: 900px) {
  .storytime-captures-grid { grid-template-columns: repeat(2, 1fr); }
  .storytime-pricing-card { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 700px) {
  .storytime-hero-price-card { display: none; }
  .storytime-captures-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* ── Story Time — timeline numbered dots ────────────────────── */
.template-partners-assisted-living-story-time .page-hero .btn-primary .llp-icon {
  color: var(--sky-blue);
  --fa-primary-color: var(--sky-blue);
  --fa-secondary-color: var(--sky-blue);
}

/* ── Story Time — animated icon tuning ─────────────────────── */
.storytime-capture-item__icon .fa-beat {
  --fa-beat-scale: 1.18;
  --fa-animation-duration: 1.6s;
}
.storytime-capture-item__icon .fa-beat-fade {
  --fa-animation-duration: 2.4s;
}
.storytime-capture-item__icon .fa-bounce {
  --fa-animation-duration: 2s;
  --fa-bounce-height: -6px;
}
.storytime-capture-item__icon .fa-flip {
  --fa-animation-duration: 3.5s;
  --fa-flip-x: 0;
  --fa-flip-y: 1;
}
.storytime-capture-item__icon .fa-fade {
  --fa-animation-duration: 3s;
  --fa-fade-opacity: 0.5;
}
.storytime-guarantee__icon .fa-beat {
  --fa-beat-scale: 1.12;
  --fa-animation-duration: 2s;
}
.storytime-spotlight__list .fa-beat-fade {
  --fa-animation-duration: 2s;
}
.hero-price-card-bullets .fa-beat {
  --fa-beat-scale: 1.25;
  --fa-animation-duration: 1.4s;
}

/* ── Memorial Video order toggle ── */
.llp-order-toggle { border: 1px solid var(--cream-300); border-radius: var(--radius-card); background: var(--white); overflow: hidden; box-shadow: 0 2px 10px rgba(45,96,114,0.06); }
.llp-order-toggle__trigger { display: flex; align-items: center; gap: 0.625rem; padding: 1.25rem 1.5rem; cursor: pointer; font-family: var(--font-ui); font-size: 1rem; font-weight: var(--weight-semibold); color: var(--federal-blue); list-style: none; user-select: none; }
.llp-order-toggle__trigger::-webkit-details-marker { display: none; }
.llp-order-toggle__trigger:hover { background: var(--cream-light); }
.llp-order-toggle__chevron { margin-left: auto; transition: transform 0.25s ease; }
.llp-order-toggle[open] .llp-order-toggle__chevron { transform: rotate(180deg); }
.llp-order-toggle__body { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--cream-300); }

/* ── Products page anchor nav ── */
.products-page-nav { background: var(--white); border-bottom: 1px solid var(--cream-300); position: sticky; top: 0; z-index: 80; }
.products-page-nav__list { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0; justify-content: center; }
.products-page-nav__list li a { display: block; padding: 0.875rem 1.125rem; font-family: var(--font-ui); font-size: 0.8125rem; font-weight: var(--weight-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--olive); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.products-page-nav__list li a:hover { color: var(--federal-blue); border-bottom-color: var(--federal-blue); }
.products-page-nav__list li a.is-active { color: var(--federal-blue); border-bottom-color: var(--federal-blue); }
@media (max-width: 640px) { .products-page-nav__list { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 1rem; } .products-page-nav__list li a { padding: 0.75rem 0.875rem; font-size: 0.75rem; } }

/* ── Cookie Banner ───────────────────────────────────────────── */
/* ── Mobile nav memory cloud ──────────────────────────────── */
.nav-memory-cloud { display: none; }
@media (max-width: 700px) {
  .nav-memory-cloud {
    display: block;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    pointer-events: none;
    opacity: 0.18;
    overflow: hidden;
  }
  .nav-memory-cloud lottie-player { width: 100%; height: 100%; }
}

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--granite); border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-banner__text { font-family: var(--font-ui); font-size: var(--text-body-sm); color: rgba(255,255,255,0.75); margin: 0; }
.cookie-banner__text a { color: var(--sky-blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__text a:hover { color: var(--white); }
.cookie-banner__btn { font-family: var(--font-ui); font-size: var(--text-body-sm); font-weight: var(--weight-semibold); white-space: nowrap; padding: 0.5rem 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--sky-blue); color: var(--granite); background: var(--sky-blue); cursor: pointer; transition: var(--transition-control); flex-shrink: 0; }
.cookie-banner__btn:hover { background: var(--white); border-color: var(--white); }
.cookie-banner.is-hidden { display: none; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; text-align: center; gap: 0.875rem; } }
