/* Integrato Digital design system
   Brand: midnight navy (trust), teal (connected knowledge), amber (the spark). Type: Plus Jakarta Sans for headings, Inter for text.
   Tokens come first; components below use only these variables, so the brand can be tuned in one place. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* Brand colours */
  --brand-navy: #0B1F3A; --brand-navy-2: #14325C; --brand-teal: #0E9F9A; --brand-teal-ink: #0A7A76; --brand-teal-bright: #2EC4B6;
  --brand-amber: #F5A524; --brand-amber-ink: #9A5B00;
  /* Semantic colours */
  --ink: #0B1F3A;          /* text, primary actions */
  --ink-2: #22385A;
  --ink-soft: #4F5D70;     /* secondary text (6.3:1 on paper) */
  --paper: #F6F8FA;        /* page background */
  --sheet: #FFFFFF;        /* surfaces */
  --rule: #E1E6EC;         /* hairlines */
  --rule-strong: #C9D1DB;
  --accent: #0A7A76;       /* links and highlights in text (teal, 5.2:1) */
  --accent-tint: #E2F4F3;
  --highlight: #F5A524;    /* amber call-to-action surfaces, with navy text */
  --pass: #0E7C5A;         /* correct / pass / readiness green */
  --pass-tint: #E3F3EC;
  --review: #9A5B00;       /* marked for review / amber band */
  --review-tint: #FDF1DC;
  --error: #B42318;        /* wrong / red band */
  --error-tint: #FCE9E7;
  --info-tint: #EAF0F7;
  --coach: #0A7A76; --coach-strong: #086561; --coach-tint: #E2F4F3;   /* Integrato AI Coach */
  --gold: #F5A524;         /* legacy alias of --highlight */
  --focus: #2563EB;
  /* Shape and depth */
  --radius-s: 6px; --radius-m: 10px; --radius-l: 16px; --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 6px 20px rgba(11,31,58,.07);
  --shadow-lg: 0 14px 40px rgba(11,31,58,.14);
  /* Spacing scale */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  /* Typography */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5rem; --step-3: 2rem; --step-4: 2.75rem; --step-5: 3.6rem;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E8EEF5; --ink-2: #C9D4E2; --ink-soft: #9FB0C4; --paper: #0E1A2B; --sheet: #15243A; --rule: #24364F; --rule-strong: #31465F;
    --accent: #2EC4B6; --accent-tint: #0F2E33; --pass: #3DBB8C; --pass-tint: #12352B; --review: #E8A93B; --review-tint: #3A2C12; --error: #F0786B; --error-tint: #3D1C1A; --info-tint: #1A2B44;
    --coach: #2EC4B6; --coach-strong: #5AD6CB; --coach-tint: #0F2E33;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 14px 40px rgba(0,0,0,.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E8EEF5; --ink-2: #C9D4E2; --ink-soft: #9FB0C4; --paper: #0E1A2B; --sheet: #15243A; --rule: #24364F; --rule-strong: #31465F;
  --accent: #2EC4B6; --accent-tint: #0F2E33; --pass: #3DBB8C; --pass-tint: #12352B; --review: #E8A93B; --review-tint: #3A2C12; --error: #F0786B; --error-tint: #3D1C1A; --info-tint: #1A2B44;
  --coach: #2EC4B6; --coach-strong: #5AD6CB; --coach-tint: #0F2E33;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 14px 40px rgba(0,0,0,.45); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font-body); font-feature-settings: "kern"; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--step-4); letter-spacing: -.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } h1 { font-size: var(--step-3); } h2 { font-size: var(--step-2); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header / footer ---------- */
.site-header { background: var(--sheet); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark .bm-stem { fill: var(--ink); } .brand-mark .bm-curve { stroke: var(--brand-teal); } .brand-mark .bm-dot { fill: var(--brand-amber); }
.brand-word { white-space: nowrap; } .brand-word b { font-weight: 800; } .brand-word span { font-weight: 500; color: var(--brand-teal-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark .bm-curve { stroke: var(--brand-teal-bright); } :root:not([data-theme="light"]) .brand-word span { color: var(--brand-teal-bright); } }
:root[data-theme="dark"] .brand-mark .bm-curve { stroke: var(--brand-teal-bright); } :root[data-theme="dark"] .brand-word span { color: var(--brand-teal-bright); }
.brand small { font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--ink-soft); display: block; line-height: 1; margin-top: 2px; }
.nav { display: flex; gap: 4px; align-items: center; flex: 1; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: var(--radius-s); color: var(--ink-2); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--info-tint); color: var(--ink); }
.nav .spacer { flex: 1; }
.btn.menu-btn { display: none; margin-left: auto; }
.nav a.btn { color: var(--paper); background: var(--ink); padding: 7px 12px; }
.nav a.btn:hover { background: var(--ink-2); color: var(--paper); }
@media (max-width: 900px) {
  .btn.menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--sheet); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .spacer { display: none; }
}
.site-footer { border-top: 1px solid var(--rule); background: var(--sheet); margin-top: 72px; padding: 40px 0 28px; font-size: var(--step--1); color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 1000px) and (min-width: 721px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h4, .footer-grid .foot-h { font-family: var(--font-body); font-size: var(--step--1); color: var(--ink); margin-bottom: .6em; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--ink-soft); }
.footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--font-body); padding: 12px 18px; border-radius: var(--radius-m);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--ink-2); color: var(--paper); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.secondary:hover { border-color: var(--ink); background: var(--sheet); color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--info-tint); }
.btn.pass { background: var(--pass); border-color: var(--pass); color: #fff; }
.btn.accent { background: var(--highlight); border-color: var(--highlight); color: var(--brand-navy); }
.btn.accent:hover { background: #FFB84A; border-color: #FFB84A; color: var(--brand-navy); }
.btn.danger { background: transparent; color: var(--error); border-color: var(--error); }
.btn.small { padding: 7px 12px; min-height: 34px; font-size: var(--step--1); }
.btn.wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
[hidden] { display: none !important; }
input:not([type]), input[type=text], input[type=url], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius-m); padding: 10px 12px; min-height: 44px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }

/* ---------- Surfaces ---------- */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 24px; }
.panel.tight { padding: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.section { padding: 56px 0; }
.section-title { max-width: 680px; margin-bottom: 28px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--info-tint); color: var(--ink); white-space: nowrap; }
.badge.live { background: var(--pass-tint); color: var(--pass); }
.badge.beta { background: var(--review-tint); color: var(--review); }
.badge.soon { background: transparent; border: 1px solid var(--rule-strong); color: var(--ink-soft); }
.badge.red { background: var(--error-tint); color: var(--error); }
.notice { border-left: 4px solid var(--ink); background: var(--info-tint); padding: 12px 16px; border-radius: 0 var(--radius-m) var(--radius-m) 0; margin: 0 0 16px; }
.notice.warn { border-color: var(--review); background: var(--review-tint); }
.notice.ok { border-color: var(--pass); background: var(--pass-tint); }
.notice.err { border-color: var(--error); background: var(--error-tint); }
.flash-wrap { margin-top: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--sheet); }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink-soft); background: var(--paper); }
tr:last-child td { border-bottom: none; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose table { margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--review); background: var(--review-tint); }
.prose code { background: var(--info-tint); padding: 1px 5px; border-radius: 3px; font-size: .92em; }

