/* ==========================================================================
   Business Credit Blueprint — site stylesheet
   All values come from tokens.json / BCB_brand_book.md.
   No build step: edit this file directly.
   ========================================================================== */

/* ---------- Self-hosted fonts (SIL OFL — licenses in /fonts) ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --navy-950: #060e1a;
  --navy-900: #0d1b2e;
  --navy-800: #142437;
  --navy-700: #1e3350;
  --navy-600: #2a4568;
  --navy-500: #385a80;
  --gold-700: #9a7519;
  --gold-600: #b8900f;
  --gold-500: #c49a2a;
  --gold-400: #d4ae48;
  --gold-300: #e2c56a;
  --gold-100: #f7edcc;
  --cream-900: #7a7468;
  --cream-700: #bab3a4;
  --cream-500: #ddd8ce;
  --cream-400: #e8e4db;
  --cream-300: #ede8df;
  --cream-200: #f3f0ea;
  --white: #ffffff;

  /* Semantic */
  --bg-primary: var(--navy-900);
  --bg-secondary: var(--navy-800);
  --bg-light: var(--cream-300);
  --bg-light-elevated: var(--cream-200);
  --bg-accent: var(--gold-500);
  --bg-accent-subtle: var(--gold-100);
  --fg-primary: var(--white);
  --fg-secondary: var(--cream-400);
  --fg-muted: var(--cream-700);
  --fg-on-light: var(--navy-900);
  --fg-on-light-muted: var(--cream-900);
  --fg-accent: var(--gold-500);
  --fg-accent-dark: var(--gold-700);
  --border-default: rgba(196, 154, 42, 0.25);
  --border-accent: var(--gold-500);
  --border-light: rgba(13, 27, 46, 0.12);
  --border-dark: rgba(255, 255, 255, 0.08);
  --interactive-primary: var(--gold-500);
  --interactive-primary-hover: var(--gold-400);
  --interactive-primary-press: var(--gold-700);
  --interactive-secondary-hover: rgba(196, 154, 42, 0.10);
  --status-success: #3d9970;
  --status-error: #c0392b;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(6, 14, 26, 0.4);
  --shadow-md: 0 4px 12px rgba(6, 14, 26, 0.35);
  --shadow-lg: 0 8px 24px rgba(6, 14, 26, 0.4);
  --shadow-gold: 0 0 16px rgba(196, 154, 42, 0.35);
  --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.2);

  /* Layout */
  --container: 1160px;
  --gutter: var(--space-6);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: var(--space-8); --header-h: 84px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--fg-on-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--bg-accent); color: var(--navy-950); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 var(--space-4); }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.25; font-weight: 600; }
h4 { font-family: var(--font-body); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; font-weight: 600; margin: 0 0 var(--space-3); }
h5 { font-family: var(--font-body); font-size: 1rem; line-height: 1.5; font-weight: 600; margin: 0 0 var(--space-2); }

