/* ======================================================================
   Cordibly — Global Component Library  |  styles.css
   Architecture:
     0) Reset & Base
     1) Design Tokens  (official palette + type scale from §4.5 / §5.1)
     2) Typography System
     3) Layout & Grid
     4) Header & Navigation  (light – §3.3)
     5) Buttons  (§9.1)
     6) Cards
     7) Chip / Pill System  (§10)
     8) FAQ Component  (canonical / locked §8.1)
     9) Footer
    10) Utilities
    11) Accessibility & Print
    12) Affiliate Disclosure
    13)Endcap Component
   ====================================================================== */


/* ======================================================================
   LOCAL FONT FACES
   Self-hosted variable fonts used sitewide. Font files live in
   /public/assets/fonts/ and are referenced relative to this stylesheet.
   ====================================================================== */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}



/* ======================================================================
   0) RESET & BASE
   ====================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

input, button, textarea, select {
  font: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.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;
}



/* ======================================================================
   1) DESIGN TOKENS
   All color values from §5.1. All type tokens from §4.5.
   ====================================================================== */
:root {
  /* ── Official Palette §5.1 ── */
  --color-obsidian:    #0B1220;
  --color-porcelain:   #FAFAF7;
  --color-royal:       #155EAD;   /* Refined Royal */
  --color-royal-hover: #114B99;
  --color-royal-light: rgba(11, 18, 32, 0.065);  /* ink wash */
  --color-focus-ring:  #2B78C5;
  --color-gold:        #F4B400;   /* Signal Gold – use sparingly */
  --color-gold-tint:   rgba(11, 18, 32, 0.045);  /* proof wash */
  --color-gold-border: #E2B200;
  --color-gold-text:   #8A6500;
  --color-gold-text-on-dark: var(--color-gold-border);
  --color-white:       #FFFFFF;
  --color-border-n:    #E6E6E0;   /* Neutral border */

  /* ── Working tokens (derived) ── */
  --color-bg:           var(--color-porcelain);
  --color-bg-alt:       #F0EFEA;   /* gentle section contrast */
  --color-card:         var(--color-white);
  --color-text:         var(--color-obsidian);
  --color-text-muted:   #50576A;
  --color-text-strong:  var(--color-obsidian);
  --color-border:       var(--color-border-n);
  --color-border-mid:   #D1D0CC;
  --color-border-strong:#B5B4B0;

  /* Dark surface (footer, endcap, card) */
  --color-dark:               var(--color-obsidian);
  --color-text-on-dark:       var(--color-porcelain);
  --color-text-muted-on-dark: rgba(250, 250, 247, 0.62);
  --color-card-dark:        #11192A;
  --color-card-dark-hover:  #162033;
  --color-border-dark:      #2A3448;
  --color-border-dark-soft: #222C3F;
  --color-border-dark-strong:#36425A;
  --color-border-on-dark: rgba(250, 250, 247, 0.4);
  --color-border-on-dark-strong: rgba(250, 250, 247, 0.65);
  --color-surface-on-dark-hover: rgba(255, 255, 255, 0.08);
  --color-panel-dark-muted: #101827;
  --color-panel-dark-border: #283244;
  --color-gold-tint-dark: rgba(244, 180, 0, 0.08);

  /* ── Official Type Scale §4.5 ── */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body:    "DM Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --font-size-hero:  clamp(2.2rem, 5vw, 4.25rem);
  --font-size-h1:    clamp(2rem, 4.5vw, 3.5rem);
  --font-size-h2:    clamp(1.6rem, 3.2vw, 2.5rem);
  --font-size-h3:    clamp(1.25rem, 2.2vw, 1.75rem);
  --font-size-body:  1rem;
  --font-size-small: 0.9375rem;
  --font-size-xs:    0.8125rem;

  --line-height-tight:   1.1;
  --line-height-heading: 1.15;
  --line-height-body:    1.6;

  /* ── Spacing (8pt grid) ── */
  --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;

  /* ── Radii ── */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* ── Shadows – restrained §3.3 ── */
  --shadow-sm: 0 1px 3px rgba(11,13,18,.05), 0 1px 6px rgba(11,13,18,.04);
  --shadow:    0 2px 8px rgba(11,13,18,.07), 0 4px 16px rgba(11,13,18,.05);
  --shadow-lg: 0 4px 24px rgba(11,13,18,.09), 0 8px 32px rgba(11,13,18,.06);

  /* ── Layout ── */
  --max-w:         1100px;
  --container-pad: 24px;
}