/* ---------- The answer palette (signature) ---------- */
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
.cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--rule-strong); background: var(--sheet);
  font: 600 .82rem/1 var(--font-body); color: var(--ink-soft); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.cell:hover { border-color: var(--ink); color: var(--ink); }
.cell.answered { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cell.marked { border-color: var(--review); box-shadow: inset 0 0 0 2px var(--review); color: var(--review); }
.cell.answered.marked { background: var(--review); border-color: var(--review); color: #fff; box-shadow: none; }
.cell.correct { background: var(--pass); border-color: var(--pass); color: #fff; }
.cell.wrong { background: var(--error); border-color: var(--error); color: #fff; }
.cell.current { outline: 3px solid var(--focus); outline-offset: 2px; }
.palette-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--step--1); color: var(--ink-soft); margin-top: 12px; }
.palette-legend span { display: inline-flex; align-items: center; gap: 6px; }
.palette-legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--rule-strong); }
.palette-legend i.a { background: var(--ink); border-color: var(--ink); }
.palette-legend i.m { border-color: var(--review); box-shadow: inset 0 0 0 2px var(--review); }
.palette-legend i.c { background: var(--pass); border-color: var(--pass); }
.palette-legend i.w { background: var(--error); border-color: var(--error); }

/* Option bubbles */
.options { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--sheet);
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius-m); padding: 12px 14px; cursor: pointer; min-height: 52px; }
.opt:hover { border-color: var(--ink); }
.opt .bubble { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt[aria-checked="true"] .bubble { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt.is-correct { border-color: var(--pass); background: var(--pass-tint); }
.opt.is-correct .bubble { background: var(--pass); border-color: var(--pass); color: #fff; }
.opt.is-wrong { border-color: var(--error); background: var(--error-tint); }
.opt.is-wrong .bubble { background: var(--error); border-color: var(--error); color: #fff; }
.opt[disabled] { cursor: default; }
.explain { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--rule); }
.explain .verdict { font-weight: 700; margin-bottom: 4px; }
.explain .verdict.ok { color: var(--pass); } .explain .verdict.no { color: var(--error); }
.formula { display: block; margin-top: 8px; font-family: var(--font-display); font-size: .95rem; padding: 6px 10px; background: var(--info-tint); border-radius: var(--radius-s); }
.q-stem { font-size: 1.15rem; line-height: 1.55; margin: 0; }
.q-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--ink-soft); font-size: var(--step--1); margin-bottom: 10px; }

/* ---------- Home ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.hero h1 { font-size: var(--step-5); line-height: 1.02; margin-bottom: .35em; }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 32em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow); }
.hero-card .card-top { display: flex; justify-content: space-between; align-items: center; font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 12px; }
.mini-palette { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule-strong); }
.mini-palette .cell { cursor: default; font-size: .7rem; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: var(--step-4); } }
.trust-line { color: var(--ink-soft); font-size: var(--step--1); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius-l); background: var(--sheet); overflow: hidden; }
.steps > div { padding: 22px; border-right: 1px solid var(--rule); }
.steps > div:last-child { border-right: none; }
.steps .k { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps > div:nth-child(2) { border-right: none; } .steps > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps > div { border-right: none; border-bottom: 1px solid var(--rule); } }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.feature-list h3 { margin-bottom: .3em; }
.feature-list p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Exam directory ---------- */
.dir-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dir-tools input { max-width: 360px; }
.dir-tools select { max-width: 220px; }
.exam-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.exam-item { display: flex; flex-direction: column; gap: 6px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 18px; text-decoration: none; color: var(--ink); }
.exam-item:hover { border-color: var(--ink); }
.exam-item .code { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
.exam-item h3 { margin: 0; font-size: 1.1rem; }
.exam-item .facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-soft); margin-top: auto; padding-top: 8px; }
.exam-item.is-open { border-left: 4px solid var(--pass); }

