/* Boli Language Institute: paper, ink, hanko vermilion (Japanese) and taegeuk blue (Korean). Zen Old Mincho and
   Noto Serif KR for headings, IBM Plex Sans for text. Manuscript-paper grids, red stamps and flip cards. */
:root {
  --bg: #fbf8f2; --card: #ffffff; --ink: #1d1b1a; --ink2: #4d4844; --muted: #8a837c;
  --ja: #c8361f; --ja-d: #a52a16; --ja-l: #fbe6e1; --ko: #1f4f9c; --ko-d: #173d7a; --ko-l: #e2ebf7; --gold: #c99a3c; --gold-l: #f6ecd4; --green: #3d7a4f; --green-l: #e2efe5;
  --acc: var(--ja); --acc-d: var(--ja-d); --acc-l: var(--ja-l);
  --line: #e9e2d6; --line2: #d8cfc1;
  --r: 14px; --r-s: 8px;
  --head: 'Zen Old Mincho', 'Noto Serif KR', 'Yu Mincho', Georgia, serif; --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 26px 50px -30px rgba(29, 27, 26, .45);
  --grid: linear-gradient(rgba(200, 54, 31, .09) 1px, transparent 1px) 0 0 / 36px 36px, linear-gradient(90deg, rgba(200, 54, 31, .09) 1px, transparent 1px) 0 0 / 36px 36px;
}
body[data-lang="ko"] { --acc: var(--ko); --acc-d: var(--ko-d); --acc-l: var(--ko-l); --grid: linear-gradient(rgba(31, 79, 156, .09) 1px, transparent 1px) 0 0 / 36px 36px, linear-gradient(90deg, rgba(31, 79, 156, .09) 1px, transparent 1px) 0 0 / 36px 36px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.jp { font-family: 'Zen Old Mincho', 'Yu Mincho', serif; }
.kr { font-family: 'Noto Serif KR', 'Batang', serif; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.12; letter-spacing: -.01em; }
.h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 900; }
.h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.h3 { font-size: 1.45rem; }
.ac { color: var(--acc); }
.over { display: inline-flex; align-items: center; gap: 10px; font: 600 .76rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }
.over::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--acc); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); transform: rotate(-6deg); }
.dark .over { color: #d6cfc6; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--ink2); max-width: 56ch; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 4px; background: var(--acc-l); color: var(--acc-d); font: 600 .76rem/1.3 var(--body); }
.tag.ja { background: var(--ja-l); color: var(--ja-d); }
.tag.ko { background: var(--ko-l); color: var(--ko-d); }
.tag.gold { background: var(--gold-l); color: #7a5a14; }
.tag.green { background: var(--green-l); color: #2a5a37; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: #3a3633; transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(29, 27, 26, .7); }
.btn.acc { background: var(--acc); }
.btn.acc:hover { background: var(--acc-d); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dark .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link { color: var(--acc); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* stamp */
.stamp { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 12px; border: 3px solid var(--acc); color: var(--acc); font: 900 1.05rem/1.05 var(--head); text-align: center; transform: rotate(-7deg); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6), inset 0 0 0 5px var(--acc); padding: 6px; }
.stamp.big { width: 132px; height: 132px; font-size: 2.2rem; border-radius: 18px; }
.stamp small { display: block; font: 600 .58rem/1.1 var(--body); letter-spacing: .12em; text-transform: uppercase; }

/* header */
.topline { background: var(--ink); color: #d6cfc6; font-size: .84rem; }
.topline .wrap { display: flex; justify-content: space-between; gap: 6px 14px; align-items: center; min-height: 34px; flex-wrap: wrap; padding-block: 4px; }
.topline a { color: #fff; text-decoration: none; font-weight: 600; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 242, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { font: 900 1.7rem/1 var(--head); }
.brand small { display: block; font: 600 .6rem/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 10px 14px; text-decoration: none; font-weight: 500; color: var(--ink2); border-radius: 6px; }
.nav-links a:hover { background: var(--card); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--acc); border-radius: 0; }
.burger { display: none; width: 46px; height: 46px; border-radius: 8px; border: 1.5px solid var(--line2); background: var(--card); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--ink); transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* sections */
.sec { padding-block: clamp(64px, 8vw, 112px); }
.sec.tight { padding-block: clamp(40px, 6vw, 72px); }
.card-bg { background: #f4efe6; }
.dark { background: var(--ink); color: #efe9e1; }
.dark .lead, .dark .muted { color: #bdb5ab; }
.grid-bg { background: var(--grid), var(--bg); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 46px); }
.sec-head > div { max-width: 720px; }
.sec-head .h2 { margin-top: 14px; }
.sec-head .lead { margin: 12px 0 0; }
.page-head { padding: clamp(46px, 6vw, 84px) 0 clamp(30px, 4vw, 48px); background: var(--grid), var(--bg); border-bottom: 1px solid var(--line); }
.page-head .h1 { margin-top: 14px; max-width: 16ch; }
.page-head .lead { margin: 14px 0 0; }

/* hero */
.hero { background: var(--grid), var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding-block: clamp(36px, 5vw, 76px) clamp(50px, 7vw, 96px); }
.hero h1 { margin: 18px 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.switch { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); gap: 4px; }
.switch button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.switch button b { font-family: var(--head); font-size: 1.1rem; }
.switch button[aria-pressed="true"][data-l="ja"] { background: var(--ja); color: #fff; }
.switch button[aria-pressed="true"][data-l="ko"] { background: var(--ko); color: #fff; }
.hero-art { position: relative; }
.hero-art img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.hero-art .hello { position: absolute; right: -10px; top: 24px; background: var(--card); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); text-align: center; }
.hero-art .hello b { display: block; font: 900 2rem/1.1 var(--head); color: var(--acc); }
.hero-art .hello span { font-size: .84rem; color: var(--muted); }
.hero-art .stamp { position: absolute; left: -18px; bottom: 26px; background: var(--bg); }
.big-char { position: absolute; right: 2%; bottom: -30px; font: 900 clamp(8rem, 18vw, 15rem)/1 var(--head); color: var(--acc); opacity: .08; pointer-events: none; }

/* flip cards */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.flip { perspective: 900px; aspect-ratio: 3 / 4; border: 0; padding: 0; background: transparent; cursor: pointer; }
.flip .in { display: block; position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3, 1.2, .5, 1); transform-style: preserve-3d; }
.flip[aria-pressed="true"] .in { transform: rotateY(180deg); }
.flip .f, .flip .b { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--r); display: grid; place-items: center; align-content: center; gap: 6px; padding: 12px; text-align: center; }
.flip .f { background: var(--card); border: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 50% 50%; background-position: center; }
.flip .f b { font: 900 clamp(3rem, 6vw, 4.6rem)/1 var(--head); color: var(--ink); }
.flip .f small { font-size: .74rem; color: var(--muted); }
.flip .b { background: var(--acc); color: #fff; transform: rotateY(180deg); }
.flip .b b { font: 700 2.2rem/1 var(--body); }
.flip .b span { font-size: .84rem; opacity: .92; line-height: 1.4; }

/* courses */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; position: relative; text-align: left; }
.course .lv { position: absolute; right: 18px; top: 18px; }
.course .lv .stamp { width: 60px; height: 60px; font-size: .95rem; }
.course .lv .stamp small { display: none; }
.course h3 { font-size: 1.5rem; padding-right: 72px; min-height: 64px; }
.course p { margin: 0; color: var(--ink2); font-size: .93rem; }
.course .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.course .fee { font: 900 1.8rem/1 var(--head); }
.course .fee small { font: 500 .84rem/1 var(--body); color: var(--muted); }
button.course { cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
button.course:hover { border-color: var(--ink); }
button.course[aria-pressed="true"] { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-l), inset 0 0 0 1px var(--acc); }
.tabs { display: inline-flex; gap: 6px; margin-bottom: 18px; }
.batches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.batch { text-align: left; padding: 12px; border-radius: 10px; border: 1.5px solid var(--line2); background: #fff; cursor: pointer; display: grid; gap: 4px; }
.batch b { font: 700 1.05rem/1.2 var(--head); }
.batch small { font-size: .8rem; color: var(--muted); }
.batch .bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.batch .bar i { display: block; height: 100%; background: var(--acc); }
.batch em { font-style: normal; font-weight: 600; font-size: .78rem; color: var(--green); }
.batch em.low { color: var(--ja-d); }
.batch[aria-pressed="true"] { border-color: var(--ink); background: var(--acc-l); box-shadow: inset 0 0 0 1px var(--ink); }
.batch:disabled { opacity: .45; cursor: not-allowed; }
.shift-h { font: 600 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }

/* placement test */
.test { max-width: 760px; margin-inline: auto; }
.squares { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-bottom: 22px; }
.squares i { aspect-ratio: 1; border: 1.5px solid var(--line2); border-radius: 3px; background: #fff; display: grid; place-items: center; font: 600 .74rem/1 var(--body); color: var(--muted); font-style: normal; }
.squares i.done { background: var(--acc-l); border-color: var(--acc); color: var(--acc-d); }
.squares i.now { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.squares i.ok { background: var(--green-l); border-color: var(--green); color: var(--green); }
.squares i.no { background: var(--ja-l); border-color: var(--ja); color: var(--ja-d); }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.qcard .qn { font: 600 .76rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.qcard h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 12px 0 22px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answers button { min-height: 64px; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--line2); background: #fff; cursor: pointer; font: 600 1.15rem/1.3 var(--head); text-align: left; display: flex; gap: 12px; align-items: center; }
.answers button span { width: 28px; height: 28px; border-radius: 6px; background: var(--bg); display: grid; place-items: center; font: 600 .8rem/1 var(--body); flex: none; color: var(--muted); }
.answers button:hover { border-color: var(--ink); }
.answers button[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-l); }
.answers button[aria-pressed="true"] span { background: var(--acc); color: #fff; }
.kr, .eps, .answers, .review li p, .review li b { word-break: keep-all; overflow-wrap: anywhere; }
.squares { scroll-margin-top: 96px; }
.squares i { min-width: 0; }
@media (hover: none) { #stage1 > .note { display: none; } }
.timer { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.timer span { font: 600 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.timer b { font: 700 1.35rem/1 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.timer i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--acc); transition: width 1s linear; }
.timer.low { background: #a52a16; animation: tpulse 1s ease-in-out infinite alternate; }
.timer.low i { background: #fff; }
@keyframes tpulse { to { box-shadow: 0 0 0 4px rgba(200, 54, 31, .25); } }
@media (prefers-reduced-motion: reduce) { .timer.low { animation: none; } }
.timeup { margin: 8px 0 0; font-weight: 600; color: var(--ja-d); }
#qText { font: 700 clamp(1.6rem, 3.4vw, 2.4rem)/1.25 var(--head); margin: 12px 0 22px; }
#qText.eps { font: inherit; }
.eps-ins { font: 700 1.08rem/1.5 var(--head); color: var(--ink); padding-bottom: 12px; border-bottom: 1px dashed var(--line2); margin-bottom: 18px; }
.eps-ins b { color: var(--acc); margin-right: 2px; }
.eps-ins small { display: block; font: 400 .84rem/1.4 var(--body); color: var(--muted); margin-top: 3px; }
.eps-line { font: 700 clamp(1.35rem, 3vw, 1.85rem)/1.6 'Noto Serif KR', serif; padding: 18px 20px; background: var(--bg); border-radius: var(--r-s); border-left: 4px solid var(--acc); }
.eps-box { width: max-content; max-width: 100%; margin: 6px auto 4px; padding: 14px 40px; border: 2px solid var(--ink); border-radius: 4px; font: 900 clamp(1.6rem, 4vw, 2.2rem)/1.2 'Noto Serif KR', serif; letter-spacing: .08em; background: #fff; box-shadow: 5px 5px 0 var(--acc-l); }
.eps-talk { display: grid; gap: 10px; padding: 16px 18px; background: var(--bg); border-radius: var(--r-s); }
.eps-talk p { margin: 0; display: flex; gap: 12px; align-items: baseline; font: 700 clamp(1.15rem, 2.6vw, 1.45rem)/1.55 'Noto Serif KR', serif; }
.eps-talk b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 .9rem/1 'Noto Serif KR', serif; transform: translateY(-2px); }
.eps-talk p + p b { background: var(--acc); }
.eps-read { font: 500 clamp(1.08rem, 2.4vw, 1.25rem)/1.9 'Noto Serif KR', serif; padding: 18px 22px; border: 1.5px solid var(--line2); border-radius: var(--r-s); background: #fff; position: relative; }
.eps-read::before { content: '읽기 · Reading'; display: block; font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.blank { display: inline-block; width: 3.2em; height: .9em; border-bottom: 2.5px solid var(--acc); margin: 0 4px; vertical-align: baseline; }
.answers.long { grid-template-columns: 1fr; }
.answers.long button { min-height: 54px; font-size: 1.05rem; }
.scoreline { margin: 12px 0 0; font: 500 1.05rem/1.3 var(--body); color: var(--ink2); }
.scoreline b { font: 900 2rem/1 var(--head); color: var(--acc); margin: 0 4px; }
.scoreline span { font: 600 .8rem/1 var(--body); background: var(--acc-l); color: var(--acc-d); padding: 5px 8px; border-radius: 20px; vertical-align: middle; }
.review { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.review summary { cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review summary small { color: var(--muted); font-weight: 500; }
.review ol { list-style: none; margin: 0; padding: 0 18px 10px; }
.review li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.review li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem/1 var(--body); font-style: normal; }
.review li.ok i { background: var(--green-l); color: var(--green); }
.review li.no i { background: var(--ja-l); color: var(--ja-d); }
.review li p { margin: 0 0 4px; font-size: 1rem; line-height: 1.5; }
.review li small { color: var(--muted); line-height: 1.6; }
.review li small b { color: var(--ink); }
.review li small b.right { color: var(--green); }
.qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.pick-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pick-lang button { padding: 28px; border-radius: var(--r); border: 1.5px solid var(--line2); background: var(--card); cursor: pointer; text-align: left; display: grid; gap: 6px; transition: transform .2s, border-color .2s; }
.pick-lang button:hover { transform: translateY(-3px); }
.pick-lang button b { font: 900 2.6rem/1 var(--head); }
.pick-lang button[data-l="ja"] b { color: var(--ja); }
.pick-lang button[data-l="ko"] b { color: var(--ko); }
.pick-lang button strong { font-size: 1.15rem; }
.pick-lang button small { color: var(--muted); }
.result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; }
.ring { width: 170px; height: 170px; }
.ring circle { fill: none; stroke-width: 12; }
.ring .bgc { stroke: var(--line); }
.ring .fg { stroke: var(--acc); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 85px 85px; transition: stroke-dashoffset 1.2s ease; }
.ring text { font: 900 44px/1 var(--head); fill: var(--ink); }
.ring .sub { font: 600 13px/1 var(--body); fill: var(--muted); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); }
.sticky { position: sticky; top: 94px; }
.enrol { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.enrol > * { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid > * { min-width: 0; }
.full { grid-column: 1 / -1; }
.inp { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink2); }
.inp input, .inp select, .inp textarea { min-height: 50px; width: 100%; border: 1.5px solid var(--line2); border-radius: 8px; background: #fff; padding: 0 14px; font: 400 16px/1.4 var(--body); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.inp textarea { min-height: 90px; padding: 12px 14px; resize: vertical; }
.inp input:focus, .inp select:focus, .inp textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-l); }
.err { color: var(--ja-d); font-weight: 600; min-height: 1.4em; margin: 10px 0 0; font-size: .93rem; }
[aria-invalid="true"] { border-color: var(--ja) !important; box-shadow: 0 0 0 4px rgba(200, 54, 31, .14) !important; }
button[aria-busy="true"] { cursor: progress; opacity: .8; }
.note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .93rem; border-bottom: 1px dashed var(--line2); }
.sum-row span:first-child { color: var(--muted); }
.sum-row span:last-child { text-align: right; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; padding-top: 14px; }
.sum-total b { font: 900 2.1rem/1 var(--head); color: var(--acc); }

/* confirmation + tracking */
div.done { text-align: center; padding: clamp(24px, 4vw, 44px); }
.ref { display: inline-block; margin: 16px 0 6px; font: 600 1.1rem/1 ui-monospace, Consolas, monospace; letter-spacing: .12em; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; text-align: left; }
.facts div { background: var(--bg); border-radius: var(--r-s); padding: 12px 14px; }
.facts dt { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.find { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 12px; align-items: end; }
.find > * { min-width: 0; }
.trail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 18px 0 4px; }
.trail div { padding-top: 12px; border-top: 5px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--muted); }
.trail div.on { border-top-color: var(--acc); color: var(--ink); }

/* about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split > * { min-width: 0; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { border-top: 2px solid rgba(255, 255, 255, .25); padding-top: 14px; }
.stat b { display: block; font: 900 clamp(2.2rem, 4vw, 3.2rem)/1 var(--head); color: #fff; }
.stat span { color: #bdb5ab; font-size: .92rem; }
.teachers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.teacher { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.teacher .av { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font: 900 1.8rem/1 var(--head); margin-bottom: 12px; color: #fff; background: var(--ja); transform: rotate(-4deg); }
.teacher.ko .av { background: var(--ko); }
.teacher h3 { font-size: 1.25rem; }
.teacher p { margin: 6px 0 0; color: var(--ink2); font-size: .92rem; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); }
.faq summary { cursor: pointer; padding: 16px 18px; font: 700 1.1rem/1.3 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc); font: 700 1.4rem/1 var(--body); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink2); }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.credit { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .9rem; }
.credit img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.credit div { padding: 12px 14px; display: grid; gap: 4px; }
.credit a { overflow-wrap: anywhere; color: var(--acc); }
.cta { border-radius: 20px; padding: clamp(32px, 5vw, 60px); background: var(--grid), var(--acc-l); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 1px solid var(--line); }
.cta p { margin: 12px 0 0; max-width: 52ch; color: var(--ink2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo > div { border-radius: var(--r); padding: clamp(22px, 3vw, 32px); color: #fff; position: relative; overflow: hidden; }
.duo > div::after { content: attr(data-c); position: absolute; right: 10px; bottom: -24px; font: 900 9rem/1 var(--head); opacity: .14; }
.duo .ja { background: var(--ja); }
.duo .ko { background: var(--ko); }
.duo h3 { font-size: 1.9rem; }
.duo p { margin: 8px 0 16px; opacity: .92; max-width: 40ch; }
.duo .btn { background: #fff; color: var(--ink); position: relative; z-index: 1; }

/* footer */
.foot { background: var(--ink); color: #bdb5ab; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px; padding-block: 54px 32px; }
.foot .brand b { color: #fff; }
.foot .brand small { color: #958d84; }
.foot p { margin: 14px 0 0; max-width: 40ch; }
.foot h4 { color: #f0b3a6; font: 600 .74rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.concept { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px 26px; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: .84rem; color: #958d84; }
.concept a { text-decoration: underline; }
.toast { position: fixed; z-index: 99; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; padding: 13px 22px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow); transition: .3s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .flip .in, .ring .fg { transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1100px) {
  .nav-links { position: absolute; inset: 100% 0 auto 0; visibility: hidden; flex-direction: column; background: var(--bg); padding: 10px 20px 18px; border-bottom: 1px solid var(--line); transform: translateY(-160%); transition: transform .3s; z-index: -1; margin: 0; }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: 14px 16px; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--acc); }
  .burger { display: inline-flex; }
  .nav .btn { margin-left: auto; }
  .hero .wrap, .enrol { grid-template-columns: 1fr; }
  .hero-art { max-width: 540px; width: 100%; margin-inline: auto; }
  .sticky { position: static; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .courses { grid-template-columns: 1fr 1fr; }
  .teachers, .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topline .hide-s { display: none; }
  .split, .cta, .courses, .duo, .pick-lang { grid-template-columns: 1fr; }
  .form-grid, .find, .answers { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-art .hello { right: 8px; top: 10px; padding: 10px 14px; }
  .hero-art .hello b { font-size: 1.5rem; }
  .hero-art .stamp { left: 8px; bottom: 12px; }
  .batches { grid-template-columns: 1fr 1fr; }
  .result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .squares { gap: 3px; }
}
@media (max-width: 480px) {
  .foot-grid, .teachers { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .nav .btn { padding: 0 14px; font-size: .84rem; min-height: 42px; }
  .btn { white-space: normal; text-align: center; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .flip .f b { font-size: 2.4rem; }
  .flip .b { padding: 8px; gap: 4px; }
  .flip .b b { font-size: 1.5rem; }
  .flip .b span { font-size: .7rem; }
  .switch button { padding: 0 12px; }
  /* placement test on a phone */
  .qcard { padding: 20px 16px; }
  .squares i { font-size: .62rem; border-width: 1px; }
  .eps-line, .eps-talk, .eps-read { padding: 14px; }
  .eps-box { padding: 12px 28px; }
  .answers button { min-height: 56px; padding: 10px 12px; font-size: 1.08rem; }
  .qnav .btn { flex: 1; }
  .ring { width: 140px; height: 140px; }
  .review ol { padding: 0 12px 8px; }
  .review summary { padding: 14px 12px; }
  .trail div { font-size: .72rem; }
}
@media (max-width: 380px) {
  .brand b { font-size: 1.45rem; }
  .nav .wrap { gap: 10px; }
}
