/* koreanotes — plain CSS, no build step. Palette: design option A (provisional until the operator picks). */
/* Self-hosted fonts (SIL OFL 1.1, see /fonts/). Latin subset; other symbols fall back to system fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #172033;
  --muted: #5b6478;
  --line: #e6e9f2;
  --ground: #f7f8fc;
  --panel: #ffffff;
  --brand: #1d3a8a;
  --brand-dark: #142a66;
  --brand-2: #2a4fb0;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-deco: #ef5a2a;
  --brand-soft: #eaf0fb;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --no: #b91c1c;
  --no-bg: #fef2f2;
  --warn-bg: #fdf3dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 8px 24px rgba(29, 58, 138, .06);
  --shadow-lg: 0 20px 45px rgba(29, 58, 138, .12);
  --ko: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Nanum Gothic", sans-serif;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--ko), sans-serif;
  --display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, var(--ko), sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--ground); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 1.2rem 0 .5rem; }
h2 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.small { font-size: .82rem; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.4rem; text-decoration: none; color: var(--ink); letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.site-header nav a { margin-left: 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.site-header nav a:hover { color: var(--brand); }

.site-footer { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--line); background: var(--panel); }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: .65rem 1.2rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.hero { padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: 2.4rem; max-width: 18em; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.grid3 h2 { margin-top: 0; font-size: 1.15rem; }

.domain { margin: 1.8rem 0 .6rem; font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.skill-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; }
.skill-list a { display: block; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink); }
.skill-list a:hover { border-color: var(--brand); }
.skill-list span { display: block; font-size: .88rem; color: var(--muted); margin-top: .2rem; }

.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

.crumbs { margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted); }
.tags { margin: 0 0 1rem; color: var(--muted); }
.tag { display: inline-block; margin-left: .4rem; padding: .1rem .6rem; border-radius: 99px; background: #e7edf8; text-decoration: none; font-size: .88rem; font-weight: 600; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.practice { position: sticky; top: 1rem; }
@media (max-width: 860px) { .practice { position: static; } }
.levels { display: flex; gap: .4rem; margin-bottom: 1rem; }
.levels a { padding: .25rem .8rem; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600; }
.levels a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.question { font-size: 1.25rem; margin: .4rem 0 1rem; }
.answer-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.answer-form input { font: inherit; font-size: 1.15rem; padding: .55rem .8rem; border: 1px solid #b9c0cc; border-radius: 8px; width: 12em; background: #fff; }
.answer-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.unit { color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.feedback { margin: 1rem 0 .6rem; padding: .7rem 1rem; border-radius: 8px; }
.feedback.ok { background: var(--ok-bg); color: var(--ok); }
.feedback.no { background: var(--no-bg); color: var(--no); }
.feedback.warn { background: var(--warn-bg); }
.steps { padding-left: 1.3rem; }
.steps li { margin: .35rem 0; }
.reveal { margin-top: 1rem; }
.reveal summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.example .question { font-size: 1.05rem; }
.formula { font-weight: 700; background: var(--ground); border-left: 3px solid var(--brand); padding: .4rem .8rem; }
.prose { max-width: 42em; }

/* Stacked fractions */
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .85em; line-height: 1.1; margin: 0 .1em; }
.frac .fn { border-bottom: 1px solid currentColor; padding: 0 .15em; }
.frac .fd { padding: 0 .15em; }
.radicand { border-top: 1px solid currentColor; padding: 0 .1em; }

/* Exam hub actions */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.card.action { text-decoration: none; color: var(--ink); display: block; }
.card.action:hover { border-color: var(--brand); }
.card.action h2 { margin-top: 0; }
.btn.big { font-size: 1.1rem; padding: .8rem 1.6rem; margin: .6rem 0; }
.intro ul { padding-left: 1.2rem; }