/* Exam page */
.exam-head { padding: 40px 0 8px; }
.exam-head .code { font-weight: 700; color: var(--ink-soft); }
.facts-sheet { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--rule); border-radius: var(--radius-l); background: var(--sheet); overflow: hidden; margin: 22px 0 8px; }
.facts-sheet > div { padding: 16px; border-right: 1px solid var(--rule); }
.facts-sheet > div:last-child { border-right: none; }
.facts-sheet dt { font-size: var(--step--1); color: var(--ink-soft); }
.facts-sheet dd { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .facts-sheet { grid-template-columns: repeat(3, 1fr); } .facts-sheet > div:nth-child(3) { border-right: none; } .facts-sheet > div:nth-child(-n+3) { border-bottom: 1px solid var(--rule); } }
.verified { font-size: var(--step--1); color: var(--ink-soft); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
.syllabus { width: 100%; }
.weight-bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; min-width: 60px; }
.weight-bar > span { display: block; height: 100%; background: var(--ink); }
.acc-bar > span { background: var(--pass); }
.sticky { position: sticky; top: 84px; }
.action-list { display: grid; gap: 10px; }
.action-list .btn { justify-content: flex-start; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 32px 0 20px; }
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 960px) { .dash-grid > * { grid-column: span 12 !important; } }
.ready { display: flex; gap: 22px; align-items: center; }
.gauge { width: 132px; height: 132px; flex: none; }
.ready-score { font-family: var(--font-display); font-size: var(--step-5); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.band-green { color: var(--pass); } .band-amber { color: var(--review); } .band-red { color: var(--error); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: var(--step--1); }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown { font-family: var(--font-display); font-size: var(--step-4); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.goal-track { height: 10px; border-radius: 5px; background: var(--rule); overflow: hidden; margin: 10px 0 6px; }
.goal-track span { display: block; height: 100%; background: var(--pass); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain > li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.list-plain > li:last-child { border-bottom: none; }
.rec { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.chapter-rows { display: grid; gap: 8px; }
.chapter-row { display: grid; grid-template-columns: 34px 1fr 110px 48px; gap: 10px; align-items: center; font-size: var(--step--1); }
.chapter-row .n { font-weight: 700; color: var(--ink-soft); }
.spark { width: 100%; height: 56px; }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-soft); }

/* ---------- Test player ---------- */
body.is-test { background: var(--paper); }
.test-bar { position: sticky; top: 0; z-index: 30; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.test-bar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.test-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: var(--radius-m); background: var(--info-tint); }
.timer.low { background: var(--error-tint); color: var(--error); }
.test-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 24px 0 60px; align-items: start; }
.test-side { position: sticky; top: 84px; }
.q-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.q-actions .grow { flex: 1; }
@media (max-width: 960px) {
  .test-layout { grid-template-columns: 1fr; }
  .test-side { position: static; order: 2; }
}
.tools-row { display: flex; gap: 6px; margin-left: auto; }
dialog { border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 24px; max-width: 480px; width: calc(100% - 32px); background: var(--sheet); color: var(--ink); }
dialog::backdrop { background: rgba(15,23,36,.45); }

/* Results */
.score-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.big-score { font-family: var(--font-display); font-size: 4.2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .score-head { grid-template-columns: 1fr; } .big-score { font-size: 3.2rem; } }
.stat-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; }
.stat-strip > div { padding: 12px 16px; border-right: 1px solid var(--rule); flex: 1 1 110px; }
.stat-strip > div:last-child { border-right: none; }
.stat-strip b { display: block; font-family: var(--font-display); font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.review-item { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }

/* Coach */
.chat { display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: var(--radius-l); line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--sheet); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.msg.assistant p:last-child { margin-bottom: 0; }
.chat-form { display: flex; gap: 10px; margin-top: 16px; align-items: flex-end; }
.chat-form textarea { min-height: 52px; }
.prompts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.prompts button { font: inherit; font-size: var(--step--1); border: 1px solid var(--rule-strong); background: var(--sheet); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 22px; }
.plan.featured { border: 2px solid var(--ink); }
.plan .price { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; margin: 8px 0 2px; }
.plan p { color: var(--ink-2); font-size: var(--step--1); flex: 1; }
.compare td:first-child { font-weight: 600; }

/* Auth */
.auth-box { max-width: 460px; margin: 48px auto; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.admin-nav { background: var(--sheet); border-right: 1px solid var(--rule); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-nav a { display: block; padding: 8px 10px; border-radius: var(--radius-s); text-decoration: none; color: var(--ink-2); font-size: var(--step--1); font-weight: 500; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { background: var(--info-tint); color: var(--ink); }
.admin-nav h4 { font-family: var(--font-body); font-size: .75rem; color: var(--ink-soft); margin: 16px 10px 4px; font-weight: 600; }
.admin-main { padding: 24px 28px 60px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px; }
.kpi b { display: block; font-family: var(--font-display); font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.kpi span { font-size: var(--step--1); color: var(--ink-soft); }
.status-draft { color: var(--ink-soft); } .status-in_review { color: var(--review); } .status-approved { color: var(--focus); } .status-published { color: var(--pass); } .status-retired { color: var(--error); }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; } .admin-nav h4 { width: 100%; } .admin-main { padding: 18px; } }

/* Demo marker */
.demo-banner { background: repeating-linear-gradient(-45deg, var(--review-tint), var(--review-tint) 12px, var(--sheet) 12px, var(--sheet) 24px); border: 1px solid var(--review); padding: 12px 16px; border-radius: var(--radius-m); font-weight: 600; }

/* Cookie bar */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; z-index: 60; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius-l); padding: 16px; box-shadow: var(--shadow); display: none; }
.cookie.show { display: block; }

/* Print / invoice */
@media print { .no-print { display: none !important; } body { background: #fff; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-card { animation: rise .5s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- Home: compact section + card system ---------- */
.hs-section { padding: 52px 0; }
.hs-alt { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hs-last { border-bottom: none; padding-bottom: 36px; }
.hs-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.hs-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0 0 8px; letter-spacing: -.02em; }
.hs-head p { margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.hs-h2-left { font-size: 1.45rem; margin: 0 0 16px; letter-spacing: -.015em; }

.hs-grid { display: grid; gap: 18px; }
.hs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hs-align-start { align-items: start; }

.hs-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; box-shadow: 0 1px 2px rgba(19,41,75,.04), 0 6px 18px rgba(19,41,75,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hs-alt .hs-card { background: var(--paper); box-shadow: none; }
.hs-card h3 { font-size: 1.1rem; margin: 0 0 6px; line-height: 1.3; }
.hs-card p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.hs-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--pass); background: var(--pass-tint); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Icon badges */
.hs-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; color: var(--brand-navy); background: #E3EAF6; }
.hs-ico.c1 { color: var(--brand-teal-ink); background: var(--accent-tint); } .hs-ico.c2 { color: var(--brand-navy); background: #E3EAF6; } .hs-ico.c3 { color: #9A5B00; background: #FBEFD9; }
.hs-ico.c4 { color: var(--coach); background: var(--coach-tint); } .hs-ico.c5 { color: #B42318; background: #FBE5E2; } .hs-ico.c6 { color: #0B6E83; background: #DCF1F5; }

/* Hero */
.btn.hs-btn-primary { background: var(--brand-amber); border-color: var(--brand-amber); color: var(--brand-navy); }
.btn.hs-btn-primary:hover { background: #FFB84A; border-color: #FFB84A; color: var(--brand-navy); }
.btn.hs-btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #FFFFFF; }
.btn.hs-btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(255,255,255,.06); }
.hs-cta .btn:focus-visible { outline: 3px solid #F6F8FA; outline-offset: 2px; }

/* Exam picker */
.hs-picker { background: var(--sheet); color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px rgba(4, 14, 34, .4); overflow: hidden; scroll-margin-top: 84px; }
.hs-picker-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--rule); }
.hs-picker-head h2 { font-size: 1.3rem; margin: 0 0 4px; }
.hs-picker-head p { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.hs-picker-list { list-style: none; margin: 0; padding: 0; }
.hs-exam { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 22px 12px 18px; border-left: 4px solid transparent; transition: background .2s ease, border-color .2s ease; }
.hs-exam:hover { background: var(--accent-tint); border-left-color: var(--brand-teal-bright); }
.hs-exam + .hs-exam { border-top: 1px solid var(--rule); }
.hs-exam-info { display: grid; gap: 2px; min-width: 0; flex: 1; }
.hs-exam-name { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; color: var(--ink); text-decoration: none; line-height: 1.3; }
.hs-exam-name:hover { color: var(--accent); }
.hs-exam-code { font-size: .8rem; color: var(--ink-soft); }
.hs-live { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700; color: #0B6A4C; background: #DDF3EA; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.hs-chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.hs-chips li { font-size: .73rem; color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.hs-exam-actions { display: flex; gap: 8px; flex: none; }
.hs-picker-foot { display: block; padding: 12px 22px; border-top: 1px solid var(--rule); background: var(--paper); font-weight: 600; font-size: .92rem; }

/* Stats band + ticker */
.hs-band { padding: 22px 0 0; background: var(--paper); }
.hs-stat { padding: 16px 18px; display: grid; gap: 2px; border-top: 3px solid var(--brand-teal-bright); }
.hs-stat b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--ink); font-weight: 700; }
.hs-stat span { font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
.hs-ticker { overflow: hidden; margin-top: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hs-ticker-track { display: flex; width: max-content; }
.hs-ticker ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 10px; padding-right: 10px; }
.hs-ticker li a { display: block; white-space: nowrap; font-size: .86rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-soft); text-decoration: none; background: var(--paper); }
.hs-ticker li.open a { color: var(--brand-navy); background: var(--accent-tint); border-color: #9BDCD5; font-weight: 600; }
.hs-ticker li a:hover { border-color: var(--ink); color: var(--ink); }

/* Features */
.hs-feat { display: flex; gap: 16px; align-items: flex-start; }
.hs-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(19,41,75,.05), 0 14px 30px rgba(19,41,75,.1); border-color: var(--rule-strong); }
.hs-try:hover, .hs-report:hover, .hs-faq:hover { transform: none; }

/* Report */
.hs-report { margin: 0; }
.hs-report figcaption { font-size: .8rem; color: var(--ink-soft); margin-bottom: 14px; }
.hs-report-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); }
.hs-report-top span { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
.hs-big { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--pass); font-variant-numeric: tabular-nums; }
.hs-ring { text-align: center; }
.hs-ring b { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto; border-radius: 50%; border: 7px solid var(--pass); border-left-color: var(--rule); font-family: var(--font-display); font-size: 1.25rem; }
.hs-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hs-bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 3em; gap: 12px; align-items: center; font-size: .9rem; }
.hs-bar { height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.hs-bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--pass); }
.hs-bar i.mid { background: var(--review); } .hs-bar i.low { background: var(--error); }
.hs-bar-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hs-report-next { margin-top: 16px !important; padding-top: 14px; border-top: 1px dashed var(--rule-strong); font-weight: 600; color: var(--ink) !important; font-size: .9rem; }

/* Try */
.hs-try h2 { font-size: 1.35rem; margin: 0 0 10px; }
.hs-try .q-stem { color: var(--ink); font-size: 1.06rem; line-height: 1.55; }
.hs-try .options { margin-top: 14px; gap: 8px; }
.hs-try .opt { padding: 10px 12px; }
.hs-try-next { margin-top: 14px !important; }

/* Plans + FAQ */
.hs-plans-faq { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.hs-plan { display: flex; flex-direction: column; }
.hs-plan-paid { border: 2px solid var(--ink); }
.hs-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--ink) !important; margin: 2px 0 14px !important; line-height: 1.1 !important; }
.hs-ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; flex: 1; color: var(--ink-2); font-size: .95rem; }
.hs-ticks li { padding-left: 24px; position: relative; line-height: 1.45; }
.hs-ticks li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px; border-left: 2.5px solid var(--pass); border-bottom: 2.5px solid var(--pass); transform: rotate(-45deg); }
.hs-faq { padding: 4px 22px; }
.hs-faq details { padding: 14px 0; }
.hs-faq details + details { border-top: 1px solid var(--rule); }
.hs-faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hs-faq summary::-webkit-details-marker { display: none; }
.hs-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); flex: none; transition: transform .2s ease; }
.hs-faq details[open] summary::after { transform: rotate(45deg); }
.hs-faq details p { margin-top: 8px; font-size: .95rem; }