.label, .eyebrow {
  font-family: var(--font-body); font-size: 12px; line-height: 1.3; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.caption, small { font-size: 12px; line-height: 1.5; font-weight: 400; }
.body-sm { font-size: 14px; line-height: 1.65; }
.body-medium { font-weight: 500; line-height: 1.5; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; }

/* "Credit" (and other highlights) in gold */
.accent { color: var(--fg-accent); }
.surface-light .accent, .accent-dark { color: var(--fg-accent-dark); }

/* ---------- Surfaces ---------- */
.surface-dark { background: var(--bg-primary); color: var(--fg-secondary); }
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4, .surface-dark h5 { color: var(--fg-primary); }
.surface-dark .eyebrow { color: var(--fg-accent); }
.surface-deep { background: var(--navy-950); }
.surface-light { background: var(--bg-light); color: var(--fg-on-light); }
.surface-light .eyebrow { color: var(--fg-accent-dark); font-weight: 600; }
.surface-elevated { background: var(--bg-light-elevated); }

/* Faint gold graph-paper texture (blueprint motif) */
.blueprint-grid { position: relative; isolation: isolate; }
.blueprint-grid::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 154, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 154, 42, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

/* Corner brackets: thin gold L-marks on two opposite corners */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--gold-500); border-style: solid; border-width: 0;
}
.brackets::before { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.brackets::after { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.brackets--inset::before { top: var(--space-4); left: var(--space-4); }
.brackets--inset::after { bottom: var(--space-4); right: var(--space-4); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.section { padding-block: var(--space-16); }
@media (min-width: 900px) { .section { padding-block: var(--space-24); } }
.section--tight { padding-block: var(--space-12); }
.section-head { max-width: 680px; margin-bottom: var(--space-12); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.0625rem; }
.surface-dark .section-head p { color: var(--fg-secondary); }

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

.divider { height: 1px; border: 0; background: var(--border-default); margin: var(--space-8) 0; }
.surface-light .divider { background: var(--border-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), transform .12s var(--ease-out), opacity .2s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--interactive-primary); color: var(--navy-950); }
.btn--primary:hover { background: var(--interactive-primary-hover); }
.btn--primary:active { background: var(--interactive-primary-press); }
.btn--glow { box-shadow: var(--shadow-gold); } /* key CTA only — one per view */
.btn--secondary { background: transparent; border-color: var(--border-accent); color: var(--fg-accent); }
.btn--secondary:hover { background: var(--interactive-secondary-hover); color: var(--gold-400); }
.btn--ghost { background: transparent; border-color: var(--navy-700); color: var(--fg-primary); }
.btn--ghost:hover { border-color: var(--gold-500); background: var(--interactive-secondary-hover); }
.surface-light .btn--secondary { color: var(--fg-on-light); border-color: var(--gold-500); }
.surface-light .btn--secondary:hover { background: var(--bg-accent-subtle); }
.btn--sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--navy-700); color: var(--navy-600); border-color: transparent; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.text-link { color: var(--fg-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: var(--gold-400); }
.surface-light .text-link { color: var(--fg-on-light); text-decoration-color: var(--gold-500); font-weight: 500; }
.surface-light .text-link:hover { color: var(--fg-accent-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid var(--border-default);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.site-logo { display: block; flex: none; }
.site-logo img { height: 56px; width: auto; }
@media (min-width: 768px) { .site-logo img { height: 68px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: transparent; color: var(--fg-primary);
  border: 1px solid var(--navy-700); border-radius: var(--radius-md); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

.site-nav { display: none; }
.nav-open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-950); border-bottom: 1px solid var(--border-default);
  padding: var(--space-4) var(--gutter) var(--space-6);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.site-nav a:not(.btn) {
  display: block; padding: var(--space-3) 0; color: var(--fg-secondary); text-decoration: none;
  font-size: 15px; font-weight: 500; transition: color .2s var(--ease-out);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--fg-accent); }
.site-nav .btn { margin-top: var(--space-3); width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--space-8); }
  .site-nav a:not(.btn) { padding: var(--space-2) 0; position: relative; }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-500);
  }
  .site-nav .btn { margin-top: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 130%);
  color: var(--fg-secondary);
  padding-block: var(--space-16) var(--space-20);
  overflow: hidden;
}
@media (min-width: 900px) { .hero { padding-block: var(--space-24) var(--space-32); } }
.hero h1 { color: var(--fg-primary); max-width: 14ch; }
.hero .eyebrow { color: var(--fg-accent); }
.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-16); } }
.hero__sub { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); line-height: 1.35; color: var(--fg-primary); margin-bottom: var(--space-4); }
.hero__lead { max-width: 54ch; margin-bottom: var(--space-8); }
.hero__meta { margin-top: var(--space-6); color: var(--fg-muted); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.hero__meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__meta svg { width: 16px; height: 16px; color: var(--gold-500); }

.page-hero { padding-block: var(--space-16); }
@media (min-width: 900px) { .page-hero { padding-block: var(--space-20); } }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 60ch; color: var(--fg-secondary); }

/* Checklist preview card in hero */
.preview-card {
  background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6); box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .preview-card { padding: var(--space-10); } }
