/* IMG Casebook — site styles */
/* Fonts are served from this site (no third-party font requests). Both are SIL Open Font License 1.1. */
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --paper: #f5f7f6;
  --card: #ffffff;
  --ink: #16263a;
  --muted: #56677a;
  --rule: #d3dcd9;
  --teal: #0b6b66;
  --teal-dark: #08514d;
  --mark: #f4d35e;
  --wrong: #b4442e;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: rgba(245, 247, 246, 0.96); position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Buttons */
.btn { white-space: nowrap; display: inline-block; padding: 12px 20px; border-radius: 6px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 2px solid var(--teal); cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--teal); }
.btn-quiet:hover { background: #e6efed; }
.btn-small { padding: 8px 14px; font-size: 15px; }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 600; }
h1 { font-size: clamp(34px, 5vw, 54px); max-width: 15ch; }
h2 { font-size: clamp(26px, 3.2vw, 36px); max-width: 24ch; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; max-width: 64ch; }
.lead { font-size: 20px; color: var(--muted); max-width: 52ch; }
.small { font-size: 14.5px; color: var(--muted); }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.hero { padding-top: 56px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 18px; }

/* Case card — the signature element */
.case {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--teal);
  border-radius: 4px 10px 10px 4px;
  padding: 26px 28px 24px;
}
.case-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.case-stem { font: 400 17px/1.7 var(--serif); margin-bottom: 18px; }
.case-q { font-weight: 600; margin-bottom: 12px; }
.opts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.opts label { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 5px; cursor: pointer; border: 1px solid transparent; }
.opts label:hover { background: #eef3f1; }
.opts input { accent-color: var(--teal); width: 17px; height: 17px; flex: none; transform: translateY(3px); }
.opts .keyed span { background: linear-gradient(transparent 55%, var(--mark) 55%); }
.opts .picked-wrong { border-color: #e5c1b8; background: #fbf1ee; }
.case-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.counter { font-size: 14.5px; color: var(--muted); }
.limit-msg { font-size: 14.5px; color: var(--wrong); min-height: 1.4em; margin: 6px 0 0; }
.result { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.result[hidden] { display: none; }
.score { font-weight: 600; font-size: 18px; }
.explain { font-size: 15.5px; }
.explain ul { padding-left: 20px; margin: 8px 0 12px; }
.explain li { margin-bottom: 4px; }

/* Exam lineup */
.exams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); margin-top: 32px; }
.exam { padding: 24px 24px 8px 0; border-right: 1px solid var(--rule); }
.exam + .exam { padding-left: 24px; }
.exam:last-child { border-right: 0; }
.status { display: inline-block; font-size: 13.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; margin-bottom: 12px; }
.status-open { background: #dcebe8; color: var(--teal-dark); }
.status-soon { background: #ebeef0; color: var(--muted); }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); font-weight: 600; margin-bottom: 14px; }

/* Two-column text blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

/* Module anatomy */
.module { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin-top: 32px; }
.module-video { background: var(--ink); color: #dfe7ee; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.module-video .play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #dfe7ee; display: grid; place-items: center; margin: 40px auto; }
.module-video .play::after { content: ""; border-left: 18px solid #dfe7ee; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.chapters { font-size: 14px; list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.module-side { padding: 28px; }
.module-side ol { padding-left: 20px; margin: 0; }
.module-side li { margin-bottom: 14px; }
.module-side li strong { display: block; }
.notes-sample { margin-top: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 32px; font: 400 17px/1.75 var(--serif); }
.notes-sample h3 { font-family: var(--sans); }
.notes-sample .pearl { border-left: 4px solid var(--mark); padding: 4px 0 4px 16px; margin: 18px 0; }
.watermark { font: 400 13px/1.4 var(--sans); color: var(--muted); margin-top: 20px; }

/* Offers */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.offer { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 28px; }
.offer.accent { border-top: 5px solid var(--teal); }
.offer ul { padding-left: 20px; }

/* Forms */
form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15.5px; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--sans); padding: 11px 12px; border: 1px solid #b9c6c2; border-radius: 6px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; accent-color: var(--teal); width: 17px; height: 17px; flex: none; }
.form-msg { font-size: 15px; }
.form-msg.ok { color: var(--teal-dark); }

/* FAQ */
.qa details { border-bottom: 1px solid var(--rule); padding: 16px 0; max-width: 760px; }
.qa summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.qa details p { margin: 12px 0 0; }

/* Page header */
.page-head { padding: 56px 0 40px; }
.page-head .lead { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.foot-brand p { margin: 12px 0 0; }
.foot-h { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 12px; letter-spacing: 0; }
.soon { font-size: 13px; color: var(--muted); white-space: nowrap; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.independent { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 20px; margin: 0; }

@media (max-width: 880px) {
  .hero .wrap, .split, .module, .offers { grid-template-columns: 1fr; gap: 32px; }
  .exams, .steps { grid-template-columns: 1fr; }
  .exam, .exam + .exam { border-right: 0; border-bottom: 1px solid var(--rule); padding: 20px 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .case { padding: 20px 16px; }
  .nav { gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .result:not([hidden]) { animation: reveal .35s ease-out; }
  @keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.wrap.legal { max-width: var(--wrap); }
.legal > * { max-width: 760px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal li { margin-bottom: 8px; }
.form-embed { width: 100%; }
.lectures { list-style: none; padding: 0; margin: 28px 0 0; border-top: 2px solid var(--ink); }
.lectures li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.lectures p { margin: 4px 0 0; color: var(--muted); }
.lec-no { font-weight: 600; font-size: 22px; color: var(--teal); }
.lectures .status { margin: 2px 0 0; white-space: nowrap; justify-self: start; }
@media (max-width: 600px) { .lectures li { grid-template-columns: 34px 1fr; } .lectures .status { grid-column: 2; } }
.legal h2[id], #extended-access, #lectures { scroll-margin-top: 16px; }

/* ---------- Mobile menu ---------- */
.mobile-bar { display: none; align-items: center; gap: 10px; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--sans); padding: 8px 12px; border: 1px solid #b9c6c2; border-radius: 6px; background: var(--card); color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::before { content: ""; width: 16px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) top / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) bottom / 100% 2px no-repeat; }
.menu[open] > summary { border-color: var(--teal); color: var(--teal); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 16px 24px rgba(22, 38, 58, 0.08); padding: 4px 16px 12px; display: grid; }
.menu-panel a { padding: 14px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 17px; }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a[aria-current="page"] { color: var(--teal); font-weight: 600; }
@media (max-width: 880px) {
  .site-header .nav { display: none; }
  .mobile-bar { display: flex; }
  .site-header .wrap { flex-wrap: nowrap; min-height: 64px; }
}

/* ---------- Hero proof points and tick lists ---------- */
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; max-width: 46ch; }
.proof li, .ticks li { position: relative; padding-left: 28px; }
.proof li::before, .ticks li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 12px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* ---------- Standards ---------- */
.standards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); margin: 32px 0 20px; }
.standards > div { padding: 22px 22px 6px 0; }
.standards > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.standards h3 { font-size: 19px; }
.standards p { font-size: 16px; color: var(--muted); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; }
.plan h2, .plan h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 14px; max-width: none; }
.plan .price { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin: 0 0 8px; }
.plan .price mark, .price-band .price mark { background: linear-gradient(transparent 58%, var(--mark) 58%); color: inherit; padding: 0 3px; }
.price-note { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 16px; }
.plan-cta { margin-top: auto; display: grid; gap: 4px; }
.plan-cta .btn { text-align: center; }
.plan-full { border: 2px solid var(--teal); }
.btn-disabled { background: #e3e9e7; color: var(--muted); border-color: #e3e9e7; cursor: default; text-align: center; }
.plan-sub { margin: 8px 0 0; text-align: center; }
.plans-more { margin-top: 20px; }
.org-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 24px 28px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); flex-wrap: wrap; }
.org-strip h2 { font-size: 21px; margin-bottom: 6px; max-width: none; }
.org-strip p { margin: 0; color: var(--muted); }

/* ---------- Comparison table ---------- */
.compare-wrap { margin-top: 24px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-weight: 600; background: #eef3f1; }
.compare thead th.full { background: var(--teal); color: #fff; }
.compare tbody th { text-align: left; font-weight: 400; }
.compare .col-feature { width: 40%; }
.compare .col-full { background: #f1f7f5; }
.yes::before { content: ""; display: inline-block; width: 13px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: translateY(-3px) rotate(-45deg); }
.no::before { content: "\2014"; color: #9aa8b4; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Price band (TDM page) ---------- */
.price-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 2px solid var(--teal); border-radius: 12px; padding: 36px; }
.price-band .price { font-size: 48px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
.price-band .price span { font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-actions { display: grid; gap: 12px; justify-items: start; }
.offer-big { font-size: 24px; margin-bottom: 8px; }

/* ---------- About ---------- */
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
.nevers { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nevers li { position: relative; padding-left: 28px; }
.nevers li::before { content: "\00D7"; position: absolute; left: 2px; top: -0.08em; font-size: 22px; line-height: 1; color: var(--wrong); }

/* ---------- Privacy summary ---------- */
.summary-box { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: 6px; padding: 20px 24px 8px; margin: 24px 0 8px; }
.legal .summary-box h2 { margin-top: 0; font-size: 19px; }

@media (max-width: 880px) {
  .standards, .plans, .steps.steps-4 { grid-template-columns: 1fr; }
  .standards > div, .standards > div + div { padding: 18px 0 4px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .price-band { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
}
@media (max-width: 600px) {
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 10px 6px; }
  .compare tbody th { padding-left: 12px; }
  .plan .price, .price-band .price { font-size: 40px; }
}
@media (max-width: 880px) {
  .site-header .wrap { gap: 12px; }
}
@media (max-width: 480px) {
  .site-header .brand { font-size: 17px; gap: 8px; }
  .site-header .brand-mark { width: 28px; height: 28px; }
  .mobile-bar { gap: 8px; }
  .mobile-bar .btn-small { padding: 8px 12px; }
  .menu > summary { padding: 8px 10px; }
}
@media (max-width: 420px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu > summary { padding: 10px 11px; }
}

/* ---------- Colour system ---------- */
:root { --teal-deep: #0a4743; --tint: #eaf3f1; }
.g1 { --c: #0b6b66; --t: #e1f0ed; }
.g2 { --c: #a33a4f; --t: #f8e7eb; }
.g3 { --c: #2a5f96; --t: #e4edf7; }
.g4 { --c: #6b4f96; --t: #eee9f6; }
.g5 { --c: #8a5a00; --t: #faf0da; }
.g6 { --c: #3f7a33; --t: #e7f1e3; }
.band-tint { background: var(--tint); }
section.band-tint, section.course-hero, section.access-band,
.band-tint + section, .course-hero + section, .access-band + section { border-top: 0; }

/* ---------- Course hero ---------- */
.course-hero { background: var(--teal-deep); color: #fff; padding: 64px 0 56px; }
.course-hero h1 { color: #fff; }
.course-hero .lead { color: #cfe5e1; max-width: 60ch; }
.btn-light { background: #fff; color: var(--teal-dark); border-color: #fff; }
.btn-light:hover { background: var(--mark); border-color: var(--mark); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.hero-facts > div { padding: 22px 24px 0 0; }
.hero-facts > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hero-facts dt { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.hero-facts dd { margin: 0; color: #cfe5e1; font-size: 15.5px; line-height: 1.45; }

/* ---------- Exam and course, side by side ---------- */
.match { width: 100%; border-collapse: collapse; font-size: 16px; }
.match th, .match td { padding: 16px 20px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; width: 50%; }
.match tbody tr:last-child td { border-bottom: 0; }
.match thead th { background: #eef3f1; font-weight: 600; }
.match thead th.full { background: var(--teal); color: #fff; }
.match td + td { background: #f6faf9; border-left: 1px solid var(--rule); }
.source { margin-top: 14px; }

/* ---------- Inside every module ---------- */
.includes { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.includes li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; }
.includes svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.includes h3 { font-size: 17px; margin: 2px 0 6px; }
.includes p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- The 16 modules ---------- */
.mod-group { margin-top: 36px; }
.mod-group-head { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; border-bottom: 2px solid var(--c); padding-bottom: 10px; margin-bottom: 16px; }
.mod-group-head h3 { margin: 0; color: var(--c); font-size: 21px; }
.mod-group-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.mods { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mod { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--c); border-radius: 4px 10px 10px 4px; padding: 16px 20px 18px; }
.mod-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.mod-no { font-size: 14px; font-weight: 600; color: var(--c); }
.mod h4 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 6px; }
.mod p { font-size: 15.5px; color: var(--muted); margin: 0 0 12px; }
.cats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cats li { font-size: 13px; font-weight: 600; line-height: 1.3; padding: 4px 10px; border-radius: 99px; background: var(--t); color: var(--c); }
.mod p.cats-note { font-size: 14px; color: var(--c); font-weight: 600; margin: 0; }
.tag-free { font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--mark); color: var(--ink); }

/* ---------- Practice ---------- */
.practice { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.practice-list { display: grid; gap: 22px; margin-top: 24px; }
.practice-list > div { border-left: 3px solid var(--teal); padding-left: 18px; }
.practice-list h3 { font-size: 19px; margin-bottom: 6px; }
.practice-list p { margin: 0; }
.try-label { margin: 0 0 8px; font-weight: 600; color: var(--teal-dark); }

/* ---------- Study plan ---------- */
.study-plan { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: sp; max-width: 760px; }
.study-plan li { counter-increment: sp; position: relative; padding: 0 0 26px 58px; }
.study-plan li::before { content: counter(sp); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600; }
.study-plan li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: var(--rule); }
.study-plan li:last-child { padding-bottom: 0; }
.study-plan li:last-child::after { display: none; }
.study-plan h3 { font-size: 19px; margin-bottom: 4px; }
.study-plan p { margin: 0; color: var(--muted); }

/* ---------- Access band ---------- */
.access-band { background: var(--teal-deep); color: #fff; }
.access-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.access-band h2 { color: #fff; }
.access-band .price { font-size: 52px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 18px; }
.access-band .price span { font-size: 16px; font-weight: 400; color: #cfe5e1; letter-spacing: 0; }
.ticks-light { color: #e6f1ef; margin-bottom: 0; }
.ticks-light li::before { border-color: var(--mark); }
.access-actions { display: grid; gap: 12px; justify-items: start; }
.access-actions .small { color: #cfe5e1; margin: 0; }

@media (max-width: 880px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div, .hero-facts > div + div { padding: 18px 12px 18px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .includes { grid-template-columns: 1fr 1fr; }
  .mods, .practice, .access-band .wrap { grid-template-columns: 1fr; }
  .practice, .access-band .wrap { gap: 32px; }
}
@media (max-width: 600px) {
  .includes { grid-template-columns: 1fr; }
  .hero-facts dt { font-size: 36px; }
  .match th, .match td { padding: 12px; font-size: 15px; }
  .course-hero { padding: 44px 0 40px; }
  .access-band .price { font-size: 44px; }
}

/* ---------- Home: dark hero and course map ---------- */
.hero-dark { background: var(--teal-deep); color: #fff; padding-bottom: 64px; }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: #cfe5e1; }
.hero-dark .hero-note { color: #cfe5e1; margin: 0 0 10px; }
.hero-dark .case { border-left-color: var(--mark); color: var(--ink); }
.hero-dark .hero-facts { margin-top: 36px; }
.hero-facts.two { grid-template-columns: 1fr 1fr; row-gap: 4px; }
.hero-facts.two > div { padding: 20px 20px 16px 0; }
.hero-facts.two > div:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hero-facts.two > div:nth-child(odd) { border-left: 0; }
.hero-facts.two > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.hero-facts.two dt { font-size: 38px; }
section.hero-dark + section { border-top: 0; }
.areas { list-style: none; padding: 0; margin: 28px 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.areas > li > a { display: block; height: 100%; background: var(--card); border: 1px solid var(--rule); border-top: 5px solid var(--c); border-radius: 6px 6px 10px 10px; padding: 18px 20px 16px; color: var(--ink); text-decoration: none; }
.areas > li > a:hover { border-color: var(--c); box-shadow: 0 6px 18px rgba(22, 38, 58, 0.07); }
.areas h3 { color: var(--c); font-size: 19px; margin: 0 0 2px; }
.areas .range { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.areas ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 15.5px; }
.band-lead { color: #cfe5e1; }
@media (max-width: 880px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .hero-dark { padding-bottom: 48px; }
}
@media (max-width: 600px) {
  .areas { grid-template-columns: 1fr; }
  .hero-facts.two dt { font-size: 32px; }
  .hero-facts.two > div:nth-child(even) { padding-left: 14px; }
}

/* ---------- Sample case with several questions ---------- */
.cq { scroll-margin-top: 90px; }
.cq + .cq { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.cq .qno { color: var(--teal); }
.cq-done { display: none; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.cq.past .cq-done { display: flex; }
.cq.collapsed .case-q, .cq.collapsed .opts, .cq.collapsed .case-bar, .cq.collapsed .limit-msg, .cq.collapsed .result { display: none; }
.cq.past:not(.collapsed) .cq-done { margin-bottom: 10px; }
.link-btn { background: none; border: 0; padding: 4px 2px; font: 600 15px/1.2 var(--sans); color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.result [data-next] { margin-top: 6px; }
.explain .keypoint { border-left: 4px solid var(--mark); padding: 2px 0 2px 12px; }
.case-summary { margin-top: 20px; padding: 18px 18px 6px; background: #eef5f3; border-radius: 8px; }
.case-total { font-weight: 600; font-size: 19px; }
.case-summary .hero-actions { margin-top: 12px; margin-bottom: 12px; }
