/* ====================================================================
   Federal Benefits Exchange — Design System
   Palette + typography ported from Fed Advisor Solutions deck
   ==================================================================== */

:root {
  /* Brand colors — Fed Advisor Solutions (Executive, high-contrast) */
  --navy: #081D3D;
  --navy-deep: #030F24;
  --navy-line: #1B3A66;
  --navy-ink: #06172F;
  --gold: #D4AC2C;
  --gold-warm: #B8901F;
  --gold-deep: #8F6E14;
  --gold-ink: #70540F;   /* legible gold for small text on cream/parchment */
  --gold-line: rgba(212,172,44,0.45);
  --cream: #F5EFE0;
  --cream-soft: #FBF7EC;
  /* Base surfaces — warm parchment, deeper and less pale */
  --bg: #E4DBC3;
  --bg-deep: #DDD4BC;
  --surface: #FFFFFF;
  --surface-alt: #DFD6BE;
  --white: #FFFFFF;
  --text: #0A1224;
  --text-muted: #3A4358;
  --text-faint: #7A8296;
  --border: #C6BCA0;
  --border-strong: #AFA482;

  /* Type */
  --font-head: 'Playfair Display', 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Sizes (informational scale — executive display, larger page titles) */
  --fs-hero: clamp(3rem, 6.4vw, 5.75rem);
  --fs-2xl: clamp(2.25rem, 4.2vw, 3.5rem);
  --fs-xl: clamp(1.6rem, 2.4vw, 2.1rem);
  --fs-lg: 1.25rem;
  --fs-base: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem;
  --sp-20: 5rem; --sp-24: 6rem; --sp-32: 8rem;

  --wrap: 1200px;
  --wrap-narrow: 780px;
  --radius: 6px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(8,29,61,0.08), 0 1px 3px rgba(8,29,61,0.06);
  --shadow-md: 0 14px 36px rgba(8,29,61,0.14), 0 3px 8px rgba(8,29,61,0.08);
  --shadow-lg: 0 32px 72px rgba(8,29,61,0.30), 0 10px 24px rgba(8,29,61,0.14);
  --shadow-frame: 0 44px 96px rgba(3,15,36,0.55), 0 14px 34px rgba(3,15,36,0.28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* Layered paper texture: coarse fiber + fine grain + cross-hatch weave + warm vignette */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.32) 0%, transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(120,88,42,0.14) 0%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(120,88,42,0.09) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(45deg, rgba(120,88,42,0.07) 0 1px, transparent 1px 6px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='fiber'><feTurbulence type='fractalNoise' baseFrequency='0.25' numOctaves='4' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.26  0 0 0 0 0.12  0 0 0 0.35 0'/></filter><rect width='400' height='400' filter='url(%23fiber)' opacity='0.9'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.44  0 0 0 0 0.34  0 0 0 0 0.18  0 0 0 0.28 0'/></filter><rect width='260' height='260' filter='url(%23n)' opacity='0.75'/></svg>");
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
  background-size: auto, auto, auto, auto, 400px 400px, 260px 260px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
}
h1 {
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
}

/* Executive page-title treatment for landing/inner sections */
.section-tight > .wrap-narrow > h1:first-child,
.section-tight > .wrap > h1:first-child,
.section > .wrap-narrow > h1:first-child,
.section > .wrap > h1:first-child {
  margin-bottom: var(--sp-2);
}
.section-tight > .wrap-narrow > h1:first-child + p,
.section-tight > .wrap > h1:first-child + p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-top: var(--sp-4);
}
.section-tight > .wrap-narrow > h1:first-child::after,
.section-tight > .wrap > h1:first-child::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin-top: var(--sp-4);
  border-radius: 2px;
}
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--sp-4); }
a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(201,162,39,0.5); text-underline-offset: 3px; }
a:hover { color: var(--gold-warm); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  /* gold-warm measures 2.16:1 on cream -- fails AA at this size. The bright
     gold is kept for eyebrows on navy, where it measures 6.42:1. */
  color: var(--gold-ink);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-6); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-24) 0; }
