/* ==========================================================================
   Know Your Debt Rights — site stylesheet
   --------------------------------------------------------------------------
   BRAND TOKENS: every color, font and radius lives in :root below.
   To match your brand identity file, edit ONLY this block.
   ========================================================================== */

/* ---- Self-hosted fonts (SIL OFL — licenses in /fonts) ---- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --navy-900: #0b1624;      /* primary dark / hero background */
  --navy-800: #13233a;
  --navy-700: #1d3353;
  --paper: #f7f4ec;         /* warm off-white page background */
  --paper-2: #efeadd;       /* alternate section background */
  --white: #ffffff;
  --ink: #16202c;           /* body text on light */
  --ink-muted: #4a5666;
  --line: #d9d2c1;
  --signal: #f2b233;        /* accent — CTAs, highlights */
  --signal-dark: #d4951a;
  --stop: #c8372d;          /* "prohibited" red */
  --ok: #2f7d4f;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Shape & rhythm */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(11, 22, 36, .06), 0 8px 24px rgba(11, 22, 36, .08);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--stop); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: inherit; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--navy-900); color: #e6ecf3; }
.section--dark a { color: var(--signal); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stop);
  margin-bottom: .9rem;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--signal); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-muted); max-width: 60ch; }
.section--dark .lede { color: #b9c5d3; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.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: 8px; top: -60px; z-index: 100;
  background: var(--signal); color: var(--navy-900); padding: 10px 14px; border-radius: var(--radius);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1rem/1 var(--font-body);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--signal); color: var(--navy-900); }
.btn--primary:hover { background: var(--signal-dark); color: var(--navy-900); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { color: var(--signal); }
.btn--block { width: 100%; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 36, .96);
  backdrop-filter: saturate(140%) blur(6px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 1.05rem; line-height: 1.1; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: #d5deea; text-decoration: none; font-weight: 600; font-size: .96rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .nav-cta { background: var(--signal); color: var(--navy-900); margin-left: 8px; }
.site-nav .nav-cta:hover { background: var(--signal-dark); color: var(--navy-900); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .no-js .site-nav { display: block; position: static; }
}

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242, 178, 51, .16), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 104px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .lede { color: #c2cddb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { font-size: .88rem; color: #92a2b6; margin-top: 16px; }
.hero-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  padding: 26px; transform: rotate(1.5deg);
}
.hero-card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0 0 4px; }
.hero-card__sub { font-size: .85rem; color: var(--ink-muted); margin-bottom: 16px; }
.hero-card ol { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.hero-card li {
  counter-increment: rule; display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; font-weight: 600;
}
.hero-card li::before {
  content: counter(rule); display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--stop); color: #fff; font-size: .75rem; font-weight: 800;
}
.hero-card__fade { font-size: .8rem; color: var(--ink-muted); text-align: center; margin: 10px 0 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; max-width: 520px; }
}

/* ---- Page hero (interior pages) ---- */
.page-hero { background: var(--navy-900); color: #fff; padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px); }
.page-hero .lede { color: #c2cddb; }

/* ---- Authority / sources strip ---- */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.source {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.source__tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.source__name { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.source__cite { font-size: .88rem; color: var(--ink-muted); margin: 0; }
.source a { font-size: .88rem; font-weight: 600; margin-top: auto; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat { border-left: 4px solid var(--signal); padding: 4px 0 4px 16px; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1; }
.stat__label { font-size: .92rem; color: var(--ink-muted); margin: 6px 0 0; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }

/* ---- Rights preview list ---- */
.rights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.rights li {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); padding: 18px;
}
.rights .x {
  width: 32px; height: 32px; border-radius: 50%; background: var(--stop); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.rights strong { display: block; color: #fff; margin-bottom: 2px; }
.rights span.cite { font-size: .8rem; color: #8ea0b6; }
.rights p { margin: 0; font-size: .95rem; color: #b9c5d3; }
@media (max-width: 760px) { .rights { grid-template-columns: 1fr; } }

/* ---- Pillars / how it works ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.pillar__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--navy-900); color: var(--signal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar p { color: var(--ink-muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 48px 0 0; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--signal-dark);
}
.steps p { color: var(--ink-muted); margin: 0; }
@media (max-width: 860px) { .pillars, .steps { grid-template-columns: 1fr; } }

/* ---- Opt-in ---- */
.optin {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.optin h2 { color: #fff; }
.optin .lede { color: #c2cddb; }
.optin ul { list-style: none; padding: 0; margin: 20px 0 0; }
.optin ul li { padding-left: 28px; position: relative; margin-bottom: 8px; color: #dbe3ee; }
.optin ul li::before { content: "✓"; position: absolute; left: 0; color: var(--signal); font-weight: 800; }
.optin-form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px; }
.optin-form__title { font-weight: 800; font-size: 1.1rem; margin: 0 0 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input {
  width: 100%; font: inherit; padding: .85rem 1rem; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(242, 178, 51, .45); }
.field input[aria-invalid="true"] { border-color: var(--stop); }
.field-error { color: var(--stop); font-size: .85rem; margin: 6px 0 0; min-height: 1em; }
.form-consent { font-size: .78rem; color: var(--ink-muted); margin: 12px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9rem; margin: 10px 0 0; }
@media (max-width: 860px) { .optin { grid-template-columns: 1fr; } }

/* ---- Course teaser / affiliate slot ---- */
.teaser {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 28px; background: var(--white);
}
.teaser__badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--navy-900); color: var(--signal); padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.teaser__title { font-family: var(--font-body); font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.teaser p { margin: 0; color: var(--ink-muted); }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--signal-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-muted); }

/* ---- Prose (about, legal) ---- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #2a3542; }
.prose blockquote {
  margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--signal);
  background: var(--white); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.35;
}
.placeholder-note {
  background: #fff6de; border: 1px solid #f0d58f; border-radius: var(--radius);
  padding: 14px 16px; font-size: .92rem; color: #5b4608; margin: 0 0 24px;
}
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.toc ol { margin: 8px 0 0; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 92px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---- Content index ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: 600 .9rem/1 var(--font-body); padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); }
.card__media img, .card__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-facade { all: unset; display: block; position: relative; width: 100%; height: 100%; cursor: pointer; }
.video-facade:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
.video-facade__play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(200, 55, 45, .95); display: grid; place-items: center; transition: transform .15s ease;
}
.video-facade:hover .video-facade__play { transform: scale(1.08); }
.video-facade__play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); display: flex; gap: 10px; }
.card__meta .type { color: var(--stop); }
.card h2, .card h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 800; line-height: 1.3; margin: 0; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--stop); }
.card p { color: var(--ink-muted); font-size: .95rem; margin: 0; }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .92rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---- Thank-you ---- */
.checklist { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.checklist li {
  counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: counter(s); width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: var(--signal); display: grid; place-items: center; font-weight: 800;
}
.checklist h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 800; margin: 6px 0 4px; }
.checklist p { margin: 0 0 10px; color: var(--ink-muted); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-row .btn { padding: .75rem 1rem; font-size: .92rem; }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-900); color: #9fb0c4; padding: 56px 0 32px; font-size: .92rem; }
.site-footer a { color: #d5deea; }
.site-footer a:hover { color: var(--signal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.disclosures { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 24px; font-size: .82rem; line-height: 1.6; }
.disclosures p { margin-bottom: .8em; }
.disclosures strong { color: #d5deea; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.aside-card h2 { font-size: 1.5rem; }
code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
