/* =====================================================================
   MZB Academy — styles
   Navy and gold brand system. Tokens, base, components, pages.
   ===================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
/* Fallback sized to match Newsreader, so text doesn't shift when the web font arrives */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times"), local("Liberation Serif"), local("Tinos");
  size-adjust: 107.3%;
}
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #111F39;
  --navy-deep: #0B1529;
  --navy-soft: #1B2D52;
  --navy-line: #2A3B60;
  --gold: #C2A259;
  --gold-bright: #D4B66E;
  --gold-ink: #86692A;        /* gold for text on white */
  --ink: #111F39;
  --ink-2: #38445B;
  --muted: #5D697E;
  --on-navy: #C5CDDC;
  --line: #E2E6ED;
  --line-2: #CBD2DD;
  --paper: #FFFFFF;
  --wash: #F5F7FA;
  --focus: #2B59E0;

  --font-display: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.5rem + 1vw, 2.125rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.1vw, 3.125rem);
  --step-5: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);

  --gutter: clamp(1.125rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1220px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 20px;
  --shadow-1: 0 1px 2px rgba(17, 31, 57, .06), 0 4px 14px rgba(17, 31, 57, .05);
  --shadow-2: 0 2px 4px rgba(17, 31, 57, .06), 0 18px 40px -12px rgba(17, 31, 57, .22);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em;
  margin: 0; font-optical-sizing: auto; text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; 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: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--navy); padding: .6rem 1rem; border-radius: var(--r-s); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 60ch; }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; background: var(--c, var(--gold)); flex: none; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.5rem; border-radius: var(--r-s); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow-1); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 8px 24px -8px rgba(194, 162, 89, .6); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.text-link:hover { text-decoration-thickness: 2.5px; }
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--navy); }
.arrow-link svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 99px; background: #F4EEDD; color: #6E561F; font-size: .78rem; font-weight: 600; }
.badge-soon { display: inline-block; margin-left: .4rem; padding: .12rem .55rem; border-radius: 99px; background: var(--wash); color: var(--muted); font-family: var(--font-body); font-size: .75rem; font-weight: 600; vertical-align: middle; letter-spacing: 0; }

/* Course icon tile */
.tile { --size: 48px; width: var(--size); height: var(--size); border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--c); color: #fff; }
.tile svg { width: 54%; height: 54%; }
.tile-sm { --size: 38px; border-radius: 10px; }
.tile-lg { --size: 56px; border-radius: 14px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-deep); color: var(--on-navy); font-size: .875rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.utility-contact { list-style: none; display: flex; gap: 1.5rem; }
.utility a { text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; }
.utility a:hover { color: #fff; }
.utility svg { width: 15px; height: 15px; color: var(--gold); }
.login-menu { position: relative; }
.login-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 0; font-weight: 600; color: #fff; }
.login-menu summary::-webkit-details-marker { display: none; }
.login-menu summary svg { color: var(--gold); transition: transform .2s var(--ease); }
.login-menu[open] summary svg:last-child { transform: rotate(180deg); }
.login-menu ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 70; min-width: 250px; list-style: none; background: #fff; color: var(--ink); border-radius: var(--r-m); padding: .4rem; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.login-menu li a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: var(--r-s); font-size: .95rem; font-weight: 500; color: var(--ink); }
.login-menu li a:hover { background: var(--wash); color: var(--ink); }
.login-menu .login-note { padding: .5rem .75rem .35rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: .3rem; }
@media (max-width: 640px) { .utility-contact li:nth-child(2) { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(17, 31, 57, .25); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: auto; height: 38px; }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .15rem; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .9rem; border-radius: var(--r-s);
  text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--wash); color: var(--navy); }