.section-tight { padding: var(--sp-16) 0; }
.on-navy { background: var(--navy-deep); color: rgba(255,255,255,0.94); position: relative; }
.on-navy::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 15% 0%, rgba(212,172,44,0.14), transparent 60%),
    radial-gradient(900px 400px at 100% 100%, rgba(27,58,102,0.85), transparent 60%);
  pointer-events: none;
}
.on-navy > * { position: relative; }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--white); }
.on-navy a { color: var(--gold); }
.on-navy .eyebrow { color: var(--gold); }
.on-cream {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.44  0 0 0 0 0.34  0 0 0 0 0.18  0 0 0 0.18 0'/></filter><rect width='260' height='260' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 260px 260px;
}
.on-cream-soft {
  background-color: var(--surface-alt);
  background-image:
    repeating-linear-gradient(135deg, rgba(139,109,58,0.06) 0 1px, transparent 1px 5px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.38  0 0 0 0 0.29  0 0 0 0 0.15  0 0 0 0.22 0'/></filter><rect width='260' height='260' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: auto, 260px 260px;
  border-top: 1px solid rgba(139,109,58,0.15);
  border-bottom: 1px solid rgba(139,109,58,0.15);
}
.on-white { background: var(--surface); }

/* Executive gold hairline for section breaks */
.gold-rule {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 0 0 var(--sp-4);
}
.on-navy .gold-rule { background: var(--gold); }
.center .gold-rule { margin-left: auto; margin-right: auto; }

.italic-gold { font-style: italic; color: var(--gold-warm); font-family: var(--font-head); }
.on-navy .italic-gold { color: var(--gold); }

/* ======= Top disclaimer bar ======= */
.utility-bar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  text-align: center;
  padding: 8px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ======= Header ======= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--sp-6);
  gap: var(--sp-6);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--font-head); font-weight: 700;
  color: var(--navy); font-size: 1.1rem; letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; color: var(--gold-warm); letter-spacing: 0.14em; text-transform: uppercase; }
.nav { display: flex; gap: var(--sp-6); align-items: center; }
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--gold); color: var(--navy); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--cream) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  border: none !important;
  font-weight: 600;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--gold-warm) !important; color: var(--navy) !important; border: none !important; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: all .15s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 8px 16px; border: none !important; font-size: 0.9rem; }
.dropdown-menu a:hover { background: var(--cream); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s ease; }

@media (max-width: 900px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--cream);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 12px; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .menu-toggle { display: block; }
}

/* ======= Buttons ======= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--navy); color: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--navy); color: var(--cream); }
.btn-secondary:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); transform: translateY(-1px); }
.btn-outline-gold {
  background: transparent; color: var(--gold);
  border: 1.5px solid rgba(212,172,44,0.55);
  text-decoration: none;
}
.btn-outline-gold:hover {
  background: var(--gold); color: var(--navy-deep);
  border-color: var(--gold);
  transform: translateY(-1px); box-shadow: 0 10px 24px rgba(212,172,44,0.25);
}
.on-navy .btn-ghost { color: var(--cream); border-color: var(--cream); }
.on-navy .btn-ghost:hover { background: var(--cream); color: var(--navy); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: gap .15s ease, color .15s ease;
}
.link-arrow:hover { gap: 12px; color: var(--gold-warm); }
.on-navy .link-arrow { color: var(--gold); border-bottom-color: var(--gold); }

/* ======= Cards ======= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-navy {
  background: var(--navy-deep); border-color: var(--navy-line); color: rgba(255,255,255,0.88);
  box-shadow: 0 20px 40px rgba(6,22,48,0.3);
}
.card-navy h3 { color: var(--white); }
.card-cream { background: var(--cream-soft); border-color: var(--border); }

/* ======= Grids ======= */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--sp-16); align-items: center; }
.split-reverse { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 960px) { .split, .split-reverse { grid-template-columns: 1fr; gap: var(--sp-8); } }

/* ======= Forms ======= */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  position: relative;
}
.form-card h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 4px; }
.form-card .form-sub { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: var(--sp-6); }
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream-soft);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
  background: var(--white);
}
.field-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: var(--sp-3);
}
.checkbox input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--gold); }

/* ======= Hero ======= */
.hero { padding: var(--sp-20) 0 var(--sp-24); position: relative; overflow: hidden; }
.hero .split { grid-template-columns: 1.2fr 1fr; }
.hero-title { font-family: var(--font-head); font-size: var(--fs-hero); line-height: 1.05; color: var(--navy); }
.hero-title .accent { color: var(--gold-warm); font-style: italic; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-top: var(--sp-4); max-width: 46ch; line-height: 1.55; }

