/* ============================================================
   Capella Tutors, capellatutors.com
   Design system "The Scoring Guide", v2 (design gate draft)
   School theme colors: Capella crimson #C8102E, rose #FF4D6A,
   gold #E9B949, on a light graded-paper base with ink sections.
   Independent tutoring service. Not affiliated with Capella University.
   ============================================================ */

:root {
  /* Capella school color family (network convention) */
  --crimson: #C8102E;
  --crimson-deep: #A60D26;
  --rose: #FF4D6A;          /* accents on dark ink */
  --gold: #E9B949;          /* stars and small highlights */
  --crimson-tint: rgba(200, 16, 46, 0.14);
  --crimson-line: rgba(200, 16, 46, 0.45);
  --accent: #FF5468;        /* text-safe crimson on dark */

  /* dark graded-ink base (dark theme) */
  --paper: #0F1218;
  --paper-deep: #131722;    /* deeper band */
  --card-light: #1A1F2B;
  --ink-on-paper: #E9EBF0;
  --muted-on-paper: #9CA3B0;
  --line-on-paper: #262C39;
  --line-strong: #394152;

  /* ink navy-black sections (deliberately bluer than the preceptor charcoal) */
  --ink: #1A1F2C;
  --ink2: #212736;
  --card-ink: #242B3A;
  --line-ink: #333B4C;
  --text-on-ink: #F0F1F4;
  --muted-on-ink: #9AA0AC;
  --faint-on-ink: #6E7482;

  /* performance-level chips (scoring-guide motif) */
  --lv-d: #C8102E;          /* Distinguished, the Capella red */
  --lv-p: #2E7D5B;          /* Proficient */
  --lv-b: #B98A2B;          /* Basic */
  --lv-n: #7A7E88;          /* Non-performance */

  /* type stacks */
  --f-display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;

  --r-card: 16px;
  --r-btn: 12px;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 18px 60px rgba(0, 0, 0, 0.6);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-on-paper);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* sleek themed scrollbars, sitewide */