/* ======================================================================
   2) TYPOGRAPHY SYSTEM
   §4.2: Playfair Display for h1–h4. DM Sans for everything else.
   ====================================================================== */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  letter-spacing: -0.01em;
  color: var(--color-text-strong);
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--font-size-h1); font-weight: 800; margin-bottom: var(--space-5); }
h2 { font-size: var(--font-size-h2); font-weight: 600; }
h3 { font-size: var(--font-size-h3); font-weight: 600; }
h4 { font-size: 1.125rem;            font-weight: 600; }

/* DM Sans for all UI elements §4.2 */
button, .btn-main, .btn-outline, nav,
input, select, textarea,
.badge, .chip, .pill, .eyebrow, .meta,
.small-heading, .fitcheck-label, .hub-mini-label,
.primer-kicker, .primer-fasttake-title,
.hero-gate-title, .hub-failure-title, .faq-question {
  font-family: var(--font-body);
}

p { margin: 0 0 var(--space-4); }

small, .small { font-size: var(--font-size-small); }

/* Links: Refined Royal §5.2 */
a {
  color: var(--color-royal);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--color-royal-hover);
}

strong { font-weight: 700; }

/* Eyebrow */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* Accent eyebrow: Signal Gold for "pay attention here" §5.2 */
.eyebrow--accent {
  color: var(--color-card-dark);
}

.eyebrow--accent-dark {
  color: var(--color-gold-text-on-dark);
}

/* Section lead */
.section-lead {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.section-header { margin-bottom: var(--space-8); }
.section-header h2 { margin-bottom: var(--space-3); }

/* Small heading: DM Sans utility label */
.small-heading {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}

/* Bullet list: structural §5.3 */
.bullet-list {
  margin: 0; padding: 0; list-style: none;
}
.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.55;
}
.bullet-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-weight: 700;
}

/* Decision frame §7.1 */
.decision-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}

.hr-soft {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}


/* ======================================================================
   3) LAYOUT & GRID
   ====================================================================== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section       { padding-block: var(--space-12); }
.section-lg    { padding-block: var(--space-16); }
.section-tight { padding-block: var(--space-8);  }

.grid  { display: grid; gap: var(--space-6); }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 820px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
}



/* ======================================================================
   4) HEADER & NAVIGATION
   Dark Obsidian header — distinctive, editorial anchor.
   ====================================================================== */

.site-header {
  background: var(--color-dark);
  border-bottom: 1px solid rgba(250, 250, 247, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  position: relative;
}

.nav--one-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: clamp(28px, 4vw, 36px);
  width: auto;
}

.nav-toggle {
  appearance: none;
  border: 1px solid rgba(250, 250, 247, 0.2);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 9px;
  display: none;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(250, 250, 247, 0.5);
}

.nav-toggle .nav-toggle-box {
  width: 20px;
  height: 2px;
  background: rgba(250, 250, 247, 0.8);
  border-radius: var(--radius-pill);
  transform-origin: center;
  transition:
    transform 0.28s cubic-bezier(.22, .61, .36, 1),
    opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: 700;
  color: rgba(250, 250, 247, 0.65);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-porcelain);
  background: rgba(250, 250, 247, 0.08);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--color-porcelain);
  background: rgba(250, 250, 247, 0.1);
}