/* Institutes CTA */
.hs-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 32px; border-radius: 16px; background: radial-gradient(800px 300px at 90% 0%, #1A4372, rgba(26,67,114,0) 60%), var(--brand-navy); color: #D4DCE8; }
.hs-cta h2 { color: #FFFFFF; font-size: 1.4rem; margin: 0 0 4px; }
.hs-cta p { margin: 0; }
.hs-cta .btn { flex: none; }
.hs-fine { text-align: center; font-size: .82rem; color: var(--ink-soft); max-width: 60em; margin: 20px auto 0; line-height: 1.55; }

/* Motion: one orchestrated entrance + scroll reveal, all off for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hs-ticker-track { animation: hs-marquee 70s linear infinite; }
  .hs-ticker:hover .hs-ticker-track, .hs-ticker:focus-within .hs-ticker-track { animation-play-state: paused; }
  .anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .anim .reveal.in { opacity: 1; transform: none; }
  .anim .hs-bar i { width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1) .2s; }
  .anim .hs-report.in .hs-bar i { width: var(--w); }
}
@media (prefers-reduced-motion: reduce) { .hs-ticker ul + ul { display: none; } .hs-ticker ul { flex-wrap: wrap; padding: 12px 20px; } .hs-ticker { mask-image: none; } }
@keyframes hs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hs-slide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes hs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1000px) {
  .hs-plans-faq { grid-template-columns: 1fr; gap: 28px; }
  .hs-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hs-section { padding: 36px 0; }
  .hs-head { margin-bottom: 20px; }
  .hs-grid { gap: 12px; }
  .hs-grid-3, .hs-grid-2 { grid-template-columns: 1fr; }
  .hs-card { padding: 18px; }
  .hs-stat { padding: 12px 14px; } .hs-stat b { font-size: 1.1rem; } .hs-stat span { font-size: .8rem; }
  .hs-exam { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px 14px 14px; }
  .hs-exam-actions .btn { flex: 1; min-height: 42px; }
  .hs-picker-head, .hs-picker-foot { padding-left: 16px; padding-right: 16px; }
  .hs-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  .hs-cta .btn { width: 100%; }
  .hs-bars li { grid-template-columns: 1fr 3em; gap: 4px 12px; }
  .hs-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-exam:hover { background: #1B2A44; } }

.home .site-footer { margin-top: 0; }

/* Free mock papers and the paid-plan panel */
.fm-grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fm-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 16px; background: var(--paper); position: relative; }
.fm-card.fm-done { border-color: var(--rule-strong); }
.fm-card.fm-in_progress { border-color: var(--review); }
.fm-num { position: absolute; top: 12px; right: 14px; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--rule-strong); }
.fm-body h3 { margin: 0; font-size: var(--step-0); }
.fm-score { margin: 10px 0 0; }
.fm-score b { font-family: var(--font-display); font-size: var(--step-1); font-variant-numeric: tabular-nums; margin-right: 4px; }
.fm-act { margin-top: auto; display: grid; gap: 6px; }
.layout-2 aside .fm-grid, .span-4 .fm-grid { grid-template-columns: 1fr; }
@media (max-width: 720px) { .fm-grid { grid-template-columns: 1fr; } .fm-card { flex-direction: row; flex-wrap: wrap; align-items: center; } .fm-num { position: static; font-size: 1.6rem; } .fm-body { flex: 1 1 140px; } .fm-act { flex: 1 1 100%; } }
.paid-value { border-color: var(--ink); }
.pv-list, .pv-why { margin: 0; padding-left: 1.1em; }
.pv-list li, .pv-why li { margin: 6px 0; }
.pv-why li::marker { color: var(--pass); }

