/* Perfect7 exam platforms — shared, dependency-free design system. */
svg { width: 20px; height: 20px; flex-shrink: 0; }
:root {
  color-scheme: light;
  --ink: #15243c;
  --ink-deep: #0e192b;
  --accent: #c84932;
  --accent-bright: #ff9978;
  --accent-soft: #fff0e9;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: #f3f5f8;
  --muted: #58677c;
  --line: #dce2e9;
  --line-strong: #b9c5d3;
  --hero-ink: #17263c;
  --success: #176849;
  --success-soft: #e9f6ef;
  --error: #a82f37;
  --error-soft: #fff0f1;
  --gold: #93641c;
  --gold-soft: #fff5dc;
  --shadow: 0 16px 44px -28px #1b2e4b55;
  --radius: 18px;
  --small-radius: 11px;
}

body[data-exam="gre"] {
  --ink: #15243c;
  --ink-deep: #0e192b;
  --accent: #c84932;
  --accent-bright: #ff9978;
  --accent-soft: #fff0e9;
  --paper: #fbfaf7;
  --hero-ink: #17263c;
}

body[data-exam="gate"] {
  --ink: #14303c;
  --ink-deep: #09222d;
  --accent: #087b72;
  --accent-bright: #75e8d5;
  --accent-soft: #e9f7f3;
  --paper: #f7faf9;
  --surface-alt: #edf4f3;
  --muted: #526e78;
  --line: #d7e4e4;
  --line-strong: #a5c1c3;
  --hero-ink: #102f3b;
}

