/* ============================================================
   Brights.ai — design tokens inherited from the Quicks system:
   Inter (headings/UI) + Hedvig Letters Serif (supporting text),
   ink #262626, surfaces rgba(38,38,38,.05), radii 12/24/32/40,
   pill buttons, soft blue accent, pastel gradient covers.
   ============================================================ */

:root {
  --ink: #262626;
  --ink-70: rgba(38, 38, 38, 0.7);
  --ink-60: rgba(38, 38, 38, 0.6);
  --ink-40: rgba(38, 38, 38, 0.4);
  --surface: rgba(38, 38, 38, 0.05);
  --surface-strong: rgba(38, 38, 38, 0.1);
  --page-alt: #f4f4f5;
  --blue: #5b9bd5;
  --blue-deep: #2f6fa8;
  --blue-soft: rgba(91, 155, 213, 0.14);
  --link: #3e6fde;
  --green: #2f9e44;
  --green-soft: rgba(94, 213, 101, 0.16);
  --red: #d64545;
  --red-soft: rgba(214, 69, 69, 0.12);
  --amber: #f1863c;
  --amber-soft: rgba(241, 134, 60, 0.14);
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  /* Inter ligates ff / fi / fl — "offering" reads as a single glyph. Kerning stays on. */
  font-variant-ligatures: no-common-ligatures;
  font-feature-settings: "liga" 0, "clig" 0;
}

img { display: block; max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Type ---------- */

h1 {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
h4 { font-size: 17px; font-weight: 600; line-height: 1.35; }

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-60);
  font-size: 20px;
  line-height: 1.55;
}

.subhead {
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 22px auto 0;
}

.lead { max-width: 680px; margin: 18px auto 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head > .serif { margin-top: 18px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--surface-strong); }

.btn-white { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(38, 38, 38, 0.08); }
.btn-white:hover { box-shadow: 0 4px 14px rgba(38, 38, 38, 0.12); }

.btn-outline { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.2); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */

.site-header { padding: 20px 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 32px; width: auto; }
.site-footer .logo img { height: 28px; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }

.nav a {
  color: var(--ink-70);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Decorative shapes ---------- */

.deco { pointer-events: none; user-select: none; }

.deco-asterisk {
  position: absolute;
  width: 64px;
  top: -26px;
  right: 6%;
  transform: rotate(14deg);
}

.h2-wrap { position: relative; }

.split-visual-doc { position: relative; }

.split-visual-doc .deco-burst {
  position: absolute;
  width: 72px;
  top: -34px;
  right: 4%;
  transform: rotate(12deg);
  z-index: 0;
}

.split-visual-doc > .card,
.split-visual-doc > #quiz-mount { position: relative; z-index: 1; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 80px; }

.hero-head {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-head .btn-row { justify-content: center; }

/* ---------- Generic card ---------- */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(38, 38, 38, 0.12);
  padding: 28px;
}

/* ---------- Split sections ---------- */

.split { padding: 88px 0; }

.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-reverse .split-text { order: 2; }
.split-reverse .split-visual { order: 1; }

.split-text > .serif { margin-top: 20px; }
.split-text .btn-row { margin-top: 28px; }

.split-wide .split-inner { grid-template-columns: 0.85fr 1.15fr; }

.feature-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-70);
  text-wrap: pretty;
}

.feature-list li::before {
  content: "✳";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 15px;
  color: var(--blue);
}

.feature-list li strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Interactive personalization example
   ============================================================ */

.quiz-card { max-width: 560px; margin: 0 auto; padding: 30px; }

.quiz-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface);
}

.quiz-top div span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 3px;
}

.quiz-top div strong { font-size: 15px; font-weight: 600; }

/* --- student profile --- */

.profile {
  margin-top: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
}

.profile-head { display: flex; align-items: center; gap: 12px; }

.profile-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, #8ecdf2, #4b93d1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-name { font-size: 15px; font-weight: 600; }
.profile-sub { font-size: 13px; color: var(--ink-60); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.chip {
  background: #fff;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-70);
}

.chip b { color: var(--ink); font-weight: 600; }

.quiz-objective {
  margin-top: 16px;
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-70);
}