/* AI Coach highlight */
.coach-cta { border-color: var(--coach); background: linear-gradient(135deg, var(--sheet) 0%, var(--sheet) 60%, rgba(14,159,154,.08) 100%); }
.coach-cta-head { display: flex; gap: 12px; align-items: center; }
.coach-cta-head h3 { margin: 2px 0 0; font-size: var(--step-0); }
.coach-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--coach); background: var(--coach-tint); }
.coach-badge { background: var(--coach-tint); color: var(--coach); font-size: .72rem; padding: 2px 8px; }
.coach-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.coach-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-strong); text-decoration: none; font-size: var(--step--1); color: var(--ink); background: var(--paper); }
.coach-chips a:hover { border-color: var(--coach); color: var(--coach); }
.btn.coach-btn { background: var(--coach); border-color: var(--coach); color: #fff; }
.btn.coach-btn:hover { background: var(--coach-strong); border-color: var(--coach-strong); color: #fff; }
.pv-list li.pv-coach::marker { color: var(--coach); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .coach-ico, :root:not([data-theme="light"]) .coach-badge { background: var(--coach-tint); color: var(--coach); } :root:not([data-theme="light"]) .coach-cta { border-color: var(--coach); } }
:root[data-theme="dark"] .coach-ico, :root[data-theme="dark"] .coach-badge { background: var(--coach-tint); color: var(--coach); }
:root[data-theme="dark"] .coach-cta { border-color: var(--coach); }
.hs-feat-coach { grid-column: 1 / -1; border-color: var(--coach); }
.hs-ico.c7 { color: var(--coach); background: var(--coach-tint); }
.compare tr.row-coach td { background: rgba(107,63,184,.06); }
.nav-new { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--coach); color: #fff; vertical-align: 1px; }

/* Concept lessons and learning feedback */
.lesson-intro { font-size: var(--step-1); color: var(--ink-2); }
.lesson-toc { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px 18px; margin: 18px 0 8px; background: var(--paper); }
.lesson-toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2; column-gap: 28px; }
.lesson-toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 720px) { .lesson-toc ol { columns: 1; } }
.lesson-sec { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 26px; scroll-margin-top: 80px; }
.lesson-sec h2 { display: flex; gap: 10px; align-items: baseline; font-size: var(--step-2); }
.lesson-n { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--info-tint); font-size: var(--step--1); font-family: var(--font-body); font-weight: 700; }
.prose blockquote.callout, .explain blockquote.callout { border-left: 4px solid; border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 12px 16px; margin: 14px 0; font-style: normal; }
blockquote.callout > strong:first-child { display: block; margin-bottom: 4px; }
blockquote.callout.ex { border-color: var(--pass); background: var(--pass-tint); }
blockquote.callout.trap { border-color: var(--error); background: var(--error-tint); }
blockquote.callout.analogy { border-color: var(--coach); background: rgba(14,159,154,.08); }
blockquote.callout.formula { border-color: var(--ink); background: var(--info-tint); font-family: var(--font-mono, ui-monospace, monospace); }
.remember-h { margin-bottom: 4px; }
.remember-h + ul { background: var(--paper); border: 1px dashed var(--rule-strong); border-radius: var(--radius-m); padding: 10px 14px 10px 32px; }
.lesson-practice { margin: 14px 0 0; }
.concept-card { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--rule); }
.concept-card p { margin: 8px 0 0; }
.concept-h { font-weight: 700; }
.concept-card details { margin-top: 8px; }
.concept-card summary { cursor: pointer; font-weight: 600; color: var(--pass); }
.concept-trap { color: var(--error); }
.concept-links { font-size: var(--step--1); }
.learn-steps { list-style: none; counter-reset: ls; padding: 0; margin: 8px 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.learn-steps li { counter-increment: ls; border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px 16px 14px 52px; position: relative; background: var(--sheet); }
.learn-steps li::before { content: counter(ls); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.learn-steps b { display: block; } .learn-steps span { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 760px) { .learn-steps { grid-template-columns: 1fr; } }
.lesson-link { margin-left: auto; white-space: nowrap; }
.revisit-list { columns: 2; column-gap: 28px; padding-left: 1.1em; margin: 0; }
.revisit-list li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 720px) { .revisit-list { columns: 1; } }

/* ---------- Growth: sharing, invites, daily question, tools, install ---------- */
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 40em; }
.tick-list { list-style: none; padding: 0; margin: 16px 0 0; }
.tick-list li { position: relative; padding-left: 28px; margin: 10px 0; }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--pass); border-bottom: 2.5px solid var(--pass); transform: rotate(-45deg); }
.share-box { display: flex; gap: 18px; align-items: center; margin-top: 22px; padding: 16px; border: 1px dashed var(--rule-strong); border-radius: var(--radius-m); background: var(--paper); }
.share-thumb { width: 240px; height: auto; border-radius: var(--radius-s); flex: none; box-shadow: var(--shadow); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.share-wa { background: #0F7A41; border-color: #0F7A41; color: #fff; }
.btn.share-wa:hover { background: #0B6436; color: #fff; }
@media (max-width: 640px) { .share-box { flex-direction: column; align-items: stretch; } .share-thumb { width: 100%; } }
.daily-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.streak-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--review-tint); color: var(--review); font-weight: 600; white-space: nowrap; }
.streak-pill b { font-size: var(--step-2); font-family: var(--font-display); }
.daily-archive { display: flex; flex-wrap: wrap; gap: 6px 18px; }
button.opt { cursor: pointer; }
.leaderboard tr.me td { background: var(--pass-tint); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.tool-card { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.tool-card h2 { font-size: var(--step-1); margin: 12px 0 6px; }
.tool-card p { margin: 0; }
.tool-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--info-tint); font-weight: 700; font-family: var(--font-display); }
.role-list { display: grid; gap: 10px; }
.role-card { padding: 0; }
.role-card summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style-position: inside; }
.role-card[open] summary { border-bottom: 1px solid var(--rule); }
.role-body { padding: 14px 18px 16px; }
.cert-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; font-size: var(--step--1); background: var(--sheet); }
.cert-chip:hover { border-color: var(--ink); }
.cert-chip.has-prep { border-color: var(--pass); }
.renewal-date { font-size: var(--step-2); font-family: var(--font-display); margin: 8px 0 4px; }
.install-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-m); background: var(--ink); color: var(--paper); margin-bottom: 18px; }
.install-banner p { margin: 0; flex: 1; font-size: var(--step--1); }
.install-banner .btn { background: var(--gold); border-color: var(--gold); color: var(--brand-navy); min-height: 38px; padding: 8px 14px; }
.install-banner .x { background: none; border: none; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
.install-ios { font-size: var(--step--1); margin: -8px 0 18px; }
.habit-card .daily-mini { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
/* Short videos */
.video-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.video-thumb { position: relative; display: block; aspect-ratio: 9 / 16; max-height: 420px; overflow: hidden; background: var(--brand-navy); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .2s; }
.video-thumb:hover img { transform: scale(1.03); }
.video-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(201,168,76,.95); box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.video-play::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid var(--brand-navy); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video-len { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.video-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.video-body h2 { font-size: var(--step-1); margin: 0; }
.video-body h2 a { text-decoration: none; }
.video-body p.muted { margin: 0; font-size: var(--step--1); flex: 1; }
.video-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 16px; }
.video-frame video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius-l); background: var(--brand-navy); display: block; box-shadow: var(--shadow); }
@media (max-width: 860px) { .video-layout { grid-template-columns: 1fr; gap: 20px; } .video-frame { max-width: 420px; margin: 0 auto; width: 100%; } }
.video-strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.video-strip a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.video-strip img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-m); }
.lesson-videos li a { display: flex; gap: 10px; align-items: center; padding: 6px 0; text-decoration: none; font-size: var(--step--1); font-weight: 600; }
.lesson-videos img { width: 40px; height: 71px; object-fit: cover; border-radius: 4px; flex: none; }
.home-videos { grid-template-columns: repeat(auto-fit, minmax(150px, 220px)); justify-content: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.chip { padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; font-size: var(--step--1); font-weight: 600; background: var(--sheet); white-space: nowrap; }
.chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.video-group h2 { font-size: var(--step-1); margin: 28px 0 0; }
.video-group .video-grid { margin-top: 14px; }
.video-body h3 { font-size: var(--step-0); margin: 0; line-height: 1.3; }
.video-body h3 a { text-decoration: none; }
.next-up { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--sheet); }
.next-up p { margin: 0; }
.next-up a { display: block; margin: 4px 0 6px; }
.video-thumb .video-play { left: 14px; top: auto; bottom: 14px; margin: 0; width: 56px; height: 56px; }
.video-thumb .video-play::after { left: 22px; top: 16px; border-left-width: 17px; border-top-width: 12px; border-bottom-width: 12px; }
.setup-steps { padding-left: 1.3em; margin: 10px 0 0; }
.setup-steps li { margin: 8px 0; }
.setup-steps code { word-break: break-all; }