html { scrollbar-width: thin; scrollbar-color: #333B4C var(--paper); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #333B4C; border-radius: 999px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #4A5468; }

::selection { background: var(--crimson); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.14rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 14px; }

.eyebrow {
  font-family: var(--f-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}
.on-ink .eyebrow { color: var(--rose); }

.lead { font-size: 1.12rem; color: var(--muted-on-paper); max-width: 60ch; }
.on-ink .lead { color: var(--muted-on-ink); }

/* mono course-code chip, a core brand motif */
.code-chip {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--crimson-tint);
  border: 1px solid var(--crimson-line);
  border-radius: 8px;
  padding: 3px 9px;
  display: inline-block;
  white-space: nowrap;
}
.on-ink .code-chip, .sg-card .code-chip { color: #FF8298; background: rgba(255, 77, 106, 0.12); border-color: rgba(255, 77, 106, 0.38); }

/* performance-level chip row (scoring-guide motif) */
.levels { display: flex; gap: 6px; flex-wrap: wrap; }
.lv {
  font-family: var(--f-body); font-size: 0.78rem; font-weight: 600;
  padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line-ink);
  color: var(--faint-on-ink); background: transparent; cursor: pointer; transition: all .18s ease;
}
.lv:hover { color: var(--text-on-ink); border-color: #3E4655; }
.lv.is-on[data-lv="d"] { background: var(--lv-d); border-color: var(--lv-d); color: #FFFFFF; }
.lv.is-on[data-lv="p"] { background: var(--lv-p); border-color: var(--lv-p); color: #FFFFFF; }
.lv.is-on[data-lv="b"] { background: var(--lv-b); border-color: var(--lv-b); color: #FFFFFF; }
.lv.is-on[data-lv="n"] { background: var(--lv-n); border-color: var(--lv-n); color: #FFFFFF; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-display); font-weight: 700; font-size: 0.98rem;
  border-radius: var(--r-btn); padding: 13px 24px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--crimson); color: #FFFFFF; }
.btn-brand:hover { background: var(--crimson-deep); }
.btn-ghost { background: transparent; color: var(--ink-on-paper); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.on-ink .btn-ghost { color: var(--text-on-ink); border-color: #3B4250; }
.on-ink .btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn-ink { background: #E9EBF0; color: #12151D; }
.btn-ink:hover { background: #FFFFFF; }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15, 18, 24, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-on-paper);
}
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand > span { line-height: 1.12; }
.brand-tile {
  width: 38px; height: 38px; border-radius: 10px; background: var(--crimson);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800;
  font-size: 1.02rem; color: #FFFFFF; letter-spacing: -0.04em;
}
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; color: var(--ink-on-paper); line-height: 1.05; }
.brand-sub { font-family: var(--f-body); font-size: 0.72rem; font-weight: 500; color: #8A8F9C; }
.site-foot .brand-name { color: var(--text-on-ink); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--f-body); font-size: 0.94rem; font-weight: 600;
  text-decoration: none;
  color: var(--muted-on-paper); padding: 8px 11px; border-radius: 6px; position: relative;
}
.nav-links a span { position: relative; z-index: 1; }
.nav-links a::after {
  /* red-pen swipe hover, the nav's signature indicator */
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 7px; height: 9px;
  background: var(--crimson); opacity: 0; transform: scaleX(0.4); transform-origin: left;
  transition: transform .18s ease, opacity .18s ease; z-index: 0; border-radius: 2px;
}
.nav-links a:hover { color: var(--ink-on-paper); }
.nav-links a:hover::after { opacity: 0.2; transform: scaleX(1); }

.head-cta { margin-left: 10px; }
.nav-burger {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: 9px;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink-on-paper); font-size: 1.1rem;
}
@media (max-width: 940px) {
  .nav-links, .head-cta { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .site-head .wrap { height: 62px; }
  .site-head.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line-on-paper);
    padding: 12px 18px 18px; gap: 2px;
  }
  .site-head.menu-open .nav-links a { padding: 13px 10px; font-size: 0.8rem; }
}

/* ============================================================
   HERO (light paper, ink scoring-guide card)
   ============================================================ */
.hero { padding: 84px 0 70px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 85% 0%, rgba(200, 16, 46, 0.05), transparent 62%),
    radial-gradient(520px 380px at 0% 100%, rgba(233, 185, 73, 0.07), transparent 60%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 54px 0 56px; } }

.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: -2px; right: -4px; bottom: 0.1em; height: 0.34em;
  background: var(--crimson); opacity: 0.2; z-index: -1; border-radius: 3px; transform: rotate(-0.6deg);
}
.hero-sub { font-size: 1.14rem; color: var(--muted-on-paper); max-width: 54ch; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; list-style: none; }
.hero-points li { display: flex; gap: 10px; align-items: baseline; color: var(--muted-on-paper); font-size: 0.95rem; }
.hero-points li::before { content: "+"; font-family: var(--f-display); color: var(--accent); font-weight: 700; }

/* the interactive scoring-guide card (ink, on the light hero) */
.sg-card {
  background: var(--card-ink); border: 1px solid var(--line-ink); border-radius: var(--r-card);
  box-shadow: var(--shadow-2); overflow: hidden; color: var(--text-on-ink);
}
.sg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-ink); background: var(--ink2);
}
.sg-head .sg-title { font-family: var(--f-body); font-size: 0.88rem; font-weight: 600; color: var(--muted-on-ink); }
.sg-rows { padding: 8px 18px 4px; }
.sg-row { padding: 13px 0 12px; border-bottom: 1px dashed #262C3A; }
.sg-row:last-child { border-bottom: none; }
.sg-crit { font-size: 0.92rem; font-weight: 600; margin-bottom: 9px; color: var(--text-on-ink); }
.sg-note {
  margin: 10px 18px 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 77, 106, 0.09); border: 1px solid rgba(255, 77, 106, 0.28);
  font-size: 0.88rem; color: #E3D9DC;
}
.sg-note strong { color: var(--rose); }
.sg-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; background: var(--ink2); border-top: 1px solid var(--line-ink); }
.sg-score { font-family: var(--f-body); font-size: 0.86rem; color: var(--muted-on-ink); }
.sg-score b { color: var(--rose); font-weight: 700; }

/* ============================================================
   TRUST BAND (crimson)
   ============================================================ */