/* Executive hero video takeover */
.hero-video-section {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.94);
  padding: var(--sp-20) 0 var(--sp-24);
  position: relative;
  overflow: hidden;
}
.hero-video-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1400px 700px at 20% -10%, rgba(212,172,44,0.18), transparent 55%),
    radial-gradient(1000px 600px at 100% 110%, rgba(27,58,102,0.85), transparent 60%);
  pointer-events: none;
}
.hero-video-section > * { position: relative; }
.hero-video-section .eyebrow { color: var(--gold); }
.hero-video-section h1 { color: var(--white); font-family: var(--font-head); }
.hero-video-section .hero-sub { color: rgba(255,255,255,0.85); }
/* Hero video: square content wrapped in a 3/8" (~9px) white matte frame */
.hero-video-frame {
  position: relative;
  max-width: 560px; /* keeps the square from feeling oversized in the hero */
  margin: 0 auto;
  padding: 9px; /* ~3/8 inch white matte */
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid rgba(8, 29, 61, 0.10);
  box-shadow:
    0 30px 60px -20px rgba(8, 29, 61, 0.55),
    0 12px 24px -12px rgba(8, 29, 61, 0.35),
    0 0 0 1px rgba(212, 172, 44, 0.20);
}
.hero-video-frame::after {
  content: ''; position: absolute; inset: 6px;
  border: 1px solid rgba(8, 29, 61, 0.08);
  border-radius: 4px; pointer-events: none;
}
.hero-video-frame video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #000;
}
.hero-video-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-deep);
}
.hero-video-wrap video { display: block; width: 100%; height: auto; }
.hero-video-poster {
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-family: var(--font-head); font-size: 1.5rem;
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* ======= Feature cards / topics ======= */
.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.topic-card .num {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  color: var(--gold-warm); font-size: 2.2rem; line-height: 1;
  margin-bottom: var(--sp-2);
}
.topic-card h3 { font-size: 1.35rem; margin-bottom: var(--sp-3); }
.topic-card ul { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.topic-card ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.topic-card ul li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--gold-warm); font-weight: 700;
  width: 20px; height: 20px;
}
.topic-card .note {
  font-style: italic; color: var(--text-muted); font-size: 0.875rem;
  border-top: 1px solid var(--border); padding-top: var(--sp-3);
  margin-top: var(--sp-3);
}

/* ======= Mistake list (numbered) ======= */
.mistake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-8); margin: var(--sp-8) 0; }
@media (max-width: 780px) { .mistake-grid { grid-template-columns: 1fr; } }
.mistake-item {
  display: flex; gap: 18px; align-items: center;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.mistake-item .num {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  color: var(--gold); font-size: 1.65rem; line-height: 1;
  flex: 0 0 auto; min-width: 44px;
}
.mistake-item h4 {
  margin: 0; font-size: 1.05rem;
  color: var(--navy);
  font-family: var(--font-body); font-weight: 600;
  line-height: 1.35;
}

/* On dark navy sections, brighten mistake text + soften divider */
.on-navy .mistake-item { border-bottom-color: rgba(212,172,44,0.18); }
.on-navy .mistake-item h4 { color: #FFFFFF; }
.on-navy .mistake-item .num { color: var(--gold); text-shadow: 0 0 20px rgba(212,172,44,0.25); }

/* ======= Hosts ======= */
.host-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin: var(--sp-8) 0; }
@media (max-width: 780px) { .host-strip { grid-template-columns: 1fr; } }
.host-strip .host-mini {
  display: flex; gap: 14px; align-items: center;
}
.host-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
}
.host-mini .name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.1; }
.host-mini .title { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.35; margin-top: 3px; }

.host-block {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-8);
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--border);
}
.host-block:last-child { border-bottom: 0; }
@media (max-width: 780px) { .host-block { grid-template-columns: 1fr; gap: var(--sp-6); } }
.host-block .avatar-big {
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 3.5rem;
  border: 3px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(8,29,61,0.25), 0 0 0 6px rgba(212,172,44,0.08);
}
.host-block .avatar-big img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Hero CAGE credentials strip */
.cage-strip {
  margin: 2.5rem auto 0;
  padding: 18px 28px;
  max-width: 820px;
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
  background: var(--navy);
  border: 1px solid rgba(212, 172, 44, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(8, 29, 61, 0.18);
}
.cage-strip .cage-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-body);
  text-align: center;
}
.cage-strip .cage-lbl {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--gold);
}
.cage-strip .cage-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}
.cage-strip .cage-sep {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, transparent, rgba(212, 172, 44, 0.45), transparent);
}
@media (max-width: 640px) {
  .cage-strip { gap: 18px; padding: 16px 18px; }
  .cage-strip .cage-sep { display: none; }
  .cage-strip .cage-val { font-size: 1rem; }
}
.host-block h3 { font-size: 1.75rem; margin-bottom: 4px; }
.host-block .role {
  font-family: var(--font-body); font-style: italic;
  color: var(--gold-warm); font-size: 0.95rem;
  margin-bottom: var(--sp-4);
}
.stat-badges { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-4); }
.stat-badge {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-width: 150px;
}
.stat-badge .val { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--gold); }
.stat-badge .lbl { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,239,224,0.7); }