@media (max-width: 959.98px) {
  .nav--one-line {
    flex-wrap: wrap;
  }

  #primaryNav.nav-links {
    position: static;
    width: 100%;
    background: var(--color-dark);
    border-top: 1px solid rgba(250, 250, 247, 0.08);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: 10px var(--space-4) 14px;
  }

  .nav-ready .nav-toggle {
    display: grid;
  }

  .nav-ready #primaryNav.nav-links {
    height: 0;
    padding: 0 var(--space-4);
    gap: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(250, 250, 247, 0);
    transition:
      height 0.24s cubic-bezier(.22, .61, .36, 1),
      opacity 0.16s ease,
      box-shadow 0.16s ease,
      visibility 0s linear 0.24s;
  }

  .nav-ready #primaryNav.nav-links::before,
  .nav-ready #primaryNav.nav-links::after {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 100%;
  }

  .nav-ready #primaryNav.nav-links::before {
    height: 10px;
  }

  .nav-ready #primaryNav.nav-links::after {
    height: 14px;
  }

  .nav-ready #primaryNav.nav-links a:not(:last-child) {
    margin-bottom: var(--space-1);
  }

  .nav-ready #primaryNav.nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: inset 0 1px 0 rgba(250, 250, 247, 0.08);
    transition:
      height 0.24s cubic-bezier(.22, .61, .36, 1),
      opacity 0.16s ease 0.04s,
      box-shadow 0.16s ease,
      visibility 0s;
  }

  .nav-links a {
    width: 100%;
    padding: 8px 12px;
  }
}

@media (min-width: 960px) {
  .nav-toggle,
  .nav-ready .nav-toggle {
    display: none;
  }

  #primaryNav.nav-links,
  .nav-ready #primaryNav.nav-links {
    height: auto !important;
    padding: 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    transition: none;
  }

  .nav-ready #primaryNav.nav-links::before,
  .nav-ready #primaryNav.nav-links::after {
    display: none;
  }
}

/* ======================================================================
   5) BUTTONS
   Primary: Refined Royal. Clear, confident, not over-styled §9.1
   ====================================================================== */
.btn-main,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease,
              border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.btn-main {
  background: var(--color-royal);
  color: #fff;
  border-color: var(--color-royal);
}
.btn-main:hover {
  background: var(--color-royal-hover);
  border-color: var(--color-royal-hover);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(21,94,173,.2);
}

.btn-outline {
  background: transparent;
  color: var(--color-royal);
  border-color: var(--color-royal);
}
.btn-outline:hover {
  background: var(--color-royal-light);
  color: var(--color-royal-hover);
  border-color: var(--color-royal-hover);
  text-decoration: none;
}

/* Inverse variants for dark section backgrounds */
.btn-main--inv {
  background: var(--color-white);
  color: var(--color-royal);
  border-color: var(--color-white);
}
.btn-main--inv:hover {
  background: var(--color-porcelain);
  border-color: var(--color-porcelain);
  color: var(--color-royal-hover);
  text-decoration: none;
}

.btn-outline--inv {
  background: transparent;
  color: var(--color-porcelain);
  border-color: rgba(250,250,247,.45);
}
.btn-outline--inv:hover {
  background: rgba(255,255,255,.1);
  color: var(--color-porcelain);
  border-color: rgba(250,250,247,.7);
  text-decoration: none;
}


/* ======================================================================
   6) CARDS
   ====================================================================== */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card--elevated { box-shadow: var(--shadow); }


/* ======================================================================
   7) CHIP / PILL SYSTEM
   DM Sans. One family. Restrained. §10
   ====================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: .28rem .72rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  line-height: 1.45;
}

/* Gold accent: proof/trust cues §5.2 */
.pill--accent {
  border-color: var(--color-gold-border);
  background: var(--color-gold-tint);
  color: #6B4E00; /* dark gold, WCAG AA */
}

.pill--primary {
  border-color: var(--color-royal);
  background: var(--color-royal-light);
  color: var(--color-royal);
}

.pill--muted {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.pill--tight { padding: .18rem .55rem; font-size: .75rem; }

@media (max-width: 520px) { .pill { white-space: normal; } }


/* ======================================================================
   8) FAQ COMPONENT — Canonical. Locked sitewide. §7.7 §8.1
   ====================================================================== */
.faq-header {
  margin-bottom: var(--space-8);
}

.faq-header > p.eyebrow {
  margin-bottom: var(--space-3);
}

.faq-header > p:not(.eyebrow) {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  overflow: hidden;
  transition: border-color .15s ease;
}

.faq-item > summary { list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item summary {
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  user-select: none;
  transition: background .13s ease;
}
.faq-item summary:hover { background: var(--color-bg); }

.faq-question {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--font-size-body);
  color: var(--color-text);
  line-height: 1.45;
}

.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-border);
  transition: border-color .15s ease, background .15s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.65rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  opacity: 0;
}