.nav-link[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-trigger svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-cta { margin-left: .75rem; }

.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 3px solid var(--gold);
  box-shadow: 0 30px 50px -28px rgba(17, 31, 57, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: 1fr 290px; gap: 2.5rem; padding-block: 1.75rem 2rem; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem; list-style: none; }
.mega-item { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; padding: .8rem; border-radius: var(--r-m); text-decoration: none; transition: background-color .15s var(--ease); }
.mega-item .tile { --size: 44px; }
.mega-item:hover { background: var(--wash); }
.mega-item strong { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.mega-item small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; margin-top: .15rem; }
.mega-aside { background: var(--wash); border-radius: var(--r-m); padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; align-self: start; }
.mega-aside h2 { font-size: 1.3rem; }
.mega-aside p { color: var(--muted); font-size: .95rem; }

.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: var(--r-s); border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-panel { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - var(--header-h)); background: #fff; overflow-y: auto; padding: 1.25rem var(--gutter) 6rem; display: none; border-top: 1px solid var(--line); }
.mobile-panel.is-open { display: block; }
.mobile-heading { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: .25rem 0 .5rem; }
.mobile-courses { list-style: none; display: grid; gap: .1rem; margin-bottom: 1.25rem; }
.mobile-courses a { display: flex; align-items: center; gap: .9rem; padding: .6rem .25rem; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.mobile-courses .tile { --size: 38px; border-radius: 10px; }
.mobile-links { list-style: none; border-top: 1px solid var(--line); padding-top: .6rem; margin-bottom: 1.5rem; }
.mobile-links a { display: block; padding: .75rem .25rem; text-decoration: none; font-size: 1.05rem; font-weight: 500; }
body.menu-open { overflow: hidden; }
@media (max-width: 980px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  :root { --header-h: 68px; }
  .brand img { height: 32px; }
}

/* ---------- Navy surfaces (hero, page hero, course hero) ---------- */
.on-navy { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.on-navy::before {
  /* 45° geometry borrowed from the logo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(255, 255, 255, .035) 62% 74%, transparent 74%),
    linear-gradient(135deg, transparent 0 78%, rgba(194, 162, 89, .10) 78% 81%, transparent 81%),
    radial-gradient(1100px 520px at 12% -10%, #1D3261 0%, transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.on-navy .kicker { color: var(--gold); }
.on-navy .breadcrumbs { color: var(--on-navy); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 4.5vw, 5.75rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.022em; margin-top: 1.1rem; }
.hero-lede { font-size: var(--step-1); line-height: 1.6; color: var(--on-navy); margin-top: 1.4rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.finder { background: #fff; color: var(--ink); border-radius: var(--r-l); padding: 1.5rem 1.25rem 1.1rem; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .55); border-top: 4px solid var(--gold); }
.finder h2 { font-size: 1.5rem; padding-inline: .5rem; margin-bottom: .6rem; }
.finder ul { list-style: none; }
.finder li + li { border-top: 1px solid var(--line); }
.finder li a { display: grid; grid-template-columns: 38px 1fr 18px; gap: .85rem; align-items: center; padding: .62rem .5rem; text-decoration: none; border-radius: var(--r-s); transition: background-color .15s var(--ease); }
.finder li a:hover { background: var(--wash); }
.finder .f-name { display: block; font-weight: 600; line-height: 1.25; }
.finder .f-cat { display: block; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.finder li a > svg { width: 18px; height: 18px; color: var(--line-2); transition: transform .18s var(--ease), color .18s var(--ease); }
.finder li a:hover > svg { color: var(--navy); transform: translateX(3px); }
.finder-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; padding: .9rem .5rem 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid rgba(255, 255, 255, .14); }
.trust > div { padding: 1.5rem 1.5rem 1.75rem 0; }
.trust > div + div { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.trust dt { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 500; line-height: 1.1; color: #fff; }
.trust dt b { color: var(--gold); font-weight: 500; }
.trust dd { color: var(--on-navy); font-size: .95rem; margin-top: .3rem; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 420px) { .trust > div { padding-right: .75rem; } .trust > div + div { padding-left: .9rem; } .trust > div:nth-child(3) { padding-left: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.75rem, 2.75rem + 4.5vw, 6.75rem); }
.section-wash { background: var(--wash); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { font-size: var(--step-4); letter-spacing: -0.02em; }
.section-head h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--gold); margin-bottom: 1.25rem; }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center h2::before { margin-inline: auto; }
.section-foot { margin-top: 2.25rem; }

/* ---------- Course cards ---------- */
.card-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.course-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 1.6rem 1.6rem 1.25rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.course-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--c); border-radius: var(--r-m) var(--r-m) 0 0; }
.course-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.course-card:has(:is(h2, h3) a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.card-cat { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.course-card :is(h2, h3) { font-size: 1.7rem; line-height: 1.12; }
.course-card :is(h2, h3) a { text-decoration: none; }
.course-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--r-m); }
.course-card :is(h2, h3) a:focus-visible { outline: none; }
.card-program { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.card-tagline { color: var(--ink-2); margin-top: .7rem; }
.card-facts { margin-top: 1.25rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.card-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .93rem; border-bottom: 1px solid var(--line); }
.card-facts dt { color: var(--muted); }
.card-facts dd { font-weight: 600; text-align: right; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1.15rem; }
.card-foot .arrow-link { font-size: .97rem; }
.course-card:hover .arrow-link svg { transform: translateX(3px); }
.card-site { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: .25rem 0; }
.card-site svg { width: 15px; height: 15px; }
.card-site:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.help-card { grid-column: span var(--span3, 1); background: var(--navy); color: #fff; border-color: var(--navy); justify-content: center; padding: 2rem; overflow: hidden; }
.help-card::before { background: var(--gold); }
.help-card:hover { transform: none; box-shadow: none; border-color: var(--navy); }
.help-card h3 { font-size: var(--step-3); max-width: 18ch; }
.help-card p { color: var(--on-navy); margin-top: .7rem; max-width: 44ch; }
.help-card .btn { margin-top: 1.5rem; align-self: flex-start; }
@media (max-width: 1020px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .help-card { grid-column: span var(--span2, 1); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; gap: 1.1rem; } .help-card { grid-column: auto; } }

/* ---------- Start free ---------- */
.free-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.free-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow-1); }
.free-course { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.free-card h3 { font-size: 1.45rem; line-height: 1.15; margin-top: .8rem; }
.free-card p { color: var(--ink-2); font-size: .98rem; margin-top: .6rem; margin-bottom: 1.25rem; }
.free-card .arrow-link { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 99px;
  display: grid; place-items: center; background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 60px; right: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.75rem) + 8px); top: 26px; height: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { padding-top: 0; padding-left: 4.25rem; min-height: 52px; } }

/* ---------- Approach / founder (navy) ---------- */
.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 5.5rem); align-items: center; }
.approach h2 { font-size: var(--step-4); letter-spacing: -0.02em; margin-top: 1rem; }
.approach .lede { color: var(--on-navy); margin-top: 1.25rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2.75rem; margin-block: 2rem; }
.stats dt { font-family: var(--font-display); font-size: var(--step-4); font-weight: 500; line-height: 1; color: var(--gold); }
.stats dd { color: var(--on-navy); font-size: .95rem; margin-top: .4rem; }
.on-navy .text-link { color: #fff; }
.principles { list-style: none; counter-reset: p; display: grid; gap: 1rem; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-m); padding: 1.35rem 1.5rem; }
.principles li::before { content: "0" counter(p); font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold); }
.principles h3 { font-size: 1.35rem; color: #fff; }
.principles p { color: var(--on-navy); font-size: .98rem; margin-top: .35rem; }
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.3rem 0; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.25; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-ink); }
.faq-list summary .pm { width: 34px; height: 34px; flex: none; position: relative; border: 1.5px solid var(--line-2); border-radius: 99px; }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .2s var(--ease); }
.faq-list summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list .answer { padding: 0 3rem 1.5rem 0; color: var(--ink-2); max-width: 66ch; }
.faq-list .answer a { font-weight: 600; color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--wash); border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.cta-band h2 { font-size: var(--step-4); letter-spacing: -0.02em; }
.cta-band p { color: var(--ink-2); margin-top: .8rem; max-width: 50ch; font-size: var(--step-1); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 820px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 4rem 3rem; }
.footer-about { margin-top: 1.25rem; font-size: .97rem; max-width: 34ch; }
.footer-col h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { text-decoration: none; font-size: .97rem; display: inline-flex; align-items: center; gap: .55rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid var(--navy-line); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; color: #97A2B8; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2.75rem, 2rem + 3.5vw, 5rem); }
.page-hero h1 { font-size: var(--step-5); letter-spacing: -0.022em; line-height: 1.04; margin-top: 1rem; max-width: 18ch; }
.page-hero .hero-lede { max-width: 60ch; }
.breadcrumbs { font-size: .92rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs span[aria-hidden] { margin-inline: .5rem; opacity: .6; }

/* ---------- Catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1.5px solid var(--line-2); background: #fff; border-radius: 99px; padding: .5rem 1rem; min-height: 44px; font-weight: 500; font-size: .95rem; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .count { color: var(--muted); margin-left: .4rem; font-weight: 400; }
.chip[aria-pressed="true"] .count { color: var(--gold); }
.search { position: relative; flex: 0 1 330px; }
.search input { width: 100%; min-height: 48px; padding: .6rem 1rem .6rem 2.7rem; border-radius: var(--r-s); border: 1.5px solid var(--line-2); font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.search svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.result-note { font-size: .95rem; color: var(--muted); margin-bottom: 1.5rem; }
.empty { padding: 3rem; background: var(--wash); border-radius: var(--r-m); }
.empty :is(h2, h3) { font-size: var(--step-2); margin-bottom: .5rem; }
@media (max-width: 640px) { .search { flex: 1 1 100%; } }

/* ---------- Course page ---------- */
.course-hero { padding-block: clamp(2.25rem, 2rem + 2.5vw, 4rem) 0; border-top: 4px solid var(--c); }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: center; }
.course-hero .kicker { display: flex; align-items: center; gap: .6rem; margin-top: 1.75rem; }
.course-hero h1 { font-size: var(--step-5); letter-spacing: -0.022em; line-height: 1.02; margin-top: .9rem; }
.course-hero .tagline { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.3; color: var(--on-navy); margin-top: 1rem; max-width: 34ch; }
.course-hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.course-emblem { width: clamp(180px, 20vw, 250px); aspect-ratio: 1; border-radius: 32px; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .18); transform: rotate(-4deg); position: relative; }
.course-emblem::after { content: ""; position: absolute; inset: -14px; border-radius: 42px; border: 1.5px solid rgba(194, 162, 89, .45); transform: rotate(8deg); }
.course-emblem svg { width: 48%; height: 48%; stroke-width: 1.6; }
.facts { display: flex; flex-wrap: wrap; margin-top: clamp(2.25rem, 2rem + 2vw, 3.5rem); border-top: 1px solid rgba(255, 255, 255, .14); }
.facts > div { padding: 1.35rem 2.5rem 1.6rem 0; }
.facts > div + div { padding-left: 2.5rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.facts dt { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.facts dd { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; margin-top: .35rem; }
@media (max-width: 860px) {
  .course-hero-grid { grid-template-columns: 1fr; } .course-emblem { display: none; }
  .facts > div { padding: 1rem 1.5rem 1.1rem 0; flex: 1 1 100%; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
}

.switcher { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.switcher-inner { position: relative; display: flex; align-items: center; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding-block: .55rem; }
.switcher-inner::-webkit-scrollbar { display: none; }
.switcher-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: .6rem; white-space: nowrap; }
.switcher a { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .45rem .85rem; border-radius: 99px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.switcher a:hover { background: var(--wash); color: var(--navy); }
.switcher a[aria-current="page"] { background: var(--navy); color: #fff; }

.course-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.course-body h2 { font-size: var(--step-3); margin-bottom: 1.1rem; }
.course-body .lede { margin-bottom: 3rem; }
.outcomes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.outcomes li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; color: var(--ink-2); background: var(--wash); border-radius: var(--r-m); padding: 1.1rem 1.2rem; }
.outcomes svg { width: 26px; height: 26px; color: var(--c); margin-top: .05rem; }
.outcomes ~ h2 { margin-top: 3rem; }
@media (max-width: 640px) { .outcomes { grid-template-columns: 1fr; } }
.price-list { list-style: none; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; max-width: 560px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; color: var(--ink-2); }
.price-list li + li { border-top: 1px solid var(--line); }
.price-list strong { color: var(--navy); font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.updated { font-size: .9rem; margin-top: 2.5rem; }
.aside-box { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r-m); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 76px); box-shadow: var(--shadow-1); background: #fff; }
.aside-box h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.aside-box > ul { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.aside-box > ul li { padding-left: 1.2rem; position: relative; color: var(--ink-2); }
.aside-box > ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 99px; background: var(--c); }
.aside-box .btn { width: 100%; }
.aside-note { font-size: .88rem; margin-top: .75rem; text-align: center; }
.quick-links { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.4rem; }
.quick-links h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.quick-links ul { list-style: none; display: grid; gap: .55rem; }
.quick-links a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.quick-links a:hover { text-decoration-thickness: 2px; }
@media (max-width: 900px) { .course-body { grid-template-columns: 1fr; } .aside-box { position: static; } }

/* ---------- About / Contact ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.prose { max-width: 64ch; }
.prose h2 { font-size: var(--step-3); margin: 2.75rem 0 1rem; }
.prose p { margin-bottom: 1.15rem; color: var(--ink-2); }
.prose > p:first-child { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.brand-panel { border-radius: var(--r-l); padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem); position: sticky; top: calc(var(--header-h) + 24px); }
.brand-panel img { width: min(100%, 250px); height: auto; margin: 1rem auto 2.25rem; }
.brand-panel dl { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.brand-panel dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.brand-panel dt { color: var(--on-navy); font-size: .95rem; }
.brand-panel dd { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); text-align: right; }
.brand-panel .bars { display: flex; gap: 6px; margin-top: 1.75rem; }
.brand-panel .bars span { height: 6px; flex: 1; border-radius: 99px; background: var(--c); }
@media (max-width: 900px) { .brand-panel { position: static; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-1); }
.form-card h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .8rem 1rem; border-radius: var(--r-s); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); width: 100%; min-height: 50px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C23B2A; }
.field .error { color: #B0321F; font-size: .9rem; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; }
.form-status a { font-weight: 600; color: inherit; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--r-s); background: #E8F5EE; color: #0B5C40; font-weight: 500; }
.form-status.is-error { background: #FBECE9; color: #8E2A1C; }
.contact-card { border-radius: var(--r-l); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.contact-card h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }
.contact-card dl { display: grid; gap: 1.3rem; }
.contact-card dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.contact-card dd { margin-top: .3rem; font-size: 1.08rem; }
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-card .course-logins { list-style: none; display: grid; gap: .5rem; margin-top: .5rem; font-size: 1rem; }
.contact-card .course-logins a { display: inline-flex; align-items: center; gap: .55rem; color: var(--on-navy); }
.contact-card .course-logins a:hover { color: #fff; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.notfound h1 { font-size: var(--step-5); margin-block: 1rem 1.25rem; }
.notfound .hero-actions { margin-top: 2rem; }

/* Full-width stacked buttons on phones */
@media (max-width: 520px) {
  .hero-actions .btn, .course-hero .actions .btn { flex: 1 1 100%; }
}

/* ---------- One page-load moment: the home hero settles in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-copy > *, .hero .finder { animation: rise .7s var(--ease) backwards; }
  .hero .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero .finder { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