.trust-band { background: var(--crimson); color: #FFFFFF; padding: 26px 0; }
.trust-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.trust-cell { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.trust-num { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.trust-label { font-size: 0.82rem; font-weight: 600; opacity: 0.82; }
.trust-stars { letter-spacing: 2px; font-size: 0.95rem; color: var(--gold); }

/* ============================================================
   SECTIONS
   ============================================================ */
.sec { padding: 88px 0; }
.sec-ink { background: var(--ink); color: var(--text-on-ink); }
.sec-ink h2, .sec-ink h3 { color: var(--text-on-ink); }
.sec-deep { background: var(--paper-deep); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
@media (max-width: 640px) { .sec { padding: 62px 0; } .sec-head { margin-bottom: 32px; } }

/* services grid (on ink) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--card-ink); border: 1px solid var(--line-ink); border-radius: var(--r-card);
  padding: 24px 22px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s ease, transform .18s ease;
}
.svc:hover { border-color: rgba(255, 77, 106, 0.55); transform: translateY(-3px); }
.svc-ico {
  width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 77, 106, 0.1);
  border: 1px solid rgba(255, 77, 106, 0.32); display: grid; place-items: center; color: var(--rose);
}
.svc p { color: var(--muted-on-ink); font-size: 0.94rem; margin: 0; }
.svc-go { font-family: var(--f-body); font-size: 0.9rem; font-weight: 600; color: var(--rose); margin-top: auto; }

/* pathway switcher (paper) */
.pathway-toggle {
  display: inline-flex; background: #131722; border: 1px solid var(--line-on-paper);
  border-radius: 999px; padding: 5px; gap: 4px; margin-bottom: 34px;
}
.pathway-toggle button {
  border: none; background: transparent; font-family: var(--f-display); font-weight: 700;
  font-size: 0.95rem; padding: 10px 26px; border-radius: 999px; cursor: pointer; color: var(--muted-on-paper);
  transition: all .18s ease; min-height: 44px;
}
.pathway-toggle button.is-on { background: var(--crimson); color: #FFFFFF; }
.pw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 940px) { .pw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pw-grid { grid-template-columns: 1fr; } }
.pw-cell { background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: 14px; padding: 20px 18px; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3); }
.pw-k { font-family: var(--f-display); font-size: 0.82rem; font-weight: 700; color: #C9AD62; margin-bottom: 8px; }
.pw-v { font-size: 0.95rem; color: var(--ink-on-paper); }
.pw-v b { font-weight: 700; color: var(--accent); }
.pw-note { margin-top: 22px; font-size: 0.92rem; color: var(--muted-on-paper); max-width: 74ch; }

/* course rail (deeper paper band) */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 8px; }
.course-card {
  min-width: 250px; max-width: 250px; scroll-snap-align: start;
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: 14px;
  padding: 18px 17px 15px; text-decoration: none; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .18s ease, box-shadow .18s ease; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}
.course-card:hover { border-color: var(--crimson-line); box-shadow: 0 8px 24px rgba(200, 16, 46, 0.12); }
.course-card h3 { font-size: 0.97rem; margin: 0; color: var(--ink-on-paper); }
.course-card .cc-meta { font-family: var(--f-body); font-size: 0.8rem; color: #8A8F9C; }
.rail-hint { font-family: var(--f-body); font-size: 0.84rem; color: #8A8F9C; margin-top: 4px; }

/* ============================================================
   SESSION PLANNER (signature device, on ink)
   ============================================================ */
.planner {
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: 20px;
  box-shadow: var(--shadow-2); overflow: hidden; color: var(--ink-on-paper);
}
.planner-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; }
@media (max-width: 880px) { .planner-grid { grid-template-columns: 1fr; } }
.planner-controls { padding: 34px 34px 30px; }
@media (max-width: 640px) { .planner-controls { padding: 26px 20px 24px; } }
.ctl { margin-bottom: 26px; }
.ctl-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; color: var(--ink-on-paper); }
.ctl-label output { font-family: var(--f-display); font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  border: 1px solid var(--line-strong); background: #12151D; border-radius: 10px; padding: 10px 16px;
  font-family: var(--f-body); font-weight: 600; font-size: 0.9rem; color: var(--muted-on-paper);
  cursor: pointer; transition: all .15s ease; min-height: 44px;
}
.seg button.is-on { background: var(--crimson); border-color: var(--crimson); color: #FFFFFF; }

input[type="range"] { width: 100%; accent-color: var(--crimson); height: 34px; }

.plan-how h3 { font-size: 1rem; margin: 4px 0 12px; color: var(--ink-on-paper); }
.plan-how ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan-how li { display: flex; gap: 10px; align-items: baseline; color: var(--muted-on-paper); font-size: 0.92rem; }
.plan-how li::before { content: "+"; font-family: var(--f-display); color: var(--accent); font-weight: 700; }

.planner-result { background: linear-gradient(150deg, var(--crimson), var(--crimson-deep)); color: #FFFFFF; padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) { .planner-result { padding: 26px 20px 24px; } }
.pr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.pr-row:last-of-type { border-bottom: none; }
.pr-k { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); }
.pr-v { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-align: right; }
.pr-v small { font-family: var(--f-body); font-weight: 400; font-size: 0.74rem; color: rgba(255, 255, 255, 0.68); display: block; }
.pr-v.hl, .pr-v .hl { color: var(--gold); }
.pr-note { margin-top: 14px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); line-height: 1.55; }
.pr-note a { color: #FFD9E0; }

/* ============================================================
   TUITION COMPARISON (typical pace vs expedite plan)
   ============================================================ */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 920px; }
@media (max-width: 880px) { .vs-grid { grid-template-columns: 1fr; } }
.vs-col {
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: 16px;
  padding: 26px 24px; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}
.vs-col h3 { font-size: 1.05rem; margin-bottom: 4px; }
.vs-sub { color: var(--muted-on-paper); font-size: 0.86rem; margin-bottom: 14px; }
.vs-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-on-paper); font-size: 0.95rem; }
.vs-row:last-of-type { border-bottom: none; }
.vs-row b { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; text-align: right; }
.vs-us { background: linear-gradient(150deg, var(--crimson), var(--crimson-deep)); border-color: transparent; color: #FFFFFF; }
.vs-us h3 { color: #FFFFFF; }
.vs-us .vs-sub { color: rgba(255, 255, 255, 0.82); }
.vs-us .vs-row { border-color: rgba(255, 255, 255, 0.22); }
.vs-keep {
  margin-top: 16px; background: rgba(255, 255, 255, 0.13); border-radius: 12px; padding: 13px 14px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.22rem; color: var(--gold); text-align: center;
}
.vs-note { margin-top: 20px; font-size: 0.8rem; color: var(--muted-on-paper); max-width: 80ch; line-height: 1.55; }

/* ============================================================
   THE TEAM OF EIGHT (pipeline roles, on ink)
   ============================================================ */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 940px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }
.role { background: var(--card-ink); border: 1px solid var(--line-ink); border-radius: var(--r-card); padding: 20px 18px; }
.role-n {
  width: 30px; height: 30px; border-radius: 999px; background: var(--crimson); color: #FFFFFF;
  font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; display: grid; place-items: center;
  margin-bottom: 12px;
}
.role h3 { font-size: 1rem; margin-bottom: 6px; }
.role p { color: var(--muted-on-ink); font-size: 0.88rem; margin: 0; }
.pipe-note { margin-top: 24px; color: var(--muted-on-ink); font-size: 0.97rem; max-width: 70ch; }
.pipe-note b { color: var(--rose); }

/* ============================================================
   VIRTUAL PRACTICUM (duo layout)
   ============================================================ */
.duo { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .duo { grid-template-columns: 1fr; gap: 30px; } }
.check-list {
  margin: 0; padding: 26px; list-style: none;
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: var(--r-card);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; gap: 13px;
}
.check-list li { display: flex; gap: 12px; align-items: baseline; font-size: 0.97rem; color: var(--ink-on-paper); }
.check-list li::before { content: "\2713"; color: var(--accent); font-weight: 700; font-family: var(--f-display); }

/* ============================================================
   HOW IT WORKS (criterion-row steps, paper)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: var(--r-card); padding: 24px 21px; position: relative; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; color: #FFFFFF;
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  margin-bottom: 14px; background: var(--crimson);
}
.step p { color: var(--muted-on-paper); font-size: 0.93rem; margin: 0; }

/* ============================================================
   SAMPLE CTA BAND (crimson)
   ============================================================ */
.sample-band { background: linear-gradient(135deg, var(--crimson), var(--crimson-deep)); color: #FFFFFF; padding: 66px 0; }
.sample-band .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .sample-band .wrap { grid-template-columns: 1fr; } }
.sample-band h2 { color: #FFFFFF; }
.sample-band p { color: rgba(255, 255, 255, 0.85); max-width: 56ch; }
.band-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (min-width: 881px) { .band-cta { align-items: flex-end; } }
.band-link { color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.band-link:hover { color: #FFD9E0; }

/* ============================================================
   TESTIMONIALS (grader-comment cards, on ink)
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--card-ink); border: 1px solid var(--line-ink);
  border-radius: 14px; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
}
.quote p { color: var(--text-on-ink); font-size: 0.97rem; margin: 0; }
.quote footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quote cite { font-style: normal; font-weight: 600; font-size: 0.86rem; color: var(--muted-on-ink); }
.quote .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.82rem; }
.more-link { color: var(--rose); font-weight: 600; text-decoration: none; }
.more-link:hover { color: #FF7089; }

/* ============================================================
   FAQ (paper)
   ============================================================ */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line-on-paper); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px;
  align-items: baseline; padding: 21px 2px; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--f-display); color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.faq-item[open] summary::after { content: "-"; }
.faq-item .faq-a { padding: 0 2px 22px; color: var(--muted-on-paper); max-width: 70ch; }

/* ============================================================
   FINAL CTA (ink) + FOOTER
   ============================================================ */
.final-cta { text-align: center; padding: 96px 0; background: var(--ink); color: var(--text-on-ink); }
.final-cta h2 { color: var(--text-on-ink); }
.final-cta .lead { margin: 0 auto 30px; }
.final-cta .eyebrow { color: var(--rose); }
.final-cta .btn-ghost { color: var(--text-on-ink); border-color: #3B4250; }
.final-cta .btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

.site-foot { background: #0B0E14; border-top: 1px solid #242B3A; padding: 62px 0 34px; color: var(--text-on-ink); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 42px; }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-family: var(--f-display); font-size: 0.92rem; font-weight: 700; color: #C6CAD3; margin: 0 0 16px; }
.foot-col a { display: block; color: var(--muted-on-ink); text-decoration: none; font-size: 0.92rem; padding: 5px 0; }
.foot-col a:hover { color: var(--rose); }
.foot-about { color: var(--muted-on-ink); font-size: 0.9rem; max-width: 34ch; }
.foot-note { color: var(--muted-on-ink); font-size: 0.9rem; margin-bottom: 4px; }

.news-form { display: flex; gap: 8px; margin-top: 14px; }
.news-form input {
  flex: 1; min-width: 0; background: var(--ink2); border: 1px solid var(--line-ink); border-radius: 10px;
  color: var(--text-on-ink); padding: 12px 14px; font-size: 16px; font-family: var(--f-body);
}
.news-form input::placeholder { color: var(--faint-on-ink); }
.news-form button { flex-shrink: 0; }
.news-done { color: var(--rose); font-size: 0.88rem; margin-top: 10px; display: none; }

.foot-legal { border-top: 1px solid #242B3A; padding-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.foot-disclaimer { color: var(--faint-on-ink); font-size: 0.8rem; max-width: 90ch; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint-on-ink); font-size: 0.8rem; }
.foot-base a { color: var(--muted-on-ink); text-decoration: none; }
.foot-base a:hover { color: var(--rose); }

/* ============================================================
   ARTICLE / MANUAL PAGES (assessment, course, guide)
   ============================================================ */
.crumbs { font-size: 0.84rem; color: var(--muted-on-paper); padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.crumbs a { color: var(--muted-on-paper); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: #4A5162; }

.article-hero { padding: 26px 0 6px; }
.article-hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
.article-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 4px; }
.badge-verify {
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: 999px;
  padding: 4px 13px; font-size: 0.8rem; font-weight: 600; color: var(--muted-on-paper);
}

.article { max-width: 820px; padding-bottom: 46px; }
.article h2 { margin: 46px 0 14px; font-size: 1.5rem; scroll-margin-top: 90px; }
.article h3 { margin: 26px 0 10px; font-size: 1.08rem; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 7px; }

.answer-box {
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: var(--r-card);
  padding: 22px 24px; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3); margin: 12px 0 6px;
}
.answer-box .ab-label { font-family: var(--f-display); font-weight: 700; color: var(--accent); font-size: 0.92rem; display: block; margin-bottom: 8px; }
.answer-box p { margin: 0; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.toc a {
  font-size: 0.84rem; font-weight: 600; color: var(--muted-on-paper);
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: 999px;
  padding: 7px 14px; text-decoration: none;
}
.toc a:hover { color: var(--accent); border-color: var(--crimson-line); }

.table-wrap { overflow-x: auto; }
.man-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--card-light); border: 1px solid var(--line-on-paper); font-size: 0.94rem; }
.man-table th, .man-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-on-paper); vertical-align: top; }
.man-table th { font-family: var(--f-display); font-weight: 700; font-size: 0.88rem; background: var(--paper-deep); }
.man-table tr:last-child td { border-bottom: none; }

.steps-list { counter-reset: mstep; list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps-list > li { position: relative; padding-left: 46px; margin: 0; }
.steps-list > li::before {
  counter-increment: mstep; content: counter(mstep);
  position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 999px;
  background: var(--crimson); color: #FFFFFF; font-family: var(--f-display); font-weight: 700;
  font-size: 0.92rem; display: grid; place-items: center;
}
.steps-list h3 { margin: 0 0 6px; }
.steps-list p { margin: 0; color: var(--muted-on-paper); }

.sample-sheet { background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: var(--r-card); box-shadow: var(--shadow-1); margin: 20px 0; overflow: hidden; }
.ss-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 22px; background: var(--ink); color: var(--text-on-ink); font-size: 0.88rem; font-weight: 600; }
.ss-body { padding: 24px 26px 20px; }
.ss-body p { font-size: 0.98rem; }
.ss-ref {
  display: inline-block; background: var(--crimson); color: #FFFFFF; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 0.7rem; padding: 1px 8px;
  margin-left: 6px; vertical-align: 2px;
}
.ss-notes { list-style: none; margin: 0; padding: 18px 26px 22px; border-top: 1px dashed var(--line-on-paper); display: flex; flex-direction: column; gap: 10px; }
.ss-notes li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--muted-on-paper); align-items: baseline; margin: 0; }
.ss-n {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--crimson);
  color: #FFFFFF; font-family: var(--f-display); font-weight: 700; font-size: 0.72rem;
  display: grid; place-items: center; transform: translateY(3px);
}