/* Brand touches */
.footer-tagline { margin: 14px 0 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-teal-bright); margin: 0; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-amber); }
.area-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.area-card h3 { margin: 4px 0 0; font-size: var(--step-1); }
.area-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.area-card .badge { align-self: flex-start; }
.area-live { border-color: var(--brand-teal); box-shadow: inset 4px 0 0 var(--brand-teal); }
.area-live:hover { transform: translateY(-2px); color: var(--ink); }
.area-link { margin-top: auto; font-weight: 600; color: var(--accent); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.auth-brand .brand-mark { width: 40px; height: 40px; }

/* ---------- Home hero ----------
   Left: message and two actions. Right: one sample lesson card that plays Discover → Understand → Practise → Progress once.
   Motion uses only transform and opacity, plays once (except one slow background glow) and is off for reduced motion. */
.hx { position: relative; overflow: hidden; isolation: isolate; color: #F6F8FA; padding: 72px 0 80px;
  background: radial-gradient(900px 420px at 0% 110%, rgba(245,165,36,.08), rgba(245,165,36,0) 60%), linear-gradient(180deg, #0B1F3A 0%, #0A1B33 100%); }
.hx-glow { position: absolute; z-index: -1; width: 760px; height: 760px; right: -160px; top: -300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(46,196,182,.3), rgba(46,196,182,.1) 55%, rgba(46,196,182,0)); }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hx-copy { max-width: 580px; }
.hx h1 { color: #FFFFFF; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; margin: 16px 0 20px; }
.hx-l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hx-l > span { display: block; }
.hx-l2 { color: var(--brand-teal-bright); }
.hx-lede { font-size: 1.16rem; line-height: 1.6; color: #C9D4E2; margin: 0; max-width: 30em; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 22px; }
.hx-actions .btn { padding: 15px 24px; font-size: 1.03rem; border-radius: 12px; min-height: 52px; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn.hx-primary { background: var(--brand-amber); border-color: var(--brand-amber); color: var(--brand-navy); }
.btn.hx-primary span { display: inline-block; transition: transform .2s ease; }
.btn.hx-primary:hover { background: #FFB84A; border-color: #FFB84A; color: var(--brand-navy); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(245,165,36,.25); }
.btn.hx-primary:hover span { transform: translateX(3px); }
.btn.hx-ghost { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.3); color: #FFFFFF; }
.btn.hx-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); color: #FFFFFF; transform: translateY(-1px); }
.hx-actions .btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.hx-trust { margin: 0; max-width: 34em; font-size: .92rem; line-height: 1.5; color: #9FB0C4; display: flex; gap: 10px; align-items: baseline; }
.hx-trust::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-teal-bright); transform: translateY(-2px); }

/* Visual */
.hx-visual { position: relative; padding: 28px 0 16px; }
.hx-lines { position: absolute; inset: -40px -60px -40px -40px; width: calc(100% + 100px); height: calc(100% + 80px); z-index: 0; pointer-events: none; overflow: visible; }
.hx-lines path { fill: none; stroke: rgba(46,196,182,.42); stroke-width: 1.4; stroke-linecap: round; }
.hx-lines circle { fill: var(--brand-amber); }
.hx-lines .hx-travel { fill: var(--brand-teal-bright); }
.hx-card { position: relative; z-index: 1; max-width: 460px; margin-left: auto; background: var(--sheet); color: var(--ink); border-radius: 20px; padding: 20px 22px 18px;
  box-shadow: 0 30px 70px rgba(2,10,25,.45), 0 2px 6px rgba(2,10,25,.18); border: 1px solid rgba(255,255,255,.07); }
.hx-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hx-card-title { font-family: var(--font-display); font-weight: 700; font-size: .98rem; }
.hx-demo { font-size: .72rem; font-weight: 600; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hx-steps { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hx-steps li { font-size: .72rem; font-weight: 600; color: var(--ink-soft); padding-top: 9px; position: relative; transition: color .3s ease; }
.hx-steps li::before, .hx-steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: var(--rule); }
.hx-steps li::after { background: var(--brand-teal); transform: scaleX(0); transform-origin: left; }
.hx-steps li.on { color: var(--ink); }
.hx-steps li.on::after { transform: scaleX(1); }
.hx-concept { background: var(--accent-tint); border-radius: 12px; padding: 11px 14px; }
.hx-kicker { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hx-concept p { margin: 3px 0 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.hx-concept b { color: var(--ink); }
.hx-q { margin-top: 14px; }
.hx-stem { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.45; }
.hx-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hx-opt { font: 600 .98rem/1 var(--font-body); color: var(--ink); background: var(--sheet); border: 1.5px solid var(--rule-strong); border-radius: 10px; min-height: 44px; padding: 10px 6px; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: transform .15s ease, border-color .2s ease, background-color .2s ease, color .2s ease; }
.hx-opt:hover:not(:disabled) { border-color: var(--brand-teal); transform: translateY(-1px); }
.hx-opt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hx-opt:disabled { cursor: default; }
.hx-opt.is-ok { background: var(--pass-tint); border-color: var(--pass); color: var(--pass); }
.hx-opt.is-no { background: var(--error-tint); border-color: var(--error); color: var(--error); }
.hx-opt.is-ok::after { content: " ✓"; }
.hx-explain { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: var(--info-tint); font-size: .9rem; line-height: 1.5; }
.hx-explain p { margin: 0; color: var(--ink-2); min-height: 3em; }
.hx-explain.is-wait p { color: var(--ink-soft); display: flex; align-items: center; }
.hx-explain.is-wait .hx-spark { background: var(--rule-strong); color: var(--sheet); }
.hx-explain b { color: var(--ink); }
.hx-nw { white-space: nowrap; }
.hx-spark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-navy); color: var(--brand-amber); }
.hx-typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.hx-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); opacity: .4; }
.hx-progress { margin-top: 14px; }
.hx-progress-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }
.hx-progress-top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-bar { height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.hx-bar i { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-teal), var(--brand-teal-bright)); transform-origin: left; transform: scaleX(var(--s, .5)); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.hx-body { transition: opacity .35s ease, transform .35s ease; }
.hx-card.is-swap .hx-body { opacity: 0; transform: translateY(8px); }
.hx-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.hx-dots { display: flex; gap: 6px; }
.hx-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--rule-strong); transition: width .3s ease, background-color .3s ease; }
.hx-dots i.on { width: 18px; background: var(--brand-teal); }
.hx-retry { visibility: hidden; opacity: 0; transition: opacity .3s ease; min-height: 36px; padding: 6px 0; background: none; border: 0; font: 600 .88rem var(--font-body); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hx-retry.show { visibility: visible; opacity: 1; }
.hx-retry:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hx-badge { position: absolute; z-index: 2; top: 0; right: -10px; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: #14325C; border: 1px solid rgba(46,196,182,.45); color: #FFFFFF; font-size: .86rem; font-weight: 600; box-shadow: 0 12px 30px rgba(2,10,25,.4);
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.hx-badge span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-teal-bright); color: var(--brand-navy); font-size: .78rem; font-weight: 800; }
.hx-badge.show { opacity: 1; transform: none; }