.faq-item[open] .faq-toggle {
  border-color: var(--color-gold-border);
  background: var(--color-gold-tint);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--color-border);
}
.faq-answer p {
  margin-top: var(--space-4);
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: var(--line-height-body);
}

.faq-item[open] { border-color: var(--color-gold-border); }

/* ======================================================================
   9) FOOTER
   ====================================================================== */
.site-footer {
  background: var(--color-dark);
  border-top: none;
}

.site-footer .container {
  padding-block: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(250,250,247,.09);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.foot-copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  color: rgba(250,250,247,.48);
  line-height: 1;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: 400;
  color: rgba(250,250,247,.62);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-nav a:hover { color: var(--color-text-on-dark); text-decoration: none; }

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  color: rgba(250, 250, 247, 0.55);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-legal-links a:hover { color: rgba(250,250,247,.72); text-decoration: none; }
.footer-legal-links span[aria-hidden="true"] { color: rgba(250,250,247,.2); }

.last-updated {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  color: rgba(250, 250, 247, 0.48);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 720px) {
  .footer-main, .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}


/* ======================================================================
   10) UTILITIES
   ====================================================================== */
.mt-1  { margin-top: var(--space-1);  } .mt-2  { margin-top: var(--space-2);  }
.mt-3  { margin-top: var(--space-3);  } .mt-4  { margin-top: var(--space-4);  }
.mt-5  { margin-top: var(--space-5);  } .mt-6  { margin-top: var(--space-6);  }
.mt-8  { margin-top: var(--space-8);  } .mt-10 { margin-top: var(--space-10); }

.mb-1  { margin-bottom: var(--space-1);  } .mb-2  { margin-bottom: var(--space-2);  }
.mb-3  { margin-bottom: var(--space-3);  } .mb-4  { margin-bottom: var(--space-4);  }
.mb-5  { margin-bottom: var(--space-5);  } .mb-6  { margin-bottom: var(--space-6);  }
.mb-8  { margin-bottom: var(--space-8);  } .mb-10 { margin-bottom: var(--space-10); }

.pt-4  { padding-top: var(--space-4);    } .pt-6  { padding-top: var(--space-6);    }
.pt-8  { padding-top: var(--space-8);    } .pb-4  { padding-bottom: var(--space-4); }
.pb-6  { padding-bottom: var(--space-6); } .pb-8  { padding-bottom: var(--space-8); }

.d-none         { display: none !important;           }
.d-block        { display: block !important;          }
.d-flex         { display: flex !important;           }
.flex-wrap      { flex-wrap: wrap !important;         }
.justify-center { justify-content: center !important; }
.align-center   { align-items: center !important;     }
.text-center    { text-align: center !important;      }
.text-muted     { color: var(--color-text-muted) !important; }

@media (max-width: 640px) { .hide-sm { display: none !important; } }


/* ======================================================================
   11) ACCESSIBILITY & PRINT
   ====================================================================== */
:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem; top: 1rem;
  width: auto; height: auto;
  padding: .75rem 1.25rem;
  overflow: visible;
  z-index: 1000;
  border-radius: var(--radius-pill);
  background: var(--color-card);
  color: var(--color-royal);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer,
  .btn-main, .btn-outline { display: none !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* ======================================================================
   12) AFFILIATE DISCLOSURE
   ====================================================================== */


/* Disclosure */
.hero-disclosure {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  margin-top: var(--space-4);
  line-height: 1.6;
}

/* ======================================================================
   13) ENDCAP COMPONENT
   Reusable closing CTA section for page-level next steps.
   ====================================================================== */

.site-endcap {
  background: var(--color-dark);
  border-top: none;
}

.site-endcap-card {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-12) 0;
  text-align: center;
}

.site-endcap-card .eyebrow {
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.site-endcap-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--color-text-on-dark);
}

.site-endcap-text {
  margin: 0 auto var(--space-8);
  max-width: 56ch;
  color: var(--color-text-muted-on-dark);
  font-size: var(--font-size-small);
  line-height: 1.7;
}

.site-endcap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

@media (max-width: 480px) {
  .site-endcap-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-endcap-actions .btn-main,
  .site-endcap-actions .btn-outline {
    width: 100%;
  }
}