/* ======= FAQ ======= */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy);
  padding: var(--sp-2) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.5rem; color: var(--gold-warm); flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: var(--sp-2) 0 var(--sp-4); color: var(--text); line-height: 1.65; }

/* ======= Sticky mini banner ======= */
.mini-banner {
  position: sticky; top: 68px; z-index: 40;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-6);
  font-size: 0.9rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gold);
}
.mini-banner strong { color: var(--gold); font-family: var(--font-head); }
.mini-banner .btn { padding: 8px 16px; font-size: 0.85rem; }

/* ======= "Built for you if" ======= */
.built-list { display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-8) 0; }
.built-list li {
  padding: 18px 22px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  font-size: 1.05rem;
  line-height: 1.5;
  list-style: none;
  box-shadow: var(--shadow-sm);
}

/* ======= Sidebar layout (for FAQ/Glossary/Resources) ======= */
.sidebar-layout {
  display: grid; grid-template-columns: 240px 1fr;
  gap: var(--sp-12);
  align-items: start;
}
@media (max-width: 900px) { .sidebar-layout { grid-template-columns: 1fr; gap: var(--sp-8); } }
.sidebar {
  position: sticky; top: 100px;
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border);
}
.sidebar h4 {
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-warm); margin-bottom: var(--sp-3);
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { margin-bottom: 4px; }
.sidebar ul li a {
  display: block; padding: 6px 10px; border-radius: 4px;
  text-decoration: none; color: var(--navy); font-size: 0.9rem;
  border: none;
}
.sidebar ul li a:hover, .sidebar ul li a.active { background: var(--navy); color: var(--cream); }

/* ======= Blog cards ======= */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
@media (max-width: 780px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-card .meta {
  font-size: 0.75rem; color: var(--gold-warm);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  margin-bottom: var(--sp-3);
}
.blog-card h3 {
  font-size: 1.35rem; line-height: 1.2; margin-bottom: var(--sp-3);
}
.blog-card h3 a { color: var(--navy); text-decoration: none; border: none; }
.blog-card h3 a:hover { color: var(--gold-warm); }
.blog-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ======= Resource cards ======= */
.resource-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.resource-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.resource-card .tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.resource-card h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.resource-card p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* ======= Glossary ======= */
.letter-jump {
  display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-6) 0;
  padding: var(--sp-4); background: var(--cream-soft);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.letter-jump a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  font-family: var(--font-head); font-weight: 700;
  text-decoration: none; border: 1px solid var(--border);
  font-size: 0.9rem;
}
.letter-jump a:hover { background: var(--gold); color: var(--navy); }

.glossary-section { margin: var(--sp-12) 0; }
.glossary-section h2 {
  font-family: var(--font-head); font-size: 3rem;
  color: var(--gold-warm); border-bottom: 2px solid var(--gold);
  padding-bottom: var(--sp-2); margin-bottom: var(--sp-6);
}
.glossary-term { padding: var(--sp-3) 0; border-bottom: 1px dashed var(--border); }
.glossary-term dt { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.glossary-term dd { margin: 0; color: var(--text); font-size: 0.95rem; }
.glossary-empty { color: var(--text-faint); font-style: italic; padding: var(--sp-4) 0; }

/* ======= FEGLI Code tool ======= */
.tool-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.code-input {
  display: flex; gap: var(--sp-3); align-items: center;
  padding: var(--sp-6); background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  max-width: 500px;
}
.code-input input {
  width: 130px; padding: 14px; font-family: var(--font-mono);
  font-size: 1.5rem; text-align: center;
  border: 2px solid var(--navy); border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: 0.2em;
  background: var(--cream-soft); color: var(--navy);
}
.code-input input:focus { outline: none; border-color: var(--gold); }
.code-result { padding: var(--sp-4); margin-top: var(--sp-4); border-radius: var(--radius); background: var(--cream-soft); border-left: 4px solid var(--gold); }
.code-table {
  width: 100%; border-collapse: collapse; margin-top: var(--sp-4);
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}
.code-table th { background: var(--navy); color: var(--cream); text-align: left; padding: 12px 14px; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.code-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.code-table td:first-child { font-family: var(--font-mono); font-weight: 700; color: var(--navy); }
.code-table tr:hover { background: var(--cream-soft); }

/* ======= Footer ======= */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-top { text-align: center; margin-bottom: var(--sp-12); }
.footer-tagline { font-family: var(--font-head); font-size: 1.25rem; color: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-8);
  border-top: 1px solid var(--navy-line);
  padding-top: var(--sp-8);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: var(--sp-3);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: rgba(245,239,224,0.85); text-decoration: none; font-size: 0.9rem; border: none; }
.footer a:hover { color: var(--gold); }
.footer .contact-line { font-size: 0.9rem; margin-bottom: 8px; }
.footer .contact-line .lbl { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-warm); display: block; margin-bottom: 2px; }
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  margin-top: var(--sp-12); padding-top: var(--sp-6);
  font-size: 0.75rem; color: rgba(245,239,224,0.5);
  line-height: 1.6;
  text-align: center;
}

