/* =====================================================================
   Efficio Education styles
   1. theme tokens (light, dark)   2. base   3. site pages
   4. dashboard and results        5. exam screen (always light, like Bluebook)
   ===================================================================== */

/* ---------- 1. theme tokens ---------- */
:root, [data-theme="light"] {
  --bg: #F4F5FA; --surface: #FFFFFF; --surface-2: #EDF0F7; --line: #E0E4EE; --line-2: #CBD1E0;
  --ink: #121628; --ink-2: #2C3248; --muted: #5C657B;
  --accent: #2F4BD8; --accent-2: #2440C4; --on-accent: #FFFFFF; --accent-soft: #E6EAFF; --range: #AFBBF6;
  --c2: #DB7F00; --hl: #FFE27A;
  --good: #13803B; --good-soft: #E1F4E7; --bad: #C2282A; --bad-soft: #FCEAEA; --warn: #8A5300; --warn-soft: #FFF2D4;
  --hm0: #E6E9F1; --hm1: #C3EFD2; --hm2: #7CDA9F; --hm3: #2DB262; --hm4: #13803B; --hm5: #0A4C23;
  --shadow: 0 1px 2px rgba(18, 22, 40, .05), 0 8px 24px -14px rgba(18, 22, 40, .22);
  --shadow-lg: 0 2px 4px rgba(18, 22, 40, .04), 0 24px 48px -24px rgba(18, 22, 40, .35);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0F1E; --surface: #131A2D; --surface-2: #1A2137; --line: #242C46; --line-2: #333C5C;
  --ink: #E8EBF6; --ink-2: #C7CCDE; --muted: #96A0B9;
  --accent: #7F94FF; --accent-2: #97A8FF; --on-accent: #0B0F1E; --accent-soft: #1E2750; --range: #3B4BA0;
  --c2: #F2A93B; --hl: #E8C64B;
  --good: #4ADE80; --good-soft: #10301E; --bad: #F87171; --bad-soft: #3A1A1F; --warn: #F5C04A; --warn-soft: #33290F;
  --hm0: #1B2238; --hm1: #15432B; --hm2: #1D6B3E; --hm3: #29A05A; --hm4: #47CF80; --hm5: #A4F2C3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 56px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- 2. base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s; }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 800; }
h2 { font-size: 20px; letter-spacing: -.01em; margin: 0; font-weight: 700; }
h3 { margin: 0; font-weight: 700; }
select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.sub { color: var(--muted); margin: 0 0 10px; max-width: 72ch; }
.fine { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 34px 24px 90px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 11px; padding: 9px 16px; font-weight: 600; font-size: 15px; transition: background-color .15s, border-color .15s, transform .06s; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 13px; }
.btn.sm { padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.file input { display: none; }
.btn:disabled { opacity: .4; border-color: var(--line); }
.btn:disabled:hover { border-color: var(--line); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; }
.linkish:hover { text-decoration: underline; }
.linkish.del { color: var(--muted); }
.linkish.del:hover { color: var(--bad); }
.back { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.back:hover { color: var(--accent); }

.seg { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 12px; gap: 2px; }
.seg button { background: none; border: 0; padding: 7px 15px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg.sm button { padding: 5px 12px; font-size: 13px; }

.warn, .ok, .err { border-radius: 12px; padding: 12px 16px; margin: 14px 0; white-space: pre-wrap; }
.warn { background: var(--warn-soft); color: var(--warn); }
.ok { background: var(--good-soft); color: var(--good); }
.err { background: var(--bad-soft); color: var(--bad); }
.empty { background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 30px; text-align: center; color: var(--muted); }
.empty p { margin: 0; }
.empty-s { color: var(--muted); font-size: 14px; margin: 6px 0; }

.chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.chip.g, .pill.g { background: var(--surface-2); color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: 2px; }
.tag.warn { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin: 0; white-space: nowrap; }
.bar { display: inline-block; width: 140px; height: 8px; background: var(--surface-2); border-radius: 99px; vertical-align: middle; overflow: hidden; flex: none; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

#toast { position: fixed; top: 86px; left: 50%; transform: translate(-50%, -6px); background: #121628; color: #fff; padding: 11px 20px; border-radius: 10px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 80; font-weight: 600; font-size: 15px; max-width: 92vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 3. site pages ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.navin { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 24px; }
.brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; margin-right: 18px; }
.brand .mark { background: var(--hl); color: #1A1A12; font-weight: 800; letter-spacing: .02em; border-radius: 6px; padding: 1px 9px; transform: rotate(-3deg); font-size: 16px; }
.brand .bn { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.links button { background: none; border: 0; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .15s, background-color .15s; }
.links button:hover { color: var(--ink); }
.links button.on { background: var(--accent-soft); color: var(--accent); }
.theme { margin-left: auto; display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; flex: none; }
.theme button { background: none; border: 0; width: 34px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); }
.theme button:hover { color: var(--ink); }
.theme button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.phead .sub { margin: 0; }
.grp-h { font-size: 15px; color: var(--muted); margin: 30px 0 12px; }

/* home */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 26px 0 40px; }
.hero h1 { font-size: 50px; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 18px; max-width: 15ch; }
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 26px; max-width: 54ch; }
.hero-q { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 24px 20px; box-shadow: var(--shadow-lg); }
.hq-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hq-tag { background: var(--hl); color: #1A1A12; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.hq-meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.hq-p { font-size: 17px; line-height: 1.7; margin: 0 0 12px; }
.blank { display: inline-block; width: 74px; border-bottom: 2px solid var(--ink); margin: 0 2px; }
.hq-ask { font-weight: 650; margin: 0 0 14px; font-size: 15px; }
.hq-cs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hq-c { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 15px; transition: border-color .15s, background-color .15s; }
.hq-c span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.hq-c:not(:disabled):hover { border-color: var(--accent); }
.hq-c.right { border-color: var(--good); background: var(--good-soft); }
.hq-c.wrong { border-color: var(--bad); background: var(--bad-soft); }
.hq-c.dim { opacity: .5; }
.hq-fb { margin: 14px 0 0; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.hq-fb.good { background: var(--good-soft); }
.hq-fb.bad { background: var(--bad-soft); }

.strip { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 24px; }
.strip > div { display: flex; flex-direction: column; }
.sn { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.sl { color: var(--muted); font-size: 13px; }
.strip .btn { margin-left: auto; }
.ways { margin-top: 44px; }
.ways h2 { font-size: 22px; margin-bottom: 14px; }
.ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: border-color .15s, transform .15s; }
.way:hover { border-color: var(--accent); transform: translateY(-2px); }
.way b { font-size: 16px; }
.way > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.wi { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 4px; }
.note { color: var(--muted); font-size: 13px; margin-top: 30px; }

/* simulator */
.mocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.mock-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mock-top h3 { font-size: 18px; letter-spacing: -.01em; }
.mock-d { color: var(--muted); margin: 0; font-size: 14px; }
.mock-m { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.mock-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.last { font-size: 14px; color: var(--muted); }
.last b { color: var(--ink); font-size: 16px; }

/* setup */
.setup { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: start; }
.opt { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.opt legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 4px; }
.opt-h { color: var(--muted); font-size: 14px; margin: 0 0 10px; max-width: 64ch; }
.opt-row { display: flex; flex-wrap: wrap; gap: 10px; }
.optc { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; min-width: 150px; padding: 11px 14px; border-radius: 13px; border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color .15s, background-color .15s; }
.optc b { font-size: 15px; }
.optc span { color: var(--muted); font-size: 13px; }
.optc:hover { border-color: var(--accent); }
.optc.on { border-color: var(--accent); background: var(--accent-soft); }
.optc.on span { color: var(--ink-2); }
.field { font: inherit; width: min(360px, 100%); padding: 10px 13px; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--ink); }
.field:focus { outline: none; border-color: var(--accent); }
.setup-side { position: sticky; top: 86px; }
.sum { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }
.sum h3 { font-size: 18px; margin-bottom: 12px; }
.sum dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 0 0 20px; font-size: 14px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 650; text-align: right; }

/* topic practice */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.setsize { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tlist { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.trow { display: grid; grid-template-columns: 1fr 230px auto; gap: 16px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.tname b { display: block; }
.tname span { color: var(--muted); font-size: 13px; }
.tacc { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tp { font-weight: 700; font-variant-numeric: tabular-nums; }

/* corrections and review blocks */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; }
.kn { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kl { color: var(--muted); font-size: 14px; }
.rev { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 14px; padding: 18px 20px; margin: 12px 0; }
.rev.no1 { border-left-color: var(--bad); }
.rev-h { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; margin-bottom: 10px; flex-wrap: wrap; }
.rv-pass { background: var(--surface-2); border-radius: 10px; padding: 2px 16px; margin-bottom: 10px; }
.rv-q { margin-bottom: 10px; font-weight: 600; }
.rv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-opts.one { grid-template-columns: 1fr; }
.rv-opt { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); }
.rv-opt.right { background: var(--good-soft); border-color: transparent; }
.rv-opt.wrong { background: var(--bad-soft); border-color: transparent; }
.rv-l { font-weight: 700; }
.rv-tag { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rv-tag.mine { color: var(--bad); }
.rv-tag.good { color: var(--good); }
.rv-sol { margin-top: 12px; color: var(--ink-2); }

/* simulator: adaptive explainer */
.adapt { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; margin: 6px 0 8px; }
.adapt-h h2 { font-size: 19px; margin-bottom: 4px; }
.adapt-h p { color: var(--ink-2); margin: 0 0 16px; max-width: 72ch; }
.adapt-steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.adapt-steps li { counter-increment: st; background: var(--surface-2); border-radius: 14px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.adapt-steps li b { color: var(--ink); font-size: 15px; }
.adapt-steps li b::before { content: counter(st); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; margin-right: 8px; vertical-align: 1px; }

/* topic practice: official domains */
.doms { display: grid; gap: 18px; }
.dom { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.dom-h { display: grid; grid-template-columns: 1fr 230px auto; gap: 16px; align-items: center; padding: 18px 20px 6px; }
.dom-h h2 { font-size: 19px; display: inline; margin-right: 6px; }
.dom-acc { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dom-d { color: var(--muted); font-size: 14px; margin: 0; padding: 0 20px 12px; max-width: 80ch; }
.skl .trow { background: var(--surface); }
.skl .trow:first-child { border-top: 1px solid var(--line); }
.skl .tname b { font-weight: 600; }

/* ---------- 4. dashboard and results ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; margin: 18px 0; box-shadow: var(--shadow); }
.panel.list { padding: 0; overflow: hidden; }
.ph-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ph-top h2 { font-size: 18px; }
.ph-top.pad { padding: 20px 24px 6px; margin: 0; }
.ph-sub { font-size: 16px; margin: 36px 0 0; }
.bigrow { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 2px 0 4px; }
.bignum { font-size: 66px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bignum.mutedn { color: var(--line-2); }
.outof { font-size: 36px; color: var(--muted); font-weight: 700; }
.ci { color: var(--muted); font-size: 16px; }
.ci b { color: var(--ink); }
.howcalc { background: var(--surface-2); border-radius: 12px; padding: 2px 16px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.eyebrow { color: var(--muted); font-weight: 600; margin: 0; }

.scale { position: relative; height: 98px; margin: 40px 34px 4px; }
.scale.pct { height: 80px; margin-top: 46px; }
.scale-track { position: absolute; left: 0; right: 0; top: 46px; height: 10px; border-radius: 99px; background: var(--surface-2); }
.scale-range { position: absolute; top: 46px; height: 10px; background: var(--range); border-radius: 99px; z-index: 1; }
.scale-line { position: absolute; top: 40px; width: 3px; height: 22px; background: var(--accent); transform: translateX(-50%); z-index: 2; border-radius: 2px; }
.scale-ptr { position: absolute; top: -4px; transform: translateX(-50%); z-index: 3; }
.scale-ptr span { display: block; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 9px; white-space: nowrap; position: relative; line-height: 1.25; text-align: center; }
.scale-ptr span small { display: block; font-weight: 600; font-size: 11px; opacity: .9; }
.scale-ptr span::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--accent); }
.scale-ticks div { position: absolute; top: 64px; transform: translateX(-50%); text-align: center; line-height: 1.25; white-space: nowrap; }
.scale-ticks b { display: block; font-size: 13px; font-weight: 650; }
.scale-ticks small { color: var(--muted); font-size: 11px; }
.scale-leg { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.scale-leg .k { display: inline-block; vertical-align: middle; margin-right: 6px; }
.scale-leg .k.range { width: 26px; height: 8px; border-radius: 99px; background: var(--range); }
.scale-leg .k.line { width: 3px; height: 14px; background: var(--accent); }
.sitrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sitrow > div { background: var(--surface-2); border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sitrow span { color: var(--muted); }

.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin: 18px 0; }
.two > .panel { margin: 0; }
.weak { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.weak:first-of-type { border-top: 0; }
.weak > div { flex: 1; min-width: 0; }
.weak b { display: block; }
.weak span { color: var(--muted); font-size: 13px; }
.wp { font-weight: 800; font-size: 14px; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.wp.lo { background: var(--bad-soft); color: var(--bad); }
.wp.mid { background: var(--warn-soft); color: var(--warn); }
.wp.hi { background: var(--good-soft); color: var(--good); }
.rowbar { display: grid; grid-template-columns: 1fr 140px 64px; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.rowbar b { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart.radar { max-width: 520px; margin: 0 auto; }
.chart .cg { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .ct { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .cband { fill: var(--accent); opacity: .13; }
.chart .cl { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.chart .cl.s1 { stroke: var(--accent); } .chart .cl.s2 { stroke: var(--c2); }
.chart .cd { stroke-width: 2.2; }
.chart .cd.s1 { fill: var(--accent); stroke: var(--accent); } .chart .cd.s2 { fill: var(--c2); stroke: var(--c2); }
.chart .cd.hollow { fill: var(--surface); }
.chart .rg { fill: none; stroke: var(--line); }
.chart .ra { fill: var(--accent); fill-opacity: .18; stroke: var(--accent); stroke-width: 2; }
.chart .rp { fill: var(--accent); }
.chart .rt { fill: var(--ink-2); font-size: 12px; font-family: inherit; font-weight: 650; }
.chart .rt.rw { fill: var(--accent); } .chart .rt.math { fill: var(--c2); }
.chart .rt.none { opacity: .55; font-weight: 500; } .chart .rp.none { opacity: 0; }
.legend2 { display: flex; gap: 20px; justify-content: center; font-size: 14px; margin-top: 8px; color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot.s1 { background: var(--accent); } .dot.s2 { background: var(--c2); }

.hm-scroll { overflow-x: auto; padding-bottom: 4px; }
.hm-months { display: grid; grid-template-columns: repeat(53, 12px); column-gap: 3px; font-size: 11px; color: var(--muted); margin-left: 34px; height: 16px; min-width: max-content; }
.hm-wrap { display: flex; gap: 4px; min-width: max-content; }
.hm-days { display: grid; grid-template-rows: repeat(7, 12px); row-gap: 3px; width: 30px; font-size: 10px; color: var(--muted); line-height: 12px; flex: none; }
.hm-grid { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; grid-auto-columns: 12px; gap: 3px; }
.hm { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--hm0); }
.hm.off { background: transparent; }
.hm.l1 { background: var(--hm1); } .hm.l2 { background: var(--hm2); } .hm.l3 { background: var(--hm3); } .hm.l4 { background: var(--hm4); } .hm.l5 { background: var(--hm5); }
.hm-leg { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.hm-key { display: inline-flex; align-items: center; gap: 3px; }

.hrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hrow.more { justify-content: center; }
.hl { min-width: 0; }
.ht { font-weight: 650; }
.hd { color: var(--muted); font-size: 13px; }
.hr { display: flex; align-items: center; gap: 20px; }
.hsc { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.hsc b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hs { color: var(--muted); font-size: 12px; }
.pad { padding: 16px 24px; }

.res-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.secsc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.secsc > div { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.secsc span { color: var(--muted); font-size: 13px; }
.secsc b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.secsc small { color: var(--muted); }
.tscroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
table.t th { color: var(--muted); font-weight: 600; font-size: 13px; }
table.t td.r { text-align: right; }
table.pq tr.grp td { background: var(--surface-2); font-weight: 700; }
table.pq td.tick { color: var(--good); font-weight: 800; }
table.pq td.cross { color: var(--bad); font-weight: 800; }
table.pq tr.exp td { background: var(--surface-2); padding: 16px 20px; }
.bm { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bm.on { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
textarea.json { width: 100%; min-height: 240px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; padding: 12px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); }

/* ---------- 5. exam screen (Bluebook style, always light) ---------- */
body.in-exam { overflow: hidden; background: #fff; }
.bb { --blue: #324DC7; height: 100vh; display: flex; flex-direction: column; background: #fff; color: #111; font-family: "Noto Sans", "Segoe UI", system-ui, sans-serif; color-scheme: light; }
.bb button { color: #111; }
.bb-small { color: #555; font-size: 13px; }
.bb-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 12px 24px 10px; position: relative; flex: none; }
.bb-l { position: relative; }
.bb-title { font-size: 19px; font-weight: 700; }
.bb-dir { background: none; border: 0; font-size: 16px; padding: 4px 0; display: inline-flex; gap: 6px; align-items: center; }
.bb-dir:hover { text-decoration: underline; }
.bb-dirpanel { position: absolute; left: 0; top: 66px; width: min(680px, 92vw); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid #222; border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .2); padding: 14px 22px 8px; z-index: 30; font-size: 16px; line-height: 1.55; }
.bb-dirhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bb-dirhead button { background: none; border: 0; font-size: 18px; }
.bb-timer { text-align: center; }
.bb-timer .tv { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.bb-timer .tv.muted { font-size: 15px; font-weight: 500; color: #666; padding-top: 6px; }
.bb-hide { border: 1.5px solid #222; border-radius: 99px; background: #fff; padding: 1px 18px; font-size: 14px; font-weight: 600; }
.bb-hide:disabled { opacity: .35; }
.bb-r { display: flex; justify-content: flex-end; gap: 14px; position: relative; }
.bb-tool { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 13px; padding: 3px 8px; border-radius: 6px; }
.bb-tool:hover, .bb-tool.on { background: #eceefb; }
.bb-more { position: absolute; right: 0; top: 54px; background: #fff; border: 1px solid #222; border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .2); padding: 6px; min-width: 210px; z-index: 30; display: flex; flex-direction: column; }
.bb-more button { background: none; border: 0; text-align: left; padding: 9px 12px; border-radius: 6px; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.bb-more button:hover { background: #eceefb; }
.bb-dash { flex: none; height: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 70px, #2f6fdf 70px 96px, transparent 96px 150px, #f5c518 150px 176px, transparent 176px 260px),
    repeating-linear-gradient(90deg, #8e949c 0 12px, transparent 12px 18px); }

.bb-main { flex: 1; display: flex; min-height: 0; }
.bb-left { flex: 0 0 50%; overflow: auto; padding: 56px 40px 28px; position: relative; min-width: 0; font-size: 18px; line-height: 1.65; }
.bb-right { flex: 1 1 0; overflow: auto; padding: 56px 40px 28px; position: relative; min-width: 0; }
.bb-left p { margin: 0 0 14px; }
.bb-left img { max-width: 100%; }
.bb-right.one { max-width: 780px; margin: 0 auto; flex: 1 1 780px; }
.bb-split { flex: none; width: 14px; margin: 0 -5px; position: relative; cursor: col-resize; z-index: 4; touch-action: none; }
.bb-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: #cfcfcf; transition: background-color .15s; }
.bb-split .grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 12px; height: 46px; border-radius: 7px; background: #fff; border: 1.5px solid #9a9a9a; }
.bb-split .grip::before, .bb-split .grip::after { content: ""; position: absolute; top: 11px; bottom: 11px; width: 1.5px; background: #8a8a8a; }
.bb-split .grip::before { left: 3px; } .bb-split .grip::after { right: 3px; }
.bb-split:hover::before, .bb-split.drag::before { background: var(--blue); }
.bb-split:hover .grip, .bb-split.drag .grip { border-color: var(--blue); }
body.dragging { cursor: col-resize; user-select: none; }
.bb-main.x-l .bb-right, .bb-main.x-l .bb-split { display: none; }
.bb-main.x-l .bb-left { flex: 1 1 auto !important; }
.bb-main.x-r .bb-left, .bb-main.x-r .bb-split { display: none; }
.bb-exp { position: absolute; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #c9c9c9; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); display: grid; place-items: center; z-index: 2; }
.bb-exp:hover { background: #eceefb; }
.bb-exp.l { right: 14px; }
.bb-exp.r { left: 14px; }
.bb-qhead { display: flex; align-items: center; gap: 14px; background: #f1f1f1; border-bottom: 2px dashed #222; margin-bottom: 20px; padding-right: 10px; }
.qnum { background: #111; color: #fff; font-weight: 700; padding: 6px 14px; font-size: 17px; }
.bb-mark { background: none; border: 0; display: inline-flex; gap: 8px; align-items: center; font-size: 16px; padding: 6px 4px; }
.bb .bb-mark.on { color: #b91c1c; font-weight: 600; }
.bb-abc { margin-left: auto; background: none; border: 1.5px solid transparent; border-radius: 6px; padding: 2px 8px; font-size: 14px; font-weight: 700; }
.bb .bb-abc.on { border-color: var(--blue); background: #eceefb; color: var(--blue); }
.bb-prompt { font-size: 18px; line-height: 1.6; margin-bottom: 20px; }

.ch { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.chb { flex: 1; display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 1.5px solid #3b3b3b; border-radius: 8px; padding: 12px 16px; font-size: 17px; font-family: inherit; line-height: 1.4; }
.chb:hover { border-color: var(--blue); }
.chl { flex: none; width: 28px; height: 28px; border: 1.5px solid #3b3b3b; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ch.sel .chb { border: 2px solid var(--blue); background: #f3f5ff; padding: 11.5px 15.5px; }
.ch.sel .chl { background: var(--blue); border-color: var(--blue); color: #fff; }
.ch.struck .cht { text-decoration: line-through; color: #777; }
.ch.struck .chb { opacity: .55; }
.ch.right .chb { border-color: #15803d; background: #e6f4ea; }
.ch.wrong .chb { border-color: #b91c1c; background: #fdeaea; }
.chx { flex: none; min-width: 36px; height: 36px; border-radius: 99px; border: 1.5px solid #3b3b3b; background: #fff; font-size: 13px; font-weight: 700; padding: 0 8px; }
.chx s { text-decoration-thickness: 2px; }
.chx:hover { background: #eceefb; }
.gi-wrap label { display: block; font-weight: 600; margin-bottom: 8px; }
.gi { font: inherit; font-size: 22px; padding: 10px 14px; border: 2px solid #3b3b3b; border-radius: 8px; width: 260px; letter-spacing: .5px; background: #fff; color: #111; }
.gi:focus { outline: none; border-color: var(--blue); }
.gi-prev { margin-top: 14px; font-size: 15px; color: #444; min-height: 44px; }
.gi-prev #gip { font-size: 20px; color: #111; margin-left: 6px; }
.bb-check { margin-top: 14px; }
.fb { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: #eef0ff; }
.fb.good { background: #e6f4ea; }
.fb.bad { background: #fdeaea; }
.bb-table { border-collapse: collapse; margin: 10px 0; font-size: 16px; }
.bb-table th, .bb-table td { border: 1px solid #888; padding: 6px 12px; }

.bb-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 24px 14px; flex: none; }
.bb-name { font-weight: 700; font-size: 16px; }
.bb .bb-qbtn { background: #111; color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 16px; display: inline-flex; gap: 8px; align-items: center; }
.bb-navb { display: flex; justify-content: flex-end; gap: 12px; }
.bb .bb-primary { background: var(--blue); color: #fff; border: 0; border-radius: 99px; padding: 10px 30px; font-weight: 700; font-size: 16px; }
.bb-primary:hover { filter: brightness(1.1); }
.bb .bb-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 99px; padding: 9px 26px; font-weight: 700; font-size: 16px; }
.bb-outline:hover { background: #eceefb; }
.bb .bb-primary.sm, .bb .bb-outline.sm { padding: 6px 20px; font-size: 14px; }

.bb-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 38; }
.bb-pop { position: fixed; left: 50%; transform: translateX(-50%); bottom: 82px; width: min(580px, 94vw); background: #fff; border: 1px solid #222; border-radius: 10px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); padding: 20px 22px 16px; z-index: 40; }
.bb-pop .pt { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.pc { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.bb-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 94vw); max-height: 88vh; overflow: auto; background: #fff; border: 1px solid #222; border-radius: 10px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); padding: 22px 26px 18px; z-index: 40; }
.bb-modal h3 { margin: 0 0 6px; }
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 4px; }
.ref-card { border: 1px solid #DADDE6; border-radius: 10px; padding: 8px 10px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; background: #FBFBFD; }
.ref-card.wide { grid-column: span 2; }
.ref-card > svg { width: 100%; max-width: 150px; height: 82px; fill: none; stroke: #1B1F2E; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 4px; }
.ref-card.wide > svg { max-width: 300px; }
.ref-card > svg .dash { stroke-dasharray: 4 3; stroke-width: 1.2; stroke: #6B7185; }
.ref-card > svg .ra { stroke-width: 1.1; }
.ref-card > svg .dot { fill: #1B1F2E; stroke: none; }
.ref-card > svg text { fill: #324DC7; stroke: none; font: italic 600 14px "Times New Roman", Georgia, serif; }
.ref-card > svg text.ang { fill: #555B6E; font: 500 11px "Noto Sans", system-ui, sans-serif; }
.ref-card b { font-size: 13.5px; margin-bottom: 2px; }
.ref-f { font-size: 15px; line-height: 1.7; }
.ref-facts { align-items: flex-start; text-align: left; justify-content: center; }
.ref-facts ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.bb-modal.ref { width: min(860px, 96vw); }
ul.help { padding-left: 18px; line-height: 1.6; }
.bb-legend { display: flex; justify-content: center; gap: 22px; font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.bb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lgi { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.lgi.un { border: 1.5px dashed var(--blue); border-radius: 3px; }
.lgi.fl { color: #b91c1c; }
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 14px 10px; padding-top: 10px; }
.bb-grid.big { grid-template-columns: repeat(auto-fill, 56px); justify-content: center; gap: 22px 14px; max-width: 760px; margin: 22px auto; }
.bb .qb { position: relative; height: 42px; background: #fff; border: 1.5px dashed var(--blue); color: var(--blue); font-weight: 700; font-size: 16px; border-radius: 4px; }
.bb-grid.big .qb { height: 50px; }
.qb.done { border-style: solid; }
.bb .qb.cur { background: #eceefb; }
.qb .fl { position: absolute; top: -8px; right: -6px; color: #b91c1c; font-style: normal; line-height: 0; }
.qb .pn { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); color: #111; font-style: normal; line-height: 0; }
.bb-review { flex: 1; overflow: auto; text-align: center; padding: 38px 24px; }
.bb-review h2 { font-size: 28px; margin: 0 0 10px; }
.bb-review p { max-width: 640px; margin: 0 auto 18px; font-size: 17px; }
.bb-warn { color: #b45309; font-weight: 600; }
.bb-between { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; gap: 6px; background: #fff; color: #111; font-family: "Noto Sans", sans-serif; }
.bb-between h1 { font-size: 30px; }
.bb-between p { max-width: 520px; margin: 4px 0; font-size: 17px; }
.bb-between .bb-primary { background: #324DC7; color: #fff; border: 0; border-radius: 99px; padding: 11px 30px; font-weight: 700; font-size: 16px; }
.bb-bignum { font-size: 64px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* floating tools */
#calc { position: fixed; right: 24px; bottom: 90px; width: 440px; height: 540px; min-width: 300px; min-height: 320px; background: #fff; border: 1px solid #222; border-radius: 10px; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); z-index: 42; display: flex; flex-direction: column; resize: both; overflow: hidden; color: #111; }
#calc .chead { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #111; color: #fff; font-weight: 600; cursor: move; touch-action: none; font-family: "Noto Sans", sans-serif; }
#calc .chead button { background: none; border: 0; color: #fff; font-size: 16px; }
#calcbody { flex: 1; min-height: 0; padding: 6px; font-size: 14px; }
#lr .lr-top, #lr .lr-bot { position: fixed; left: 0; right: 0; background: rgba(0, 0, 0, .55); z-index: 36; pointer-events: none; }
#lr .lr-top { top: 0; }
#lr .lr-bot { bottom: 0; }

/* Annotate: Bluebook's yellow, blue and pink highlights */
mark.an { color: inherit; border-radius: 2px; cursor: pointer; background: transparent; }
mark.an-y { background: #FFF59D; } mark.an-b { background: #B3E5FC; } mark.an-p { background: #F8BBD0; }
mark.an-u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
mark.an-on { outline: 2px solid #324DC7; outline-offset: 1px; }
mark.an-n::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #324DC7; vertical-align: super; margin-left: 1px; }
#anntip { position: fixed; z-index: 70; background: #fff; border: 1px solid #222; border-radius: 10px; padding: 7px 9px; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); display: flex; gap: 7px; align-items: center; font-family: "Noto Sans", sans-serif; }
.ac { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #555; padding: 0; font-weight: 700; color: #111; background: #fff; display: grid; place-items: center; }
.ac:hover { transform: scale(1.08); }
.ac.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #324DC7; }
.ac-y { background: #FFF59D; } .ac-b { background: #B3E5FC; } .ac-p { background: #F8BBD0; }
.tsep { width: 1px; height: 22px; background: #ccc; }
.an-btn { background: #fff; border: 1.5px solid #324DC7; color: #324DC7; border-radius: 99px; padding: 3px 12px; font-weight: 600; font-size: 14px; }
#annpanel { position: fixed; left: 0; right: 0; bottom: 74px; z-index: 35; background: #fff; border-top: 2px solid #222; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); padding: 12px 24px 14px; font-family: "Noto Sans", sans-serif; color: #111; }
.ap-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ap-head b { font-size: 16px; }
.ap-q { color: #444; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-head button { background: none; border: 0; font-size: 18px; }
.ap-body { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.ap-tools { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.ap-l { font-size: 13px; color: #444; font-weight: 600; }
#annta { flex: 1; min-width: 240px; font: inherit; font-size: 15px; border: 1.5px solid #888; border-radius: 8px; padding: 8px 10px; resize: vertical; background: #fff; color: #111; }
#annta:focus { outline: none; border-color: #324DC7; }
.ap-btns { display: flex; gap: 10px; padding-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .adapt-steps { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .ways-grid { grid-template-columns: 1fr 1fr; }
  .setup { grid-template-columns: 1fr; }
  .setup-side { position: static; }
  .two { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 22px 16px 70px; }
  .navin { padding: 8px 16px; gap: 6px; flex-wrap: wrap; }
  .brand { margin-right: 0; }
  .links { order: 3; width: 100%; }
  h1, .hero h1 { font-size: 32px; }
  .ways-grid, .kpis.three, .sitrow, .secsc, .rv-opts, .hq-cs { grid-template-columns: 1fr; }
  .trow, .dom-h { grid-template-columns: 1fr auto; }
  .dom-acc { grid-column: 1 / -1; grid-row: 2; }
  .tacc { grid-column: 1 / -1; grid-row: 2; }
  .strip { gap: 18px; }
  .strip .btn { margin-left: 0; width: 100%; }
  .scale { margin-left: 26px; margin-right: 26px; }
  .bignum { font-size: 52px; }
  .rowbar { grid-template-columns: 1fr 80px 54px; }
  .bb-head { grid-template-columns: 1fr auto; row-gap: 6px; }
  .bb-r { grid-column: 1 / -1; justify-content: flex-start; }
  .bb-main { flex-direction: column; overflow: auto; }
  .bb-left, .bb-right { flex: none !important; overflow: visible; padding: 20px 18px; }
  .bb-split, .bb-exp { display: none; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .ref-card.wide { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *:not(.unis-row), *::before, *::after { transition: none !important; animation: none !important; }
}

/* maths typesetting from the mocks: stacked fractions, square roots, centred equations */
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 2px; font-size: .92em; line-height: 1.15; }
.fr .nu { padding: 0 3px 1px; border-bottom: 1.3px solid currentColor; }
.fr .de { padding: 1px 3px 0; }
.ov { border-top: 1.3px solid currentColor; padding-top: 1px; }
.eqn { display: block; text-align: center; margin: 6px 0; }
.qimg { display: block; max-width: 100%; height: auto; margin: 4px auto 16px; }
.bb-right.one.math { max-width: 860px; }
.bb-right.one.math .bb-prompt { font-size: 18px; }
.sprd { font-size: 15px; line-height: 1.55; }
.sprd h3 { font-size: 17px; margin: 0 0 8px; }
.sprd ul { padding-left: 18px; margin: 0 0 14px; }
.sprd li { margin-bottom: 6px; }
.bb-table.sprt { font-size: 14px; width: 100%; }
.bb-table.sprt th { background: #f1f1f1; font-weight: 700; }
.bb-table.sprt td, .bb-table.sprt th { text-align: center; vertical-align: middle; }
.rv-pass .qimg, .rev .qimg { margin-left: 0; }

/* simulator: info note + JZ-style mock list */
.info { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 4px 0 26px; cursor: default; }
.info-i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 12px/20px Georgia, serif; text-align: center; font-style: italic; margin-top: 1px; }
.info b { font-size: 14.5px; }
.info p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.info p.info-s { font-size: 13px; color: var(--muted); }
.mlist { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 18px; overflow: hidden; }
.mlist-h { padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mlist-h h2 { font-size: 17px; margin: 0; }
.mlist-h p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.mlist-h + .mrow { border-top: 0; }
.mrow:hover { background: var(--surface-2); }
.mrow-t { background: none; border: 0; padding: 0; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.mrow-b { font-size: 13px; color: var(--good); margin-top: 2px; }
.mrow-b.none { color: var(--muted); }
.lnk { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.lnk:hover { text-decoration: underline; }
.lnk.start { font-weight: 600; font-size: 15px; white-space: nowrap; }

/* topic practice options dialog */
.dlg-bg { position: fixed; inset: 0; background: rgba(10, 14, 30, .45); z-index: 60; }
.dlg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px 22px; z-index: 61; }
.dlg h3 { margin: 0 0 6px; font-size: 18px; }
.dlg .opt { margin: 12px 0 0; }
.dlg .optc { min-width: 0; }
.dlg-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* plain list header on the simulator; tinted topic header in topic practice */
.mlist-h { background: none; padding: 18px 20px 12px; }
.dom-h, .dom-d { background: var(--accent-soft); }
.dom-h { padding-top: 16px; }
.dom-d { padding-bottom: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.dom-h:has(+ .skl) { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dom-h h2 { color: var(--accent); }
.dom-h .bar { background: var(--surface); }
.dom-d { max-width: none; }

/* mock group title sits above its list, outside the box */
.mgrp { margin: 0 0 26px; }
.mgrp .mlist-h { background: none; border: 0; padding: 0 2px 10px; }
.mgrp .mlist-h h2 { font-size: 20px; letter-spacing: -.01em; }
.mgrp .mlist-h p { font-size: 14px; }
.mgrp .mrow:first-child { border-top: 0; }

/* accounts */
.acct-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px; padding: 6px 14px 6px 11px; font-weight: 600; font-size: 14px; flex: none; }
.acct-btn:hover { border-color: var(--accent); color: var(--accent); }
.acct-btn.in { padding: 0; border: 0; background: none; position: relative; }
.acct-av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-grid; place-items: center; font-weight: 700; font-size: 15px; }
.acct-av.lg { width: 46px; height: 46px; font-size: 19px; flex: none; }
.acct-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bg); background: var(--muted); }
.acct-dot[data-s="synced"] { background: var(--good); }
.acct-dot[data-s="syncing"] { background: var(--warn); }
.acct-dot[data-s="error"], .acct-dot[data-s="offline"] { background: var(--bad); }
.acct-dlg { width: min(400px, calc(100vw - 32px)); padding: 24px; }
.acct-dlg h3 { font-size: 21px; margin: 0 0 2px; }
.acct-dlg > .sub { margin: 0 0 16px; font-size: 14px; }
.dlg-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; }
.dlg-x:hover { background: var(--surface-2); color: var(--ink); }
.btn.soc { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; font-weight: 600; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct-form { display: flex; flex-direction: column; gap: 12px; }
.acct-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.acct-form .field { width: 100%; box-sizing: border-box; }
.acct-links { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.acct-err { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 12px; }
.acct-ok { background: var(--good-soft); color: var(--good); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 12px; }
.acct-who { display: flex; gap: 12px; align-items: center; margin: 4px 30px 12px 0; }
.acct-who b { display: block; font-size: 16px; }
.acct-who div span { color: var(--muted); font-size: 14px; word-break: break-all; }
.acct-st { font-size: 14px; margin: 0; color: var(--good); }
.acct-st[data-s="error"], .acct-st[data-s="offline"] { color: var(--bad); }
.acct-st[data-s="syncing"] { color: var(--muted); }
@media (max-width: 720px) { .acct-btn span:not(.acct-av):not(.acct-dot) { display: none; } .acct-btn { padding: 7px 9px; } }

/* plans */
.nav-up { flex: none; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13.5px; color: #3b2a00; background: linear-gradient(135deg, #ffd65a, #ffb23f); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.nav-up:hover { filter: brightness(1.05); }
.mrow.locked .mrow-t { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.ptag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff3cf; color: #7a5300; }
[data-theme="dark"] .ptag { background: #3d3111; color: #ffd65a; }
.btn.up { display: inline-flex; align-items: center; gap: 6px; color: #7a5300; border-color: #f2c14e; background: #fff8e1; }
[data-theme="dark"] .btn.up { color: #ffd65a; background: #2e2610; border-color: #6b561f; }
.plan-dlg { width: min(560px, calc(100vw - 32px)); padding: 24px; }
.plan-dlg h3 { margin: 0 30px 14px 0; font-size: 20px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.plan { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.plan.hi { border-color: var(--accent); background: var(--accent-soft); }
.plan > b { font-size: 15px; }
.pp { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pp small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 7px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 2px; color: var(--good); }
a.btn.block { display: block; text-align: center; text-decoration: none; }
.acct-plan { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; }
.acct-plan > span { color: var(--muted); }
.acct-plan .btn { margin-left: auto; text-decoration: none; }
.plan-tag { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); }
.plan-tag.premium { background: #fff3cf; color: #7a5300; }
.plan-tag.admin { background: var(--accent); color: var(--on-accent); }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin: 8px 0; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .nav-up { padding: 6px 10px; font-size: 12.5px; } }

/* ---------- footer ---------- */
.site-ft { border-top: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
.ft-in { max-width: 1080px; margin: 0 auto; padding: 36px 24px 22px; }
.ft-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.ft-brand { font-weight: 800; font-size: 18px; color: var(--accent); }
.ft-about p { color: var(--muted); font-size: 14px; max-width: 40ch; margin: 8px 0 0; }
.ft-col h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 2px 0 12px; font-weight: 600; }
.ft-col button { display: block; background: none; border: 0; padding: 0; margin: 0 0 10px; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; }
.ft-col button:hover { color: var(--accent); }
.ft-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 720px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-about { grid-column: 1 / -1; } }
body.in-exam .site-ft { display: none; }

/* ---------- legal pages ---------- */
.legal .lg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.legal .lg-tabs button { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.legal .lg-tabs button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.lg-doc { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px; }
.lg-doc h1 { margin: 0 0 2px; font-size: 28px; }
.lg-doc h2 { font-size: 18px; margin: 26px 0 8px; }
.lg-doc p, .lg-doc li { color: var(--ink-2); font-size: 15px; }
.lg-doc ul { padding-left: 20px; }
.lg-doc li { margin-bottom: 6px; }
.lg-doc a { color: var(--accent); }
.lg-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 10px 0; }
.lg-dl dt { color: var(--muted); font-weight: 600; }
.lg-dl dd { margin: 0; }
.ph { background: #FFE58A; color: #3A2E00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
@media (max-width: 600px) { .lg-doc { padding: 22px 18px; } .lg-dl { grid-template-columns: 1fr; } }

/* upgrade consent tick box */
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 14px 0 12px; text-align: left; cursor: pointer; }
.chk input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }

/* brand + motto */
.brand .bn2 { font-weight: 600; color: var(--muted); }
@media (max-width: 560px) { .brand .bn2 { display: none; } }
.motto { font-style: italic; color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.ft-motto { font-style: italic; color: var(--ink-2); font-size: 14px; margin: 6px 0 0; }

/* fractional exponents, e.g. x to the 1/3 */
sup:has(> .fr) { font-size: .68em; vertical-align: baseline; line-height: 1; }
sup > .fr { font-size: 1em; margin: 0 1px; vertical-align: baseline; position: relative; top: -.7em; }
.fr .fr { font-size: .85em; }

/* home page headline numbers */
.bigstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 22px; }
.bigstats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; }
.bigstats b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; }
.bigstats span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.4; }
@media (max-width: 820px) { .bigstats { grid-template-columns: 1fr 1fr; } .bigstats b { font-size: 28px; } }

/* ---------- landing hero ---------- */
.lp-hero { text-align: center; padding: 64px 0 10px; }
.lp-eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 20px; }
.lp-h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -.015em; margin: 0 auto 22px; color: var(--ink); }
.lp-h1 > span { display: block; }
@media (min-width: 821px) { .lp-h1 > span, .lp-h1 em { white-space: nowrap; } }
.lp-h1 em { display: block; font-style: italic; color: var(--accent); }
.lp-sub { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin: 0 auto 30px; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta .btn { border-radius: 999px; padding: 13px 26px; }
.lp-note { color: var(--muted); font-size: 14.5px; margin: 16px 0 0; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 780px; margin: 46px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.lp-stats b { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--ink); }
.lp-stats span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.lp-hero > * { animation: lpIn .8s cubic-bezier(.2,.7,.2,1) both; }
.lp-hero > :nth-child(2) { animation-delay: .08s; } .lp-hero > :nth-child(3) { animation-delay: .16s; }
.lp-hero > :nth-child(4) { animation-delay: .24s; } .lp-hero > :nth-child(5) { animation-delay: .3s; } .lp-hero > :nth-child(6) { animation-delay: .38s; }
@keyframes lpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* university marquee */
.unis { margin: 46px 0 50px; text-align: center; }
.unis-h { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 18px; }
.unis-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.unis-row { display: flex; width: max-content; animation: uniScroll 48s linear infinite; }
.unis-track:hover .unis-row { animation-play-state: paused; }
.uni { font-family: "Instrument Serif", Georgia, serif; font-size: 30px; color: var(--ink-2); opacity: .72; padding: 0 34px; white-space: nowrap; transition: opacity .2s, color .2s; }
.uni:hover { opacity: 1; color: var(--accent); }
@keyframes uniScroll { to { transform: translateX(-50%); } }
.unis-fine { font-size: 11.5px; color: var(--muted); margin: 14px 0 0; opacity: .8; }

/* try a question */
.try { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; margin: 10px 0 46px; }
.try h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 40px; margin: 0 0 10px; }
.try p { color: var(--ink-2); margin: 0 0 18px; }

/* countdown to the next SAT */
.cd { position: fixed; right: 22px; bottom: 22px; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 40px 14px 20px; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.12)); animation: lpIn .6s .5s both; }
.cd-h { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.cd b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 28px; font-variant-numeric: tabular-nums; color: var(--ink); }
.cd-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px; cursor: pointer; }
.cd-x:hover { color: var(--ink); }
body.in-exam .cd { display: none; }

@media (max-width: 820px) {
  .lp-hero { padding-top: 36px; } .lp-stats b { font-size: 34px; } .lp-stats span { font-size: 13px; }
  .try { grid-template-columns: 1fr; gap: 22px; }
  .uni { font-size: 24px; padding: 0 22px; }
  .cd { right: 10px; bottom: 10px; padding: 8px 30px 8px 12px; border-radius: 12px; } .cd-h { font-size: 10px; margin-bottom: 2px; } .cd b { font-size: 19px; }
  body:not(.in-exam) .site-ft { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .unis-row { animation-duration: 90s; } .lp-hero > *, .cd { animation: none; } }

/* university badges in the marquee */
.uni { display: inline-flex; align-items: center; gap: 12px; font-size: 27px; opacity: .85; padding: 0 30px; }
.uni-b { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 10px; background: var(--uc); color: #fff;
  font: 700 15px/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .02em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.uni:hover { opacity: 1; color: var(--ink); }
.unis { margin-bottom: 30px; }
.unis-row { animation-duration: 60s; }

/* landing sections */
.lp-sec { padding: 64px 0 10px; text-align: center; }
.lp-kick { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.lp-h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; margin: 0 auto 14px; max-width: 22ch; }
.lp-lead { color: var(--ink-2); font-size: 17.5px; max-width: 60ch; margin: 0 auto 14px; }
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; text-align: left; }
.pain > div, .vs > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 18px; }
.pain h3, .vs h3 { font-size: 17px; margin: 0 0 12px; }
.pain ul, .vs ul { margin: 0; padding: 0; list-style: none; }
.pain li, .vs li { position: relative; padding: 0 0 10px 24px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.pain li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #E0654F; opacity: .85; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; text-align: left; max-width: 900px; margin-left: auto; margin-right: auto; }
.vs-old li::before { content: '×'; position: absolute; left: 3px; top: -1px; color: var(--muted); font-weight: 700; }
.vs-old { opacity: .85; }
.vs-new { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent), 0 14px 34px rgba(47, 75, 216, .12); }
.vs-new h3 { color: var(--accent); }
.vs-new li::before { content: '✓'; position: absolute; left: 2px; top: -1px; color: var(--accent); font-weight: 800; }
.feat { max-width: 880px; margin: 30px auto 0; text-align: left; }
.feat-g { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 26px 0 6px; }
.feat-i { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.feat-i > span { font-family: "Instrument Serif", Georgia, serif; font-size: 40px; line-height: 1; color: var(--accent); }
.feat-i h3 { font-size: 18px; margin: 2px 0 6px; }
.feat-i p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.trust { max-width: 760px; margin: 0 auto; }
.lp-final { text-align: center; margin: 70px 0 40px; padding: 54px 24px; border-radius: 26px; background: var(--accent-soft); }
@media (max-width: 820px) {
  .pain, .vs { grid-template-columns: 1fr; }
  .lp-sec { padding-top: 46px; }
  .feat-i { grid-template-columns: 48px 1fr; gap: 12px; } .feat-i > span { font-size: 30px; }
  .uni { font-size: 21px; padding: 0 18px; gap: 9px; } .uni-b { min-width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
}

/* plan comparison: crosses for what Free is missing */
.plan li.no { color: var(--muted); }
.plan li.no svg { color: #D2564A; opacity: .9; }
.plan li.no span { text-decoration: line-through; text-decoration-color: rgba(127,127,127,.45); }
.plan.hi li svg { color: var(--accent); }
.plan-dlg { width: min(640px, 94vw); }

/* FAQ */
.faq { max-width: 900px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-i { flex: none; width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; transition: transform .2s; }
.faq-i::before { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translate(-50%, -70%) rotate(45deg); }
.faq details[open] .faq-i { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.faq summary:hover { color: var(--accent); }