/* Entrance and ambient motion (only when the visitor allows motion) */
@media (prefers-reduced-motion: no-preference) {
  .hx-in { animation: hx-up .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms); }
  .hx-l > span { animation: hx-line .9s cubic-bezier(.2,.75,.15,1) both; animation-delay: .12s; }
  .hx-l2 > span { animation-delay: .26s; }
  .hx .eyebrow { --i: 0; }
  .hx-visual { animation: hx-pop .8s cubic-bezier(.2,.7,.2,1) .2s both; }
  .hx-concept { animation: hx-up .5s cubic-bezier(.2,.7,.2,1) .7s both; }
  .hx-stem { animation: hx-up .5s cubic-bezier(.2,.7,.2,1) 1s both; }
  .hx-opt { animation: hx-up .45s cubic-bezier(.2,.7,.2,1) both; }
  .hx-opt:nth-child(1) { animation-delay: 1.12s; } .hx-opt:nth-child(2) { animation-delay: 1.2s; } .hx-opt:nth-child(3) { animation-delay: 1.28s; }
  .hx-explain { animation: hx-up .5s cubic-bezier(.2,.7,.2,1) 1.36s both; }
  .hx-progress { animation: hx-up .5s cubic-bezier(.2,.7,.2,1) 1.46s both; }
  .hx-steps li.on::after { animation: hx-grow .5s cubic-bezier(.2,.7,.2,1) both; }
  .hx-steps li[data-step="1"].on::after { animation-delay: .75s; } .hx-steps li[data-step="2"].on::after { animation-delay: .95s; }
  .hx-explain.is-on p { animation: hx-in .35s ease both; }
  .hx-typing i { animation: hx-dot 1s ease-in-out infinite; } .hx-typing i:nth-child(2) { animation-delay: .15s; } .hx-typing i:nth-child(3) { animation-delay: .3s; }
  .hx-opt.tap { animation: hx-tap .35s ease both; }
  .hx-lines path { stroke-dasharray: 720; stroke-dashoffset: 720; animation: hx-draw 1.8s cubic-bezier(.4,.1,.2,1) .5s forwards; }
  .hx-lines circle { opacity: 0; animation: hx-fade .4s ease 1.9s forwards; }
  .hx-glow { animation: hx-drift 16s ease-in-out infinite alternate; }
  .hx-badge.show { animation: hx-float 4s ease-in-out .6s infinite; }
  .hx-card { transition: transform .6s cubic-bezier(.2,.7,.2,1); transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 6px), 0); }
  .hx-lines { transition: transform .8s cubic-bezier(.2,.7,.2,1); transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hx-bar i, .hx-badge, .hx-steps li, .hx-body, .hx-dots i { transition: none; }
  .hx-travel { display: none; }
}
@keyframes hx-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hx-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hx-fade { to { opacity: 1; } }
@keyframes hx-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hx-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hx-draw { to { stroke-dashoffset: 0; } }
@keyframes hx-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes hx-tap { 50% { transform: scale(.95); } }
@keyframes hx-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-90px, 70px, 0) scale(1.08); } }

/* Exam picker, now right below the hero */
.hs-pick { padding-top: 44px; scroll-margin-top: 24px; }
.hs-pick .hs-picker { max-width: 880px; margin: 0 auto; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.hs-pick-note { text-align: center; margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); }

/* Tablet and phone: message first, a smaller card below */
@media (max-width: 960px) {
  .hx { padding: 48px 0 56px; }
  .hx-grid { grid-template-columns: 1fr; gap: 36px; }
  .hx-copy { max-width: 640px; }
  .hx-visual { max-width: 480px; }
  .hx-card { margin: 0; }
  .hx-lines { display: none; }
}
@media (max-width: 600px) {
  .hx { padding: 28px 0 40px; }
  .hx h1 { font-size: clamp(2.3rem, 11vw, 3rem); margin: 12px 0 14px; }
  .hx-lede { font-size: 1.03rem; }
  .hx-actions { margin: 24px 0 16px; }
  .hx-actions .btn { flex: 1 1 100%; }
  .hx-trust { font-size: .86rem; }
  .hx-visual { padding-top: 22px; }
  .hx-card { padding: 16px 16px 14px; border-radius: 16px; }
  .hx-badge { right: 6px; top: 0; font-size: .8rem; }
  .hx-glow { width: 480px; height: 480px; right: -220px; top: -200px; }
  .hx-concept p, .hx-explain { font-size: .88rem; }
  .hs-pick { padding-top: 28px; }
}
@media (max-width: 380px) { .hx h1 br { display: none; } .hx-steps li { font-size: .66rem; } .hx-demo { display: none; } }

/* ---------- Learner reviews ---------- */
.tm-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; align-items: flex-start; }
.tm-grid > .tm-card { flex: 1 1 300px; max-width: 380px; }
.tm-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tm-card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.tm-card figcaption { display: flex; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .92rem; }
.tm-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-family: var(--font-display); font-weight: 800; }
.tm-city { color: var(--ink-soft); }
.tm-meta { display: block; font-size: .8rem; color: var(--ink-soft); }
.tm-stars { display: inline-flex; gap: 2px; font-size: 1.05rem; line-height: 1; }
.tm-stars i { font-style: normal; color: var(--rule-strong); }
.tm-stars i.on { color: var(--brand-amber); }
.tm-more { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.tm-empty { display: flex; align-items: center; gap: 20px; max-width: 860px; margin: 0 auto; }
.tm-empty h2, .tm-empty h3 { margin: 0 0 4px; font-size: 1.2rem; }
.tm-empty p { margin: 0; color: var(--ink-soft); }
.tm-empty .btn { flex: none; }
.tm-empty-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--review-tint); color: var(--brand-amber); font-size: 1.6rem; }
.tm-empty:hover { transform: none; }
.tm-note { max-width: 60em; margin: 18px auto 0; text-align: center; font-size: .82rem; color: var(--ink-soft); line-height: 1.55; }
.tm-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding: 18px 22px; border-radius: var(--radius-l); background: var(--sheet); border: 1px solid var(--rule); }
.tm-cta p { margin: 0; }
.tm-status { margin-bottom: 14px; }
.tm-rate { border: 0; padding: 0; margin: 0 0 16px; }
.tm-rate legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.tm-rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.tm-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tm-rate label { font-size: 2rem; line-height: 1; color: var(--rule-strong); cursor: pointer; padding: 2px; transition: color .15s ease, transform .15s ease; }
.tm-rate label:hover, .tm-rate label:hover ~ label, .tm-rate input:checked ~ label { color: var(--brand-amber); }
.tm-rate input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 600px) { .tm-grid > .tm-card { max-width: none; } .tm-empty { flex-direction: column; align-items: flex-start; } .tm-empty .btn { width: 100%; } }
.review-ask { display: flex; align-items: center; gap: 18px; }
.review-ask .btn { flex: none; margin-left: auto; }
@media (max-width: 600px) { .review-ask { flex-direction: column; align-items: flex-start; } .review-ask .btn { margin-left: 0; width: 100%; } }