/* ======= Utility ======= */
.text-center { text-align: center; }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }
.max-prose { max-width: 65ch; }
.prose p { font-size: 1.0625rem; line-height: 1.7; color: var(--text); margin-bottom: var(--sp-4); }
.prose h2 { margin-top: var(--sp-12); margin-bottom: var(--sp-4); font-size: 2rem; }
.prose h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); font-size: 1.35rem; }
.prose ul { padding-left: 1.2em; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: 6px; line-height: 1.6; }

/* Notice / disclaimer callout */
.notice {
  padding: var(--sp-4) var(--sp-6);
  background: var(--cream-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: var(--sp-6) 0;
}

/* Section CTA */
.section-cta {
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  margin: var(--sp-16) 0 0;
}
.section-cta h2 { color: var(--white); margin-bottom: var(--sp-4); }
.section-cta p { color: rgba(245,239,224,0.85); max-width: 55ch; margin: 0 auto var(--sp-6); }

/* ============================================================================
   Live-form additions
   ----------------------------------------------------------------------------
   The design mockup shipped a static form. The real registration form carries a
   confirmation state, legal microcopy and a scroll-triggered nudge that
   script.js drives. Styled here in the same executive vocabulary (navy / gold /
   cream, Playfair headings) so they read as part of the design, not bolted on.
   ========================================================================== */

/* Legal + helper microcopy under the fields */
.label-note { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-faint); }
.form-disclosure,
.form-note {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--text-muted);
  margin: var(--sp-3) 0 0;
}
.form-note.edu-disclaimer { color: var(--text-faint); }

/* --- Confirmation state (replaces the form on success) ------------------- */
.form-success {
  display: none;              /* script.js flips this to flex */
  text-align: center;
  gap: var(--sp-3);
}
.success-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-2);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.form-success h3 {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  color: var(--navy);
  margin: 0;
}
.form-success h3:focus-visible { outline: 2px solid var(--gold-warm); outline-offset: 4px; }
.success-date {
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
  margin: 0;
}
.success-details {
  text-align: left;
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin: var(--sp-2) 0;
}
.success-details p { font-size: var(--fs-sm); line-height: 1.6; margin: 0 0 var(--sp-3); }
.success-details p:last-child { margin-bottom: 0; }
.success-details strong { color: var(--navy); }
.success-actions { display: grid; gap: var(--sp-3); }

/* --- Scroll-triggered registration nudge --------------------------------- */
.sticky-register {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--navy-deep);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 30px rgba(3,15,36,0.28);
  /* Off-screen until script.js adds .is-visible, and gone for good once the
     visitor has registered (data-complete). */
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-register.is-visible { transform: translateY(0); }
.sticky-register[data-complete="true"] { display: none; }
.sticky-register-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  color: var(--cream);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.btn-sm { padding: 8px 18px; font-size: var(--fs-xs); }
@media (max-width: 560px) {
  .sticky-register-inner { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-xs); }
}

/* Cloudflare's widget is a fixed-width iframe; keep it from overflowing the
   card on narrow screens. */
.cf-turnstile { display: flex; justify-content: center; }

/* Eyebrows on a navy ground take the bright gold back. */
.on-navy .eyebrow,
.hero-video-section .eyebrow { color: var(--gold-warm); }

/* --- Brand wordmark in the header ----------------------------------------
   The site uses its established wordmark rather than the draft's mark-plus-text
   lockup. Kept in step with style.css so the homepage header and the header on
   every other page are the same size.

   The url()s are absolute on purpose: this stylesheet lives at /css/, so a
   relative 'FB_Logo_Light.svg' would resolve to /css/FB_Logo_Light.svg. */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 46px;
  width: auto;
  max-width: 340px;
  display: block;
  content: url('/FB_Logo_Light.svg');
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo:hover .logo-img { transform: scale(1.02); }
@media (max-width: 640px) {
  .logo-img { height: 34px; max-width: 240px; }
}
@media (max-width: 400px) {
  .logo-img { height: 28px; max-width: 190px; }
}
