/* Passmark design kit */
:root {
  --ink: #0E0E0E;
  --white: #FFFFFF;
  --sand: #F4F2EE;
  --stone: #E7E4DF;
  --line: #D6D2CB;
  --muted: #5C5852;
  --body: #3B3833;
  --mint: #CDEFD0;
  --mint-soft: #F1FAF2;
  --green: #1F7A3D;
  --red: #B42318;
  --red-soft: #FDECEA;
  --mark: #FFF4D6;
  --teal: #0098AE;
  --tomato: #C2412D;
  --sage: #B9D3AA;
  --plum: #3D1F73;
  --plum-2: #52308F;
  --plum-text: #DCD0F2;
  --lilac: #E8DDF8;
  --seafoam: #BFE7DD;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', Consolas, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: #3A3A3A; }
button, input { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--sand); border: 1px solid var(--stone); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--ink); color: #F4F2EE; padding: 14px 18px; overflow-x: auto; border-radius: 10px; font-size: 14px; }
pre code { background: none; border: none; padding: 0; color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono-label { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.h2 { margin: 0; font-size: clamp(30px, 3.5vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.h2-lg { margin: 0; font-size: clamp(36px, 4.5vw, 56px); font-weight: 600; letter-spacing: -0.032em; line-height: 1.05; }
.h-caps { margin: 0; font-size: clamp(32px, 4.5vw, 56px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.027em; line-height: 1; }
.lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 560px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 16px var(--sans); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2B2B2B; color: var(--white); }
.btn-dark:disabled { background: #8A857D; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #B6E6BA; color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.btn-md { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.link-arrow { font-weight: 600; font-size: 15px; text-underline-offset: 4px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip-mint { background: var(--mint); border-color: var(--mint); font-weight: 600; }
.chip-dark { background: var(--ink); color: var(--white); }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill-pass { background: var(--mint); color: var(--ink); }
.pill-fail { background: var(--red-soft); color: var(--red); }
.pill-white { background: var(--white); color: var(--ink); }
.pill-green { background: var(--green); color: var(--white); }
.pill-red { background: var(--red); color: var(--white); }
.pill-stone { background: var(--stone); color: var(--ink); }
.pill-mark { background: var(--mark); color: var(--ink); }

/* ---------- Ticker & header ---------- */
.ticker { height: 44px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; gap: 48px; padding: 0 24px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; }
.site-header { border-bottom: 1px solid var(--stone); background: var(--white); }
.nav { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.brand { text-decoration: none; font-size: 30px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tag-new { background: var(--mint); padding: 6px 10px; border-radius: 6px; font-weight: 600; }
.nav-spacer { flex-grow: 1; }
.search-pill { height: 44px; padding: 0 18px; border: 1px solid var(--green); border-radius: 999px; background: var(--mint-soft); display: flex; align-items: center; gap: 8px; }
.search-pill input { border: none; background: transparent; outline: none; font-size: 15px; font-weight: 500; width: 170px; color: var(--ink); }
.search-pill input::placeholder { color: var(--ink); }
.search-pill:focus-within { box-shadow: 0 0 0 3px rgba(31, 122, 61, .2); }

/* ---------- Exam packs ---------- */
.pack { position: absolute; width: 210px; height: 300px; border-radius: 12px; background: var(--t-bg); color: var(--t-fg); box-shadow: 0 30px 50px rgba(14, 14, 14, .24); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.pack-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.pack-code { font-size: 60px; font-weight: 800; letter-spacing: -0.05em; line-height: .88; }
.pack-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pack-sub { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.1; }
.pack-seal { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--t-seal); color: var(--t-seal-fg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.mini-card { position: absolute; width: 260px; background: var(--white); border-radius: 12px; box-shadow: 0 16px 36px rgba(14, 14, 14, .16); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transform: rotate(3deg); }
.mini-card .mono-label { font-size: 11px; }
.mini-answer { border: 2px solid var(--green); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mini-answer svg { flex-shrink: 0; color: var(--green); }

/* ---------- Hero ---------- */
.hero { background: var(--sand); overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-copy { flex: 1 1 460px; min-width: 0; padding: 72px 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.034em; }
.proof { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.proof-dots { display: flex; gap: 3px; }
.proof-dots span { width: 18px; height: 18px; border-radius: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { flex: 1 1 520px; min-width: 0; height: 560px; position: relative; }
.hero-art .p1 { left: 4%; top: 120px; transform: rotate(-14deg); }
.hero-art .p2 { left: 38%; top: 30px; transform: rotate(9deg); }
.hero-art .p3 { left: 66%; top: 210px; transform: rotate(-6deg); }
.hero-art .mini-card { left: 22%; top: 400px; }

/* ---------- Home sections ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.tiles-section { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 36px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { height: 400px; border-radius: 12px; background: var(--t-bg); color: var(--t-fg); position: relative; overflow: hidden; display: block; text-decoration: none; transition: transform .2s; }
a.tile:hover { color: var(--t-fg); transform: translateY(-4px); }
.tile-label { position: absolute; left: 20px; top: 18px; right: 20px; font-size: 22px; font-weight: 600; line-height: 1.2; }
.tile-ghost { position: absolute; right: -16px; bottom: 40px; font-size: 190px; font-weight: 800; letter-spacing: -0.065em; line-height: 1; color: var(--t-ghost); pointer-events: none; }
.tile-bar { position: absolute; left: 20px; right: 20px; bottom: 20px; background: var(--white); color: var(--ink); border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.tile-soon { --t-bg: var(--stone); --t-fg: var(--ink); }
.tile-dash { position: absolute; left: 50%; top: 52%; width: 120px; height: 168px; margin: -84px 0 0 -60px; border-radius: 10px; border: 2px dashed #8A857D; transform: rotate(-8deg); }
.tiles-empty { padding: 32px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.covered { padding-top: 24px; padding-bottom: 88px; }
.covered-strip { border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); padding: 26px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.covered-name { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.band-sand { background: var(--sand); }
.band-plum { background: var(--plum); color: var(--white); }
.band-seafoam { background: var(--seafoam); }
.stats-band { display: flex; flex-direction: column; align-items: center; gap: 48px; text-align: center; }
.stats-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.stat-num { display: block; font-size: 88px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--plum); }
.stat-label { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.split-copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); max-width: 440px; }
.steps { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; gap: 16px; }
.step-num { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step b { display: block; font-size: 17px; margin-bottom: 4px; }
.step span.step-text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.step.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.step.active .step-num { background: var(--white); color: var(--ink); border-color: var(--white); }
.step.active span.step-text { color: var(--line); }
.feature-band { display: flex; flex-direction: column; gap: 44px; align-items: center; }
.feature-band .intro { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.feature-band .intro p { margin: 0; font-size: 18px; color: var(--plum-text); }
.feature-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--plum-2); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.feature-card > span { font-size: 20px; font-weight: 600; text-align: center; line-height: 1.3; }
.feature-ui { background: var(--lilac); color: var(--ink); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; justify-content: center; }
.fb-box { border: 2px solid var(--red); border-radius: 8px; background: var(--white); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.fb-box b { font-size: 12px; color: var(--red); }
.fb-box.ok { border-color: var(--green); }
.fb-box.ok b { color: var(--green); }
.gauge { width: 120px; height: 60px; margin: 0 auto; border-radius: 120px 120px 0 0; background: conic-gradient(from -90deg at 50% 100%, var(--plum) 0 140deg, var(--white) 140deg 180deg, transparent 180deg); position: relative; display: flex; align-items: flex-end; justify-content: center; }
.gauge::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 42px; border-radius: 84px 84px 0 0; background: var(--lilac); }
.gauge b { position: relative; font-size: 24px; }
.resume-mini { background: var(--white); border-radius: 8px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.cells-mini { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.cells-mini span { height: 14px; border-radius: 3px; background: var(--white); }
.cells-mini .on { background: var(--plum); }
.cells-mini .flag { background: #F2B33D; }
.compare-wrap { max-width: 920px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 32px; }
.compare { background: var(--white); border-radius: 12px; overflow-x: auto; }
.compare table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--stone); }
.compare tr:last-child td { border-bottom: none; }
.compare tbody th { font-weight: 600; }
.cta { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta h2 { margin: 0; font-size: clamp(40px, 5.5vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); overflow: hidden; }
.site-footer .wrap { padding-top: 64px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 88px; font-size: 15px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { color: #BDBDBD; text-decoration: none; }
.footer-cols a:hover { color: var(--white); }
.footer-about { max-width: 380px; }
.footer-about span { color: #BDBDBD; line-height: 1.6; }
.footer-mark { display: block; font-size: clamp(96px, 19vw, 280px); font-weight: 800; letter-spacing: -0.06em; line-height: .72; white-space: nowrap; user-select: none; }

/* ---------- Exam (course) page ---------- */
.course-hero .hero-copy { flex: 1 1 560px; padding: 56px 0 64px; gap: 18px; }
.course-hero .hero-copy h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.031em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.course-art { flex: 1 1 400px; min-width: 0; height: 420px; position: relative; }
.course-art .pack { width: 200px; height: 284px; }
.course-art .pack-code { font-size: 58px; }
.course-art .c1 { left: 12%; top: 70px; transform: rotate(-10deg); }
.course-art .c2 { left: 48%; top: 40px; transform: rotate(8deg); }
.course-art .c3 { left: 30%; top: 120px; transform: rotate(-2deg); }
.tabs-bar { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--stone); }
.tabs { display: flex; gap: 36px; font-size: 16px; font-weight: 500; overflow-x: auto; white-space: nowrap; }
.tab { background: none; border: none; border-bottom: 3px solid transparent; padding: 18px 0 15px; font: 500 16px var(--sans); color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab.active { border-bottom-color: var(--teal); color: var(--ink); font-weight: 600; }
.block { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 60px; }
.test-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.test-card { border: 1px solid var(--stone); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.test-card-top { height: 180px; background: var(--t-bg); color: var(--t-fg); position: relative; overflow: hidden; }
.test-card-top .pill { position: absolute; left: 20px; top: 18px; }
.test-card-ghost { position: absolute; right: 20px; bottom: -30px; font-size: 160px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--t-ghost); }
.test-card-bar { position: absolute; left: 20px; right: 140px; bottom: 22px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.test-card-bar div { height: 8px; border-radius: 999px; background: var(--white); }
.test-card-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.test-card-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.test-card-body .actions { padding-top: 8px; gap: 10px; }
.skills { scroll-margin-top: 60px; }
.skills-inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; }
.skills-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.skills-copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.skills-list { flex: 2 1 560px; min-width: 0; background: var(--white); border-radius: 12px; overflow: hidden; }
.skill-row { padding: 20px 24px; border-bottom: 1px solid var(--stone); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.skill-row:last-child { border-bottom: none; }
.skill-name { flex: 1 1 260px; font-size: 17px; font-weight: 600; }
.skill-name small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.skill-bar { flex: 0 0 160px; height: 10px; border-radius: 999px; background: var(--stone); }
.skill-bar div { height: 10px; border-radius: 999px; background: var(--ink); }
.skill-weight { font-family: var(--mono); font-size: 14px; width: 72px; text-align: right; }
.progress-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ptile { border-radius: 12px; background: var(--lilac); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.ptile.dark { background: var(--plum); color: var(--white); }
.ptile-num { font-size: 64px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.ptile-label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ptile.dark .ptile-label { color: var(--plum-text); }
.ptile.plain { background: var(--white); border: 1px solid var(--stone); justify-content: space-between; gap: 12px; }
.about-inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; }
.about-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; }
.about-copy p { margin: 0; }
.about-copy ul { margin: 0; padding-left: 20px; }
.about-list { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.about-item { background: var(--white); border-radius: 12px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; font-size: 16px; }
.about-item svg { flex-shrink: 0; color: var(--green); }
.about-item.dark { background: var(--ink); color: var(--white); }
.about-item.dark svg { color: var(--mint); }

/* ---------- Player chrome ---------- */
.pbar { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 10; }
.pbar-row { padding: 0 24px; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.pbar .brand { color: var(--white); font-size: 24px; }
.pbar-div { width: 1px; height: 26px; background: #3A3A3A; }
.pbar-title { font-size: 15px; font-weight: 600; flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar .btn-outline-light { border-color: var(--muted); border-width: 1px; }
.pline { height: 4px; background: #2A2A2A; }
.pline div { height: 4px; background: var(--mint); transition: width .2s; }

/* ---------- Start screen ---------- */
.start-hero { background: var(--sand); }
.start-inner { max-width: 920px; padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.start-inner h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.032em; line-height: 1.02; }
.resume-card { background: var(--white); border-radius: 12px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.resume-card .actions { gap: 10px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.mode-card { text-align: left; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; gap: 16px; font: inherit; }
.mode-card:hover { border-color: var(--ink); }
.mode-card.selected { background: var(--ink); color: var(--white); border-color: var(--ink); }
.mode-card .step-num { flex-shrink: 0; }
.mode-card.selected .step-num { background: var(--white); color: var(--ink); border-color: var(--white); }
.mode-card b { display: block; font-size: 19px; margin-bottom: 6px; }
.mode-card ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.mode-card.selected ul { color: var(--line); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); cursor: pointer; }
.history { overflow-x: auto; border: 1px solid var(--stone); border-radius: 12px; }
.history table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.history th, .history td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--stone); }
.history th { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--sand); }
.history tr:last-child td { border-bottom: none; }

/* ---------- Question player ---------- */
.play-layout { padding-top: 48px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.q-main { flex: 999 1 600px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 24px; }
.q-text { font-size: 21px; line-height: 1.6; letter-spacing: -0.01em; }
.q-text p { margin: 0 0 16px; }
.q-text p:last-child { margin-bottom: 0; font-weight: 600; }
.q-text ul { margin: 0 0 16px; padding-left: 24px; }
.q-text li { margin-bottom: 6px; }
.answers { display: flex; flex-direction: column; gap: 12px; }
.answer { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.answer-head { padding: 8px 18px; font-size: 13px; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.answer-row { padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; }
.answer-row[data-action] { cursor: pointer; }
.answer-row[data-action]:hover { background: var(--sand); }
.dot { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #8A857D; }
.dot.square { border-radius: 6px; }
.answer-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.answer-text { font-size: 18px; line-height: 1.5; }
.answer-expl { font-size: 16px; line-height: 1.6; color: var(--body); }
.answer.is-selected { border: 2px solid var(--ink); background: var(--sand); }
.answer.is-selected .answer-row { padding: 15px 17px; }
.answer.is-selected .dot { border: 7px solid var(--ink); }
.answer.is-selected .dot.square { border: none; background: var(--ink); }
.answer.is-correct { border: 2px solid var(--green); }
.answer.is-correct .answer-head { background: var(--green); }
.answer.is-correct .dot { border-color: var(--green); }
.answer.is-correct.picked .dot { border: 7px solid var(--green); }
.answer.is-correct.picked .dot.square { border: none; background: var(--green); }
.answer.is-incorrect { border: 2px solid var(--red); }
.answer.is-incorrect .answer-head { background: var(--red); }
.answer.is-incorrect .dot { border: 7px solid var(--red); }
.answer.is-incorrect .dot.square { border: none; background: var(--red); }
.answer.is-correct .answer-text, .answer.is-incorrect .answer-text { font-weight: 600; }
.answer.is-neutral .answer-expl { color: var(--muted); }
.why { background: var(--sand); border-radius: 12px; padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.why-title { font-size: 26px; font-weight: 600; letter-spacing: -0.023em; line-height: 1.2; }
.why-body { font-size: 17px; line-height: 1.7; color: var(--body); }
.why-body p { margin: 0 0 10px; }
.why-body p:last-child { margin-bottom: 0; }
.why-body ul { margin: 0 0 10px; padding-left: 22px; }
.why-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-top: 4px; }
.why-meta .chip { height: 30px; font-size: 13px; }
.q-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.grid-card { border: 1px solid var(--stone); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.grid-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; pointer-events: none; }
.grid-card-head .chev { display: none; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); align-self: center; margin: 0 4px 4px 4px; transition: transform .2s; }
.grid-card.open .chev { transform: rotate(-135deg); margin-bottom: -4px; }
.grid-card-head b { font-size: 17px; }
.grid-card-head span { font-size: 14px; color: var(--muted); }
.q-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.q-cell { position: relative; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: 600 14px var(--sans); }
.q-cell:hover { border-color: var(--ink); }
.q-cell.answered { background: var(--ink); border-color: var(--ink); color: var(--white); }
.q-cell.right { background: var(--green); border-color: var(--green); color: var(--white); font-weight: 700; }
.q-cell.wrong { background: var(--red-soft); border-color: var(--red); color: var(--red); font-weight: 700; }
.q-cell.marked { background: var(--mark); }
.q-cell.marked.answered, .q-cell.marked.right, .q-cell.marked.wrong { background-image: radial-gradient(circle at calc(100% - 7px) 7px, #F2B33D 3.5px, transparent 4px); }
.q-cell.marked.answered { background-color: var(--ink); }
.q-cell.marked.right { background-color: var(--green); }
.q-cell.marked.wrong { background-color: var(--red-soft); }
.q-cell.current { outline: 2px solid var(--ink); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.timer-card { border-radius: 12px; background: var(--ink); color: var(--white); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.timer-card .mono-label { color: #BDBDBD; font-size: 12px; }
.timer-val { font-family: var(--mono); font-size: 36px; font-weight: 600; font-variant-numeric: tabular-nums; }
.timer-val.low { color: #FF9C8F; }
.timer-card small { font-size: 13px; color: #BDBDBD; }
.pfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; border-top: 1px solid var(--stone); background: var(--white); }
.pfoot-row { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pfoot .grow { flex-grow: 1; }
.pfoot-timer { display: none; font-family: var(--mono); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.pfoot-timer.low { color: var(--red); }

/* ---------- Results ---------- */
.result-hero { background: var(--plum); color: var(--white); overflow: hidden; }
.result-copy { flex: 1 1 520px; min-width: 0; padding: 64px 0; display: flex; flex-direction: column; gap: 18px; }
.result-copy .mono-label { color: var(--plum-text); }
.result-copy h1 { margin: 0; font-size: clamp(48px, 7vw, 96px); line-height: .98; font-weight: 600; letter-spacing: -0.031em; }
.result-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--lilac); max-width: 480px; }
.result-art { flex: 1 1 380px; min-width: 0; height: 380px; position: relative; }
.score-ghost { position: absolute; left: 0; top: 30px; font-size: 260px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--plum-2); }
.stamp { position: absolute; right: 8%; top: 90px; width: 200px; height: 200px; border-radius: 50%; border: 3px solid var(--mint); color: var(--mint); transform: rotate(-12deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.stamp.fail { border-color: #FFB4A2; color: #FFB4A2; }
.stamp small { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; }
.stamp b { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stamp.fail b { font-size: 30px; }
.stat-tiles { padding-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat-tile { border-radius: 12px; background: var(--sand); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.stat-tile b { font-size: 44px; font-weight: 800; letter-spacing: -0.034em; line-height: 1.1; }
.stat-tile span { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.stat-tile .ok { color: var(--green); }
.stat-tile .bad { color: var(--red); }
.ka-section { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px; }
.ka-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ka-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.ka-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ka-row { display: flex; flex-direction: column; gap: 8px; }
.ka-top { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
.ka-top b { font-weight: 600; }
.ka-top span { font-family: var(--mono); white-space: nowrap; }
.ka-flag { font-size: 13px; font-weight: 700; color: var(--red); padding-left: 6px; }
.ka-bar { height: 12px; border-radius: 999px; background: var(--stone); }
.ka-bar div { height: 12px; border-radius: 999px; background: var(--ink); }
.ka-row.weak .ka-bar div { background: var(--red); }
.ka-row.weak .ka-top span { color: var(--red); }
.review-inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 15px var(--sans); }
.filter.active { background: var(--ink); color: var(--white); }
.rv { background: var(--white); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.rv.compact { padding: 22px 28px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rv-head b { font-size: 20px; }
.rv-snippet { flex: 1 1 300px; min-width: 0; font-size: 16px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv .q-text { font-size: 18px; max-width: 760px; }
.rv-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.rv-box { border: 2px solid var(--red); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rv-box small { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.rv-box span { font-size: 16px; font-weight: 600; }
.rv-box.ok { border-color: var(--green); }
.rv-box.ok small { color: var(--green); }
.rv-box.none { border-color: var(--line); }
.rv-box.none small { color: var(--muted); }
.link-btn { background: none; border: none; padding: 0; font: 600 15px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; align-self: flex-start; min-height: 32px; }
.empty-note { padding: 28px; border-radius: 12px; background: var(--white); color: var(--muted); text-align: center; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(14, 14, 14, .55); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--white); width: 500px; max-width: 100%; border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(14, 14, 14, .3); }
.modal h3 { margin: 0 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.modal p { margin: 0 0 24px; color: var(--body); font-size: 16px; line-height: 1.6; }
.modal .actions { justify-content: flex-end; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .q-aside { position: static; }
}
@media (max-width: 760px) {
  .ticker { justify-content: flex-start; gap: 32px; }
  .ticker span:nth-child(n+3) { display: none; }
  .nav { gap: 12px 16px; }
  .nav-links { display: none; }
  .search-pill { flex: 1 1 100%; }
  .search-pill input { width: 100%; }
  .brand { font-size: 28px; }
  .hero-copy { padding: 48px 0 8px; }
  .hero-art { flex-basis: 100%; height: 380px; }
  .hero-art .pack { transform-origin: top left; }
  .hero-art .p1 { left: 0; top: 70px; transform: rotate(-14deg) scale(.68); }
  .hero-art .p2 { left: 34%; top: 20px; transform: rotate(9deg) scale(.68); }
  .hero-art .p3 { left: 62%; top: 120px; transform: rotate(-6deg) scale(.68); }
  .hero-art .mini-card { left: 8%; top: 270px; }
  .course-art { flex-basis: 100%; height: 300px; }
  .course-art .pack { transform-origin: top left; }
  .course-art .c1 { left: 6%; top: 40px; transform: rotate(-10deg) scale(.75); }
  .course-art .c2 { left: 46%; top: 20px; transform: rotate(8deg) scale(.75); }
  .course-art .c3 { left: 26%; top: 60px; transform: rotate(-2deg) scale(.75); }
  .section, .tiles-section { padding-top: 64px; padding-bottom: 64px; }
  .tiles-section { padding-bottom: 24px; }
  .tile { height: 320px; }
  .stat-num { font-size: 72px; }
  .result-art { flex-basis: 100%; height: 260px; }
  .score-ghost { font-size: 180px; top: 20px; }
  .stamp { width: 160px; height: 160px; top: 50px; }
  .stamp b { font-size: 32px; }
  .stamp.fail b { font-size: 24px; }
  .pbar { position: static; }
  .q-aside .timer-card { order: -1; }
  .timer-card small { display: none; }
  .grid-card-head { pointer-events: auto; cursor: pointer; align-items: center; }
  .grid-card-head span { margin-left: auto; }
  .grid-card-head .chev { display: block; }
  .grid-card:not(.open) { gap: 0; }
  .grid-card:not(.open) .q-grid, .grid-card:not(.open) .legend { display: none; }
  .pbar-div { display: none; }
  .pbar-row { padding: 8px 16px; }
  .pbar .btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .play-layout { padding-top: 28px; padding-bottom: 170px; gap: 32px; }
  .q-text { font-size: 19px; }
  .answer-text { font-size: 17px; }
  .why { padding: 22px; }
  .pfoot-timer { display: inline; }
  .pfoot-row { gap: 8px 12px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .pfoot .grow { display: none; }
  .pfoot .check { flex: 1 1 auto; }
  .pfoot .btn { flex: 1 1 0; padding: 0 12px; height: 48px; font-size: 15px; }
  .rv, .rv.compact { padding: 20px; }
  .modal .actions .btn { flex: 1 1 0; }
}