.preview-card__label { color: var(--fg-accent); margin-bottom: var(--space-3); }
.preview-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.2; margin-bottom: var(--space-2); }
.preview-card__desc { color: var(--fg-muted); font-size: 14px; margin-bottom: var(--space-6); }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-500); }
.surface-light .check-list svg { color: var(--fg-accent-dark); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.stat {
  background: var(--bg-accent); color: var(--navy-950); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2); text-align: center;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.stat span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Cards ---------- */
.card {
  border-radius: var(--radius-md); padding: var(--space-6);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
@media (min-width: 640px) { .card { padding: var(--space-8); } }
.surface-dark .card, .card--dark { background: var(--bg-secondary); border: 1px solid var(--border-default); color: var(--fg-secondary); }
.surface-light .card, .card--light { background: var(--bg-light-elevated); border: 1px solid var(--border-light); }
.card--bar { border-left: 3px solid var(--gold-500) !important; }
.card--featured { border-color: var(--border-accent) !important; }
.card p { font-size: 15px; }
.surface-light .card p { color: var(--fg-on-light); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--border-default); border-radius: var(--radius-md); color: var(--gold-500); margin-bottom: var(--space-5);
}
.surface-light .card__icon { border-color: rgba(154, 117, 25, 0.35); color: var(--fg-accent-dark); background: var(--bg-light); }
.card__icon svg { width: 22px; height: 22px; }

/* Numbered phases */
.phase__num {
  display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1;
  color: var(--fg-accent); margin-bottom: var(--space-4);
}
.phase .label { color: var(--fg-muted); display: block; margin-bottom: var(--space-2); }
.phase h3 { font-family: var(--font-body); font-size: 1.375rem; line-height: 1.25; font-weight: 600; margin-bottom: var(--space-3); }

/* Source / authority cards */
.source { display: flex; flex-direction: column; gap: var(--space-2); }
.source__org { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; color: var(--fg-on-light); margin: 0; }
.source__topic { color: var(--fg-accent-dark); font-weight: 600; }
.source p { font-size: 14px; }
.source a { font-size: 14px; margin-top: auto; }
.fine-print { color: var(--fg-on-light); opacity: .8; margin-top: var(--space-8); }

/* Promise / no-hype list */
.promise-grid { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 960px) { .promise-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); } }
.vs-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-light); }
.vs-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--border-light); }
.vs-list svg { width: 22px; height: 22px; margin-top: 2px; }
.vs-list .is-no svg { color: var(--status-error); }
.vs-list .is-yes svg { color: var(--status-success); }
.vs-list strong { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.vs-list span { font-size: 15px; }

/* ---------- Opt-in ---------- */
.optin {
  display: grid; gap: var(--space-10); align-items: center;
  background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-6);
}
@media (min-width: 640px) { .optin { padding: var(--space-12); } }
@media (min-width: 960px) { .optin { grid-template-columns: 1fr 1fr; gap: var(--space-16); padding: var(--space-16); } }
.optin h2 { margin-bottom: var(--space-4); }
.optin__copy > p { color: var(--fg-secondary); }

.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { color: var(--fg-secondary); }
.field input {
  width: 100%; min-height: 50px; padding: var(--space-3) var(--space-4);
  background: var(--navy-950); color: var(--fg-primary);
  border: 1px solid var(--navy-700); border-radius: var(--radius-md); box-shadow: var(--shadow-inset);
  font-size: 16px; transition: border-color .2s var(--ease-out);
}
.field input::placeholder { color: var(--navy-500); }
.field input:hover { border-color: var(--navy-600); }
.field input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(196, 154, 42, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--status-error); }
.field__error { color: #e8857a; font-size: 12px; line-height: 1.5; min-height: 0; }
.field__error:empty { display: none; }
.form__consent { color: var(--fg-muted); }
.form__consent a { color: var(--fg-secondary); }
.form__status { font-size: 14px; color: var(--gold-300); }
.form__status:empty { display: none; }

/* ---------- Callout ---------- */
.callout {
  background: var(--bg-accent-subtle); border: 1px solid rgba(154, 117, 25, 0.3); border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-md); padding: var(--space-6) var(--space-6);
  display: grid; gap: var(--space-4); align-items: center;
}
@media (min-width: 768px) { .callout { grid-template-columns: 1fr auto; padding: var(--space-8) var(--space-10); gap: var(--space-8); } }
.callout h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: var(--space-2); }
.callout p { margin: 0; }
.badge {
  display: inline-block; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  background: var(--bg-accent); color: var(--navy-950);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.6;
}
.badge--outline { background: transparent; color: var(--fg-accent-dark); border: 1px solid var(--gold-500); }
.surface-dark .badge--outline { color: var(--fg-accent); }

