/* english.knowverse.net 시안 공용 스타일
   색·글꼴·반경은 lms.knowverse.net(ai_lms site.css :root)의 값을 그대로 쓰고, 의미 토큰으로 감싼다. */
:root {
  --navy: #1E293B; --indigo: #1E3A8A; --ink: #0F172A; --muted: #475569;
  --paper: #F8FAFC; --paper-2: #F1F5F9; --paper-3: #E2E8F0;
  --line: #E2E8F0; --line-2: #CBD5E1;
  --orange: #EA580C; --orange-700: #C2410C; --orange-50: #FFF7ED; --orange-100: #FFEDD5;
  --blue-50: #EFF6FF; --green: #166534; --green-50: #F0FDF4; --amber: #9a5200; --amber-50: #fff6e8;

  --color-text: var(--ink);
  --color-text-secondary: var(--muted);
  --color-bg: var(--paper);
  --color-surface: #fff;
  --color-surface-soft: var(--paper-2);
  --color-inverse: var(--navy);
  --color-accent: var(--orange);
  --color-accent-hover: var(--orange-700);
  --color-accent-text: var(--orange-700);
  --color-link: var(--indigo);
  --color-focus: var(--indigo);
  --color-border: var(--line);
  --color-border-input: #64748B;       /* 입력 경계: 흰 바탕 대비 4.76:1 */
  --color-success: var(--green); --color-success-bg: var(--green-50);
  --color-warning: var(--amber); --color-warning-bg: var(--amber-50);

  --shadow: 0 4px 10px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);
  --r-card: 16px; --r-inner: 10px; --r-input: 12px; --r-pill: 999px;
  --wrap: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font); font-size: 17px; line-height: 1.7; letter-spacing: -.02em; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.045em; text-wrap: balance; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.en { letter-spacing: -.01em; word-break: normal; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--color-text-secondary); }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 상단 ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--color-inverse); color: #fff; }