.quiz-objective b {
  display: block;
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* --- progress --- */

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.qdot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-40);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qdot.is-active { background: var(--ink); color: #fff; }
.qdot.is-done { background: var(--green-soft); color: var(--green); }

.quiz-count { margin-left: auto; font-size: 12.5px; color: var(--ink-40); font-weight: 500; }

/* --- steps --- */

.quiz-step { display: none; }
.quiz-step.is-visible { display: block; }

.quiz-q { margin-top: 20px; font-size: 17px; line-height: 1.5; font-weight: 500; }
.quiz-skill { margin-top: 8px; font-size: 13px; color: var(--ink-40); }

.quiz-figure {
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.quiz-figure svg { width: 100%; height: auto; }

.quiz-figure figcaption {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-40);
  text-align: center;
}

.quiz-options {
  list-style: none;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-options.opts-img { grid-template-columns: repeat(3, 1fr); }

.opt {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid var(--surface-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.opt:hover { border-color: var(--blue); background: var(--blue-soft); }

.opts-img .opt { padding: 10px; text-align: center; }
.opts-img .opt svg { width: 100%; height: auto; margin-bottom: 6px; }
.opts-img .opt span { font-size: 13px; }

.opt.is-correct { border-color: var(--green); background: var(--green-soft); }
.opt.is-wrong { border-color: var(--red); background: var(--red-soft); }
.opt[disabled] { cursor: default; }
.opt[disabled]:hover { border-color: var(--surface-strong); background: #fff; }
.opt.is-correct[disabled]:hover { border-color: var(--green); background: var(--green-soft); }
.opt.is-wrong[disabled]:hover { border-color: var(--red); background: var(--red-soft); }

.quiz-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70);
  background: var(--surface);
}

.quiz-feedback.is-visible { display: block; }
.quiz-feedback b { color: var(--ink); font-weight: 600; }
.quiz-feedback.ok { background: var(--green-soft); }
.quiz-feedback.ok b { color: var(--green); }
.quiz-feedback.no { background: var(--red-soft); }
.quiz-feedback.no b { color: var(--red); }

.quiz-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--surface);
}

.qbtn {
  border: none;
  border-radius: 9999px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.qbtn:hover { background: var(--surface-strong); }
.qbtn-dark { background: var(--ink); color: #fff; margin-left: auto; }
.qbtn-dark:hover { background: #000; }
.qbtn[disabled] { opacity: 0.35; cursor: default; }
.qbtn[disabled]:hover { background: var(--surface); }

/* ---------- Steps ---------- */

.steps-section { padding: 88px 0; background: var(--page-alt); border-radius: var(--radius-xl); margin: 24px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step { background: #fff; border-radius: var(--radius-md); padding: 28px 24px; }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 { font-size: 18px; }
.step p { margin-top: 10px; color: var(--ink-70); font-size: 15px; }

/* ---------- Subjects ---------- */

.subjects-section { padding: 88px 0; }

.subjects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.subject {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subject-mark {
  width: 52px;
  height: 68px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(38, 38, 38, 0.16);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
}

.subject p { color: var(--ink-70); font-size: 15px; }

.cover-math { background: linear-gradient(160deg, #8ecdf2, #4b93d1); }
.cover-science { background: linear-gradient(160deg, #7fe3a1, #3cba6f); }
.cover-social { background: linear-gradient(160deg, #f6b26b, #e8833a); }
.cover-lang { background: linear-gradient(160deg, #9f7bec, #7048c9); }

/* ---------- Chat mockup ---------- */

.chat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(38, 38, 38, 0.12);
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface);
}

.chat-name { font-weight: 600; font-size: 15px; }

.chat-status {
  font-size: 13px;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ecb5c; display: inline-block; }

.chat-lesson {
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-60);
}

.chat-lesson b { color: var(--ink); font-weight: 600; }

.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }

.msg { max-width: 88%; padding: 11px 16px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.msg-ai { background: var(--surface); border-bottom-left-radius: 6px; }
.msg-me { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }

.msg-tip {
  background: var(--green-soft);
  color: var(--ink-70);
  border-radius: 14px;
  font-size: 14px;
  max-width: 100%;
}

.msg-tip span {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 9999px;
  margin-right: 6px;
  transform: translateY(-1px);
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-radius: 9999px;
  padding: 13px 20px;
  font-size: 15px;
  color: var(--ink-40);
}

.chat-input .send { color: var(--ink-60); font-size: 18px; }

/* ---------- Avatars ---------- */

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.avatar img { width: 100%; height: 100%; }

.avatar-tutor { background: #fbf5ec; }

/* ---------- Included grid ---------- */

.included-section { padding: 88px 0; background: var(--page-alt); border-radius: var(--radius-xl); margin: 24px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }

.tile { background: #fff; border-radius: var(--radius-md); padding: 26px; }
.tile-plain { background: var(--surface); border-radius: var(--radius-md); padding: 26px; }

.tile p, .tile-plain p { margin-top: 10px; color: var(--ink-70); font-size: 15px; }

.tile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 16px;
  margin-bottom: 14px;
}

.tile-mark svg { width: 20px; height: 20px; display: block; }

/* ---------- Parent dashboard mockup ---------- */

.dash-card { max-width: 500px; margin: 0 auto; padding: 26px; }

.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface);
}

.dash-head h4 { font-size: 16px; }
.dash-head span { font-size: 13px; color: var(--ink-40); }

.dash-bar { margin-top: 18px; }

.dash-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
  margin-bottom: 8px;
}

.dash-track { height: 10px; border-radius: 9999px; background: var(--surface); overflow: hidden; }
.dash-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #8ecdf2, #4b93d1); }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }

.dash-stat { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; }
.dash-stat b { display: block; font-size: 20px; font-weight: 600; }
.dash-stat span { font-size: 12px; color: var(--ink-60); }

.dash-rows { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.dash-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 9999px; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: #c96a26; }
.badge-blue { background: var(--blue-soft); color: var(--blue-deep); }

/* ---------- Dark band (ESA) ---------- */

.dark-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  margin: 24px;
  padding: 88px 0;
}

.dark-band .serif { color: rgba(255, 255, 255, 0.7); }
.dark-band .eyebrow { color: #8ecdf2; }

.esa-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }

.esa-step { border-top: 2px solid var(--surface-strong); padding-top: 20px; }
.esa-step span { font-size: 13px; font-weight: 600; color: var(--blue); }
.esa-step h4 { margin-top: 8px; }
.esa-step p { margin-top: 8px; font-size: 15px; color: var(--ink-70); }

.dark-band .esa-step { border-top-color: rgba(255, 255, 255, 0.22); }
.dark-band .esa-step span { color: #8ecdf2; }
.dark-band .esa-step p { color: rgba(255, 255, 255, 0.7); }

.esa-section { padding: 88px 0; }

/* ---------- FAQ ---------- */

.faq-section { padding: 88px 0; }

.faq { max-width: 820px; margin: 44px auto 0; }

.faq details { border-bottom: 1px solid var(--surface-strong); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-40);
}

.faq details[open] summary::after { content: "–"; }

.faq details p { padding: 0 40px 24px 0; color: var(--ink-70); font-size: 16px; line-height: 1.6; }

/* ============================================================
   Courses page
   ============================================================ */

.page-hero { padding: 56px 0 40px; }
.page-hero .serif { max-width: 720px; margin-top: 20px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.filter {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter:hover { background: var(--surface-strong); }
.filter.is-active { background: var(--ink); color: #fff; }

.table-wrap {
  margin-top: 32px;
  border: 1px solid var(--surface-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.course-table { width: 100%; border-collapse: collapse; }

.course-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 16px 20px;
  background: var(--surface);
}

.course-table td {
  padding: 18px 20px;
  border-top: 1px solid var(--surface);
  font-size: 15px;
  vertical-align: middle;
}

.course-table tbody tr:hover { background: rgba(38, 38, 38, 0.02); }

.course-table .c-title { font-weight: 600; font-size: 16px; }

.course-table .c-link { color: var(--link); text-decoration: none; font-weight: 600; white-space: nowrap; }
.course-table .c-link:hover { text-decoration: underline; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 9999px; background: var(--surface); color: var(--ink-70); }
.tag-math { background: rgba(91, 155, 213, 0.16); color: var(--blue-deep); }
.tag-science { background: rgba(60, 186, 111, 0.16); color: #24804a; }
.tag-social { background: rgba(232, 131, 58, 0.16); color: #c06526; }
.tag-lang { background: rgba(112, 72, 201, 0.14); color: #5a3ba6; }

/* ---------- Process strip (choose → 72 hours → learn) ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }

.process-step {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.process-step.is-key { background: var(--blue-soft); }

.process-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 10px;
}

.process-step.is-key .process-kicker { color: var(--blue-deep); }

.process-step h4 { font-size: 18px; }
.process-step p { margin-top: 8px; font-size: 15px; color: var(--ink-70); }

.turnaround {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}

.turnaround b { font-size: 17px; }

.dark-band .turnaround { background: rgba(142, 205, 242, 0.18); color: #8ecdf2; }

.hero-head .turnaround { margin-top: 26px; }

/* ---------- Catalog toolbar ---------- */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface);
  padding: 18px 0;
  margin-bottom: 8px;
}

.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar-row + .toolbar-row { margin-top: 12px; }

.search {
  flex: 1 1 260px;
  min-width: 0;
  border: 1px solid var(--surface-strong);
  border-radius: 9999px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}

.search::placeholder { color: var(--ink-40); }
.search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

.filter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-right: 4px;
}

.count { margin-left: auto; font-size: 14px; color: var(--ink-60); white-space: nowrap; }
.count b { color: var(--ink); font-weight: 600; }

/* ---------- Catalog ---------- */

.catalog { padding: 32px 0 88px; }

.subject-block + .subject-block { margin-top: 56px; }

.subject-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--surface-strong);
}

.subject-swatch { width: 14px; height: 34px; border-radius: 5px; flex: none; }
.subject-head h2 { font-size: clamp(24px, 3vw, 30px); }
.subject-head .subject-count { margin-left: auto; font-size: 14px; color: var(--ink-40); white-space: nowrap; }

.course-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.course-item {
  border: 1px solid var(--surface-strong);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.course-item[hidden], .subject-block[hidden] { display: none; }

.course-item:hover { border-color: rgba(38, 38, 38, 0.22); }
.course-item[open] { border-color: var(--blue); background: rgba(91, 155, 213, 0.03); }

.course-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.course-item > summary::-webkit-details-marker { display: none; }

.course-name { font-size: 17px; font-weight: 600; flex: 1 1 220px; min-width: 0; }

.course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.meta-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-60);
  background: var(--surface);
  border-radius: 9999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.meta-pill.is-elective { background: var(--amber-soft); color: #c06526; }

.course-toggle {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-60);
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.15s ease;
}

.course-item[open] .course-toggle { transform: rotate(45deg); background: var(--ink); color: #fff; }

.course-body { padding: 0 24px 24px; }

.course-blurb {
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.6;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--surface);
  max-width: 780px;
}

.units-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 12px;
}

.units {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  counter-reset: unit;
}

.units li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-70);
  counter-increment: unit;
}

.units li::before {
  content: counter(unit);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-40);
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-turnaround {
  margin-top: 22px;
  font-size: 14px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.course-turnaround b { font-weight: 600; }

.course-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.course-actions a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  padding: 10px 18px;
}

.course-actions .a-dark { background: var(--ink); color: #fff; }
.course-actions .a-light { background: var(--surface); color: var(--ink); }
.course-actions .a-dark:hover { background: #000; }
.course-actions .a-light:hover { background: var(--surface-strong); }

body.is-locked { overflow: hidden; }

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lead-modal[hidden] { display: none !important; }

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 38, 38, 0.45);
}

.lead-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: 0 24px 80px rgba(38, 38, 38, 0.18);
}

.lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal-close:hover { background: var(--surface-strong); }

.lead-modal .serif { margin-top: 12px; font-size: 17px; }

.lead-modal form { margin-top: 28px; display: flex; flex-direction: column; align-items: stretch; }

.lead-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lead-input {
  border: 1px solid var(--surface-strong);
  border-radius: 9999px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

.lead-input::placeholder { color: var(--ink-40); }
.lead-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.lead-input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.lead-error {
  margin-top: 8px;
  font-size: 14px;
  color: var(--red);
}

.lead-modal .btn { margin-top: 18px; justify-content: center; width: 100%; }
.lead-modal .btn:disabled { opacity: 0.7; cursor: wait; }

.empty {
  display: none;
  text-align: center;
  padding: 64px 0;
  color: var(--ink-60);
}

.empty.is-visible { display: block; }
.empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }

.notice { margin-top: 24px; background: var(--amber-soft); border-radius: var(--radius-md); padding: 24px 28px; }
.notice h4 { font-size: 17px; }
.notice p { margin-top: 8px; color: var(--ink-70); font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--surface);
  margin-top: 24px;
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-mid { display: flex; flex-direction: column; gap: 12px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--link); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

.footer-mid p { color: var(--ink-60); font-size: 15px; }
.footer-mid p a { color: var(--ink-60); }

.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.lang-pill { background: var(--surface); border-radius: 9999px; padding: 10px 18px; font-size: 15px; font-weight: 500; }

.footer-right p { color: var(--ink-60); font-size: 15px; }

.disclosure {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--surface);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-60);
  max-width: 900px;
}

.footer-links a.is-active { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---------- Legal pages ---------- */

.legal { padding: 32px 0 80px; }

.legal-inner { max-width: 820px; }

.legal h1 { margin-bottom: 16px; }

.legal h2 {
  font-size: 24px;
  margin: 40px 0 14px;
}

.legal h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.legal p {
  color: var(--ink-70);
  margin: 0 0 12px;
}

.legal p strong { color: var(--ink); font-weight: 600; }

.legal a { color: var(--link); }

.legal ul, .legal ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-70);
}

.legal li { margin: 6px 0; }

.legal .table-wrap { margin: 20px 0 28px; }

.legal-table { width: 100%; border-collapse: collapse; }

.legal-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 14px 16px;
  background: var(--surface);
  vertical-align: top;
}

.legal-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--surface);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-70);
  vertical-align: top;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1023px) {
  .split { padding: 72px 0; }
  .split-inner { gap: 48px; }
  .split-wide .split-inner { grid-template-columns: 1fr 1fr; }
  .steps, .subjects, .esa-steps, .process { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }

  .split-inner, .split-wide .split-inner { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .split-visual { order: 2; }

  .deco-asterisk { width: 48px; top: -32px; right: 0; }
  .split-visual-doc .deco-burst { width: 52px; top: -24px; right: 4%; }

  .steps-section, .included-section, .dark-band { margin: 16px; padding: 64px 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }

  .table-wrap { overflow-x: auto; }
  .course-table { min-width: 640px; }
  .legal-table { min-width: 640px; }

  .units { grid-template-columns: repeat(2, 1fr); }
  .toolbar { position: static; }
}

@media (max-width: 620px) {
  .serif { font-size: 18px; }
  .steps, .subjects, .esa-steps, .grid-3, .grid-2, .process { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-options.opts-img { grid-template-columns: repeat(3, 1fr); }
  .quiz-top { grid-template-columns: 1fr; }
  .chat-card, .card, .quiz-card, .dash-card { padding: 20px; }
  .dash-stats { grid-template-columns: 1fr; }
  .btn { padding: 13px 22px; font-size: 15px; }
  .site-header .btn { padding: 11px 20px; }

  .units { grid-template-columns: 1fr; }
  .lead-modal-card { padding: 28px 22px 24px; }
  .course-item > summary { flex-wrap: wrap; padding: 18px 20px; }
  .course-name { flex: 1 1 100%; }
  .course-body { padding: 0 20px 20px; }
  .count { margin-left: 0; width: 100%; }
}