.svc-strip {
  background: var(--ink); color: var(--text-on-ink); border-radius: var(--r-card);
  padding: 28px; margin: 38px 0; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 26px; align-items: center;
}
@media (max-width: 700px) { .svc-strip { grid-template-columns: 1fr; } }
.svc-strip h3 { color: var(--text-on-ink); font-size: 1.3rem; margin: 0 0 8px; }
.svc-strip p { color: var(--muted-on-ink); margin: 0; font-size: 0.95rem; }
.svc-strip .btns { display: flex; flex-direction: column; gap: 10px; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
@media (max-width: 880px) { .related { grid-template-columns: 1fr; } }
.related a {
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: 12px;
  padding: 16px; text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--ink-on-paper);
}
.related a:hover { border-color: var(--crimson-line); color: var(--accent); }

.checklist { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 9px; }
.checklist li { display: flex; gap: 11px; align-items: baseline; margin: 0; }
.checklist li::before { content: "\2713"; color: var(--accent); font-weight: 700; font-family: var(--f-display); }

/* ============================================================
   TEAM PAGE (/team/)
   ============================================================ */
.team-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 940px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }
.tm-card {
  background: var(--card-light); border: 1px solid var(--line-on-paper); border-radius: var(--r-card);
  padding: 22px; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; gap: 10px;
}
.tm-head { display: flex; gap: 16px; align-items: center; }
.tm-face {
  width: 92px; height: 92px; border-radius: 999px; overflow: hidden; flex-shrink: 0;
  border: 3px solid #3A2F38; background: #242B3A;
}
.tm-face svg { width: 100%; height: 100%; display: block; }
.tm-name { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; line-height: 1.2; }
.tm-cred {
  display: inline-block; background: var(--crimson-tint); border: 1px solid var(--crimson-line);
  color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 0.78rem; font-weight: 600;
  margin-top: 5px;
}
.tm-role { font-weight: 600; font-size: 0.93rem; color: var(--ink-on-paper); }
.tm-bio { color: var(--muted-on-paper); font-size: 0.9rem; margin: 0; }