/* ---------- Signed-in navigation: dropdown menus (inline on phones) ---------- */
.nav-menu { position: relative; }
.nav-dd { display: inline-flex; align-items: center; gap: 6px; font: 500 1rem var(--font-body); color: var(--ink-2); background: none; border: 0; border-radius: var(--radius-s); padding: 8px 10px; cursor: pointer; min-height: 40px; }
.nav-dd:hover, .nav-dd[aria-expanded="true"], .nav-dd.is-cur { background: var(--info-tint); color: var(--ink); }
.nav-dd span[aria-hidden] { font-size: .75em; }
.nav-avatar { display: grid !important; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: .85rem !important; }
.nav-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); box-shadow: var(--shadow-lg); z-index: 30; }
.nav-pop-right { left: auto; right: 0; }
.nav-menu.open .nav-pop { display: grid; }
.nav-pop a { padding: 9px 12px; white-space: nowrap; }
.nav-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--rule); }
.nav-logout { width: 100%; text-align: left; font: 500 1rem var(--font-body); color: var(--ink-2); background: none; border: 0; border-radius: var(--radius-s); padding: 9px 12px; cursor: pointer; }
.nav-logout:hover { background: var(--info-tint); color: var(--ink); }
@media (max-width: 1080px) and (min-width: 901px) { .nav-name { display: none; } .nav a, .nav-dd { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 900px) {
  .nav { max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-dd { display: none; }
  .nav-pop { display: grid; position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; background: none; }
  .nav-menu { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 6px; }
  .nav-pop a { white-space: normal; padding: 8px 10px; }
  .nav-logout { padding: 8px 10px; }
  .nav-pop form { border-top: 0; }
}
.social-links { list-style: none; display: flex; gap: 8px; padding: 0; margin: 14px 0 0; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); color: var(--ink-2); transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.social-links a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }

/* ---------- Listen & Learn (chapter audio) ---------- */
.ap { border: 1px solid var(--rule); border-radius: var(--radius-l); background: var(--accent-tint); padding: 16px 18px; margin: 8px 0 24px; }
.ap-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ap-kicker { margin: 0; font-size: var(--step--1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.ap-title { font-size: var(--step-1); margin: 2px 0 0; }
.ap-len { font-weight: 500; color: var(--ink-soft); font-size: var(--step-0); margin-left: 6px; }
.ap-modes { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); background: var(--sheet); padding: 3px; }
.ap-modes button { border: 0; background: none; padding: 6px 12px; border-radius: var(--radius-pill); font: inherit; font-size: var(--step--1); color: var(--ink-2); cursor: pointer; min-height: 36px; }
.ap-modes button[aria-checked="true"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.ap-langs { margin: 8px 0 0; font-size: var(--step--1); } .ap-langs a[aria-current] { font-weight: 700; text-decoration: none; }
.ap-box { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px; margin-top: 12px; }
.ap-main { display: flex; align-items: center; gap: 14px; }
.ap-play { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.ap-play svg { width: 26px; height: 26px; fill: currentColor; } .ap-play .i-pause, .is-playing .ap-play .i-play { display: none; } .is-playing .ap-play .i-pause { display: block; }
.ap-play:hover { background: var(--ink-2); }
.ap-seekwrap { flex: 1; min-width: 0; }
.ap-seek { width: 100%; accent-color: var(--accent); height: 28px; }
.ap-times { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ap-ctrls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ap-btn { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; min-width: 44px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: var(--radius-s); background: var(--sheet); color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; justify-content: center; }
.ap-btn:hover { border-color: var(--accent); color: var(--accent); }
.ap-speed select { min-height: 40px; border: 1px solid var(--rule-strong); border-radius: var(--radius-s); background: var(--sheet); color: var(--ink); padding: 0 6px; font: inherit; }
.ap-vol input { width: 96px; accent-color: var(--accent); vertical-align: middle; }
.ap-status { margin: 8px 0 0; min-height: 1.2em; font-size: var(--step--1); color: var(--ink-2); }
.ap-status:empty { margin: 0; min-height: 0; }
.ap-resume { margin: 6px 0 0; font-size: var(--step--1); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.ap-locked { background: var(--sheet); border: 1px dashed var(--rule-strong); border-radius: var(--radius-m); padding: 14px; margin-top: 12px; }
.ap-locked p { margin: 0 0 10px; }
.ap-list { margin-top: 12px; font-size: var(--step--1); } .ap-list summary { cursor: pointer; font-weight: 600; } .ap-list ol { margin: 8px 0; padding-left: 0; list-style: none; } .ap-list li { padding: 4px 0; display: flex; justify-content: space-between; gap: 10px; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ap-disc { margin: 10px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.ap-continue { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; border-left: 4px solid var(--accent); }
.ap-lib { list-style: none; padding: 0; margin: 0; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--sheet); }
.ap-lib li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--rule); }
.ap-lib li:first-child { border-top: 0; } .ap-lib li[hidden] { display: none; }
.ap-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.ap-libmain { flex: 1; min-width: 0; } .ap-libmain > a, .ap-libmain > span { font-weight: 600; }
.ap-bar { height: 4px; background: var(--rule); border-radius: 2px; margin-top: 6px; max-width: 240px; } .ap-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.ap-examcard { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); } .ap-examcard:hover { border-color: var(--accent); }
.ap-examcard .code { font-size: var(--step--1); font-weight: 700; color: var(--accent); }
body.ap-mode-listen .layout-2 > aside { display: none; } body.ap-mode-listen .layout-2 { grid-template-columns: 1fr; }
.ap-mini { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 30; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); border-radius: var(--radius-pill); padding: 6px 14px 6px 6px; box-shadow: var(--shadow-lg); max-width: calc(100% - 24px); }
.ap-mini[hidden] { display: none; }
.ap-mini button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.ap-mini button svg { width: 18px; height: 18px; fill: currentColor; }
.ap-mini a { color: var(--paper); text-decoration: none; font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-mini span { font-size: var(--step--1); font-variant-numeric: tabular-nums; opacity: .85; }
@media (max-width: 640px) {
  .ap { padding: 14px 12px; } .ap-modes { width: 100%; } .ap-modes button { flex: 1; }
  .ap-lbl { display: none; } .ap-vol { display: none; }   /* phones use the hardware volume buttons */
  .ap-ctrls { justify-content: space-between; } .ap-list li { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: no-preference) { .ap-mini { transition: opacity .2s; } }

/* Exam page FAQ and SEO helpers */
.exam-faq details { padding: 12px 0; }
.exam-faq details + details { border-top: 1px solid var(--rule); }
.exam-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.exam-faq summary::-webkit-details-marker { display: none; }
.exam-faq summary::after { content: "+"; font-weight: 700; color: var(--ink-2); flex: none; }
.exam-faq details[open] summary::after { content: "–"; }
.exam-faq details p { margin: 8px 0 0; color: var(--ink-2); }
.h1-alt { font-size: .6em; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