/* ---------- Content index ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-10); }
.filter-bar button {
  min-height: 40px; padding: var(--space-2) var(--space-5); border-radius: var(--radius-full);
  background: transparent; border: 1px solid var(--border-light); color: var(--fg-on-light);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s var(--ease-out);
}
.filter-bar button:hover { border-color: var(--gold-500); }
.filter-bar button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--fg-primary); }

.entry { display: flex; flex-direction: column; background: var(--bg-light-elevated); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
.entry[hidden] { display: none; }
.entry__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); overflow: hidden; }
.entry__media img, .entry__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.entry__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--navy-950);
}
.entry__play-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-full);
  background: var(--bg-accent); transition: transform .2s var(--ease-out), background-color .2s var(--ease-out);
}
.entry__play-icon svg { width: 24px; height: 24px; margin-left: 3px; }
.entry__play:hover .entry__play-icon { background: var(--gold-400); transform: scale(1.05); }
.entry__play[disabled] { cursor: default; }
.entry__play[disabled] .entry__play-icon { background: var(--navy-700); color: var(--fg-muted); transform: none; }
.entry__type { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1; }
.entry__duration { position: absolute; bottom: var(--space-3); right: var(--space-3); z-index: 1; background: rgba(6, 14, 26, 0.85); color: var(--fg-primary); font-size: 12px; font-weight: 500; padding: 2px var(--space-2); border-radius: var(--radius-sm); }
.entry__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); flex: 1; }
.entry__meta { color: var(--fg-on-light); opacity: .75; }
.entry h2 { font-family: var(--font-body); font-size: 1.25rem; line-height: 1.3; font-weight: 600; margin: 0; }
.entry h2 a { text-decoration: none; }
.entry h2 a:hover { color: var(--fg-accent-dark); }
.entry p { font-size: 15px; margin: 0; }
.entry__foot { margin-top: auto; padding-top: var(--space-3); }

/* Generated thumbnail placeholder (used until real thumbnails exist) */
.thumb-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-5); color: var(--fg-primary);
  background:
    linear-gradient(rgba(196, 154, 42, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(196, 154, 42, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-700));
}
.thumb-placeholder span { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; max-width: 16ch; }
.thumb-placeholder--article { justify-content: center; align-items: center; text-align: center; }

/* Resource (affiliate) list */
.resource { display: flex; flex-direction: column; gap: var(--space-2); }
.resource .label { color: var(--fg-on-light); opacity: .75; }
.resource h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0; }
.resource a.btn { margin-top: var(--space-4); align-self: flex-start; }

/* ---------- Prose (about/legal) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); margin-top: var(--space-12); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose p, .prose li { font-size: 1.0625rem; }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--fg-on-light); text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
.prose a:hover { color: var(--fg-accent-dark); }
.pullquote {
  margin: var(--space-10) 0; padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.35; font-weight: 600;
}
.placeholder { background: var(--bg-accent-subtle); outline: 1px dashed rgba(154, 117, 25, 0.5); padding: 0 var(--space-1); border-radius: var(--radius-sm); }

.legal-layout { display: grid; gap: var(--space-10); }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px 1fr; gap: var(--space-16); } }
.toc { align-self: start; }
@media (min-width: 960px) { .toc { position: sticky; top: calc(var(--header-h) + var(--space-8)); } }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--border-light); }
.toc a { display: block; padding: var(--space-2) var(--space-4); text-decoration: none; font-size: 14px; font-weight: 500; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { border-left-color: var(--gold-500); color: var(--fg-accent-dark); }
.notice {
  background: var(--bg-accent-subtle); border: 1px solid rgba(154, 117, 25, 0.3); border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6); font-size: 14px; margin-bottom: var(--space-10);
}

/* Thank-you steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: var(--space-5); align-items: start; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--border-accent); border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--fg-accent);
}
.steps h2 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0 0 var(--space-1); padding-top: var(--space-2); }
.steps p { color: var(--fg-secondary); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--fg-muted); padding-block: var(--space-16) var(--space-10); font-size: 14px; }
.site-footer__top { display: grid; gap: var(--space-10); padding-bottom: var(--space-10); border-bottom: 1px solid var(--border-default); }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand img { height: 72px; width: auto; margin-left: -6px; margin-bottom: var(--space-4); }
.site-footer__brand p { max-width: 36ch; }
.site-footer h2 { font-family: var(--font-body); color: var(--fg-accent); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--fg-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--fg-accent); }
.site-footer__handle { color: var(--fg-accent); margin-top: var(--space-4); }
.site-footer__disclosures { padding-top: var(--space-8); display: grid; gap: var(--space-3); }
.site-footer__disclosures p { font-size: 12px; line-height: 1.6; margin: 0; max-width: 110ch; }
.site-footer__disclosures strong { color: var(--fg-secondary); font-weight: 600; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-6); margin-top: var(--space-6); border-top: 1px solid var(--border-dark); font-size: 12px; }

/* ---------- Motion: subtle reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0; }
.center-block { display: flex; justify-content: center; }
.h-card { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
@media (min-width: 960px) { .optin--single { grid-template-columns: 1fr; } }
.h4 { font-family: var(--font-body); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; font-weight: 600; margin: 0 0 var(--space-3); }
.entry__type.badge--outline { background: var(--navy-950); color: var(--fg-accent); }
.toc__title { margin-bottom: var(--space-4); color: var(--fg-accent-dark); font-weight: 600; }
/* Keep the play button clear of the placeholder title text */
.thumb-placeholder ~ .entry__play { align-items: flex-start; padding-top: 11%; }
.thumb-placeholder ~ .entry__play .entry__play-icon { width: 56px; height: 56px; }