/* ============================================================
   WIDGETS: seasonal offer modal
   ============================================================ */
.ob-modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(16, 12, 13, 0.66); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.ob-modal-backdrop.is-open { display: flex; }
.ob-modal {
  width: 100%; max-width: 470px; background: #171C26; color: var(--ink-on-paper);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); position: relative;
}
.ob-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px;
  border: none; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; font-size: 1rem; cursor: pointer;
}
/* modal masthead = a mini scoring-guide criterion row (this site's registered header treatment) */
.ob-mast { background: var(--ink); color: var(--text-on-ink); padding: 20px 22px 18px; }
.ob-mast-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.ob-mast-brand .brand-tile { width: 30px; height: 30px; border-radius: 8px; font-size: 0.82rem; }
.ob-mast-brand span { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; }
.ob-crit { border: 1px dashed rgba(240, 241, 244, 0.35); border-radius: 12px; padding: 12px 14px; }
.ob-crit-t { font-family: var(--f-body); font-size: 0.82rem; font-weight: 600; color: var(--muted-on-ink); margin-bottom: 8px; }
.ob-crit .levels .lv { border-color: rgba(240, 241, 244, 0.3); color: var(--muted-on-ink); cursor: default; }
.ob-crit .levels .lv.is-on[data-lv="d"] { background: var(--crimson); border-color: var(--crimson); color: #FFFFFF; }
.ob-body { padding: 22px; }
.ob-season { font-family: var(--f-display); font-size: 0.88rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.ob-body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.ob-body .ob-sub { color: var(--muted-on-paper); font-size: 0.92rem; margin-bottom: 16px; }
.ob-form { display: flex; flex-direction: column; gap: 10px; }
.ob-form input {
  background: #0F1218; border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px;
  font-size: 16px; font-family: var(--f-body); color: var(--ink-on-paper); width: 100%;
}
.ob-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.ob-fine { font-size: 0.72rem; color: #8A8F9C; margin-top: 10px; }
.ob-thanks { display: none; padding: 8px 0 4px; color: var(--accent); font-weight: 600; }
@media (max-width: 560px) {
  .ob-modal { max-width: 100%; }
  .ob-mast { padding: 16px 16px 14px; }
  .ob-body { padding: 16px; }
}

/* ============================================================
   WIDGETS: direct-text dock (LEFT) + live chat (RIGHT)
   ============================================================ */
.dock-left { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.dock-btn {
  width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center;
  border: none; cursor: pointer; box-shadow: var(--shadow-1); color: #fff;
}
.dock-wa { background: #25D366; }
.dock-sms { background: #2E5FB7; }
.dock-btn svg { width: 25px; height: 25px; }

.chat-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 60px; height: 60px; border-radius: 999px; border: 2px solid var(--crimson);
  padding: 0; cursor: pointer; overflow: hidden; background: #171C26; box-shadow: var(--shadow-1);
}
.chat-launch img, .chat-launch svg { width: 100%; height: 100%; }
.chat-badge {
  position: absolute; top: -2px; right: -2px; width: 15px; height: 15px; border-radius: 999px;
  background: var(--crimson); border: 2px solid #171C26;
}
.chat-nudge {
  position: fixed; right: 88px; bottom: 30px; z-index: 70; max-width: 230px;
  background: #171C26; color: var(--ink-on-paper); border-radius: 14px 14px 3px 14px;
  padding: 12px 14px; font-size: 0.86rem; box-shadow: var(--shadow-2); display: none; cursor: pointer;
  border: 1px solid var(--line-on-paper);
}
.chat-nudge.is-on { display: block; }

.chat-panel {
  position: fixed; right: 18px; bottom: 90px; z-index: 80;
  width: 372px; max-width: calc(100vw - 36px); height: clamp(460px, 72vh, 580px);
  background: #161B25; color: var(--ink-on-paper);
  border-radius: 18px; box-shadow: var(--shadow-2); overflow: hidden;
  display: none; flex-direction: column;
}
.chat-panel.is-open { display: flex; }
.chat-head { background: var(--ink); color: var(--text-on-ink); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-face { width: 42px; height: 42px; border-radius: 999px; overflow: hidden; border: 2px solid var(--crimson); flex-shrink: 0; }
.chat-face svg { width: 100%; height: 100%; }
.chat-who { line-height: 1.25; min-width: 0; }
.chat-who b { font-size: 0.95rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who span { font-size: 0.74rem; color: var(--muted-on-ink); }
.chat-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--muted-on-ink); flex-shrink: 0; }
.chat-status i { width: 8px; height: 8px; border-radius: 999px; background: #4CC97B; display: inline-block; }
.chat-back { display: none; background: none; border: none; color: var(--text-on-ink); font-size: 1.2rem; cursor: pointer; padding: 4px 8px 4px 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 13px; font-size: 0.92rem; line-height: 1.45; }
.msg-in { background: #232937; border: 1px solid var(--line-ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-out { background: var(--crimson); color: #FFFFFF; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-compose { display: flex; gap: 8px; padding: 12px; background: #161B25; border-top: 1px solid var(--line-on-paper); }
.chat-compose input {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 16px;
  font-size: 16px; font-family: var(--f-body); background: #0F1218; color: var(--ink-on-paper);
}
.chat-compose button {
  width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--crimson);
  color: #FFFFFF; cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
@media (max-width: 640px) {
  .chat-panel.is-open {
    inset: 0; width: 100%; max-width: 100%; height: 100dvh; border-radius: 0; bottom: 0;
  }
  .chat-back { display: inline-block; }
  body.chat-open .dock-left, body.chat-open .chat-launch, body.chat-open .chat-nudge { display: none; }
}


/* brand-mark v2: standalone marks, no box */
svg.brand-tile { background: none !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; display: inline-block; }

/* course index: labels vary in length, so these chips must wrap on a phone
   (.code-chip is nowrap by design for real course codes) */
#course-index .code-chip { white-space: normal; max-width: 100%; }


/* image-program figures (apply_images.py) */
.ig-fig{margin:26px 0;max-width:100%}
.ig-fig img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--line-on-paper);box-shadow:0 1px 2px rgba(20,18,16,.05),0 10px 26px rgba(20,18,16,.07)}
.ig-fig figcaption{margin-top:10px;font-size:.86rem;color:var(--muted-on-paper);line-height:1.5}


/* hero lead form (post-audit P0) */
.hero-lead{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 4px;align-items:center;max-width:580px}
.hero-lead input{flex:1 1 200px;min-width:0;padding:12px 14px;font-size:16px;border:1px solid var(--line-strong);border-radius:10px;background:#12151D;color:#E9EBF0}
.hero-lead input:focus{outline:2px solid var(--accent);outline-offset:1px}
.hero-lead input.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.hero-lead .btn{flex:0 0 auto}
.hero-lead-done,.hero-lead-err{margin:10px 0 0;font-size:.92rem}
.hero-lead-done{font-weight:600}
@media(max-width:560px){.hero-lead input{flex:1 1 100%}.hero-lead .btn{width:100%}}


/* sample-paper thumbnails */
.sample-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0 6px;max-width:560px}
.sample-thumbs figure{margin:0}
.sample-thumbs img{width:100%;height:auto;border-radius:8px;border:1px solid rgba(255,255,255,.14);box-shadow:0 6px 18px rgba(0,0,0,.4)}
.sample-thumbs figcaption{margin-top:6px;font-size:.8rem;opacity:.7;text-align:center}
@media(max-width:520px){.sample-thumbs{grid-template-columns:1fr;max-width:340px}}


/* honesty + a11y polish */
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.ob-modal,.ae-modal{max-height:calc(100dvh - 40px);overflow-y:auto}

/* ============ hero contact form card ============ */
.hero-form-card { background: #171C26; color: var(--ink-on-paper); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 22px; box-shadow: 0 18px 44px rgba(0,0,0,0.45); }
.hero-form-card .hfc-head { font-weight: 800; font-size: 1.16rem; margin: 0 0 4px; }
.hero-form-card .hfc-sub { font-size: 0.9rem; opacity: 0.75; margin: 0 0 14px; }
#heroCard { display: flex; flex-direction: column; gap: 10px; }
#heroCard input, #heroCard textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #0F1218; color: inherit; width: 100%; box-sizing: border-box; }
#heroCard textarea { resize: vertical; min-height: 64px; }
#heroCard .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.hero-form-card .hfc-note { font-size: 0.78rem; opacity: 0.65; margin: 10px 0 0; }
.hero-card-done { font-weight: 600; }
.hero-card-err { color: #FF6B6B; font-size: 0.85rem; margin: 4px 0 0; }
.hero-viz-band { padding: 64px 0 30px; }
.hero-viz-band .hvb-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero-viz-band .hvb-eyebrow { display: block; font-size: 0.82rem; font-weight: 700; opacity: 0.62; margin-bottom: 10px; }
.hero-viz-band .hvb-copy h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); margin: 0 0 12px; }
.hero-viz-band .hvb-copy p { max-width: 46ch; margin: 0 0 22px; opacity: 0.85; }
@media (max-width: 900px) { .hero-viz-band { padding: 44px 0 12px; } .hero-viz-band .hvb-grid { grid-template-columns: 1fr; gap: 28px; } }

/* contrast fix: ghost button on the dark strip */
.svc-strip .btn-ghost { color: var(--text-on-ink); border-color: rgba(255,255,255,0.45); }
.svc-strip .btn-ghost:hover { color: #FFFFFF; border-color: #FFFFFF; }

/* ============ Guides catalog (editorial dark) ============ */
.gcat-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 24px 0 8px; padding: 15px 0; border-top: 1px solid var(--line-on-paper); border-bottom: 1px solid var(--line-on-paper); }
.gcat-nav a { font-family: var(--f-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-paper); text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.gcat-nav a i { font-style: normal; font-family: var(--f-mono); font-size: 0.64rem; color: #5B6270; }
.gcat-nav a:hover { color: var(--accent); }
.gcat-sec { display: flex; align-items: baseline; gap: 14px; margin: 54px 0 0; }
.gcat-sec .idx { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: #5B6270; }
.gcat-sec h2 { margin: 0; font-size: 1.3rem; letter-spacing: -0.01em; }
.gcat-sec .count { font-family: var(--f-mono); font-size: 0.7rem; color: #5B6270; white-space: nowrap; }
.gcat-sec .rule { flex: 1; height: 1px; background: var(--line-on-paper); align-self: center; }
.gcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.gcard { position: relative; display: flex; flex-direction: column; gap: 9px; background: #161B25; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; padding: 22px 22px 18px; text-decoration: none; color: var(--ink-on-paper); transition: background 0.18s ease, border-color 0.18s ease; }
.gcard::after { content: "\2197"; position: absolute; top: 17px; right: 19px; font-family: var(--f-display); font-size: 0.95rem; font-weight: 600; color: var(--accent); opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.18s ease, transform 0.18s ease; }
.gcard:hover { background: #1B2130; border-color: rgba(255, 255, 255, 0.14); }
.gcard:hover::after { opacity: 1; transform: translate(0, 0); }
.gcard h3 { margin: 0; font-size: 1.08rem; line-height: 1.32; padding-right: 26px; transition: color 0.18s ease; }
.gcard:hover h3 { color: #FF8298; }
.gcard p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted-on-paper); flex: 1; }
.gcard-meta { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #5B6270; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 12px; margin-top: 7px; }
.gcard-feat { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 36px; background: linear-gradient(120deg, #1A2030, #161B25); border: 1px solid rgba(255, 255, 255, 0.09); padding: 30px 34px; overflow: hidden; }
.gcard-feat::after { display: none; }
.gcard-feat:hover { background: linear-gradient(120deg, #1D2436, #181E2A); border-color: rgba(255, 255, 255, 0.14); }
.gcard-feat .feat-main { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feat-eyebrow { font-family: var(--f-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); }
.gcard-feat h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); padding-right: 0; letter-spacing: -0.015em; }
.gcard-feat:hover h3 { color: var(--ink-on-paper); }
.gcard-feat p { max-width: 62ch; }
.gcard-feat .gcard-meta { border-top: none; padding-top: 2px; margin-top: 0; }
.feat-levels { display: flex; flex-direction: column; gap: 8px; flex: none; min-width: 156px; }
.feat-levels span { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #5B6270; border-left: 2px solid #2A3140; padding: 5px 0 5px 13px; }
.feat-levels span.on { color: var(--ink-on-paper); border-left-color: var(--crimson); }
@media (max-width: 760px) {
  .gcard-feat { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 22px; }
  .gcat-sec { flex-wrap: wrap; }
}
.gcat-next { border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 22px 24px; margin-top: 18px; }
.gcat-next p { margin: 0; font-size: 0.92rem; color: var(--muted-on-paper); }
.gcat-next ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 18px; }
.gcat-next li { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--ink-on-paper); }
.gcat-next li i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; animation: gnext-pulse 2s ease-in-out infinite; }
@keyframes gnext-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============ Courses catalog ============ */
.crs-bar { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; margin: 24px 0 8px; padding: 13px 0; border-top: 1px solid var(--line-on-paper); border-bottom: 1px solid var(--line-on-paper); }
.crs-tab { font-family: var(--f-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-paper); background: none; border: none; cursor: pointer; padding: 8px 0; display: inline-flex; align-items: baseline; gap: 8px; position: relative; }
.crs-tab i { font-style: normal; font-family: var(--f-mono); font-size: 0.64rem; color: #5B6270; }
.crs-tab:hover { color: var(--ink-on-paper); }
.crs-tab.is-on { color: var(--ink-on-paper); }
.crs-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: var(--crimson); }
.crs-search { margin-left: auto; background: #161B25; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 14px; color: var(--ink-on-paper); font-family: var(--f-body); font-size: 0.9rem; width: 240px; max-width: 100%; }
.crs-search::placeholder { color: #5B6270; }
.crs-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 700px) { .crs-search { margin-left: 0; width: 100%; } .crs-tab.is-on::after { bottom: -4px; } }
.crs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.crs-card { gap: 11px; }
.crs-card .code-chip { align-self: flex-start; }
.crs-card h3 { flex: 1; }
.crs-empty { display: none; margin: 26px 2px 8px; color: var(--muted-on-paper); font-size: 0.95rem; }
