/* Static pages around the app (landing, questions, signs). Same palette as the app, system fonts for speed. */
:root {
  --bg: #eef0ee; --paper: #fff; --ink: #1d2125; --mute: #6b7178; --line: #d7dbd8;
  --blue: #1f5fae; --on-blue: #fff; --yellow: #f7c600; --red: #d3212d; --green: #1e8a4c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15181b; --paper: #1e2226; --ink: #e8ebe9; --mute: #8c939a; --line: #2d3338; --blue: #3478d1; --red: #f0525c; --green: #3dbe74; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--blue); }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 8px 0 14px; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.25; margin: 32px 0 10px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 48px; min-height: 60vh; }
.mute, .meta, .crumbs { color: var(--mute); }
.lead { font-size: 19px; color: var(--mute); max-width: 680px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 3.5px rgb(255 255 255 / .9); }
.top nav { display: flex; gap: 16px; flex: 1; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--blue); }
.right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--mute); }
@media (max-width: 640px) {
  .top .wrap { gap: 6px 14px; padding-top: 8px; padding-bottom: 8px; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 14px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--blue); color: var(--on-blue); font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:disabled { opacity: .5; }

.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 48px 0 24px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 16px; }
.hero .lead { font-size: 19px; line-height: 1.5; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 17px; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--mute); font-size: 15px; }
.facts li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 6px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; } }

/* a real exam question, styled like the exam terminal */
.demo { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #0d0f10; color: #e8ebe9; text-decoration: none; box-shadow: 0 20px 50px rgb(0 0 0 / .25); transform: rotate(1.2deg); transition: transform .2s; }
.demo:hover { transform: rotate(0deg) translateY(-2px); }
.demo-top { display: flex; gap: 14px; align-items: center; padding: 10px 14px; font-size: 13px; color: #8c939a; }
.demo-top b { color: #fff; font-size: 16px; margin-left: 4px; }
.demo-time { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: #1f5fae; color: #fff; font-variant-numeric: tabular-nums; }
.demo-media { display: grid; place-items: center; height: 170px; background: linear-gradient(#cfd8dc, #9fb2bd); }
.demo-media img { width: 116px; height: 116px; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .3)); }
.demo-q { padding: 16px 16px 6px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.demo-a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px 14px; }
.demo-a span { display: grid; place-items: center; height: 46px; border-radius: 8px; font-weight: 700; font-size: 18px; }
.demo-a .yes { background: #3dbe74; color: #0d0f10; }
.demo-a .no { background: #f0525c; color: #0d0f10; }
.demo-label { padding: 8px 16px 12px; font-size: 12px; color: #8c939a; text-align: center; }

.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.steps li { position: relative; padding: 18px 20px 18px 64px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.steps li span { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: #1d2125; font-weight: 700; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--mute); font-size: 15px; }
.final { margin: 48px 0 8px; padding: 32px 28px; border-radius: 16px; background: var(--blue); color: #fff; text-align: center; }
.final h2 { margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 30px); }
.final p { margin: 0 0 20px; opacity: .85; }
.final .btn { background: #fff; color: var(--blue); }

.features { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.features li, .plan, .cta, .question { background: var(--paper); border-radius: 12px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.features b { display: block; font-size: 18px; margin-bottom: 4px; }
.features p { margin: 0; color: var(--mute); font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan.best { box-shadow: inset 0 0 0 2px var(--blue); }
.price { font-size: 40px; font-weight: 700; margin: 6px 0 0; }
.price small { font-size: 16px; font-weight: 500; color: var(--mute); }
.plan ul { padding-left: 20px; margin: 12px 0 18px; }
.faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--mute); }

.crumbs { font-size: 14px; margin: 18px 0 6px; }
.crumbs a { color: var(--mute); }
.question { margin-top: 10px; }
.question h1 { font-size: clamp(22px, 4vw, 30px); }
.meta { font-size: 14px; margin: 0; }
.media-note { padding: 10px 14px; border-radius: 8px; background: var(--bg); font-size: 15px; }
.signs { display: flex; gap: 10px; flex-wrap: wrap; }
.answers { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.answers li { padding: 12px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); }
.answers li.ok { box-shadow: inset 0 0 0 2px var(--green); }
.answers li span { color: var(--green); font-weight: 700; }
.verdict { font-size: 18px; }
.question h2 { font-size: 18px; margin: 22px 0 6px; }
.refs { padding-left: 20px; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0; box-shadow: inset 0 0 0 2px var(--blue); }
.cta p { margin: 4px 0 0; color: var(--mute); font-size: 15px; }
.pager { display: flex; justify-content: space-between; gap: 12px; }
.qlist { padding-left: 22px; }
.qlist li { margin: 6px 0; }
.topics, .cats { list-style: none; padding: 0; }
.topics li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.topics span { color: var(--mute); font-variant-numeric: tabular-nums; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats li { padding: 6px 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.cats span { margin-left: 6px; color: var(--mute); }
.sign { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; }
.sign img { background: #fff; border-radius: 12px; padding: 8px; }
.sign > div { flex: 1; min-width: 260px; }
.signgrid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.signgrid a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 10px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.3; }
.signgrid img { background: #fff; border-radius: 6px; }
.signgrid span { color: var(--mute); }
.support { display: grid; gap: 14px; max-width: 520px; }
.support label { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.support input, .support textarea { padding: 12px 14px; border: 0; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 17px/1.4 inherit; font-family: inherit; }
.support .btn { justify-self: start; }
.legal p { max-width: 720px; }
footer { border-top: 1px solid var(--line); padding: 18px 0 32px; font-size: 14px; }
footer a { color: var(--ink); }

/* free test */
.quiz { margin: 20px 0 32px; padding: 20px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); max-width: 720px; }
.quiz h2 { margin: 6px 0 16px; font-size: 21px; line-height: 1.35; }
.qopts { display: grid; gap: 8px; margin-bottom: 16px; }
.opt { text-align: left; padding: 14px 16px; border: 0; border-radius: 10px; background: var(--bg); color: var(--ink); font: 17px/1.35 inherit; font-family: inherit; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.opt.on { box-shadow: inset 0 0 0 2px var(--blue); }
.opt.ok { box-shadow: inset 0 0 0 2px var(--green); background: rgb(30 138 76 / .1); }
.opt.bad { box-shadow: inset 0 0 0 2px var(--red); background: rgb(211 33 45 / .08); }
.opt:disabled { cursor: default; }
.explain-box { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 15px; }
.explain-box p { margin: 0 0 6px; }
.score { font-size: 56px; font-weight: 800; margin: 0; }
.unofficial { font-size: 12px; color: var(--mute); margin: 6px 0 0; }
.flag { padding: 10px 12px; border-radius: 8px; background: rgb(247 198 0 / .16); box-shadow: inset 3px 0 0 var(--yellow); font-size: 15px; }
.orig { color: var(--mute); font-size: 15px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.langs a { color: var(--mute); }
.support-mail { font-size: 17px; }
