/* Pathox v2 — design system adapted from the General Pathology prototype.
   Layout: public site = sticky header + 1180px container sections; workspace = navy sidebar (235px) + topbar + content. */
:root {
  /* H&E palette: hematoxylin blue-violet for structure and action, eosin rose as the single warm accent */
  --night: #16223a;
  --ink: #172238; --text: #172238; --muted: #66728a; --body: #3f4b63;
  --blue: #2b4acb; --blue-h: #233eb0; --blue-soft: #ecf0fd; --blue-line: #cdd7fa;
  --orange: #c4456a; --orange-h: #ad3a5c; --orange-soft: #fcedf2; --orange-ink: #9c3054;
  --green: #1e7a5e; --green-soft: #e6f3ed; --red: #b8404a; --red-soft: #fcefef;
  --gold: #8d6716; --gold-soft: #f8f0dc;
  --paper: #ffffff; --bg: #f4f6f9; --bg-2: #ebeef4; --line: #e0e5ee; --line-2: #d3dae6; --field: #ffffff;
  --navy: #16223a; --navy-2: #1f2e4d; --navy-ink: #ffffff; --navy-muted: #b3bfd6;
  --art-blue: #e9edfb; --art-orange: #f9e9ef; --art-green: #e5f1eb; --art-purple: #eee9f7; --art-navy: #1f2e4d;
  --hl-y: #ffe98a; --hl-g: #c9efd2; --hl-b: #cfe0ff; --hl-p: #ffd3e3;
  --radius: 14px; --shadow: 0 1px 2px rgba(23, 34, 56, .04), 0 10px 28px rgba(23, 34, 56, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --night: #0b1324; --ink: #e8ecf5; --text: #e8ecf5; --muted: #98a3bb; --body: #c3cbdc;
    --blue: #8ea4ff; --blue-h: #a9baff; --blue-soft: #1c2650; --blue-line: #33407a;
    --orange: #ee7d9f; --orange-h: #f493b0; --orange-soft: #3b1a27; --orange-ink: #f7a9c0;
    --green: #5cc7a5; --green-soft: #15342c; --red: #f08791; --red-soft: #3b1c22;
    --gold: #e8c77a; --gold-soft: #33290f;
    --paper: #151f33; --bg: #0d1424; --bg-2: #121b2d; --line: #243149; --line-2: #34425d; --field: #111a2c;
    --navy: #0a1120; --navy-2: #141f36; --navy-ink: #ffffff; --navy-muted: #a7b9c9;
    --art-blue: #1b2d47; --art-orange: #352418; --art-green: #17302a; --art-purple: #272440; --art-navy: #0c1a28;
    --hl-y: #5b4b12; --hl-g: #1d4a33; --hl-b: #1f3a66; --hl-p: #5a2440;
    --shadow: 0 16px 45px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --night: #0b1324; --ink: #e8ecf5; --text: #e8ecf5; --muted: #98a3bb; --body: #c3cbdc;
  --blue: #8ea4ff; --blue-h: #a9baff; --blue-soft: #1c2650; --blue-line: #33407a;
  --orange: #ee7d9f; --orange-h: #f493b0; --orange-soft: #3b1a27; --orange-ink: #f7a9c0;
  --green: #5cc7a5; --green-soft: #15342c; --red: #f08791; --red-soft: #3b1c22;
  --gold: #e8c77a; --gold-soft: #33290f;
  --paper: #151f33; --bg: #0d1424; --bg-2: #121b2d; --line: #243149; --line-2: #34425d; --field: #111a2c;
  --navy: #0a1120; --navy-2: #141f36; --navy-ink: #ffffff; --navy-muted: #a7b9c9;
  --art-blue: #1b2d47; --art-orange: #352418; --art-green: #17302a; --art-purple: #272440; --art-navy: #0c1a28;
  --hl-y: #5b4b12; --hl-g: #1d4a33; --hl-b: #1f3a66; --hl-p: #5a2440;
  --shadow: 0 16px 45px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
h4 { line-height: 1.4; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { width: 19px; height: 19px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(1180px, 100%); margin: auto; padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.b { font-weight: 650; }
.tabnum { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.05em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 19px; border: 1px solid transparent; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 650; font-size: 14px; line-height: 1.25; text-align: center; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--blue-h); transform: translateY(-1px); }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--bg-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.orange { background: var(--orange); color: #fff; }
.btn.orange:hover { background: var(--orange-h); }
.btn.danger { background: var(--red-soft); color: var(--red); border-color: transparent; }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 13px; }
.btn.lg { min-height: 50px; padding: 13px 22px; font-size: 15px; }
.btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }
:root[data-theme="dark"] .btn:not(.secondary):not(.ghost):not(.orange):not(.danger) { background: #3a55d8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.secondary):not(.ghost):not(.orange):not(.danger) { background: #3a55d8; } }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 650; border: 0; background: transparent; padding: 0; cursor: pointer; font-size: 13.5px; }
.text-link .icon { width: 16px; height: 16px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; color: var(--ink); flex: none; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn.plain { border-color: transparent; background: transparent; }
.icon-btn.on { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }

.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grow { flex: 1; min-width: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; background: var(--bg-2); color: var(--muted); font-size: 10.5px; line-height: 1.5; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge.free, .badge.public, .badge.active, .badge.published, .badge.approved, .badge.completed, .badge.ok { background: var(--green-soft); color: var(--green); }
.badge.standard, .badge.trial, .badge.info { background: var(--blue-soft); color: var(--blue); }
.badge.premium, .badge.pending, .badge.review, .badge.warn { background: var(--orange-soft); color: var(--orange-ink); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.blocked, .badge.expired, .badge.cancelled, .badge.bad { background: var(--red-soft); color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-button { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; font-size: 13px; color: var(--muted); cursor: pointer; min-height: 38px; }
.tag-button.active { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); font-weight: 650; }
.tag-button .n { font-variant-numeric: tabular-nums; opacity: .75; margin-left: 4px; }

/* demo bar */
.demo-bar { background: var(--night); color: #e0e8ee; min-height: 40px; padding: 6px max(24px, env(safe-area-inset-right, 0px)) 6px max(24px, env(safe-area-inset-left, 0px)); font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 30; flex-wrap: wrap; }
.demo-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: #99c8ab; display: inline-block; margin-right: 8px; }
.demo-bar b { letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.demo-bar .cap { color: #a8bdcc; font-size: 11.5px; margin-left: 12px; }
.demo-bar select { border: 1px solid #527085; border-radius: 6px; background: #274359; color: #fff; padding: 5px 8px; font-size: 12px; max-width: 220px; }
.demo-bar button { border: 0; background: none; color: #cbdce8; font-size: 12px; padding: 4px 6px; }
.demo-bar label { color: #cbdce8; }

/* public header */
.site-header { height: 83px; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; background: var(--night); color: #fff; flex: none; }
.brand-mark .icon { width: 25px; height: 25px; }
.brand-name { font-size: 17px; line-height: 1.18; font-weight: 750; letter-spacing: -.035em; }
.brand-name small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 4px; }
.public-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.public-nav a:hover, .public-nav a.on { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--paper); }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 5px 8px; border-radius: 6px; min-height: 30px; }
.lang-switch button.on { background: var(--blue-soft); color: var(--blue); }
.menu-button { display: none; }
.announcement { background: var(--orange-soft); color: var(--orange-ink); padding: 10px 25px; text-align: center; font-size: 13px; }

/* hero */
.hero { padding: 74px 0 65px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 65px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.2vw, 68px); font-weight: 650; margin: 22px 0 24px; max-width: 640px; }
.hero h1 .serif { color: var(--blue); }
.hero-copy { font-size: 16.5px; color: var(--muted); max-width: 500px; line-height: 1.85; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; gap: 6px; align-items: center; }
.hero-meta .icon { color: var(--green); width: 15px; height: 15px; }
.visual-wrap { position: relative; padding: 22px 0 24px; }
.lesson-preview { border-radius: 19px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(36, 58, 80, .08); overflow: hidden; transform: rotate(2deg); }
.preview-header { padding: 18px 23px; display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.preview-header .row { gap: 8px; }
.specimen { height: 245px; background: #e8edf5; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.specimen svg { width: 100%; height: 100%; }
.specimen-caption { position: absolute; bottom: 15px; left: 19px; background: rgba(255, 255, 255, .88); font-size: 10px; padding: 5px 8px; border-radius: 4px; letter-spacing: .05em; color: #60718a; text-transform: uppercase; }
.preview-content { padding: 23px; }
.preview-content h3 { font-size: 23px; margin: 8px 0 12px; }
.preview-content p { font-size: 13px; color: var(--muted); }
.preview-footer { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); }
.floating-card { position: absolute; bottom: 4px; left: -35px; width: 262px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 14px 30px rgba(25, 51, 75, .08); transform: rotate(-3deg); }
.floating-card h4 { font-size: 13px; margin: 8px 0; }
.floating-card p { font-size: 11px; color: var(--muted); }
.visual-label { position: absolute; right: -13px; top: 0; background: #edf5ee; border: 1px solid #d4e6d9; color: #468465; border-radius: 100px; padding: 10px 14px; transform: rotate(5deg); font-size: 12px; font-weight: 600; }
.connector { width: min(1100px, calc(100% - 80px)); margin: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 25px; align-items: center; color: var(--muted); font-size: 13px; }
.connector .row { font-size: 14px; font-weight: 650; color: var(--ink); gap: 10px; }
.connector .icon { color: var(--blue); width: 22px; height: 22px; }

/* sections */
.section { padding: 78px 0; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(30px, 3.6vw, 39px); margin-top: 13px; }
.section-heading h2 .serif { color: var(--blue); }
.section-heading p { color: var(--muted); margin-top: 13px; max-width: 600px; font-size: 15px; }
.section-heading.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading.center p { margin-inline: auto; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.public-search, .search-box { position: relative; width: 260px; max-width: 100%; }
.public-search input, .search-box input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); font-size: 13.5px; min-height: 40px; }
.public-search .icon, .search-box .icon { position: absolute; left: 11px; top: 11px; width: 17px; height: 17px; color: var(--muted); }

/* course cards */
.public-course-grid, .course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.course-card { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-art { height: 147px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--art-blue); color: var(--ink); flex: none; }
.course-art.orange { background: var(--art-orange); }
.course-art.green { background: var(--art-green); }
.course-art.purple { background: var(--art-purple); }
.course-art.navy { background: var(--art-navy); color: #fff; }
.course-art .icon { width: 64px; height: 64px; stroke-width: 1.2; position: relative; }
.course-art::before, .course-art::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(25, 51, 75, .08); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.course-art.navy::before, .course-art.navy::after { border-color: rgba(255, 255, 255, .1); }
.course-art::after { width: 120px; height: 120px; }
.course-art.has-cover { background: #16263a; }
.course-art.has-cover::before, .course-art.has-cover::after { display: none; }
.course-art .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-art .cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 24, 40, .55), rgba(12, 24, 40, 0) 48%); }
.course-art.has-cover .art-number { color: #fff; z-index: 1; }
.course-art .art-done { z-index: 1; }
.thumb-cell.course-art { width: 72px; height: 41px; border-radius: 7px; display: flex; }
.thumb-cell.course-art .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.thumb-cell.course-art::before { width: 50px; height: 50px; } .thumb-cell.course-art::after { width: 28px; height: 28px; }
.lesson-cover { border-radius: 15px; overflow: hidden; aspect-ratio: 16 / 6; background: #16263a; }
.lesson-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-pick { border-radius: 12px; overflow: hidden; background: var(--bg-2); text-align: center; padding: 10px; }
.cover-pick .cp-in { position: relative; display: inline-block; vertical-align: top; cursor: crosshair; }
.cover-pick img { display: block; max-width: 100%; max-height: 320px; border-radius: 6px; }
.cover-pick .dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue), 0 2px 8px rgba(0,0,0,.3); pointer-events: none; }
.cover-previews { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .cover-previews { grid-template-columns: minmax(0, 1fr); } }
.art-number { position: absolute; top: 15px; left: 18px; font-size: 10.5px; letter-spacing: .1em; color: #687c91; text-transform: uppercase; }
.course-art.navy .art-number { color: #9fb3c6; }
.art-done { position: absolute; top: 12px; right: 14px; }
.course-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 20px; margin: 12px 0 10px; }
.course-card p { font-size: 13px; color: var(--muted); line-height: 1.65; min-height: 42px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin: 18px 0; }
.card-meta span { display: inline-flex; gap: 6px; align-items: center; }
.card-meta .icon { width: 15px; height: 15px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; margin-top: auto; }
.card-bottom .icon { color: var(--muted); }
.course-card .progress { margin-bottom: 14px; }

/* tool band */
.tool-band { background: var(--night); color: #fff; overflow: hidden; }
.tool-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 75px; align-items: center; }
.tool-band .eyebrow { color: #89aeff; }
.tool-band h2 { font-size: clamp(32px, 3.6vw, 43px); margin: 17px 0; color: #fff; }
.tool-band h2 .serif { color: #b9cdf9; }
.tool-band p { color: #b8c6d1; font-size: 15px; line-height: 1.8; max-width: 440px; }
.tool-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tool-options button { border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #c7d3dd; padding: 11px 15px; border-radius: 8px; font-size: 13px; }
.tool-options button.active { background: #fff; color: var(--night); border-color: #fff; }
.tool-demo { border: 1px solid rgba(255, 255, 255, .16); border-radius: 15px; background: #233f58; padding: 25px; min-height: 300px; }
.tool-demo h3 { font-size: 21px; margin: 16px 0; color: #fff; line-height: 1.35; }
.tool-demo p { color: #d6e0e8; font-size: 13px; }
.tool-demo .badge { background: #486485; color: #e1ecff; }
.tool-demo .sample-option { color: #fff; border-color: rgba(255, 255, 255, .16); }
.tool-demo .sample-option .letter { background: rgba(255, 255, 255, .1); color: #d6e0e8; }
.tool-demo .sample-option:hover { background: rgba(255, 255, 255, .06); }
.tool-demo .sample-option.correct { background: #315f50; border-color: #69ae8d; }
.tool-demo .sample-option.wrong { background: #654758; border-color: #ad7b85; }
.tool-demo .note-card { background: #fffdf6; }

/* pricing */
.pricing-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: var(--bg-2); border-radius: 11px; padding: 6px; width: max-content; max-width: 100%; margin: 27px auto 32px; }
.pricing-controls button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 9px 20px; font-size: 13px; font-weight: 650; min-height: 38px; }
.pricing-controls button.active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 4px rgba(25, 51, 75, .05); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; background: var(--paper); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.price-card.recommended { border: 2px solid var(--blue); padding: 27px; }
.price-card.goldc { background: var(--night); border-color: var(--night); color: #fff; }
.price-card.goldc p, .price-card.goldc .price-value small, .price-card.goldc li { color: #c5d4de; }
.price-card.goldc h3 { color: #f3c59a; }
.price-label { position: absolute; top: -13px; left: 25px; padding: 4px 12px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 10.5px; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
.price-card h3 { font-size: 23px; margin: 15px 0 8px; }
.price-card > p { font-size: 13px; color: var(--muted); }
.price-value { font-size: 32px; font-weight: 650; letter-spacing: -.04em; margin: 22px 0 3px; font-variant-numeric: tabular-nums; }
.price-value small { font-size: 13px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.price-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; }
.price-card li .icon { color: var(--green); width: 16px; height: 16px; margin-top: 2px; }
.price-card.goldc li .icon { color: #8fd3b4; }
.price-card .btn { width: 100%; }

/* faq / footer */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.faq-grid h2 { font-size: clamp(30px, 3.4vw, 38px); margin: 15px 0; }
.faq-grid details { border-top: 1px solid var(--line); padding: 19px 0; }
.faq-grid details:last-child { border-bottom: 1px solid var(--line); }
.faq-grid summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq-grid details p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.site-footer { background: var(--bg-2); padding: 44px 0 24px; }
.site-footer .brand-mark { background: #dbe4ee; color: var(--night); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-cols .col { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--muted); }
.footer-cols .col b { color: var(--ink); font-size: 13px; }
.footer-cols a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line-2); margin-top: 28px; padding-top: 19px; font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* workspace */
.workspace { min-height: calc(100vh - 40px); display: grid; grid-template-columns: 235px minmax(0, 1fr); }
.sidebar { background: var(--night); color: #cad9e5; padding: 26px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.sidebar .brand { padding: 0 8px 22px; }
.sidebar .brand-mark { background: rgba(255, 255, 255, .08); color: #b9d1ff; }
.sidebar .brand-name { color: #fff; font-size: 16px; }
.sidebar .brand-name small { color: #8ca4b8; }
.sidebar-label { font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: #7e98ae; margin: 18px 13px 9px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { position: relative; color: #b6c8d6; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 8px; min-height: 43px; font-size: 13.5px; }
.side-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.side-nav a.active { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a.active::before { content: ""; width: 3px; height: 16px; border-radius: 3px; background: #91b3ff; position: absolute; left: 0; }
.side-nav .nav-count { margin-left: auto; background: var(--orange); color: var(--night); border-radius: 5px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.nav-separator { height: 1px; background: rgba(255, 255, 255, .09); margin: 16px 12px 9px; }
.sidebar-bottom { margin-top: auto; padding: 22px 8px 0; }
.sidebar-note { border: 1px solid rgba(255, 255, 255, .11); border-radius: 11px; padding: 15px; font-size: 12px; color: #8ea7b9; line-height: 1.6; }
.sidebar-note strong { display: block; font-weight: 600; color: #c5d4de; margin-bottom: 5px; }
.sidebar-note .progress { background: rgba(255, 255, 255, .1); margin-top: 10px; }
.sidebar-note .progress span { background: var(--orange); }
.workspace-main { min-width: 0; display: flex; flex-direction: column; }
.workspace-topbar { height: 77px; border-bottom: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 35px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; min-width: 0; }
.breadcrumb strong { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #e9eef7; color: #496991; font-weight: 700; font-size: 12px; flex: none; }
.avatar.orange { background: #fbece0; color: #ac754f; }
.avatar.green { background: #e4f1e9; color: #4f8a6b; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; border-radius: 14px; }
.profile .person { font-size: 12px; line-height: 1.45; }
.profile .person strong { font-weight: 650; display: block; font-size: 12.5px; }
.profile .person span { color: var(--muted); }
.alert-dot { position: relative; }
.alert-dot::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--orange); top: 7px; right: 8px; border-radius: 100%; }
.mobile-side-button { display: none; }
.workspace-content { padding: 30px 35px 55px; width: 100%; max-width: 1400px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading .eyebrow { font-size: 10.5px; }
.page-heading h1 { font-size: 30px; margin: 10px 0; }
.page-heading p { font-size: 13.5px; color: var(--muted); max-width: 680px; line-height: 1.7; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.date-chip { font-size: 12px; white-space: nowrap; color: var(--muted); border: 1px solid var(--line); background: var(--paper); border-radius: 7px; padding: 8px 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.dashboard-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 21px; }
.section-gap { margin-top: 24px; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); padding: 24px; min-width: 0; }
.panel h2 { font-size: 18px; letter-spacing: -.02em; }
.panel h3 { font-size: 16px; letter-spacing: -.02em; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.panel-header p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 20px; min-width: 0; display: block; color: var(--ink); }
a.stat-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.stat-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); gap: 8px; }
.stat-icon { border-radius: 8px; width: 32px; height: 32px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.orange { background: var(--orange-soft); color: var(--orange-ink); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-value { font-size: 30px; letter-spacing: -.04em; font-weight: 650; margin-top: 14px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.stat-foot { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.progress { height: 5px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--blue); border-radius: 5px; }
.progress.lg { height: 8px; }
.course-row { padding: 16px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.course-row:first-child { border-top: 0; padding-top: 0; }
.course-row .course-art { height: 64px; width: 74px; border-radius: 10px; flex: none; }
.course-row .course-art::before { width: 85px; height: 85px; }
.course-row .course-art::after { width: 45px; height: 45px; }
.course-row .course-art .icon { width: 28px; height: 28px; }
.course-row-content { flex: 1; min-width: 0; }
.course-row h4 { font-size: 14px; }
.course-row p { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.list-item { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.list-item:last-child { border-bottom: 0; }
.list-symbol { height: 34px; width: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); flex: none; }
.list-symbol.orange { background: var(--orange-soft); color: var(--orange-ink); }
.list-symbol.green { background: var(--green-soft); color: var(--green); }
.list-symbol .icon { width: 17px; height: 17px; }
.list-item h4 { font-size: 13.5px; }
.list-item p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.list-item .right { margin-left: auto; text-align: right; flex: none; display: flex; gap: 6px; align-items: center; }
.chart { height: 190px; margin-top: 18px; display: flex; gap: 8px; align-items: flex-end; border-bottom: 1px solid var(--line); padding: 0 6px 24px; }
.chart-bar { flex: 1; position: relative; border-radius: 5px 5px 0 0; min-height: 3px; background: #d7e4fc; }
.chart-bar.current { background: var(--blue); }
.chart-bar span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.chart-bar b { position: absolute; top: -19px; width: 100%; font-size: 10.5px; text-align: center; color: var(--muted); font-weight: 500; }
:root[data-theme="dark"] .chart-bar { background: #2b4470; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chart-bar { background: #2b4470; } }
.chart-bar.current { background: var(--blue); }
.bar-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 60px; gap: 12px; align-items: center; font-size: 13px; padding: 7px 0; }
.bar-row .progress { height: 8px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); position: relative; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 13px 16px; background: var(--bg-2); color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .title-cell { min-width: 200px; max-width: 340px; }
.data-table .title-cell strong { display: block; font-size: 13.5px; font-weight: 650; }
.data-table .title-cell small { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.data-table .user-cell { display: flex; gap: 10px; align-items: center; min-width: 200px; }
.inline-actions { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: nowrap; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 13px; background: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .icon { width: 32px; height: 32px; }
.empty h3 { color: var(--ink); font-size: 16px; }
.empty p { font-size: 13px; max-width: 420px; }
.notice { border: 1px solid #d7e4f8; background: #edf3ff; color: #456387; padding: 14px 17px; border-radius: 10px; font-size: 13px; line-height: 1.65; display: flex; gap: 10px; align-items: flex-start; }
.notice.orange { border-color: #f1dfcc; background: #fff4e8; color: #93663c; }
.notice.green { border-color: #d0e5d9; background: #edf7f1; color: #3f7a5c; }
.notice.red { border-color: #f1d0d3; background: #fff2f3; color: #9b3f48; }
:root[data-theme="dark"] .notice { background: var(--blue-soft); border-color: var(--blue-line); color: var(--ink); }
:root[data-theme="dark"] .notice.orange { background: var(--orange-soft); border-color: transparent; color: var(--orange-ink); }
:root[data-theme="dark"] .notice.green { background: var(--green-soft); border-color: transparent; color: var(--green); }
:root[data-theme="dark"] .notice.red { background: var(--red-soft); border-color: transparent; color: var(--red); }
.notice .icon { flex: none; margin-top: 2px; }
.premium-banner { background: var(--orange-soft); border: 1px solid #eee1d2; border-radius: 13px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.premium-banner h3 { font-size: 18px; }
.premium-banner p { font-size: 13px; color: var(--orange-ink); margin-top: 7px; max-width: 560px; }
.student-welcome { background: var(--night); border-radius: 15px; padding: 27px 29px; color: #fff; display: flex; justify-content: space-between; gap: 25px; align-items: center; margin-bottom: 23px; position: relative; overflow: hidden; }
.student-welcome h2 { font-size: 26px; max-width: 520px; color: #fff; }
.student-welcome p { font-size: 13.5px; color: #b3c6d5; margin: 10px 0 20px; max-width: 480px; line-height: 1.75; }
.student-welcome .eyebrow { color: #9eb9ed; font-size: 10.5px; margin-bottom: 14px; }
.student-welcome .welcome-art { width: 130px; height: 130px; flex: none; color: #82a9db; opacity: .7; }
.student-welcome .welcome-art .icon { height: 100%; width: 100%; stroke-width: .8; }
.student-welcome .progress { background: rgba(255, 255, 255, .14); max-width: 360px; margin-bottom: 20px; }
.student-welcome .progress span { background: var(--orange); }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; min-width: 0; }
.field > label, .field > span.lbl { font-size: 12.5px; font-weight: 650; }
.field input, .field select, .field textarea, .input { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; background: var(--field); color: var(--ink); font-size: 14px; min-height: 42px; }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.field small, .hint { font-size: 12px; color: var(--muted); }
.field.full { grid-column: 1 / -1; }
.field .err, .err { color: var(--red); font-size: 13px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.check-field { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.55; cursor: pointer; }
.check-field input { accent-color: var(--blue); width: 17px; height: 17px; margin-top: 2px; flex: none; }
.switch-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.switch-line:last-child { border-bottom: 0; }
.switch-line strong { font-size: 14px; display: block; }
.switch-line small { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.switch { appearance: none; width: 40px; height: 23px; border-radius: 15px; background: #cbd5df; position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch::before { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch:checked { background: var(--blue); }
.switch:checked::before { left: 20px; }
.form-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; background: var(--bg-2); border-radius: 10px; padding: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 8px 14px; font-size: 13px; font-weight: 650; min-height: 36px; }
.seg button.active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 4px rgba(25, 51, 75, .06); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 16px; font-size: 13.5px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs a.active, .tabs button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 650; }
.tabs .n { font-size: 11px; background: var(--bg-2); color: var(--muted); border-radius: 5px; padding: 0 6px; font-weight: 650; }
.tabs .icon { width: 15px; height: 15px; }

/* reader */
.reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.reader-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.reader-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.reader { font-size: var(--reader, 16px); color: var(--body); }
.reader h2 { font-size: 1.55em; margin: 1.6em 0 .6em; color: var(--ink); }
.reader h2:first-child { margin-top: 0; }
.reader h3 { font-size: 1.22em; margin: 1.5em 0 .5em; color: var(--ink); }
.reader p { line-height: 1.9; margin: 0 0 1em; }
.reader ul, .reader ol { margin: 0 0 1.1em; padding-left: 1.4em; line-height: 1.8; }
.reader li { margin-bottom: .35em; }
.reader b, .reader strong { color: var(--ink); }
.reader table { border-collapse: collapse; width: 100%; font-size: .9em; }
.reader th, .reader td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.reader th { background: var(--bg-2); color: var(--ink); }
.reader td p, .reader th p { margin: 0; line-height: 1.6; }
.reader .tw { overflow-x: auto; margin: 0 0 1.2em; position: relative; }
.reader img { border-radius: 8px; }
.reader a { color: var(--blue); text-decoration: underline; }
.reader .key, .reader .callout { padding: 17px 20px; background: #f0f4fc; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; line-height: 1.75; margin: 1.2em 0; color: var(--ink); }
.reader .callout.def { background: #f0f4fc; border-color: var(--blue); }
.reader .callout.clin { background: #edf7f1; border-color: var(--green); }
.reader .callout.warn { background: #fff4e8; border-color: var(--orange); }
:root[data-theme="dark"] .reader .key, :root[data-theme="dark"] .reader .callout { background: var(--blue-soft); }
:root[data-theme="dark"] .reader .callout.clin { background: var(--green-soft); }
:root[data-theme="dark"] .reader .callout.warn { background: var(--orange-soft); }
.reader mark.c-y, mark.hl.y { background: var(--hl-y); color: inherit; }
.reader mark.c-g, mark.hl.g { background: var(--hl-g); color: inherit; }
.reader mark.c-b, mark.hl.b { background: var(--hl-b); color: inherit; }
.reader mark.c-p, mark.hl.p { background: var(--hl-p); color: inherit; }
mark.hl { border-radius: 2px; padding: 0 1px; cursor: pointer; }
mark.hl.has-note { box-shadow: inset 0 -2px 0 var(--orange); }
.objective { padding: 17px 20px; background: #f0f4fc; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.7; }
:root[data-theme="dark"] .objective { background: var(--blue-soft); }
.objective ul { margin: 8px 0 0; padding-left: 18px; }
.fig { margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.fig .img { display: flex; align-items: center; justify-content: center; background: #fff; width: 100%; border: 0; padding: 0; cursor: zoom-in; position: relative; min-height: 180px; }
.fig .img svg.specimen-svg { width: 100%; height: auto; display: block; }
.fig .img img { display: block; max-width: 100%; width: auto; height: auto; max-height: 460px; object-fit: contain; }
.img-grid .fig .img img { max-height: 260px; }
.fig .img .zoom-hint { position: absolute; right: 10px; bottom: 10px; background: rgba(25, 51, 75, .72); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 6px; display: inline-flex; gap: 5px; align-items: center; }
.fig .img .zoom-hint .icon { width: 13px; height: 13px; }
.fig figcaption { padding: 12px 15px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.fig .src { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.toc { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.toc a { color: var(--muted); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--blue); border-left-color: var(--blue); }
.hl-pop { position: absolute; z-index: 60; background: var(--night); border-radius: 10px; padding: 6px; display: flex; gap: 4px; box-shadow: 0 10px 30px rgba(10, 20, 32, .3); }
.hl-pop button { width: 32px; height: 32px; border-radius: 7px; border: 0; display: grid; place-items: center; background: transparent; color: #fff; }
.hl-pop button:hover { background: rgba(255, 255, 255, .1); }
.hl-pop .sw { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); }
.lock-box { border: 1.5px dashed var(--line-2); border-radius: 15px; padding: 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--paper); }
.lock-box .stat-icon { width: 44px; height: 44px; }

/* practice & test */
.sample-option { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 12px 15px; color: var(--ink); margin-top: 9px; font-size: 14.5px; line-height: 1.5; }
.sample-option .letter { height: 26px; width: 26px; background: var(--bg-2); border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; }
.sample-option:hover { background: #f2f6ff; border-color: #b8ccf7; }
:root[data-theme="dark"] .sample-option:hover { background: var(--blue-soft); }
.sample-option.selected { border-color: var(--blue); background: var(--blue-soft); }
.sample-option.selected .letter { background: var(--blue); color: #fff; }
.sample-option.correct { border-color: #8ebda9; background: var(--green-soft); }
.sample-option.correct .letter { background: var(--green); color: #fff; }
.sample-option.wrong { border-color: #d6a0a3; background: var(--red-soft); }
.sample-option.wrong .letter { background: var(--red); color: #fff; }
.sample-option.struck .txt { text-decoration: line-through; color: var(--muted); }
.sample-option[disabled] { cursor: default; }
.sample-option .pct { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 8px; }
.answer-explanation { background: var(--green-soft); padding: 18px; border-radius: 10px; margin-top: 18px; font-size: 14px; color: #2f6b55; line-height: 1.75; display: flex; flex-direction: column; gap: 8px; }
.answer-explanation.wrong { background: #fff0e8; color: #8f5a37; }
:root[data-theme="dark"] .answer-explanation { color: var(--green); }
:root[data-theme="dark"] .answer-explanation.wrong { background: var(--orange-soft); color: var(--orange-ink); }
.answer-explanation strong { color: inherit; }
/* case and question explanations keep their paragraph breaks (\n\n in the text), 16 Nov 2026 */
.answer-explanation span { white-space: pre-line; }
.test-shell { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--paper); }
.test-shell.inverse { --paper: #10202f; --ink: #e9eff5; --line: #2a4058; --bg-2: #18293b; --muted: #9db0c2; --blue-soft: #1d3457; color: #e9eff5; }
.test-nav { background: var(--bg-2); border-right: 1px solid var(--line); max-height: 640px; overflow: auto; }
.test-nav button { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 40px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; position: relative; }
.test-nav button.on { background: var(--blue); color: #fff; }
.test-nav button .flag { width: 12px; height: 12px; color: var(--orange); }
.test-nav button .st { width: 7px; height: 7px; border-radius: 50%; position: absolute; left: 8px; }
.test-nav button .st.r { background: var(--green); }
.test-nav button .st.w { background: var(--red); }
.test-nav button .st.a { background: var(--muted); }
.test-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--night); color: #fff; flex-wrap: wrap; }
.test-top .tt { display: flex; gap: 4px; flex-wrap: wrap; }
.test-top button { border: 0; background: transparent; color: #d7e3ee; font-size: 12px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 7px; min-width: 56px; }
.test-top button:hover, .test-top button.on { background: rgba(255, 255, 255, .1); color: #fff; }
.test-top button .icon { width: 18px; height: 18px; }
.test-top .timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.test-body { padding: 26px 30px 30px; }
.test-body .stem { font-size: 16px; line-height: 1.75; color: var(--ink); }
.test-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.calc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc button { min-height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; font-size: 16px; }
.calc button.op { background: var(--blue-soft); color: var(--blue); }
.calc .screen { grid-column: 1 / -1; min-height: 56px; border-radius: 8px; background: var(--bg-2); padding: 10px 14px; font-size: 22px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* flashcards */
.study-card { min-height: 280px; background: #f3f6fd; border: 1px solid #d9e3f8; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 40px; cursor: pointer; width: 100%; color: var(--ink); }
:root[data-theme="dark"] .study-card { background: var(--blue-soft); border-color: var(--blue-line); }
.study-card .eyebrow::before { display: none; }
.study-card h2 { font-size: 26px; margin: 24px 0 15px; max-width: 600px; line-height: 1.4; }
.study-card .answer { font-size: 18px; color: var(--body); border-top: 1px solid var(--blue-line); padding-top: 16px; max-width: 600px; line-height: 1.6; }
.study-card p { color: var(--muted); font-size: 13px; }
.study-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.study-controls button { min-height: 56px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; }
.study-controls button small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.study-controls .again { color: var(--red); }
.study-controls .hard { color: var(--orange-ink); }
.study-controls .good { color: var(--green); }
.study-controls .easy { color: var(--blue); }
.note-card { padding: 20px; background: #fffdf6; border: 1px solid #efe9d4; border-radius: 12px; color: #4e4a3d; }
:root[data-theme="dark"] .note-card { background: #23231a; border-color: #3b3a2b; color: #e5e1cf; }
.note-card p { font-size: 14px; white-space: pre-wrap; line-height: 1.75; margin: 10px 0 0; }
.note-card h3 { font-size: 15px; color: inherit; }
.hl-item { padding: 14px 16px; border-left: 4px solid var(--hl-y); background: var(--paper); border-radius: 0 10px 10px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hl-item.g { border-left-color: #6fc58a; } .hl-item.b { border-left-color: #6e9cf0; } .hl-item.p { border-left-color: #ef7aa6; } .hl-item.y { border-left-color: #e8c33a; }

/* charts */
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--bg-2); display: block; }
.heat i.l1 { background: #c7d6fb; } .heat i.l2 { background: #8fb0f6; } .heat i.l3 { background: #4f7fea; } .heat i.l4 { background: #1f4fcf; }
.legend { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.donut { width: 150px; height: 150px; flex: none; }
.donut-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }

/* editor */
.ed-wrap { border: 1px solid var(--line); border-radius: 13px; overflow: clip; background: var(--paper); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); align-items: center; position: sticky; top: 77px; z-index: 5; }
.ed-bar button, .ed-bar select { min-width: 34px; height: 34px; padding: 0 8px; border: 0; background: transparent; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.ed-bar select { border: 1px solid var(--line-2); background: var(--paper); }
.ed-bar button:hover { background: var(--paper); }
.ed-bar .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 5px; }
.ed-bar .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.ed { min-height: 480px; padding: 26px 30px; outline: none; }
.ed:focus { box-shadow: inset 0 0 0 2px var(--blue-soft); }
.ed figure[data-img] { margin: 0 0 1em; border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px; background: var(--bg-2); display: flex; gap: 12px; align-items: center; }
.ed figure[data-img] .thumb { width: 120px; height: 80px; border-radius: 6px; background: #e8edf5; flex: none; object-fit: cover; overflow: hidden; display: block; }
.ed figure[data-img] .thumb svg { width: 100%; height: 100%; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 13px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.drop.over { border-color: var(--blue); background: var(--blue-soft); }
.ed-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 21px; align-items: start; }
.access-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.access-row:last-of-type { border-bottom: 0; }
.access-row select { width: 140px; min-height: 34px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--field); font-size: 13px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 8px; padding: 12px 14px; user-select: all; overflow-wrap: anywhere; line-height: 1.6; white-space: pre-wrap; }
.login-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.login-card { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px 16px; font-size: 13px; }
.login-card b { color: var(--blue); }
.audit-item { padding: 15px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr auto; gap: 13px; align-items: start; }
.audit-item:last-child { border-bottom: 0; }
.audit-item strong { font-size: 13.5px; }
.audit-item p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.audit-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb37a; display: inline-block; box-shadow: 0 0 0 3px rgba(47, 179, 122, .18); }

/* modal & toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 35, 55, .54); backdrop-filter: blur(5px); z-index: 90; display: flex; align-items: center; justify-content: center; padding: calc(22px + env(safe-area-inset-top, 0px)) 16px calc(22px + env(safe-area-inset-bottom, 0px)); }
.modal { background: var(--paper); box-shadow: 0 20px 80px rgba(16, 35, 55, .22); border-radius: 17px; width: 100%; max-width: 640px; max-height: calc(100dvh - 44px); overflow: auto; }
.modal.wide { max-width: 900px; }
.modal-head { padding: 22px 26px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.modal-head h2 { font-size: 21px; }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.modal-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.modal .form-actions { position: sticky; bottom: 0; background: var(--paper); margin: 0; padding: 16px 26px; }
.modal.zoom { max-width: 1100px; background: #0d1a27; color: #fff; }
.modal.zoom .modal-head { border-color: rgba(255, 255, 255, .1); }
.modal.zoom .fig { background: transparent; border-color: rgba(255, 255, 255, .15); }
.modal.zoom .fig figcaption { color: #e5ecf3; }
.modal.zoom .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }
.zoom-stage { overflow: hidden; border-radius: 10px; background: #000; touch-action: none; cursor: grab; position: relative; }
.zoom-stage .inner { transform-origin: 0 0; }
.toast-region { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: max(25px, env(safe-area-inset-right, 0px)); z-index: 100; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--night); color: #fff; border: 1px solid #3e576f; box-shadow: 0 9px 22px rgba(19, 40, 60, .16); border-radius: 10px; padding: 14px 18px; font-size: 13.5px; display: flex; gap: 12px; align-items: center; animation: toast-in .18s ease-out; }
.toast.error { background: #8f3e49; }
.toast .icon { color: #a8cdb8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.center-screen { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 123px); }
.auth-side { background: var(--night); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.auth-side h2 { font-size: 40px; color: #fff; }
.auth-side h2 .serif { color: #b9cdf9; }
.auth-side p { color: #b8c6d1; max-width: 420px; line-height: 1.8; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: #d6e0e8; font-size: 14px; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li .icon { color: #8fd3b4; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 1100px) {
  .container { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
  .hero-grid { gap: 35px; } .public-nav { gap: 16px; } .floating-card { left: -15px; }
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .workspace-content { padding: 27px 23px 45px; } .workspace-topbar { padding: 0 23px; }
  .grid-4 { gap: 11px; } .stat-card { padding: 16px; } .stat-value { font-size: 26px; }
  .reader-layout { grid-template-columns: minmax(0, 1fr); } .reader-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .connector { width: calc(100% - 48px); gap: 15px; } .connector .row { font-size: 12.5px; }
  .tool-grid { gap: 35px; } .grid-3, .public-course-grid, .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ed-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .auth-side { padding: 40px; }
}
@media (max-width: 860px) {
  .public-nav { display: none; position: absolute; top: 83px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; gap: 4px; }
  .public-nav.open { display: flex; } .public-nav a { padding: 10px 0; width: 100%; }
  .menu-button { display: inline-grid; }
  .header-actions .hide-m { display: none; }
  .hero-grid, .tool-grid, .faq-grid, .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .connector { grid-template-columns: repeat(2, 1fr); } .connector > div:first-child { grid-column: 1 / -1; text-align: center; }
  .workspace { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: 260px; height: 100%; box-shadow: 20px 0 50px rgba(25, 51, 75, .25); padding-top: calc(26px + env(safe-area-inset-top, 0px)); }
  .sidebar.mobile-open { display: flex; }
  .mobile-side-button { display: inline-grid; }
  .side-scrim { position: fixed; inset: 0; background: rgba(16, 35, 55, .45); z-index: 65; }
  .dashboard-split, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .profile .person { display: none; } .workspace-topbar { height: 64px; }
  .page-heading h1 { font-size: 26px; }
  .test-shell { grid-template-columns: minmax(0, 1fr); } .test-nav { display: flex; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; } .test-nav button { width: 44px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .ed-bar { top: 64px; }
}
@media (max-width: 620px) {
  .container { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .demo-bar { padding: 6px 12px; gap: 8px; } .demo-bar .cap, .demo-bar .lbl-hide { display: none; } .demo-bar select { max-width: 170px; }
  .site-header { height: 72px; } .public-nav { top: 72px; }
  .brand-name { font-size: 15px; } .brand-name small { font-size: 8.5px; } .brand-mark { width: 34px; height: 34px; }
  .header-inner { gap: 10px; } .header-actions { gap: 8px; } .header-actions .btn { padding: 9px 12px; font-size: 13px; min-height: 40px; }
  .hero { padding: 42px 0 46px; } .hero h1 { font-size: 42px; } .hero-copy { font-size: 15px; }
  .visual-wrap { width: min(400px, calc(100% - 16px)); margin: 0 auto; padding-bottom: 30px; }
  .floating-card { left: -6px; bottom: 6px; width: 220px; } .visual-label { right: -6px; font-size: 11px; } .specimen { height: 210px; }
  .connector { width: calc(100% - 36px); }
  .section { padding: 50px 0; }
  .public-course-grid, .course-grid, .grid-3, .pricing-grid, .form-grid, .form-grid.three, .footer-cols, .login-cards { grid-template-columns: minmax(0, 1fr); }
  .public-search, .search-box { width: 100%; }
  .pricing-controls { width: 100%; } .pricing-controls button { flex: 1; padding: 9px 6px; }
  .workspace-content { padding: 22px max(16px, env(safe-area-inset-left, 0px)) 40px max(16px, env(safe-area-inset-right, 0px)); }
  .workspace-topbar { padding: 0 16px; }
  .page-heading { flex-direction: column; gap: 12px; } .heading-actions { justify-content: flex-start; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 14px; } .stat-value { font-size: 24px; } .stat-top { font-size: 11.5px; }
  .panel { padding: 18px; }
  .student-welcome { padding: 22px; } .student-welcome h2 { font-size: 22px; } .student-welcome .welcome-art { display: none; }
  .reader-aside { grid-template-columns: minmax(0, 1fr); }
  .study-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-body { padding: 20px 16px; } .bar-row { grid-template-columns: 100px minmax(0, 1fr) 44px; }
  .ed { padding: 18px 16px; } .toast-region { left: 16px; right: 16px; max-width: none; }
}

/* ---------- specimens (micro / macro) ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.spec-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.spec-img { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; background: #e9ecef; cursor: zoom-in; overflow: hidden; }
.spec-img img, .spec-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-img .zoom-hint { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 32, 58, .74); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 6px; display: inline-flex; gap: 5px; align-items: center; }
.spec-img .zoom-hint .icon { width: 13px; height: 13px; }
.spec-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; }
.spec-body h3 { font-size: 18px; }
.spec-meta { font-size: 13px; color: var(--muted); }
.spec-desc { font-size: 14px; line-height: 1.65; color: var(--body); }
.spec-feat b { font-size: 13px; }
.spec-feat ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.65; color: var(--body); }
.spec-feat li::marker { color: var(--orange); }
.spec-body .src { font-size: 11.5px; color: var(--muted); }
.spec-q { font-weight: 600; }
.spec-card.is-hidden .spec-img { cursor: zoom-in; }
.spec-lesson { margin-top: 4px; font-size: 12.5px; }
.spec-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex: none; background: #e9ecef; display: block; }
.spec-thumb img, .spec-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-thumb.lg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.spec-form { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 720px) { .spec-form { grid-template-columns: minmax(0, 1fr); } .spec-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- payments ---------- */
.pay-methods { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; max-width: 640px; }
.pay-methods legend { margin-bottom: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; cursor: pointer; background: var(--paper); }
.pay-opt.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.pay-opt.off { opacity: .55; cursor: not-allowed; }
.pay-opt input { margin-top: 3px; accent-color: var(--blue); width: 17px; height: 17px; }
.pay-opt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pay-flow ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: pf; }
.pay-flow li { counter-increment: pf; position: relative; padding: 0 14px 0 0; font-size: 13px; color: var(--body); line-height: 1.5; }
.pay-flow li::before { content: counter(pf); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.pay-flow li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 36px; right: 8px; height: 1px; background: var(--line-2); }
.pay-flow li b { display: block; color: var(--ink); }
@media (max-width: 860px) { .pay-flow ol { grid-template-columns: minmax(0, 1fr); gap: 14px; } .pay-flow li:not(:last-child)::after { display: none; } }
.pay-card h2 { display: flex; align-items: center; gap: 10px; }
.pay-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); display: inline-block; }
.pay-sim { border: 1px solid var(--line); border-top: 4px solid var(--pc); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--body); }
.check-list li .icon { color: var(--muted); }
.check-list li.done { color: var(--ink); } .check-list li.done .icon { color: var(--green); }

/* ---------- ad banners ---------- */
.ad-slot { margin-bottom: 22px; }
.ad-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 24px 56px 24px 28px; border-radius: 16px; overflow: hidden; background: var(--ad-bg); color: var(--ad-ink); border: 1px solid var(--ad-line); }
.ad-banner.has-img { grid-template-columns: 150px minmax(0, 1fr) auto; }
.ad-banner.tone-navy { --ad-bg: linear-gradient(120deg, #14203a 0%, #1d2f55 100%); --ad-ink: #fff; --ad-muted: #b9c6dc; --ad-line: transparent; --ad-btn: #fff; --ad-btn-ink: #14203a; }
.ad-banner.tone-blue { --ad-bg: linear-gradient(120deg, #2a4bd7 0%, #3d63ea 100%); --ad-ink: #fff; --ad-muted: #dbe3ff; --ad-line: transparent; --ad-btn: #fff; --ad-btn-ink: #1f3cb3; }
.ad-banner.tone-eosin { --ad-bg: linear-gradient(120deg, #b83b5f 0%, #d0577a 100%); --ad-ink: #fff; --ad-muted: #ffe0ea; --ad-line: transparent; --ad-btn: #fff; --ad-btn-ink: #9a2c4c; }
.ad-banner.tone-light { --ad-bg: var(--paper); --ad-ink: var(--ink); --ad-muted: var(--muted); --ad-line: var(--line); --ad-btn: var(--blue); --ad-btn-ink: #fff; }
.ad-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid currentColor; opacity: .12; pointer-events: none; }
.ad-img { width: 150px; height: 100px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-body { min-width: 0; }
.ad-label { display: inline-block; font-size: 11.5px; color: var(--ad-muted); border: 1px solid currentColor; border-radius: 999px; padding: 1px 9px; margin-bottom: 9px; }
.ad-body h3 { font-size: 21px; color: var(--ad-ink); margin-bottom: 6px; }
.ad-body p { color: var(--ad-muted); font-size: 14px; line-height: 1.6; max-width: 62ch; }
.ad-cta.btn { background: var(--ad-btn); color: var(--ad-btn-ink); }
.ad-cta.btn:hover { background: var(--ad-btn); filter: brightness(.95); }
.ad-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ad-muted); display: grid; place-items: center; }
.ad-close:hover { background: rgba(127, 127, 127, .18); }
.ad-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ad-row-meta { display: flex; flex-direction: column; gap: 12px; }
.ad-row-prev .ad-banner { padding: 20px 24px; }
.announcement { display: flex; align-items: center; justify-content: center; gap: 10px; }
.announcement a { text-decoration: underline; color: inherit; font-weight: 600; }
@media (max-width: 860px) { .ad-row { grid-template-columns: minmax(0, 1fr); } .ad-banner, .ad-banner.has-img { grid-template-columns: minmax(0, 1fr); padding: 20px 48px 20px 20px; } .ad-img { width: 100%; height: 140px; } }

/* =========================================================
   v4 refinement — typography and colour
   Lora (serif) carries headings and lesson text like a textbook; Inter carries the interface.
   Labels are sentence case; one warm accent (eosin) used only for emphasis and the main call to action.
   ========================================================= */
body { font: 15.5px/1.6 var(--font); font-feature-settings: "cv11", "ss03"; color: var(--ink); text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; line-height: 1.18; }
h4 { font-weight: 600; }
.serif, h1 .serif, h2 .serif, .hero h1 .serif, .section-heading h2 .serif, .tool-band h2 .serif, .auth-side h2 .serif { font-family: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit !important; font-style: normal; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--blue); gap: 8px; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.page-heading .eyebrow, .student-welcome .eyebrow { font-size: 13px; }
.page-heading h1 { font-size: 34px; margin: 8px 0 10px; }
.page-heading p { font-size: 15.5px; max-width: 68ch; }
.section-heading h2 { font-size: clamp(31px, 3.4vw, 40px); }
.hero h1 { font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.hero-copy { font-size: 18px; line-height: 1.65; color: var(--body); max-width: 56ch; }
.panel h2 { font-size: 20px; letter-spacing: -.005em; }
.panel h3, .course-card h3 { letter-spacing: -.005em; }
.course-card h3 { font-size: 20px; line-height: 1.25; }
.modal-head h2 { font-size: 22px; }
.stat-value { font-family: var(--font); font-weight: 600; letter-spacing: -.03em; }
.stat-top { font-size: 13px; }
.badge { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 3px 9px; border-radius: 999px; }
.data-table th { font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.sidebar-label, .brand-name small, .art-number, .preview-header, .price-label, .demo-bar b, .specimen-caption { letter-spacing: .02em; text-transform: none; }
.sidebar-label { font-size: 12px; color: #8592ad; font-weight: 600; }
.brand-name { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.brand-name small { font-family: var(--font); font-size: 11.5px; font-weight: 500; }
.art-number { font-size: 12px; font-weight: 500; }
.side-nav a { font-size: 14.5px; }
.btn { font-weight: 600; font-size: 14.5px; border-radius: 10px; letter-spacing: -.003em; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.orange:hover { background: var(--orange-h); }
.btn:hover { transform: none; }
.btn:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.panel, .stat-card, .course-card, .table-wrap { border-radius: var(--radius); }
.course-card:hover { transform: translateY(-2px); }
.tag-button { border-radius: 999px; font-size: 13.5px; padding: 8px 15px; }
.tabs a, .tabs button { font-size: 14.5px; }
.reader { font-family: var(--serif); font-size: calc(var(--reader, 16px) + 1px); color: #26324a; }
.reader p, .reader li { line-height: 1.8; }
.reader h2 { font-size: 1.45em; } .reader h3 { font-size: 1.18em; }
.reader table, .reader .callout, .reader .key, .reader figcaption, .reader .objective { font-family: var(--font); font-size: 15px; }
.objective b, .toc a { font-family: var(--font); }
.ad-body h3, .spec-body h3, .study-card h2 { font-family: var(--serif); }
.announcement { background: var(--night); color: #e6eaf5; font-size: 13.5px; }
.announcement .icon { color: var(--orange); }
.side-nav .nav-count { background: var(--orange); color: #fff; }
.price-card.recommended { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.tool-band .eyebrow { color: #aebcff; }
.tool-band .eyebrow::before, .student-welcome .eyebrow::before { background: var(--orange); }
.hero h1 br + .serif { display: inline; }
:root[data-theme="dark"] .reader { color: var(--body); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reader { color: var(--body); } }
@media (max-width: 860px) { .page-heading h1 { font-size: 28px; } .hero h1 { font-size: 40px; } }
.reader p, .reader ul, .reader ol, .reader h2, .reader h3, .reader .callout, .reader .key { max-width: 72ch; }
.seg button { display: inline-flex; align-items: center; gap: 6px; }
:root[data-theme="dark"] .ad-banner .ad-cta.btn { background: var(--ad-btn); color: var(--ad-btn-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ad-banner .ad-cta.btn { background: var(--ad-btn); color: var(--ad-btn-ink); } }
:root[data-theme="dark"] .ad-banner.tone-light { --ad-btn: #3a55d8; }
@media (max-width: 620px) { .list-item:has(.spec-thumb) { flex-wrap: wrap; } .list-item:has(.spec-thumb) .right { margin-left: 0; width: 100%; flex-wrap: wrap; } }

/* two plans (Bepul + Premium), 16 Nov 2026 */
.pricing-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
@media (max-width: 760px) { .pricing-grid.two { grid-template-columns: minmax(0, 1fr); } }