.top .bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 19px; font-weight: 800; }
.brand small { display: block; margin-top: -4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #CBD5E1; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: #E2E8F0; font-size: 16px; font-weight: 700; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-pill); color: #fff; font-size: 15px; font-weight: 700; }
.tabbar { display: none; }

/* ---------- 글자 ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--indigo); font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.display { margin-top: 16px; font-size: clamp(36px, 5vw, 62px); font-weight: 800; line-height: 1.12; letter-spacing: -.06em; }
.title-1 { margin-top: 12px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.055em; }
.title-2 { font-size: clamp(22px, 2.2vw, 27px); font-weight: 800; }
.title-3 { font-size: 19px; font-weight: 700; }
.dot-end::after { content: ""; display: inline-block; width: .17em; height: .17em; margin-left: .06em; border-radius: 50%; background: var(--orange); }
.lede { max-width: 34em; color: var(--color-text-secondary); font-size: 18px; text-wrap: pretty; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--r-pill); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s ease-out, border-color .15s ease-out, transform .1s ease-out; }
.btn:active { transform: scale(.96); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
/* 주 버튼: 흰 글자 on #EA580C = 3.56:1 → 굵게 19px(큰 글자 기준)로만 쓴다 */
.btn-primary { min-height: 54px; padding: 0 28px; background: var(--color-accent); color: #fff; font-size: 19px; font-weight: 800; box-shadow: 0 8px 18px rgba(234, 88, 12, .25); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--color-border-input); background: #fff; color: var(--ink); }
.btn-soft { background: var(--blue-50); color: var(--indigo); }
.btn-block { width: 100%; }
.btn-ico { width: 48px; padding: 0; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--color-accent-hover); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-soft:hover { background: #DBEAFE; }
  .nav a:hover { color: #fff; }
}

/* ---------- 표면 ---------- */
.card { padding: 24px; border: 1px solid var(--color-border); border-radius: var(--r-card); background: var(--color-surface); }
.card-soft { background: var(--color-surface-soft); border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--paper-3); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.badge-ok { background: var(--color-success-bg); color: var(--color-success); }
.badge-warn { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-free { background: var(--blue-50); color: var(--indigo); }
.badge-accent { background: var(--orange-50); color: var(--orange-700); }
.meter { height: 10px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--color-accent); }
.section { padding: 72px 0; }
.section-soft { background: var(--color-surface-soft); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.stack-l > * + * { margin-top: 36px; }
.page { padding: 40px 0 96px; }
.page-head { margin-bottom: 32px; }
.foot { padding: 32px 0 40px; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 14px; }
.foot a { color: var(--color-text-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 랜딩 ---------- */
.hero { padding: 64px 0 0; background: linear-gradient(#fff, var(--paper)); border-bottom: 1px solid var(--color-border); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero-copy { padding-bottom: 64px; }
.hero-photo { position: relative; align-self: end; }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 24px 24px 0 0; outline: 1px solid rgba(15, 23, 42, .1); outline-offset: -1px; }
.hero-bubble { position: absolute; left: -36px; bottom: 36px; max-width: 250px; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: var(--shadow-lg); font-size: 16px; font-weight: 600; line-height: 1.45; }
.steps6 { counter-reset: s; }
.steps6 li { counter-increment: s; position: relative; padding: 22px 22px 22px 68px; border: 1px solid var(--color-border); border-radius: var(--r-card); background: #fff; }
.steps6 li::before { content: counter(s); position: absolute; left: 20px; top: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; font-weight: 800; }
.steps6 h3 { font-size: 18px; }
.steps6 p { margin-top: 4px; color: var(--color-text-secondary); font-size: 16px; line-height: 1.6; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.price small { font-size: 18px; font-weight: 700; color: var(--color-text-secondary); letter-spacing: -.02em; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li + li { margin-top: 8px; }
.ticks .ico { margin-top: .3em; color: var(--color-success); }

/* ---------- 홈·커리큘럼 ---------- */
.resume { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px; }
.resume img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 24%; outline: 1px solid rgba(15, 23, 42, .1); outline-offset: -1px; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.phase-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 52px; gap: 16px; align-items: center; padding: 14px 0; }
.phase-row + .phase-row { border-top: 1px solid var(--color-border); }
.chapter { border: 1px solid var(--color-border); border-radius: var(--r-card); background: #fff; }
.chapter + .chapter { margin-top: 14px; }
.chapter > summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: var(--r-card); }
.chapter > summary::-webkit-details-marker { display: none; }
.chapter > summary h3 { flex: 1; min-width: 0; font-size: 19px; }
.chapter > summary .chev { transition: transform .15s ease-out; }
.chapter[open] > summary .chev { transform: rotate(90deg); }
.chapter.is-locked > summary h3 { color: var(--color-text-secondary); }
.lessons { padding: 0 12px 12px; }
.lesson-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 8px 10px; border-radius: var(--r-inner); color: var(--ink); }
.lesson-row + .lesson-row { margin-top: 2px; }
.lesson-row .st { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); color: var(--muted); font-size: 14px; font-weight: 800; }
.lesson-row.is-passed .st { background: var(--color-success-bg); color: var(--color-success); }
.lesson-row.is-now { background: var(--orange-50); }
.lesson-row.is-now .st { background: var(--orange); color: var(--ink); }
.lesson-row.is-locked { color: var(--color-text-secondary); }
.lesson-row .t { font-weight: 600; line-height: 1.45; }
.lesson-row .t small { display: block; color: var(--color-text-secondary); font-size: 14px; font-weight: 400; }
@media (hover: hover) { a.lesson-row:hover { background: var(--paper-2); } a.lesson-row.is-now:hover { background: var(--orange-100); } }
.phase-title { display: flex; align-items: baseline; gap: 12px; margin: 40px 0 14px; }
.phase-title:first-of-type { margin-top: 0; }

/* ---------- 강 학습 ---------- */
.l-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--color-border); }
.l-top .bar { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.l-top h1 { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-top h1 small { color: var(--color-text-secondary); font-size: 14px; font-weight: 600; margin-right: 6px; }
.stepper { display: flex; gap: 6px; }
.stepper button { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--r-pill); background: transparent; color: var(--color-text-secondary); font-size: 14px; font-weight: 700; }
.stepper button i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-3); color: var(--ink); font-style: normal; font-size: 13px; }
.stepper button.is-done i { background: var(--color-success-bg); color: var(--color-success); }
.stepper button[aria-current="step"] { background: var(--ink); color: #fff; }
.stepper button[aria-current="step"] i { background: var(--orange); color: var(--ink); }
.lesson { display: grid; grid-template-columns: clamp(260px, 28vw, 340px) minmax(0, 1fr); gap: 40px; align-items: start; padding: 32px 0 140px; }
.claire { position: sticky; top: 92px; }
.claire-photo { position: relative; border-radius: var(--r-card); overflow: hidden; background: #fff; outline: 1px solid rgba(15, 23, 42, .1); outline-offset: -1px; }
.claire-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 21%; }
.claire-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 700; }
.speaking { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-700); font-size: 14px; font-weight: 700; }
.speaking::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.claire-cap { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-inner); background: var(--navy); color: #fff; font-size: 16px; line-height: 1.55; min-height: 82px; }
.claire-cap .en { color: #FED7AA; }
.stage { max-width: 720px; min-width: 0; }
.panel > header { margin-bottom: 24px; }
.panel > header p { margin-top: 6px; color: var(--color-text-secondary); }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .panel { animation: panel-in .2s ease-out; } @keyframes panel-in { from { opacity: 0; transform: translateY(8px); } } }

.vocab { border: 1px solid var(--color-border); border-radius: var(--r-card); background: #fff; }
.vocab + .vocab { margin-top: 10px; }
.vocab-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 12px 12px 12px 20px; }
.vocab-head .w { font-size: 19px; font-weight: 700; line-height: 1.4; }
.vocab-head .w small { margin-left: 8px; color: var(--color-text-secondary); font-size: 14px; font-weight: 500; }
.vocab-body { padding: 0 20px 16px; color: var(--color-text-secondary); font-size: 16px; }
.vocab-body .ex { margin-top: 6px; padding: 10px 14px; border-radius: var(--r-inner); background: var(--paper-2); color: var(--ink); }
.subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.subhead:first-child { margin-top: 0; }

.slide { padding: 28px; border: 1px solid var(--color-border); border-radius: var(--r-card); background: #fff; }
.slide .bad, .slide .good { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px 16px; border-radius: var(--r-inner); font-size: 18px; line-height: 1.5; }
.slide .bad { background: var(--paper-2); color: var(--color-text-secondary); }
.slide .good { background: var(--color-success-bg); }
.slide .good .ico { color: var(--color-success); }
.slide .ico { margin-top: .2em; }
.player { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.player .track { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-3); }
.player .track span { display: block; width: 42%; height: 100%; border-radius: 3px; background: var(--ink); }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.dots i.on { background: var(--ink); }

.say { padding: 28px; border: 1px solid var(--color-border); border-radius: var(--r-card); background: #fff; text-align: center; }
.say .target { font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; text-wrap: balance; }
.say .ko { margin-top: 6px; color: var(--color-text-secondary); }
.mic { display: grid; place-items: center; width: 84px; height: 84px; margin: 24px auto 0; border: 0; border-radius: 50%; background: var(--color-accent); color: #fff; box-shadow: 0 10px 22px rgba(234, 88, 12, .3); transition: background-color .15s ease-out, transform .1s ease-out; }
.mic .ico { width: 34px; height: 34px; }
.mic:active { transform: scale(.96); }
.mic[aria-pressed="true"] { background: var(--ink); box-shadow: none; }
.mic-hint { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--color-text-secondary); min-height: 26px; }
.rec-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--orange); }
@media (prefers-reduced-motion: no-preference) { .rec-dot { animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .25; } } }
.words { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.word { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--r-pill); font-size: 17px; font-weight: 600; }
.word.ok { background: var(--color-success-bg); color: var(--color-success); }
.word.miss { background: var(--color-warning-bg); color: var(--color-warning); text-decoration: underline dashed; text-underline-offset: 4px; }
.word .ico { width: 15px; height: 15px; stroke-width: 3; }
.result-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; font-weight: 700; }
.result-line b { font-size: 26px; font-weight: 800; }

.brief { padding: 18px 20px; border-radius: var(--r-card); background: var(--navy); color: #fff; }
.brief h3 { font-size: 17px; }
.brief p { margin-top: 4px; color: #E2E8F0; font-size: 16px; line-height: 1.6; }
.chat { margin-top: 20px; display: grid; gap: 14px; }
.bubble { max-width: 88%; padding: 14px 18px; border-radius: 18px; font-size: 17px; line-height: 1.55; }
.bubble small { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--color-text-secondary); }
.bubble.c { justify-self: start; border: 1px solid var(--color-border); border-bottom-left-radius: 6px; background: #fff; }
.bubble.u { justify-self: end; border-bottom-right-radius: 6px; background: var(--blue-50); }
.task { justify-self: stretch; padding: 12px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-inner); color: var(--ink); font-size: 16px; }
.task b { color: var(--orange-700); }
.fix { justify-self: stretch; border: 1px solid var(--color-border); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.fix > div { padding: 16px 20px; }
.fix > div + div { border-top: 1px solid var(--color-border); }
.fix h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 800; color: var(--color-text-secondary); letter-spacing: 0; }
.fix del { color: var(--color-text-secondary); text-decoration-thickness: 2px; }
.fix ins { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; background: var(--color-success-bg); color: var(--color-success); padding: 0 2px; border-radius: 3px; }
.fix ul { font-size: 16px; color: var(--ink); }
.fix ul li { position: relative; padding-left: 16px; }
.fix ul li + li { margin-top: 4px; }
.fix ul li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.skel { height: 18px; border-radius: 6px; background: var(--paper-3); }
.skel + .skel { margin-top: 10px; }
.reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 20px; }
.reply .mic { width: 64px; height: 64px; margin: 0; }
.reply .mic .ico { width: 26px; height: 26px; }
.field { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--color-border-input); border-radius: var(--r-input); background: #fff; font-size: 17px; line-height: 1.5; }
textarea.field { resize: vertical; }
.field:focus-visible { outline-offset: 0; border-color: var(--color-focus); }

.sum-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; }
.sum-list li + li { border-top: 1px solid var(--color-border); }
.sum-list .en { font-weight: 700; font-size: 18px; line-height: 1.45; }
.sum-list small { display: block; color: var(--color-text-secondary); font-size: 15px; font-weight: 400; }