/* Taking a test */
.test-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; top: 0; background: var(--ground); padding: .4rem 0; z-index: 5; border-bottom: 1px solid var(--line); }
.test-head h1 { margin: .3rem 0 0; font-size: 1.5rem; }
.test-head p { margin: 0; }
.timer { text-align: right; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .8rem; }
.timer .t { display: block; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer.low { border-color: var(--no); color: var(--no); }
.test-list { padding-left: 2rem; }
.test-list > li { margin: 1rem 0; }
.test-list > li::marker { font-weight: 700; color: var(--muted); }
.test-q .question { margin-top: 0; }
.test-submit { margin: 1.5rem 0; text-align: center; }

/* Results */
.score { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; border-left: 6px solid var(--brand); }
.score.band-strong { border-left-color: var(--ok); }
.score.band-building { border-left-color: #b7791f; }
.score p { margin: .3rem 0; }
.big-score { font-size: 3rem; font-weight: 800; line-height: 1; min-width: 3.5ch; }
.skills-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.skills-table th, .skills-table td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.skills-table th { font-size: .85rem; color: var(--muted); }
.pill { display: inline-block; padding: .05rem .6rem; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.pill.strong { background: var(--ok-bg); color: var(--ok); }
.pill.developing { background: var(--warn-bg); color: #7a5a12; }
.pill.focus { background: var(--no-bg); color: var(--no); }
.review { padding-left: 2rem; }
.review > li { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: .8rem 0; }
.review > li.ok { border-left-color: var(--ok); }
.review > li.no { border-left-color: var(--no); }
.review .question { font-size: 1.1rem; margin: 0 0 .4rem; }
.review summary { cursor: pointer; color: var(--brand); font-size: .92rem; }

/* Multiple choice */
.choices { border: 0; padding: 0; margin: .4rem 0 0; display: grid; gap: .45rem; }
.choice { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.08rem; }
.choice:hover { border-color: var(--brand); }
.choice input { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--brand); }
.choice .letter { font-weight: 800; color: var(--muted); min-width: 1.2em; }
.choice:has(input:checked) { border-color: var(--brand); background: #eef3fc; }
.choice.is-right, .choice.is-right:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
.choice.is-wrong, .choice.is-wrong:has(input:checked) { border-color: var(--no); background: var(--no-bg); }
.mode-switch { font-size: .88rem; margin: -.4rem 0 .8rem; color: var(--muted); }
.mode-switch a, .mode-switch strong { margin-left: .3rem; }

/* Review pass additions */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback.nudge { background: #eef3fc; color: var(--brand-dark); }
.progress { margin: .8rem 0 0; }
.kbd-hint { margin: .2rem 0 0; }
.report { margin-top: 1rem; font-size: .9rem; }
.report summary { cursor: pointer; color: var(--muted); }
.report textarea { display: block; width: 100%; font: inherit; padding: .5rem; border: 1px solid #b9c0cc; border-radius: 8px; margin: .3rem 0 .5rem; }
.start-here { margin: .5rem 0 1.5rem; border-left: 6px solid var(--brand); }
.start-here h2 { margin-top: 0; }
.recent { margin: 1rem 0; }
.recent ul { padding-left: 1.1rem; margin: .4rem 0; }
.flag { display: inline-flex; gap: .35rem; align-items: center; float: right; color: var(--muted); cursor: pointer; }
.qnav { margin: 1.5rem 0 0; }
.qnav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr)); gap: .35rem; }
.qnav-grid a { display: block; text-align: center; padding: .3rem 0; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.qnav-grid a.done { background: #eef3fc; border-color: var(--brand); color: var(--brand-dark); }
.qnav-grid a.flagged { box-shadow: inset 0 -3px 0 #b7791f; }
.formula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.formula-grid h2 { margin-top: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.opt-list { list-style: none; padding: 0; margin: .3rem 0; }
.opt-list li { padding: .15rem 0; }
.opt-list li.ok { font-weight: 700; }
.report-msg { margin: .4rem 0; padding: .5rem .8rem; background: var(--warn-bg); border-radius: 6px; white-space: pre-wrap; }
.inline-actions { display: flex; gap: .5rem; margin-top: .6rem; }
.admin .brand small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.bars { display: grid; gap: .25rem; max-width: 640px; }
.bar-row { display: grid; grid-template-columns: 6.5rem 1fr 3rem; gap: .5rem; align-items: center; }
.chart-bar { background: var(--line); border-radius: 4px; height: .7rem; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brand); }
.w0 { width: 1%; } .w10 { width: 10%; } .w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }
@media (max-width: 600px) { .skills-table { font-size: .85rem; } .skills-table th, .skills-table td { padding: .4rem; } .flag { float: none; } }

/* Accounts */
.auth-wrap { max-width: 480px; margin: 0 auto; }
.form label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
.form label.check { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
.form input[type=email], .form input[type=password], .form input[type=text], .form input[type=date], .form select {
  width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #b9c0cc; border-radius: 8px; background: #fff; }
.form input:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form .btn { margin-top: 1rem; }
.form h2 { margin-top: .4rem; }
.danger { margin-top: 1.5rem; border-color: #e3b9b4; }
.btn.danger-btn { background: var(--no); }
.btn.danger-btn:hover { background: #6b2620; }
.logout { margin: 1.5rem 0; }
.small-btn { padding: .3rem .8rem; font-size: .92rem; color: #fff !important; }
.standing { margin: -.4rem 0 1rem; }
.pill.st-new { background: #eceff3; color: var(--muted); }
.pill.st-learning { background: var(--warn-bg); color: #7a5a12; }
.pill.st-proficient { background: #e7edf8; color: var(--brand-dark); }
.pill.st-mastered { background: var(--ok-bg); color: var(--ok); }
.mastery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.tile { display: block; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); border-left: 6px solid #cfd5de; background: var(--panel); text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--brand); }
.tile .small { display: block; margin-top: .2rem; }
.tile.st-learning { border-left-color: #d9a520; }
.tile.st-proficient { border-left-color: var(--brand); }
.tile.st-mastered { border-left-color: var(--ok); background: #f4faf6; }
.meter { background: var(--line); border-radius: 99px; height: .6rem; overflow: hidden; max-width: 420px; }
.meter-fill { display: block; height: 100%; background: var(--ok); }
.legend .pill { margin-right: .2rem; }
.card.action h3 { margin: .4rem 0; }

/* Charts in questions */
figure.chart { margin: .4rem 0 .9rem; max-width: 400px; }
figure.chart svg { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.review figure.chart, .example figure.chart { max-width: 320px; }

/* Exam Pass */
.pass-wrap { max-width: 640px; margin: 0 auto; }
.price-card { margin: 1rem 0; border-top: 6px solid var(--brand); }
.price .amount { font-size: 2.6rem; font-weight: 800; }
.price .per { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1rem 0; }
.checks li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.block { display: block; margin-top: .4rem; }
.link { color: var(--brand); text-decoration: underline; }

/* ---- Phones and small tablets ---- */
.site-header { position: relative; z-index: 20; }
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; font-weight: 700; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: " ▾"; color: var(--muted); }
.nav-mobile[open] summary::after { content: " ▴"; }
.nav-mobile nav { position: absolute; right: 12px; left: 12px; top: 58px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20, 30, 50, .15); padding: .4rem; display: grid; }
.nav-mobile nav a { display: block; padding: .8rem 1rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; margin: 0; }
.nav-mobile nav a:hover { background: var(--ground); }
.nav-mobile nav a.btn { color: #fff; text-align: center; margin-top: .3rem; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .bar { flex-wrap: nowrap; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  h1 { font-size: 1.65rem; }
  .hero { padding: 1.4rem 0 1rem; }
  .hero h1 { font-size: 1.9rem; }
  .card { padding: 1rem; }
  .question { font-size: 1.12rem; }
  .test-list, .review { padding-left: 1.5rem; }
  .test-list > li.card { padding: .9rem; }
  .choice { padding: .6rem .7rem; font-size: 1.02rem; }
  .mastery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .tile { padding: .6rem .7rem; border-left-width: 5px; }
  .tile strong { font-size: .92rem; line-height: 1.25; display: block; }
  .tile .small { font-size: .75rem; }
  .skills-table { display: block; overflow-x: auto; white-space: nowrap; }
  .big-score { font-size: 2.4rem; }
  .levels a { padding: .35rem .7rem; }
  .test-head h1 { font-size: 1.2rem; }
  .timer .t { font-size: 1.25rem; }
  .price .amount { font-size: 2.2rem; }
  .facts dl, .kv { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd, .kv dd { margin-bottom: .5rem; }
  .answer-form input { width: 100%; }
  figure.chart { max-width: 100%; }
}


/* =====================================================================
   Look and feel carried over from the original themath.com design:
   indigo → violet brand, ∑ logo tile, extra-bold display type, soft glows.
   ===================================================================== */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, .brand, .big-score, .price .amount { font-family: var(--display); letter-spacing: -0.02em; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
::selection { background: #c7d2fe; }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.6rem; text-decoration: none; color: var(--brand); }
.brand:hover { color: var(--brand); }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 1.15rem; box-shadow: 0 4px 12px rgba(79, 70, 229, .3); }
.logo-word span { color: #0f172a; }
.site-header nav a { color: #334155; font-weight: 600; font-size: .95rem; }
.site-header nav a:hover { color: var(--brand); }

/* Buttons */
.btn { background: linear-gradient(120deg, #6366f1, #8b5cf6, #6366f1); background-size: 200% auto; color: #fff; border-radius: 12px; padding: .7rem 1.3rem; font-weight: 700; transition: background-position .4s, transform .2s, box-shadow .2s; box-shadow: 0 6px 18px rgba(99, 102, 241, .25); }
.btn:hover { background-position: right center; color: #fff; transform: translateY(-1px); box-shadow: 0 0 24px rgba(99, 102, 241, .4); }
.btn.ghost { background: #fff; color: #44403c; border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: #a5b4fc; color: var(--brand); }
.btn.big { padding: .95rem 1.8rem; border-radius: 14px; font-size: 1.05rem; }
.btn.danger-btn { background: var(--no); box-shadow: none; }
.small-btn { padding: .45rem 1rem; border-radius: 10px; font-size: .9rem; }

/* Cards and surfaces */
.card { border-radius: var(--radius); border-color: rgba(231, 229, 228, .8); box-shadow: var(--shadow); }
.card.action { transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s; }
.card.action:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.skill-list a { border-radius: 14px; border-color: rgba(231, 229, 228, .9); box-shadow: 0 1px 2px rgba(28, 25, 23, .04); transition: transform .25s, box-shadow .25s, border-color .25s; }
.skill-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.skill-list strong { font-family: var(--display); }
.domain { color: var(--brand); font-family: var(--display); letter-spacing: .06em; font-size: .85rem; }
.levels a { background: #fff; }
.levels a.on { background: linear-gradient(120deg, var(--brand), var(--brand-2)); border-color: transparent; }
.tag { background: var(--brand-soft); color: var(--brand); }
.feedback.nudge { background: var(--brand-soft); color: #3730a3; }
.choice { border-radius: 12px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.practice { border-top: 4px solid transparent; background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); background-origin: border-box; background-clip: padding-box, border-box; }
.formula { border-left-color: var(--brand-2); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.price-card { border-top: 0; background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); background-origin: border-box; background-clip: padding-box, border-box; border: 2px solid transparent; }
.score { border-left: 6px solid var(--brand); }
.meter-fill { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.qnav-grid a.done { background: var(--brand-soft); }

/* Eyebrow labels and section heads */
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: .3rem .75rem; border-radius: 99px; }
.section-head { text-align: center; max-width: 640px; margin: 3.5rem auto 1.5rem; }
.section-head h2 { font-size: 2rem; margin: .7rem 0 .4rem; }
.section-head p { color: var(--muted); margin: 0; }
.text-gradient { background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Home hero */
.hero-wrap { position: relative; overflow: hidden; margin: 0 -20px; padding: 0 20px; background: linear-gradient(180deg, #fafaf9 0%, rgba(238, 242, 255, .5) 100%); border-bottom: 1px solid var(--line); }
.orb { position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none; }
.orb.one { width: 300px; height: 300px; top: -80px; left: -80px; background: rgba(129, 140, 248, .28); }
.orb.two { width: 340px; height: 340px; bottom: -120px; right: -80px; background: rgba(244, 114, 182, .2); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 4rem 0 4.5rem; }
.hero-grid h1 { font-size: 3.4rem; line-height: 1.06; margin: 1.1rem 0 1.2rem; }
.hero-grid .lead { font-size: 1.15rem; color: #78716c; }
.pill-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); color: #57534e; padding: .4rem .85rem; border-radius: 99px; }
.pill-badge .dot { width: 7px; height: 7px; border-radius: 99px; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: #1c1917; font-variant-numeric: tabular-nums; }
.hero-stats span { color: #a8a29e; font-size: .9rem; }

.demo-card { background: #fff; border-radius: 24px; border: 1px solid rgba(231, 229, 228, .7); box-shadow: 0 25px 50px rgba(79, 70, 229, .12); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.2rem; color: #fff; background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.demo-head .avatar { width: 36px; height: 36px; border-radius: 99px; background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--display); }
.demo-head strong { display: block; font-family: var(--display); font-size: .95rem; }
.demo-head small { font-size: .72rem; opacity: .85; }
.demo-body { padding: 1.3rem 1.3rem 1.1rem; }
.demo-body .question { font-size: 1.15rem; margin: 0 0 .9rem; }
.demo-body .choices { gap: .4rem; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .8rem 1.3rem 1.1rem; }
.demo-foot .small { margin: 0; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { padding: 1.6rem; }
.feature h3 { margin: .9rem 0 .4rem; font-size: 1.15rem; }
.feature p { color: #78716c; margin: 0; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem; }
.icon-tile.t1 { background: #eef2ff; } .icon-tile.t2 { background: #ecfdf5; } .icon-tile.t3 { background: #fff7ed; }
.icon-tile.t4 { background: #fdf2f8; } .icon-tile.t5 { background: #f5f3ff; } .icon-tile.t6 { background: #f0f9ff; }

/* Call-to-action band */
.cta-band { margin: 3.5rem 0 1rem; padding: 2.6rem 2rem; border-radius: 24px; color: #fff; text-align: center; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .15), transparent 40%), linear-gradient(120deg, #312e81, #4f46e5 45%, #7c3aed); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: 1.9rem; margin: 0 0 .5rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0 0 1.4rem; }
.cta-band .btn { background: #fff; color: var(--brand); box-shadow: none; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 4rem; padding: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 2.8rem 0 2rem; font-size: .92rem; }
.foot-grid h4 { margin: 0 0 .8rem; font-family: var(--display); font-size: .95rem; color: #1c1917; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: .45rem 0; }
.foot-grid a { color: #78716c; text-decoration: none; }
.foot-grid a:hover { color: var(--brand); }
.foot-grid .brand { font-size: 1.25rem; }
.foot-grid .logo-mark { width: 32px; height: 32px; border-radius: 10px; font-size: .95rem; }
.foot-legal { border-top: 1px solid #f5f5f4; padding: 1.2rem 0 1.6rem; }
.foot-legal p { margin: .3rem 0; font-size: .78rem; color: #a8a29e; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.4rem 0 3rem; }
  .hero-grid h1 { font-size: 2.6rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-wrap { margin: 0 -14px; padding: 0 14px; }
  .hero-grid h1 { font-size: 2.1rem; }
  .hero-stats { gap: 1.4rem; }
  .features { grid-template-columns: 1fr; }
  .section-head h2, .cta-band h2 { font-size: 1.55rem; }
  .brand { font-size: 1.35rem; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
}
.cta.center { justify-content: center; }
.brand .logo-mark { color: #fff; }
.brand .logo-word { color: var(--brand); }
.brand .logo-word span { color: #0f172a; }
.btn { white-space: nowrap; }

/* Exams dropdown in the desktop header */
.nav-exams { position: relative; display: inline-block; margin-left: 1.1rem; }
.nav-exams summary { list-style: none; cursor: pointer; color: #334155; font-weight: 600; font-size: .95rem; }
.nav-exams summary::-webkit-details-marker { display: none; }
.nav-exams summary::after { content: " ▾"; color: var(--muted); font-size: .8em; }
.nav-exams summary:hover { color: var(--brand); }
.nav-drop { position: absolute; top: 2rem; left: -1rem; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; display: grid; z-index: 30; }
.site-header .nav-drop a { margin: 0; padding: .6rem .8rem; border-radius: 8px; text-decoration: none; }
.site-header .nav-drop a:hover { background: var(--brand-soft); }
.nav-mobile summary { white-space: nowrap; }

/* Coming-soon holding page and the admin preview bar */
body.soon { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4f46e5, #7c3aed); padding: 1.5rem; }
.soon-box { background: #fff; border-radius: 18px; padding: 2.4rem 2rem; max-width: 34rem; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(30, 20, 90, .25); }
.soon-brand { display: flex; justify-content: center; align-items: center; gap: .5rem; font-size: 1.4rem; margin: 0 0 1rem; }
.soon-box h1 { font-size: 2.2rem; margin: .2rem 0 .6rem; }
.soon-lead { color: var(--muted); margin: 0 auto 1.2rem; max-width: 28em; }
.soon-exams { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.soon-exams li { background: #eef2ff; color: #3730a3; border-radius: 999px; padding: .3rem .8rem; font-weight: 600; font-size: .9rem; }
.preview-bar { background: #fef3c7; color: #78350f; text-align: center; padding: .45rem 1rem; }
.preview-bar a { color: #78350f; font-weight: 700; }
.search-row { display: flex; gap: .5rem; align-items: center; max-width: 520px; margin: 0 0 1rem; }
.search-row .btn { margin-top: 0; }
.card code { overflow-wrap: anywhere; }

/* Admin: left menu on wide screens, a top bar with a menu toggle on phones; compact type. */
body.admin { font-size: 15px; line-height: 1.5; }
.admin-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--panel); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: .9rem .7rem; box-sizing: border-box; }
.admin-top { display: flex; align-items: center; justify-content: space-between; padding: 0 .3rem .8rem; }
.admin-side .brand { text-decoration: none; display: flex; align-items: center; gap: .4rem; font-size: 1rem; }
.admin-side .brand small { color: var(--muted); font-weight: 600; }
.admin-burger { display: none; cursor: pointer; font-size: 1.4rem; line-height: 1; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 8px; user-select: none; }
.admin-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: block; padding: .45rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.admin-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.admin-nav a.on { background: var(--brand); color: #fff; }
.admin-nav .admin-out { margin-top: .8rem; border-top: 1px solid var(--line); border-radius: 0; padding-top: .8rem; color: var(--muted); font-weight: 500; }
.admin-main { padding: .4rem 1.4rem 2rem; max-width: 1200px; }
body.admin h1 { font-size: 1.45rem; margin: .8rem 0 .6rem; }
body.admin h2 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
body.admin .card { padding: .8rem 1rem; }
body.admin .card > h2:first-child { margin-top: 0; }
body.admin section.card { margin: 0 0 1rem; }
body.admin .grid3 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin: .8rem 0; }
body.admin .grid3 h2 { font-size: .85rem; color: var(--muted); font-weight: 600; margin: 0 0 .2rem; }
body.admin .big-score { font-size: 1.8rem; }
body.admin .grid3 .card p { margin: 0; }
body.admin .skills-table th, body.admin .skills-table td { padding: .35rem .55rem; }
body.admin .btn { padding: .45rem .9rem; }
body.admin .feedback { margin: .6rem 0; }
body.admin .form label { margin: .5rem 0 .2rem; }
body.admin .form input[type=text], body.admin .form input[type=password] { padding: .4rem .6rem; }
@media (max-width: 760px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .admin-side { position: sticky; top: 0; z-index: 20; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: .5rem .8rem; }
  .admin-top { padding: 0; }
  .admin-burger { display: block; }
  .admin-nav { display: none; padding-top: .5rem; }
  .admin-nav-toggle:checked ~ .admin-nav { display: flex; }
  .admin-nav-toggle:focus-visible ~ .admin-nav, .admin-nav-toggle:focus-visible + .admin-nav { outline: 0; }
  .admin-main { padding: .2rem .8rem 2rem; }
  body.admin .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin .skills-table { display: block; overflow-x: auto; white-space: nowrap; }
  .search-row { max-width: none; }
}

/* =====================================================================
   Navy theme (2026-12-02): navy + white + light gray, one amber accent for
   the main buttons. Overrides the indigo/violet look above. Semantic greens
   and reds for right and wrong answers are untouched.
   ===================================================================== */
:root {
  --ink: #0f1d33;
  --muted: #5b6576;
  --line: #e2e7ee;
  --ground: #f4f6f9;
  --navy: #0b2545;
  --navy-2: #13315c;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-2: #13315c;
  --brand-soft: #e8eefc;
  --amber: #f5a524;
  --amber-dark: #e0900f;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 29, 51, .05), 0 6px 18px rgba(15, 29, 51, .06);
  --shadow-lg: 0 16px 36px rgba(15, 29, 51, .14);
}
::selection { background: #cfe0ff; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* Buttons: solid, no gradients. Primary = amber with navy text; ghost = white with navy outline. */
.btn { background: var(--amber); color: var(--navy); border: 1px solid var(--amber); border-radius: 10px; box-shadow: 0 2px 6px rgba(15, 29, 51, .12); transition: background-color .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15, 29, 51, .16); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid #c3ccd9; box-shadow: none; }
.btn.ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn.danger-btn { background: var(--no); border-color: var(--no); color: #fff; }
.small-btn { color: var(--navy) !important; }
.nav-mobile nav a.btn { color: var(--navy); }

/* Brand */
.logo-mark { background: var(--navy); box-shadow: none; border-radius: 10px; }
.brand .logo-mark { color: var(--amber); }
.brand, .brand:hover { color: var(--navy); }
.brand .logo-word { color: var(--navy); }
.brand .logo-word span, .logo-word span { color: var(--brand); }

/* Header */
.site-header { background: rgba(255, 255, 255, .96); }
.site-header nav a, .nav-exams summary { color: var(--ink); }
.site-header nav a:hover, .nav-exams summary:hover { color: var(--brand); }

/* Surfaces that used the violet gradients */
.text-gradient { background: none; color: var(--brand); -webkit-background-clip: border-box; background-clip: border-box; }
.eyebrow { color: var(--navy-2); background: #e6ebf3; }
.levels a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.practice { border-top: 4px solid var(--navy); background-image: none; }
.price-card { background-image: none; border: 2px solid var(--navy); }
.meter-fill { background: var(--brand); }
.domain { color: var(--navy-2); }
.card.action:hover, .skill-list a:hover { border-color: #9db4dc; }
.demo-card { border-radius: 16px; box-shadow: var(--shadow-lg); }
.demo-head { background: var(--navy); }
.demo-head .avatar { background: rgba(255, 255, 255, .14); color: var(--amber); }
.cta-band { border-radius: 16px; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.cta-band .btn { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn.ghost:hover { border-color: #fff; color: #fff; }
body.soon { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.soon-exams li { background: #e6ebf3; color: var(--navy-2); }
.foot-grid a:hover { color: var(--brand); }

/* ---- Home page ---- */
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.h-hero { background: linear-gradient(135deg, var(--navy) 0%, #0f2f57 60%, var(--navy-2) 100%); color: #fff; }
.h-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 3.2rem 20px 6.5rem; }
.h-kicker { margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.h-kicker.dark { color: var(--brand); }
.h-hero h1 { color: #fff; font-size: 3rem; line-height: 1.08; margin: 0 0 1rem; max-width: 14em; }
.h-lead { color: #c9d5e6; font-size: 1.15rem; margin: 0 0 1.2rem; max-width: 34em; }
.h-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: #e3eaf4; font-size: .95rem; }
.h-points li::before { content: "\2713"; color: var(--amber); font-weight: 800; margin-right: .4rem; }
.h-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }

.h-pick { position: relative; margin-top: -4.2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1.6rem 1.6rem 1.2rem; }
.h-pick h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.h-exams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.h-exam { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); transition: border-color .2s, box-shadow .2s, transform .2s; }
.h-exam:hover { border-color: #9db4dc; box-shadow: var(--shadow); transform: translateY(-2px); }
.h-exam-main { display: block; padding: 1rem 1.1rem .6rem; text-decoration: none; color: var(--ink); flex: 1; }
.h-exam-main:hover { color: var(--ink); }
.h-exam-name { display: block; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.01em; }
.h-exam-for { display: block; margin: .25rem 0 .35rem; font-size: .92rem; line-height: 1.4; color: var(--ink); }
.h-exam-meta { display: block; font-size: .8rem; color: var(--muted); }
.h-exam-actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .2rem 1.1rem 1rem; }
.h-exam-actions .btn { margin: 0; }
.h-exam-link { font-weight: 600; font-size: .9rem; text-decoration: none; }
.h-pick-note { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; text-align: center; }

.h-section { margin: 4rem 0 0; }
.h-section h2 { font-size: 1.9rem; margin: 0 0 1rem; line-height: 1.2; }
.h-section-head { text-align: center; max-width: 640px; margin: 0 auto 1.6rem; }
.h-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.h-split-photo img, .h-photo-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.h-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.h-steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3.2rem; color: var(--muted); }
.h-steps li strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.08rem; margin-bottom: .15rem; }
.h-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 99px; background: var(--navy); color: var(--amber); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--display); }

.h-try { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2.4rem; }
.h-try-text p { color: var(--muted); }

.h-cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.h-photo-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.h-photo-card img { border-radius: 0; }
.h-photo-card > div { padding: 1.3rem 1.5rem 1.2rem; }
.h-photo-card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.h-photo-card p { color: var(--muted); margin: 0 0 .7rem; }
.h-photo-card p:last-child { margin: 0; font-weight: 600; }

.h-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 820px; margin: 0 auto; }
.h-plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.7rem; display: flex; flex-direction: column; }
.h-plan.featured { border: 2px solid var(--navy); box-shadow: var(--shadow-lg); }
.h-plan h3 { margin: 0; font-size: 1.15rem; color: var(--navy-2); }
.h-price { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--navy); margin: .3rem 0 .2rem; }
.h-price span { font-size: .95rem; font-weight: 500; color: var(--muted); font-family: var(--font); }
.h-plan .checks { flex: 1; }
.h-plan .btn { text-align: center; }

.h-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.7rem; }
.h-topics h3 { margin: 0 0 .6rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-2); }
.h-topics ul { list-style: none; margin: 0; padding: 0; }
.h-topics li { margin: .35rem 0; font-size: .95rem; }
.h-topics a { text-decoration: none; color: var(--ink); }
.h-topics a:hover { color: var(--brand); text-decoration: underline; }
.h-topics .more a { color: var(--brand); font-weight: 600; }
p.center { text-align: center; margin-top: 1.4rem; }

@media (max-width: 900px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.2rem 20px 5.5rem; }
  .h-hero h1 { font-size: 2.3rem; }
  .h-hero-photo { display: none; }
  .h-exams { grid-template-columns: 1fr 1fr; }
  .h-split, .h-try, .h-cards2, .h-plans { grid-template-columns: 1fr; gap: 1.6rem; }
  .h-topics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .h-hero-grid { padding: 1.8rem 14px 5rem; }
  .h-hero h1 { font-size: 1.95rem; }
  .h-lead { font-size: 1.02rem; }
  .h-pick { padding: 1.1rem .9rem .9rem; margin-top: -3.8rem; }
  .h-pick h2 { font-size: 1.25rem; }
  .h-exams { grid-template-columns: 1fr; gap: .6rem; }
  .h-exam-main { padding: .8rem .9rem .4rem; }
  .h-exam-actions { padding: .2rem .9rem .8rem; }
  .h-section { margin-top: 2.8rem; }
  .h-section h2 { font-size: 1.45rem; }
  .h-try { padding: 1.2rem; }
  .h-topics { grid-template-columns: 1fr; padding: 1.2rem; }
}

/* Footer: navy, light text */
.site-footer { background: var(--navy); border-top: 0; color: #c9d5e6; }
.site-footer .brand .logo-word { color: #fff; }
.site-footer .brand .logo-word span { color: #8fb3ff; }
.site-footer .logo-mark { background: #fff; }
.site-footer .brand .logo-mark { color: var(--navy); }
.foot-grid h4 { color: #fff; }
.foot-grid a, .site-footer .small { color: #c9d5e6; }
.foot-grid a:hover { color: #fff; }
.foot-legal { border-top-color: rgba(255, 255, 255, .12); }
.foot-legal p { color: #8e9db3; }

/* Logo mark: an SVG path centred in its tile */
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-mark { line-height: 0; padding: 0; }
.demo-head .avatar svg { width: 100%; height: 100%; display: block; }

/* Messages */
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.msg-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.msg-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; text-decoration: none; color: var(--ink); }
.msg-row:hover { border-color: #9db4dc; color: var(--ink); }
.msg-row.unread { border-left: 4px solid var(--brand); }
.msg-subject { font-weight: 600; }
.msg-title { margin-bottom: .2rem; }
.msg-thread { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .8rem; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; max-width: 46rem; }
.msg.staff { background: var(--brand-soft); border-color: #c9d7f5; }
.msg.mine { margin-left: auto; }
.msg-meta { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .3rem; }
.msg-body { overflow-wrap: anywhere; }
.msg-form-card { max-width: 46rem; }
.form textarea { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #b9c0cc; border-radius: 8px; background: #fff; resize: vertical; }
.form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.g-recaptcha { margin: .8rem 0 .2rem; }
.inline-form { margin-top: .6rem; }
.nav-count { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; border-radius: 99px; background: var(--amber); color: var(--navy); font-size: .75rem; font-weight: 800; text-align: center; margin-left: .3rem; }

/* Admin: one customer */
.cust-title { overflow-wrap: anywhere; }
.cust-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.cust-order { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; margin: 0 0 .6rem; }
.cust-order.active { border-color: #9fc7a9; background: #f4faf5; }
.cust-order-head { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: center; }
.cust-order p { margin: .3rem 0 0; }
.cust-note { white-space: pre-wrap; font: .8rem/1.4 var(--font); color: var(--muted); background: var(--ground); border-radius: 6px; padding: .35rem .5rem; margin: .4rem 0 0; }
.cust-actions { margin-top: .5rem; }
.cust-actions summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .92rem; }
.inline-fields { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: flex-end; margin: .5rem 0; }
body.admin .inline-fields label { margin: 0; font-weight: 600; font-size: .85rem; }
.inline-fields input[type=number] { width: 5.5rem; font: inherit; padding: .35rem .5rem; border: 1px solid #b9c0cc; border-radius: 8px; display: block; }
.inline-fields input[type=text], .inline-fields select { font: inherit; padding: .35rem .5rem; border: 1px solid #b9c0cc; border-radius: 8px; display: block; min-width: 14rem; }
.inline-fields .btn { margin: 0; }
.cust-btn { margin: 0 0 .4rem; }
.cust-target td { font-weight: 600; }
.danger-zone summary { color: var(--no); }
@media (max-width: 900px) { .cust-grid { grid-template-columns: 1fr; } .inline-fields input[type=text], .inline-fields select { min-width: 0; width: 100%; } }

/* Admin: money tables, funnel, saved replies */
.money td, .funnel td { font-variant-numeric: tabular-nums; }
.muted-row td { color: var(--muted); }
.total-row td { font-weight: 700; border-top: 2px solid var(--line); }
.total-col { background: var(--ground); }
.table-scroll { overflow-x: auto; }
.tpl-pick { display: block; margin: 0 0 .4rem; font-weight: 600; font-size: .9rem; }
.tpl-pick select { display: block; margin-top: .2rem; font: inherit; padding: .35rem .5rem; border: 1px solid #b9c0cc; border-radius: 8px; max-width: 100%; }
.tpl-card h2 { margin: 0; font-size: 1rem; }
.tpl-card .msg-body { margin: .4rem 0; }

/* Site notice (admin Settings) */
.site-notice { background: #e8eefc; color: #1e3a8a; border-bottom: 1px solid #c9d7f5; padding: .5rem 0; font-size: .95rem; text-align: center; }
.site-notice.warning { background: #fff4dc; color: #6b4a00; border-bottom-color: #f2d999; }
.site-notice-sample { background: #e8eefc; color: #1e3a8a; padding: .15rem .5rem; border-radius: 6px; }
.site-notice-sample.warning { background: #fff4dc; color: #6b4a00; }
.health dd { overflow-wrap: anywhere; }
.health .bad { color: var(--no); font-weight: 700; }
.health .good { color: var(--ok); font-weight: 700; }

/* Test pages: the site header scrolls away so the sticky test bar and its timer are never covered. */
body.testing .site-header { position: relative; }
body.testing .test-head { z-index: 30; box-shadow: 0 2px 8px rgba(15, 29, 51, .06); }

/* Tier 4: hero buttons, price block, FAQ, pass list, quieter test screen */
.h-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.h-hero .btn.ghost.h-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.h-hero .btn.ghost.h-ghost:hover { border-color: #fff; color: #fff; }
.exam-price { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 1rem 0; border-left: 4px solid var(--navy); }
.exam-price h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.exam-price p { margin: 0; color: var(--muted); }
.faq { margin: 2.5rem 0 1rem; max-width: 820px; }
.faq h2 { margin-bottom: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .1rem 1rem; margin: .5rem 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: .75rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.2rem; color: var(--brand); font-weight: 800; }
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 0 0 .9rem 1.2rem; color: var(--muted); }
.pass-list { margin: 1.4rem 0; }
.pass-pick { text-decoration: none; color: var(--ink); }
body.testing .nav-desktop, body.testing .nav-mobile { display: none; }

/* Keyboard focus: a clear ring on everything you can tab to (mouse clicks don't show it). */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.h-hero a:focus-visible, .cta-band a:focus-visible, .site-footer a:focus-visible { outline-color: var(--amber); }

/* Product screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.shot { margin: 0; }
.shot-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); max-height: 520px; position: relative; }
.shot-frame::before { content: ""; display: block; height: 22px; background: #eef1f5; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle at 12px 11px, #e0574f 4px, transparent 5px), radial-gradient(circle at 26px 11px, #e8b330 4px, transparent 5px), radial-gradient(circle at 40px 11px, #4fb35d 4px, transparent 5px); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: .8rem; color: var(--muted); font-size: .95rem; }
.shot figcaption strong { color: var(--ink); }
.center-note { text-align: center; margin-top: 1rem; }
.pass-shot { margin: 1.6rem 0; }
.pass-shot .shot-frame { max-height: 360px; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } .shot-frame { max-height: 420px; } }

/* Guides */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.guide-card { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: #9db4dc; color: var(--ink); }
.guide-card .h-kicker { margin: 0; }
.guide-card-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.guide { max-width: 760px; }
.guide h1 { margin-bottom: .4rem; }
.guide-meta { margin-top: 0; }
.guide-body { font-size: 1.05rem; }
.guide-body h2 { margin-top: 2rem; }
.guide-body h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.guide-body table { border-collapse: collapse; width: 100%; margin: 1rem 0; background: #fff; font-size: .97rem; }
.guide-body th, .guide-body td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.guide-body th { background: var(--ground); }
.guide-body li { margin: .3rem 0; }
.guide-cta { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 2rem 0; border-left: 4px solid var(--navy); }
.guide-cta h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.guide-cta p { margin: 0; color: var(--muted); }
.guide-sources, .guide-related { margin: 1.6rem 0; }
.guide-sources h2, .guide-related h2 { font-size: 1.05rem; }
.guide-sources li, .guide-related li { margin: .3rem 0; }
.exam-guides ul { margin: .4rem 0 0; padding-left: 1.2rem; }
@media (max-width: 600px) { .guide-body table { display: block; overflow-x: auto; } }

/* Select-all and ordering questions */
.choices.multi .choice { padding-left: .8rem; }
.choices.multi input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.choice:has(input[type=checkbox]:checked) { border-color: var(--brand); background: var(--brand-soft); }
.order-q { border: 0; padding: 0; margin: .6rem 0; }
.order-row { display: flex; align-items: center; gap: .8rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: .35rem 0; }
.order-row select { font: inherit; padding: .3rem .5rem; border: 1px solid #b9c0cc; border-radius: 8px; min-width: 3.6rem; }
.order-item { font-size: 1.1rem; }

/* Two-way frequency tables (conditional probability) */
table.two-way { border-collapse: collapse; margin: .8rem 0; background: #fff; font-variant-numeric: tabular-nums; }
table.two-way caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
table.two-way th, table.two-way td { border: 1px solid var(--line); padding: .4rem .7rem; text-align: center; }
table.two-way th { background: var(--ground); }
@media (max-width: 600px) { table.two-way { display: block; overflow-x: auto; } }

/* Sample problems, common mistakes, conversion chart, printing */
.samples { margin: 2.5rem 0 1rem; }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sample .h-kicker { margin: 0 0 .4rem; }
.sample-choices { list-style: none; padding: 0; margin: .6rem 0; }
.sample-choices li { padding: .25rem 0; }
.sample-choices .letter { display: inline-block; width: 1.5rem; font-weight: 700; color: var(--muted); }
.mistakes { padding-left: 1.1rem; }
.mistakes li { margin: .5rem 0; }
.print-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.conv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.conv-grid h2 { margin-top: 0; font-size: 1.15rem; }
table.conv { width: 100%; border-collapse: collapse; }
table.conv td { border-bottom: 1px solid var(--line); padding: .4rem .3rem; vertical-align: top; }
table.conv td:first-child { font-weight: 600; width: 45%; }
@media (max-width: 900px) { .sample-grid, .conv-grid { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .no-print, .preview-bar, .site-notice, .feedback { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
}


/* ===== KoreaNotes additions ===== */
/* Vietnamese needs diacritics the self-hosted Latin subset lacks: use the system UI font so letters never mix. */
html[lang="vi"] { --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--ko), sans-serif; --display: var(--font); }
html[lang="ja"] { --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", var(--ja), var(--ko), sans-serif; --display: var(--font); }
html[lang="ko"] { --font: "Inter", ui-sans-serif, var(--ko), system-ui, sans-serif; --display: var(--font); }
.ko, [lang="ko"] { font-family: var(--ko); word-break: keep-all; }
.btn.accent, .btn-accent { background: var(--accent); }
.btn.accent:hover, .btn-accent:hover { background: var(--accent-dark); }
.logo-word { font-family: var(--display); }
.logo-word span { color: var(--accent); }
.brand svg { width: 34px; height: 34px; vertical-align: middle; margin-right: .45rem; }

/* language menu (details/summary: works without JavaScript) */
.lang-menu { position: relative; margin-left: 1rem; }
.lang-menu summary { cursor: pointer; list-style: none; font-weight: 600; font-size: .92rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 99px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu .drop { position: absolute; right: 0; top: 2.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: .4rem; min-width: 11rem; z-index: 20; }
.lang-menu .drop a, .lang-menu .drop button { display: block; width: 100%; text-align: left; margin: 0; padding: .45rem .7rem; border-radius: 6px; text-decoration: none; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.lang-menu .drop a:hover, .lang-menu .drop button:hover, .lang-menu .drop .on { background: var(--brand-soft); }
.lang-menu form { margin: 0; }

/* hero with designed background (no photo needed; a photo is layered on wide screens only) */
.kn-hero { position: relative; color: #fff; background: var(--brand-dark); overflow: hidden; }
.kn-hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px; }
.kn-hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(239,90,42,.35), transparent 65%); }
.kn-hero .wrap { position: relative; z-index: 1; padding-top: 3.2rem; padding-bottom: 3.2rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
@media (max-width: 860px) { .kn-hero .wrap { grid-template-columns: 1fr; padding-top: 2.2rem; padding-bottom: 2.2rem; } .kn-hero .hero-card { display: none; } }
.kn-hero h1 { font-family: var(--display); font-size: 2.5rem; margin: .2rem 0 .8rem; letter-spacing: -.02em; }
.kn-hero .lead { color: #dbe4f7; }
.kn-hero .eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #ffd8c8; }
.kn-hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero-card { background: var(--panel); color: var(--ink); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); }
.hero-card .q-text { font-size: 1.1rem; }
main.wrap.flush { max-width: none; padding: 0; }

.stat-row { display: flex; gap: 1.6rem; flex-wrap: wrap; margin: 1.4rem 0 0; }
.stat-row div { font-size: .9rem; color: #c9d5f0; }
.stat-row strong { display: block; font-size: 1.5rem; color: #fff; font-family: var(--display); }

.section { margin: 2.6rem 0; }
.section h2 { font-family: var(--display); font-size: 1.5rem; }
.pill-list { list-style: none; padding: 0; margin: .6rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list a { display: inline-block; padding: .35rem .8rem; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pill-list a:hover { border-color: var(--brand); color: var(--brand); }
.pill-list small { color: var(--muted); font-weight: 400; margin-left: .25rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); vertical-align: middle; }
.badge.free { background: var(--ok-bg); color: var(--ok); }
.badge.member { background: #fff1ea; color: var(--accent-dark); }

/* grammar pages */
.pattern-head { margin: 1.2rem 0 .4rem; }
.pattern-head .ko-pattern { font-family: var(--ko); font-size: 2.3rem; font-weight: 800; color: var(--brand); display: block; }
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; list-style: none; padding: 0; }
.pattern-grid a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; text-decoration: none; color: var(--ink); height: 100%; }
.pattern-grid a:hover { border-color: var(--brand); }
.pattern-grid .p { font-family: var(--ko); font-weight: 800; font-size: 1.15rem; color: var(--brand); display: block; }
.pattern-grid .m { font-size: .9rem; color: var(--muted); }
.formation li { margin: .4rem 0; }
.formation code, .ko-ex { font-family: var(--ko); background: var(--brand-soft); padding: .05rem .4rem; border-radius: 5px; font-size: .95em; }
.examples { list-style: none; padding: 0; }
.examples li { border-left: 3px solid var(--accent-deco); padding: .3rem 0 .3rem .9rem; margin: .7rem 0; }
.examples .k { font-family: var(--ko); font-size: 1.12rem; display: block; }
.examples .t { color: var(--muted); font-size: .95rem; }
.note-box { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: .8rem 1rem; }
.tip-box { background: var(--brand-soft); border-radius: 12px; padding: .8rem 1rem; }

/* question cards (quiz, drill, review, tests) */
.q-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.q-no { font-weight: 800; color: var(--brand); margin-right: .3rem; }
.q-instr { font-family: var(--ko); color: var(--muted); font-size: .95rem; margin: 1.4rem 0 .4rem; font-weight: 600; }
.q-passage { font-family: var(--ko); background: #fbfcff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; white-space: pre-line; line-height: 1.85; margin: .4rem 0 .8rem; word-break: keep-all; }
.q-text { font-family: var(--ko); font-size: 1.12rem; margin: .3rem 0 .7rem; word-break: keep-all; }
.choices { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.choices.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .choices.two { grid-template-columns: 1fr; } }
.choice { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-family: var(--ko); }
.choice:hover { border-color: var(--brand); }
.choice input { margin-top: .35rem; accent-color: var(--brand); }
.choice .n { font-weight: 700; color: var(--muted); min-width: 1.3em; }
.choice.right { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.choice.wrong { border-color: var(--no); background: var(--no-bg); color: var(--no); }
.choice.right .n, .choice.wrong .n { color: inherit; }
button.choice { width: 100%; text-align: left; font: inherit; font-family: var(--ko); }
.explain { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: #f8fafc; border: 1px dashed var(--line); }
.explain summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.report-row { margin-top: .6rem; }
.report-row summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.report-row form { display: grid; gap: .4rem; margin-top: .5rem; max-width: 32rem; }
.report-row select, .report-row textarea { font: inherit; font-size: .9rem; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 8px; }

/* timed test */
.test-bar { position: sticky; top: 0; z-index: 10; background: var(--brand-dark); color: #fff; padding: .55rem 0; }
.test-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.test-bar .timer { font-family: var(--display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.test-bar .timer.low { color: #fecaca; }
.test-bar .saved { font-size: .85rem; color: #c9d5f0; }
.score-big { font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--brand); line-height: 1; }
.type-table td, .type-table th { padding: .35rem .7rem; text-align: left; border-bottom: 1px solid var(--line); }

/* vocabulary */
.word-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.word-table th, .word-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.word-table th { background: #f1f4fa; font-size: .85rem; color: var(--muted); }
.word-table .w { font-family: var(--ko); font-weight: 800; font-size: 1.15rem; color: var(--brand); white-space: nowrap; }
.word-table .ex { font-family: var(--ko); }
.word-table .ex small { display: block; font-family: var(--font); color: var(--muted); }
@media (max-width: 700px) { .word-table .hide-sm { display: none; } }
.flash-word { font-family: var(--ko); font-size: 2.6rem; font-weight: 800; color: var(--brand); text-align: center; margin: .4rem 0; }

/* membership */
.price-card { text-align: center; max-width: 26rem; margin: 1.5rem auto; border: 2px solid var(--brand); }
.price-card .price { font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--brand); }
.price-card .per { color: var(--muted); }
.ticks { list-style: none; padding: 0; text-align: left; }
.ticks li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.countdown { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--accent); }
.disclaimer { font-size: .8rem; color: var(--muted); }

/* Header on phones: brand, language (short code) and menu fit on one line. */
.lang-menu .lang-code { display: none; }
@media (max-width: 560px) {
  .lang-menu { margin-left: auto; }
  .lang-menu .lang-name { display: none; }
  .lang-menu .lang-code { display: inline; }
  .lang-menu summary { padding: .3rem .55rem; }
  .bar { gap: .5rem; }
  .brand .logo-word { font-size: 1.05rem; }
  .nav-mobile summary { padding: .45rem .7rem; }
}