body[data-exam="gmat"] {
  --ink: #1b2b48;
  --ink-deep: #101b33;
  --accent: #6651b8;
  --accent-bright: #c2b2ff;
  --accent-soft: #f0edfc;
  --paper: #faf9fc;
  --surface-alt: #f0f1f8;
  --muted: #626a81;
  --line: #dfe1ed;
  --line-strong: #b7bdd5;
  --hero-ink: #1c2848;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-kerning: normal; }
button, input, textarea, select { font: inherit; }
button, [type="button"], [type="submit"], summary { cursor: pointer; }
button { color: inherit; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
button:disabled { opacity: .62; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: white; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.045em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.5vw, 3.8rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.7rem, 2.7vw, 2.45rem); margin-bottom: 16px; }
h3 { font-size: 1.22rem; letter-spacing: -.025em; margin-bottom: 12px; }
h4 { font-size: 1rem; letter-spacing: -.015em; margin-bottom: 10px; }
p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 7px; }
strong { font-weight: 700; }
small { font-size: .82rem; }
em { color: var(--accent); font-style: normal; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 10px 18px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* Masthead */
.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 240px; max-height: 63px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { position: relative; padding-block: 26px; color: var(--ink); font-weight: 650; font-size: .89rem; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"], .nav a.active { color: var(--accent); }
.nav a[aria-current="page"]::after, .nav a.active::after { position: absolute; content: ""; bottom: 14px; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.header-cta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta > a:not(.button) { color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 650; }
.menu-toggle { display: none; min-height: 42px; min-width: 42px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; font-size: .85rem; font-weight: 700; }

/* Reusable controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 21px; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 9px; font-size: .92rem; font-weight: 700; line-height: 1.35; text-decoration: none; text-align: center; box-shadow: 0 5px 14px -10px var(--ink); transition: background-color .16s, border-color .16s, transform .16s; }
.button:hover { background: var(--ink-deep); border-color: var(--ink-deep); text-decoration: none; transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); box-shadow: none; }
.button.secondary:hover { border-color: var(--accent); background: var(--accent-soft); }
.button.light { color: var(--ink-deep); background: #fff; border-color: #fff; }
.button.light:hover { background: #edf2fa; border-color: #edf2fa; }
.button.small { min-height: 38px; padding: 8px 14px; font-size: .8rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .92rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.badge, .status, .pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 6px; padding: 4px 9px; font-size: .69rem; line-height: 1.5; font-weight: 700; letter-spacing: .025em; }
.badge { color: var(--accent); background: var(--accent-soft); }
.status { color: #206246; background: #e7f5ed; }
.status.pending, .status.preview { color: #755513; background: var(--gold-soft); }
.pill { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--line); }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; color: var(--accent); background: var(--accent-soft); border-radius: 11px; font-size: 1.2rem; font-weight: 700; }

/* Compact editorial landing hero */
.hero { padding: 42px 0 0; overflow: hidden; background: radial-gradient(ellipse at 0 5%, var(--accent-soft), transparent 56%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 54px; }
.hero h1 { max-width: 630px; }
.kicker, .eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.kicker::before, .eyebrow::before { content: ""; display: inline-block; flex-shrink: 0; width: 24px; height: 2px; background: currentColor; }
.lead { max-width: 610px; color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 25px; }
.subject-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 23px; }
.subject-pills > * { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); font-size: .72rem; line-height: 1.4; text-decoration: none; background: rgba(255,255,255,.55); }
.hero-visual { position: relative; isolation: isolate; overflow: hidden; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 380px; padding: 27px; background: var(--hero-ink); color: #fff; border-radius: 23px; border: 1px solid #ffffff20; box-shadow: 0 20px 36px -22px var(--ink); }
.hero-visual::before { position: absolute; z-index: -1; content: ""; width: 380px; height: 380px; border: 1px solid #ffffff0c; border-radius: 50%; right: -185px; top: -160px; box-shadow: 0 0 0 45px #ffffff04, 0 0 0 90px #ffffff03; pointer-events: none; }
.hero-visual::after { position: absolute; z-index: -1; content: ""; width: 230px; height: 230px; background: var(--accent-bright); filter: blur(100px); opacity: .13; bottom: -190px; left: 10px; pointer-events: none; }
body[data-exam="gate"] .hero-visual { background-image: linear-gradient(#86d8c809 1px, transparent 1px), linear-gradient(90deg, #86d8c809 1px, transparent 1px); background-size: 24px 24px; }
body[data-exam="gate"] .hero-visual::before { border-radius: 25px; transform: rotate(45deg); }
body[data-exam="gmat"] .hero-visual::before { right: -180px; top: -205px; border-color: #e6cf9a22; box-shadow: 0 0 0 30px #c5b3ff06, 0 0 0 60px #c5b3ff04; }
.visual-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #cfdae9; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.visual-top > span { display: inline-flex; align-items: center; gap: 7px; }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent-bright); border-radius: 50%; box-shadow: 0 0 0 4px #ffffff0b; }
.visual-title { margin: 24px 0 18px; font-size: 1.38rem; font-weight: 700; line-height: 1.3; letter-spacing: -.03em; }
.demo-question { position: relative; padding: 18px; border: 1px solid #a5b8d234; background: #ffffff08; border-radius: 11px; font-size: .92rem; line-height: 1.65; }
.demo-question p { margin-bottom: 13px; }
.demo-question strong { color: #fff; }
.demo-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.demo-option { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px; color: #dce5f0; background: #ffffff05; border: 1px solid #a5b8d234; border-radius: 7px; font-size: .79rem; line-height: 1.35; }
.demo-option.correct, .demo-option.selected { background: #ffffff10; border-color: var(--accent-bright); color: #fff; }
.demo-option > span:first-child { color: var(--accent-bright); font-size: .68rem; font-weight: 700; }
.demo-caption { margin-top: 12px; font-size: .72rem; line-height: 1.6; color: #bfcddd; }
.visual-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 17px; border-top: 1px solid #ffffff20; font-size: .72rem; color: #c5d2e1; }
.exam-stat { display: flex; align-items: baseline; gap: 7px; }
.exam-stat strong { font-size: 1.22rem; line-height: 1.2; letter-spacing: -.025em; color: #fff; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
.hero-foot > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-foot > span::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* Three clear routes; deliberately close to the hero. */
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 25px 0 34px; }
.path-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 23px 24px 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.path-card h2, .path-card h3 { font-size: 1.45rem; margin: 14px 0 9px; }
.path-card p { color: var(--muted); font-size: .85rem; line-height: 1.6; margin-bottom: 15px; max-width: 35ch; }
.path-number { color: var(--muted); font-size: .66rem; letter-spacing: .13em; font-weight: 750; text-transform: uppercase; }
.path-icon { position: absolute; right: 22px; top: 22px; display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 1rem; }
.path-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--ink); font-size: .81rem; font-weight: 750; text-decoration: none; }
.path-link:hover { color: var(--accent); }
.path-arrow { font-size: 1.1rem; color: var(--accent); }
.path-card { color: var(--ink); text-decoration: none; }
.path-card:hover { text-decoration: none; border-color: var(--accent); }
.path-card h2 { font-size: 1.65rem; }
.path-card h3 { font-size: 1.05rem; margin: 0 0 10px; letter-spacing: -.02em; }
.path-number { padding-right: 30px; }
.path-arrow { display: none; }
.demo-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
.demo-option.illustrative-answer { border-color: var(--accent-bright); background: #ffffff10; color: white; }
.demo-caption a { color: var(--accent-bright); }
.hero-visual .eyebrow { color: var(--accent-bright); margin-top: 0; }
.exam-stat { flex-direction: column; align-items: flex-start; gap: 4px; }
.split > .feature-grid { grid-template-columns: 1fr; gap: 24px; }
.split > .feature-grid .feature { display: flex; gap: 18px; }
.split > .feature-grid .feature .icon { margin: 0; }
.section-head { display: block; max-width: 880px; }
.section-head p { margin-bottom: 12px; max-width: 760px; }
.section-head h2 { margin-bottom: 18px; }

/* Section rhythms and generic components */
.section { padding: 58px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { max-width: 520px; margin-bottom: 0; color: var(--muted); font-size: .91rem; }
.section-intro { max-width: 740px; margin-bottom: 27px; color: var(--muted); font-size: .98rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel p, .panel li { color: var(--muted); font-size: .9rem; }
.panel > .button { margin-top: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature { min-width: 0; }
.feature .icon { margin-bottom: 16px; }
.feature h3 { font-size: 1.09rem; }
.feature p { color: var(--muted); font-size: .88rem; }
.note { margin-block: 18px; color: var(--muted); font-size: .77rem; line-height: 1.65; }
.notice { padding: 15px 18px; margin-block: 19px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 9px 9px 0; background: var(--accent-soft); color: var(--ink); font-size: .84rem; line-height: 1.65; }
.notice p { margin-bottom: 8px; }
.launch-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 31px 34px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.launch-band h2, .launch-band h3 { color: #fff; margin-bottom: 9px; }
.launch-band p { max-width: 680px; color: #d0dcec; font-size: .9rem; }
.launch-band .button { flex-shrink: 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
details { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 17px 19px; }
summary { font-size: .92rem; line-height: 1.5; font-weight: 700; padding-right: 12px; }
summary::marker { color: var(--accent); }
details[open] summary { margin-bottom: 12px; }
details p, details li { color: var(--muted); font-size: .86rem; }

/* Interior catalogues */
.page-intro { padding: 34px 0 25px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, var(--accent-soft), transparent 78%); }
.page-intro h1 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 12px; }
.page-intro .lead { max-width: 800px; margin-bottom: 0; font-size: .96rem; }
.page-intro .kicker { margin-bottom: 12px; }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; align-items: start; }
.track-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.track-card h2 { font-size: 1.45rem; margin-bottom: 11px; }
.track-card > p { color: var(--muted); font-size: .87rem; }
.track-card .icon { margin-bottom: 17px; }
.topic-list { padding: 0; margin: 22px 0 0; list-style: none; }
.topic-list li { margin: 0; border-top: 1px solid var(--line); }
.topic-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--ink); font-size: .84rem; line-height: 1.45; font-weight: 600; text-decoration: none; }
.topic-list a:hover { color: var(--accent); }
.topic-list a::after { content: "↗"; color: var(--accent); flex-shrink: 0; }
.topic-list .muted { font-size: .75rem; font-weight: 400; }
.branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.branch-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.branch-card h3 { margin-top: 13px; }
.branch-card p { color: var(--muted); font-size: .84rem; }
.branch-card .button, .branch-card .text-link { margin-top: auto; }
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mock-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.mock-card h2, .mock-card h3 { font-size: 1.35rem; margin-top: 17px; margin-bottom: 12px; }
.mock-card p { color: var(--muted); font-size: .86rem; }
.mock-card .subject-pills { margin: 0 0 19px; }
.mock-card .button { margin-top: auto; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.format-table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
.format-table th { background: var(--surface-alt); color: var(--ink); font-size: .72rem; font-weight: 750; letter-spacing: .035em; }
.format-table th, .format-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.format-table td { color: var(--muted); }
.format-table tr:last-child td { border-bottom: 0; }
.format-table td:first-child { color: var(--ink); font-weight: 650; }

/* Question experience */
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 22px; align-items: start; padding-block: 28px 50px; }
.question-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.question-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.question-toolbar .badge, .question-toolbar .pill { font-size: .68rem; }
.question-text { color: var(--ink); font-size: 1.04rem; line-height: 1.8; margin-bottom: 24px; overflow-wrap: anywhere; }
.question-text h2, .question-text h3 { font-size: 1.2rem; line-height: 1.5; }
.question-text p + p { margin-top: 16px; }
.question-text blockquote { padding: 17px 20px; margin: 20px 0; border-left: 3px solid var(--accent); background: var(--surface-alt); color: var(--ink); font-size: .95rem; }
.question-options { display: grid; gap: 10px; }
.answer-option { position: relative; display: flex; align-items: flex-start; width: 100%; gap: 12px; padding: 14px 16px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; font-size: .9rem; line-height: 1.6; transition: background-color .15s, border-color .15s; }
.answer-option:not(:disabled):not(.disabled):hover { background: var(--accent-soft); border-color: var(--accent); }
.answer-index { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; margin-top: -1px; background: var(--surface-alt); border-radius: 7px; color: var(--muted); font-size: .74rem; font-weight: 750; }
.answer-option.selected { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.answer-option.correct { background: var(--success-soft); border-color: #60a485; color: #15563e; box-shadow: inset 0 0 0 1px #60a485; }
.answer-option.wrong { background: var(--error-soft); border-color: #c96f76; color: #8f2830; box-shadow: inset 0 0 0 1px #c96f76; }
.answer-option.correct .answer-index { color: #fff; background: var(--success); }
.answer-option.wrong .answer-index { color: #fff; background: var(--error); }
.answer-option:disabled, .answer-option.disabled { opacity: 1; cursor: default; }
.feedback { margin-top: 19px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; font-size: .88rem; line-height: 1.7; }
.feedback h3, .feedback strong { font-size: .96rem; }
.feedback p { margin-bottom: 9px; }
.feedback.success { background: var(--success-soft); border-color: #9bcbb3; color: #15563e; }
.feedback.error { background: var(--error-soft); border-color: #e2b0b5; color: #8f2830; }
.question-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.question-nav .muted { font-size: .77rem; }
.question-navigator { position: sticky; top: 22px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.question-navigator h2, .question-navigator h3 { font-size: 1.1rem; margin-bottom: 10px; }
.question-navigator > p { font-size: .8rem; color: var(--muted); }
.navigator-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 20px; max-height: 328px; overflow-y: auto; padding: 4px; margin-inline: -4px; scrollbar-width: thin; }
.navigator-grid button { position: relative; display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 36px; padding: 6px 2px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .76rem; font-weight: 700; line-height: 1; }
.navigator-grid button:hover { border-color: var(--accent); color: var(--accent); }
.navigator-grid button.answered { color: #294d79; background: #e8effb; border-color: #b8cce8; }
.navigator-grid button.correct { color: #15563e; background: var(--success-soft); border-color: #85bba0; }
.navigator-grid button.wrong { color: #8f2830; background: var(--error-soft); border-color: #d99ba2; }
.navigator-grid button.marked { border-color: #bc8a2c; }
.navigator-grid button.marked::after { content: "★"; position: absolute; top: 1px; right: 2px; color: #9b680b; font-size: 8px; line-height: 1; }
.navigator-grid button.current { outline: 2px solid var(--accent); outline-offset: 1px; color: var(--ink); font-weight: 800; }
.navigator-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; line-height: 1.4; }
.navigator-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.navigator-legend i { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface-alt); }
.navigator-legend .correct i, .navigator-legend i.correct { background: var(--success-soft); border-color: #60a485; }
.navigator-legend .wrong i, .navigator-legend i.wrong { background: var(--error-soft); border-color: #c96f76; }
.navigator-legend .marked i, .navigator-legend i.marked { background: var(--gold-soft); border-color: #bc8a2c; }
.navigator-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: .75rem; }
.navigator-stat strong { color: var(--ink); font-size: .9rem; }
.timer { padding: 13px 16px; margin: 0 0 19px; color: var(--ink); background: var(--surface-alt); border: 1px solid var(--line); border-radius: 10px; font-size: 1.65rem; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.timer-label { display: block; margin-top: 5px; color: var(--muted); font-size: .65rem; line-height: 1.5; letter-spacing: .01em; font-weight: 500; }
.writing-box, .numeric-input { width: 100%; min-height: 48px; padding: 12px 15px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); }
.writing-box { min-height: 260px; line-height: 1.8; resize: vertical; }
.numeric-input { max-width: 300px; }
.fieldset { display: grid; gap: 9px; border: 0; padding: 0; margin: 18px 0; }
.fieldset label, .fieldset legend { font-size: .86rem; font-weight: 650; }
.fieldset select, .fieldset input { width: 100%; min-height: 45px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface); }
.bookmark { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: .75rem; font-weight: 650; }
.bookmark.active { color: #795111; background: var(--gold-soft); border-color: #b58b3c; }

/* Review, editorial and source pages */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.review-card h3 { font-size: 1.08rem; }
.review-card p { font-size: .85rem; color: var(--muted); }
.empty-state { padding: 36px 30px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty-state .icon { margin: 0 auto 19px; }
.empty-state h2, .empty-state h3 { font-size: 1.4rem; }
.empty-state p { max-width: 550px; margin-inline: auto; color: var(--muted); font-size: .91rem; }
.score-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; margin-bottom: 26px; background: var(--line); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.score-strip > * { padding: 18px 20px; background: var(--surface); }
.score-strip strong { display: block; margin-bottom: 5px; font-size: 1.6rem; font-weight: 750; line-height: 1.3; letter-spacing: -.035em; }
.score-strip span, .score-strip small { color: var(--muted); font-size: .73rem; }
.review-item { padding: 24px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.review-item p { font-size: .9rem; line-height: 1.75; }
.review-item .badge { margin-bottom: 13px; }
.article { max-width: 820px; color: var(--muted); font-size: .97rem; line-height: 1.85; }
.article h2, .article h3 { color: var(--ink); margin-top: 32px; line-height: 1.3; }
.article h2 { font-size: 1.65rem; }
.article h3 { font-size: 1.2rem; }
.article p + ul, .article p + ol { margin-top: -5px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article-grid > aside { position: sticky; top: 24px; }
.source-links { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 21px 0; font-size: .79rem; }
.source-links a { font-weight: 600; }

/* Footer */
.site-footer { padding: 38px 0 22px; margin-top: 25px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; }
.footer-brand img { width: 225px; margin-bottom: 16px; }
.footer-brand p { max-width: 365px; color: var(--muted); font-size: .8rem; line-height: 1.75; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links h3, .footer-links strong { color: var(--ink); font-size: .75rem; letter-spacing: .035em; margin-bottom: 3px; }
.footer-links a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.independence { display: flex; justify-content: space-between; gap: 24px; padding-top: 19px; margin-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; line-height: 1.75; }
.independence p { max-width: 850px; }
.independence p:last-child { flex-shrink: 0; }
.toast { position: fixed; z-index: 80; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid #ffffff2b; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: 0 8px 30px #14243b30; font-size: .85rem; text-align: center; }

@media (min-width: 1440px) {
  .hero { padding-top: 48px; }
  .hero-grid { gap: 65px; }
  .hero-visual { min-height: 390px; }
}

@media (max-width: 1120px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { gap: 20px; min-height: 80px; }
  .brand img { width: 214px; }
  .nav { gap: 18px; }
  .nav a { font-size: .8rem; }
  .header-cta .button { padding-inline: 14px; font-size: .8rem; }
  .hero-grid { gap: 30px; }
  .hero-visual { padding: 22px; min-height: 370px; }
  .hero h1 { font-size: 3rem; }
  .hero .lead { font-size: .96rem; }
  .visual-title { font-size: 1.2rem; }
  .path-card { padding: 21px; }
  .path-card h2, .path-card h3 { font-size: 1.28rem; }
  .track-card { padding: 21px; }
  .player-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .question-panel { padding: 23px; }
  .question-navigator { padding: 18px; }
}

@media (max-width: 940px) {
  .header-inner { gap: 15px; flex-wrap: wrap; padding-block: 12px; min-height: 76px; }
  .brand img { width: 226px; max-height: 54px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .header-cta { margin-left: auto; }
  .menu-toggle + .header-cta { margin-left: 0; }
  .nav { display: none; order: 5; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 2px 22px; padding-top: 6px; border-top: 1px solid var(--line); }
  .nav.open, .nav.is-open, .nav[data-open="true"], .site-header.menu-open .nav, .menu-toggle[aria-expanded="true"] ~ .nav { display: flex; }
  .nav a { padding-block: 11px; font-size: .88rem; }
  .nav a[aria-current="page"]::after, .nav a.active::after { bottom: 5px; }
  .hero { padding-top: 31px; }
  .hero-grid { gap: 23px; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
  .hero-visual { padding: 19px; min-height: 375px; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-actions .button { font-size: .81rem; padding-inline: 15px; }
  .demo-question { padding: 13px; font-size: .84rem; }
  .demo-options { gap: 6px; }
  .demo-option { font-size: .74rem; padding: 7px; }
  .subject-pills { margin-top: 18px; }
  .path-grid { gap: 12px; }
  .path-card { padding: 20px 17px; }
  .path-card p { font-size: .8rem; }
  .path-icon { right: 15px; top: 16px; width: 26px; height: 26px; }
  .path-number { font-size: .58rem; }
  .path-link { font-size: .76rem; }
  .section { padding-block: 44px; }
  .section-head { display: block; }
  .section-head p { margin-top: 13px; }
  .track-grid { gap: 14px; }
  .track-card { padding: 20px 17px; }
  .track-card h2 { font-size: 1.23rem; }
  .topic-list a { font-size: .78rem; }
  .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { gap: 18px; }
  .feature p { font-size: .83rem; }
  .article-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 25px; }
  .review-grid { gap: 12px; }
  .review-card { padding: 20px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 25px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 205px; max-height: 47px; }
  .header-cta { display: none; }
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: 570px; font-size: clamp(2.45rem, 8.5vw, 3.6rem); }
  .hero .lead { max-width: 610px; font-size: .97rem; }
  .kicker, .eyebrow { font-size: .62rem; margin-bottom: 14px; }
  .hero-actions .button { min-height: 45px; font-size: .86rem; padding-inline: 18px; }
  .hero-visual { min-height: 0; padding: 23px; border-radius: 17px; }
  .visual-title { margin-top: 20px; font-size: 1.3rem; }
  .demo-question { font-size: .9rem; padding: 17px; }
  .demo-option { font-size: .78rem; padding: 9px; }
  .hero-foot { margin-top: 24px; gap: 8px 18px; font-size: .7rem; }
  .path-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; }
  .path-card { padding: 20px 22px; }
  .path-card h2, .path-card h3 { margin-top: 12px; font-size: 1.35rem; }
  .path-card p { max-width: none; font-size: .86rem; }
  .path-number { font-size: .64rem; }
  .path-icon { right: 23px; top: 20px; width: 30px; height: 30px; }
  .path-link { font-size: .82rem; }
  .section { padding-block: 37px; }
  .section-head { margin-bottom: 22px; }
  .section-intro { font-size: .9rem; }
  .split, .faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature { position: relative; padding-left: 58px; }
  .feature .icon { position: absolute; top: 0; left: 0; }
  .feature h3 { margin-bottom: 8px; }
  .feature p { font-size: .87rem; }
  .panel { padding: 23px; }
  .launch-band { flex-direction: column; align-items: flex-start; padding: 26px; gap: 20px; }
  .launch-band h2 { font-size: 1.7rem; }
  .page-intro { padding-block: 27px 23px; }
  .page-intro h1 { font-size: 2.1rem; }
  .page-intro .lead { font-size: .9rem; }
  .track-grid { grid-template-columns: 1fr; gap: 17px; }
  .track-card { padding: 23px; }
  .track-card h2 { font-size: 1.5rem; }
  .topic-list a { font-size: .86rem; }
  .mock-grid { grid-template-columns: 1fr; gap: 16px; }
  .mock-card { padding: 24px; }
  .mock-card h2, .mock-card h3 { font-size: 1.4rem; }
  .format-table { min-width: 530px; }
  .format-table th, .format-table td { padding: 12px 14px; }
  .player-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .question-panel { padding: 22px; }
  .question-navigator { position: static; padding: 21px; }
  .navigator-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); max-height: 212px; }
  .navigator-grid button { min-height: 38px; }
  .navigator-legend { font-size: .71rem; }
  .timer { max-width: 260px; }
  .review-grid { grid-template-columns: 1fr; gap: 15px; }
  .review-card { padding: 23px; }
  .score-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-strip > * { padding: 16px; }
  .article-grid { grid-template-columns: 1fr; gap: 25px; }
  .article-grid > aside { position: static; }
  .article { font-size: .92rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 215px; }
  .footer-brand p { max-width: 560px; }
  .independence { flex-direction: column; gap: 12px; }
  .independence p { margin-bottom: 0; }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 28px); }
  .brand img { width: 190px; }
  .menu-toggle { padding-inline: 10px; font-size: .78rem; }
  .hero h1 { font-size: 2.45rem; }
  .hero-visual { padding: 18px; }
  .visual-top { font-size: .59rem; letter-spacing: .065em; }
  .visual-title { font-size: 1.18rem; }
  .demo-options { grid-template-columns: 1fr 1fr; }
  .demo-question { padding: 13px; }
  .demo-option { padding: 8px 7px; font-size: .72rem; }
  .visual-bottom { font-size: .65rem; }
  .exam-stat strong { font-size: 1.05rem; }
  .subject-pills > * { font-size: .65rem; padding: 5px 8px; }
  .branch-grid { grid-template-columns: 1fr; }
  .question-panel { padding: 18px; }
  .question-text { font-size: .96rem; }
  .question-toolbar { gap: 10px; }
  .answer-option { padding: 12px; gap: 10px; font-size: .85rem; }
  .question-nav .button { font-size: .8rem; padding-inline: 13px; }
  .navigator-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .question-nav { gap: 9px; }
  .question-nav > .muted { width: 100%; order: 3; text-align: center; }
  .writing-box { min-height: 220px; }
  .launch-band { padding: 22px; }
  .empty-state { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .button:hover { transform: none; }
}

@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .hero-visual, .question-navigator, .question-nav, .menu-toggle, .toast, .skip-link { display: none !important; }
  .wrap { width: 100%; }
  .section, .page-intro { padding-block: 18px; }
  .player-layout, .article-grid { display: block; }
  .panel, .question-panel, .mock-card, .track-card { box-shadow: none; break-inside: avoid; }
  a { color: inherit; }
}