.quiz { padding: 28px; border: 1px solid var(--color-border); border-radius: var(--r-card); background: #fff; }
.quiz-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-weight: 700; }
.quiz-play { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.quiz label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.score { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; border-radius: var(--r-card); }
.score.pass { background: var(--color-success-bg); }
.score.fail { background: var(--color-warning-bg); }
.ring { --p: 83; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(currentColor calc(var(--p) * 1%), rgba(15, 23, 42, .12) 0); }
.ring span { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
.score.pass .ring { color: var(--color-success); }
.score.fail .ring { color: var(--color-warning); }
.answers { margin-top: 20px; }
.answers li { padding: 14px 0; }
.answers li + li { border-top: 1px solid var(--color-border); }
.answers .q { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; color: var(--color-text-secondary); }
.answers .a { font-size: 17px; line-height: 1.5; }
.answers .a.mine { color: var(--color-text-secondary); }

.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--color-border); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.actionbar .wrap { display: flex; align-items: center; gap: 12px; }
.actionbar .why { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; color: var(--color-text-secondary); }
.actionbar .why b { color: var(--ink); }

/* ---------- 이용권 ---------- */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.method { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 20px; border: 1.5px solid var(--color-border-input); border-radius: var(--r-card); background: #fff; cursor: pointer; }
.method + .method { margin-top: 12px; }
.method:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.method input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--ink); }
.method b { display: block; font-size: 18px; }
.method span { color: var(--color-text-secondary); font-size: 15px; line-height: 1.5; }
.notice { padding: 16px 18px; border-radius: var(--r-inner); background: var(--color-warning-bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
.notice b { color: var(--color-warning); }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.55; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; font-size: 16px; }
.kv dt { color: var(--color-text-secondary); }
.kv dd { font-weight: 700; text-align: right; }
.switch { position: relative; width: 52px; height: 30px; border: 0; border-radius: 15px; background: var(--color-border-input); transition: background-color .15s ease-out; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s ease-out; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .stepper button span { display: none; }
  .stepper button { padding: 0 6px; }
  .lesson { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
  .claire { position: static; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
  .claire-photo { grid-row: 1 / span 2; width: 72px; height: 72px; border-radius: 50%; }
  .claire-photo img { width: 72px; height: 72px; aspect-ratio: auto; object-position: 50% 24%; }
  .claire-name { margin: 0; align-self: end; }
  .claire-cap { grid-column: 2; margin: 0; padding: 10px 14px; min-height: 0; font-size: 15px; }
  /* ② 설명·⑤ 정리에서는 클레어를 크게 */
  .lesson[data-step="2"] .claire, .lesson[data-step="5"] .claire { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .lesson[data-step="2"] .claire-photo, .lesson[data-step="5"] .claire-photo { grid-row: auto; width: min(60vw, 260px); height: auto; border-radius: var(--r-card); }
  .lesson[data-step="2"] .claire-photo img, .lesson[data-step="5"] .claire-photo img { width: 100%; height: auto; aspect-ratio: 1; object-position: 50% 22%; }
  .lesson[data-step="2"] .claire-name, .lesson[data-step="5"] .claire-name { justify-self: stretch; }
  .lesson[data-step="2"] .claire-cap, .lesson[data-step="5"] .claire-cap { grid-column: auto; justify-self: stretch; text-align: left; }
  .stage { max-width: none; }
  .hero-grid, .pay-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-photo { max-width: 420px; margin-inline: auto; }
  .hero-bubble { left: 8px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 72px; }
  body.is-lesson { padding-bottom: 0; }
  .wrap { width: calc(100% - 32px); }
  .nav, .who span.name { display: none; }
  .top .bar { min-height: 56px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--color-border); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; min-height: 60px; padding-top: 9px; color: var(--color-text-secondary); font-size: 12px; font-weight: 700; line-height: 1.3; }
  .tabbar a .ico { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .section { padding: 48px 0; }
  .page { padding: 24px 0 48px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .resume { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .resume img { width: 64px; height: 64px; }
  .resume .btn { grid-column: 1 / -1; }
  .phase-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .phase-row .meter { grid-column: 1 / -1; grid-row: 2; }
  .card, .say, .quiz, .slide { padding: 18px; }
  .chapter > summary { padding: 14px 16px; gap: 10px; }
  .chapter > summary h3 { font-size: 17px; }
  .lessons { padding: 0 6px 8px; }
  .l-top .bar { flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; }
  .l-top h1 { font-size: 16px; }
  .stepper { order: 3; width: 100%; justify-content: space-between; }
  .stepper button { min-height: 36px; }
  .score { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .bubble { max-width: 94%; font-size: 16px; }
  .actionbar .why { font-size: 14px; }
  .actionbar .btn-primary { font-size: 19px; padding: 0 20px; }
  .steps6 li { padding: 18px 18px 18px 60px; }
  .steps6 li::before { left: 14px; top: 18px; }
}

#claire-mouth { position: absolute; max-width: none; aspect-ratio: auto; object-fit: fill; pointer-events: none; }
.status:not(:empty) { margin-block: 8px; color: var(--color-text-secondary); font-size: 15px; }
.vocab-toggle { border: 0; background: transparent; padding: 5px 0; text-align: left; min-height: 44px; }
.vocab-toggle small { display: inline-block; }
.speech-form { margin-top: 12px; justify-content: center; }
.speech-form .field { flex: 1 1 235px; min-width: 0; }
.reading-question { min-width: 0; margin-inline: 0; padding: 8px 12px; border: 1px solid var(--color-border-input); border-radius: var(--r-input); }
.reading-question legend { padding-inline: 5px; font-weight: 700; }
.reading-question label { flex-wrap: nowrap; min-height: 44px; cursor: pointer; }
.reading-text { padding: 12px; background: var(--color-surface-soft); border-radius: var(--r-inner); white-space: pre-wrap; }
.mistakes { list-style: disc; padding-inline-start: 24px; margin-top: 8px; }
.motion-option { margin-top: 12px; font-size: 15px; }
.motion-option input { width: 20px; height: 20px; }
.btn.is-playing, [data-save][aria-pressed="true"] { background: var(--color-link); color: #fff; }
.words-left { justify-content: flex-start; margin-top: 10px; }
.top a:focus-visible { outline-color: #fff; }
#task-targets { margin-top: 6px; font-size: 15px; }
.speech-privacy { margin-top: 12px; color: var(--color-text-secondary); font-size: 15px; }
.speech-privacy summary { cursor: pointer; padding-block: 6px; }
#turn-play { margin-top: 8px; }
#turn-submit { flex-shrink: 0; }
.method:has(input:disabled) { cursor: default; background: var(--color-surface-soft); }
.field[aria-invalid="true"] { border-color: var(--color-warning); }
.bubble, .fix { min-width: 0; overflow-wrap: anywhere; }
.actionbar button { white-space: normal; }
.actionbar .why:empty { flex: 1; }

@media (max-width: 480px) {
  .top .bar { gap: 8px; }
  .actionbar .wrap { flex-wrap: wrap; gap: 8px; }
  .actionbar .why:not(:empty) { order: 3; flex-basis: 100%; }
  .actionbar #next { margin-left: auto; }
  .method { grid-template-columns: 24px minmax(0, 1fr); padding: 14px; gap: 6px 12px; }
  .method > .badge { grid-column: 2; justify-self: start; }
  .lesson-row { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; }
  .lesson-row > :nth-child(3):not(.sr-only) { grid-column: 2; justify-self: start; }
  .lesson-row .st { width: 28px; height: 28px; }
  .vocab-head { padding-left: 12px; }
  .btn-block { white-space: normal; }
  .player { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .mic, .chapter > summary .chev { transition-property: background-color, border-color; }
  .btn:active, .mic:active { transform: none; }
}
