@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  --primary:       #0EA5E9;
  --primary-dark:  #0284C7;
  --primary-xdark: #0369A1;
  --primary-light: #E0F2FE;
  --primary-pale:  #F0F9FF;
  --dark:          #0F172A;
  --dark-mid:      #1E293B;
  --text:          #1E293B;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --surface:       #F8FAFC;
  --white:         #FFFFFF;
  --border:        #E2E8F0;
  --border-light:  #F1F5F9;
  --success:       #22C55E;
  --success-light: #F0FDF4;
  --success-dark:  #16A34A;
  --warning:       #F59E0B;
  --warning-light: #FFFBEB;
  --danger:        #EF4444;
  --danger-light:  #FEF2F2;
  --yellow:        #FCD34D;
  --purple:        #8B5CF6;
  --r-sm: 6px;  --r: 12px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 9999px;
  --sh-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --sh:    0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --sh-lg: 0 8px 32px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --sh-xl: 0 20px 60px rgba(15,23,42,.16);
  --nav-h: 64px;
  --max-w: 1120px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select {
  font-family: inherit; font-size: inherit; outline: none;
  border: none; background: none;
}
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); }
.text-xs   { font-size: .75rem; }
.text-sm   { font-size: .875rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; font-weight: 700; }
.text-3xl  { font-size: 1.875rem; font-weight: 800; }
.fw-500    { font-weight: 500; }
.fw-600    { font-weight: 600; }
.fw-700    { font-weight: 700; }
.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-primary{ color: var(--primary); }
.text-dark   { color: var(--dark); }
.text-white  { color: var(--white); }
.text-success{ color: var(--success-dark); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 0; }
.section-sm  { padding: 48px 0; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1 { gap: 4px; }  .gap-2 { gap: 8px; }  .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.w-full  { width: 100%; }
.mt-1 { margin-top: 4px; }   .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }  .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }  .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: rgba(15,23,42,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.125rem; font-weight: 800; color: var(--white);
  letter-spacing: -.02em;
}
.nav__logo .logo-mark {
  width: 34px; height: 34px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
}
.nav__links {
  display: flex; align-items: center; gap: 4px;
}
.nav__link {
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.65);
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.active {
  color: var(--white); background: rgba(255,255,255,.1);
}
.nav__cta {
  padding: 8px 18px; background: var(--primary);
  color: var(--white); border-radius: var(--r-full);
  font-size: .875rem; font-weight: 600;
  transition: background .2s, transform .15s;
}
.nav__cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: var(--r-full);
  font-size: .9375rem; font-weight: 600; transition: all .2s;
  white-space: nowrap; cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 14px rgba(14,165,233,.35);
}
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,165,233,.45); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: rgba(255,255,255,.12); color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-secondary:hover { background: rgba(255,255,255,.2); }
.btn-outline {
  background: var(--white); color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--sh-sm);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success {
  background: var(--success); color: var(--white);
  box-shadow: 0 4px 14px rgba(34,197,94,.3);
}
.btn-success:hover { background: var(--success-dark); transform: translateY(-1px); }
.btn-danger {
  background: var(--danger); color: var(--white);
  box-shadow: 0 4px 14px rgba(239,68,68,.3);
}
.btn-danger:hover  { opacity: .9; transform: translateY(-1px); }
.btn-sm  { padding: 8px 16px; font-size: .8125rem; }
.btn-lg  { padding: 16px 32px; font-size: 1.0625rem; }
.btn-xl  { padding: 18px 40px; font-size: 1.125rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--sh);
  padding: 24px;
}
.card-sm  { padding: 16px; border-radius: var(--r); }
.card-lg  { padding: 32px; }
.card-dark {
  background: var(--dark-mid); border-color: rgba(255,255,255,.08);
  color: var(--white);
}
.card-primary {
  background: var(--primary-pale); border-color: var(--primary-light);
}
.card-hover { transition: transform .2s, box-shadow .2s; cursor: pointer; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

/* ── BADGES ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-dark    { background: var(--dark); color: var(--white); }
.badge-free    { background: linear-gradient(135deg, #22C55E, #16A34A); color: var(--white); }

/* ── FORMS ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: .8125rem; font-weight: 600; color: var(--text);
}
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  font-size: .9375rem; color: var(--text); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-control.correct {
  border-color: var(--success);
  background: var(--success-light);
}
.form-control.incorrect {
  border-color: var(--danger);
  background: var(--danger-light);
}
.form-control[disabled] { background: var(--surface); color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }
select.form-control { appearance: none; cursor: pointer; }

/* ── RADIO / MC ──────────────────────────────────────────────────────────── */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: var(--r);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.radio-option:hover { border-color: var(--primary); background: var(--primary-pale); }
.radio-option.selected { border-color: var(--primary); background: var(--primary-pale); }
.radio-option.correct  { border-color: var(--success); background: var(--success-light); }
.radio-option.incorrect{ border-color: var(--danger);  background: var(--danger-light); }
.radio-option input[type=radio] { margin-top: 2px; accent-color: var(--primary); }
.radio-label { font-size: .9375rem; }

/* ── SCORE BAR / PROGRESS ─────────────────────────────────────────────────── */
.progress-bar {
  height: 8px; background: var(--border); border-radius: var(--r-full); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.progress-fill.success { background: linear-gradient(90deg, var(--success), var(--success-dark)); }

/* ── TABS ─────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: var(--r); }
.tab-btn {
  flex: 1; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .8125rem; font-weight: 600; color: var(--text-muted);
  transition: all .2s; text-align: center;
}
.tab-btn:hover    { color: var(--text); background: var(--white); }
.tab-btn.active   { background: var(--white); color: var(--primary); box-shadow: var(--sh-sm); }
.tab-btn.done     { color: var(--success-dark); }
.tab-btn.done::after { content: ' ✓'; }

/* ── AUDIO PLAYER ─────────────────────────────────────────────────────────── */
.audio-player {
  background: var(--dark); border-radius: var(--r-lg);
  padding: 16px 20px; color: var(--white);
}
.audio-controls { display: flex; align-items: center; gap: 16px; }
.play-btn {
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s; flex-shrink: 0;
}
.play-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.play-btn svg { width: 18px; height: 18px; }
.audio-progress { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.audio-bar {
  height: 6px; background: rgba(255,255,255,.2); border-radius: var(--r-full);
  cursor: pointer; position: relative;
}
.audio-fill {
  height: 100%; border-radius: var(--r-full);
  background: var(--primary); transition: width .1s linear;
  pointer-events: none;
}
.audio-time { font-size: .75rem; color: rgba(255,255,255,.55); text-align: right; }

/* ── TIMER ───────────────────────────────────────────────────────────────── */
.timer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: var(--surface); border-radius: var(--r-full);
  font-size: 1rem; font-weight: 700; color: var(--text); border: 1.5px solid var(--border);
}
.timer.warning { color: var(--warning); border-color: var(--warning); background: var(--warning-light); }
.timer.danger  { color: var(--danger);  border-color: var(--danger);  background: var(--danger-light); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.6 } }

/* ── WORD COUNT ──────────────────────────────────────────────────────────── */
.word-count { font-size: .8125rem; font-weight: 600; color: var(--text-muted); }
.word-count.ok      { color: var(--success-dark); }
.word-count.warning { color: var(--warning); }

/* ── RESULT CARD ─────────────────────────────────────────────────────────── */
.result-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  border-radius: var(--r-xl); padding: 32px; color: var(--white);
}
.band-display {
  text-align: center; padding: 20px 0;
}
.band-score {
  font-size: 5rem; font-weight: 900; line-height: 1;
  color: var(--primary); letter-spacing: -.04em;
}
.band-label { font-size: .875rem; color: rgba(255,255,255,.55); margin-top: 4px; }
.section-scores {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px;
}
.section-score-item {
  text-align: center; padding: 12px; background: rgba(255,255,255,.08);
  border-radius: var(--r);
}
.section-score-item .score { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.section-score-item .label { font-size: .6875rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* ── CUE CARD ─────────────────────────────────────────────────────────────── */
.cue-card {
  background: #FFFBF0; border: 2px solid var(--yellow);
  border-radius: var(--r-lg); padding: 24px;
}
.cue-card h4 { color: var(--dark); margin-bottom: 12px; font-size: 1rem; }
.cue-card p  { color: var(--text); font-size: .9375rem; }
.cue-card ul { margin-top: 10px; }
.cue-card ul li {
  color: var(--text-muted); font-size: .9rem; padding: 4px 0;
  padding-left: 16px; position: relative;
}
.cue-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--primary); }

/* ── AI FEEDBACK ─────────────────────────────────────────────────────────── */
.ai-feedback {
  background: linear-gradient(135deg, var(--primary-pale), var(--white));
  border: 1.5px solid var(--primary-light); border-radius: var(--r-lg);
  padding: 24px;
}
.ai-feedback__header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--primary); color: var(--white);
  border-radius: var(--r-full); font-size: .75rem; font-weight: 700;
}
.criteria-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.criteria-item { background: var(--white); border-radius: var(--r); padding: 14px; border: 1px solid var(--border); }
.criteria-item .criteria-band { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.criteria-item .criteria-name { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.criteria-item .criteria-text { font-size: .8125rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.ai-loading { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.spinner {
  width: 20px; height: 20px; border: 2.5px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DASHBOARD ───────────────────────────────────────────────────────────── */
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.score-card {
  background: var(--white); border-radius: var(--r-lg); padding: 20px;
  border: 1px solid var(--border); box-shadow: var(--sh-sm); text-align: center;
}
.score-card .score-val { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.score-card .score-label { font-size: .8125rem; color: var(--text-muted); margin-top: 4px; }
.score-card .score-date  { font-size: .75rem; color: var(--text-light); margin-top: 2px; }
.score-card.listening .score-val { color: var(--primary); }
.score-card.reading   .score-val { color: var(--success-dark); }
.score-card.writing   .score-val { color: var(--warning); }
.score-card.speaking  .score-val { color: var(--purple); }

/* ── TOAST ───────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 18px; border-radius: var(--r); box-shadow: var(--sh-lg);
  font-size: .875rem; font-weight: 500; color: var(--white);
  animation: slideUp .3s ease;
}
.toast.success { background: var(--success-dark); }
.toast.error   { background: var(--danger); }
.toast.info    { background: var(--dark); }
@keyframes slideUp { from { transform: translateY(16px); opacity:0 } to { transform: translateY(0); opacity:1 } }

/* ── PAGE HERO (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-h) + 40px) 0 0;
}
.page-hero__inner {
  display: grid; grid-template-columns: 1fr auto;
  align-items: flex-end; gap: 32px;
}
.page-hero__text { padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--dark); }
.page-hero p  { color: var(--text-muted); margin-top: 8px; font-size: 1.0625rem; }
.page-hero__mascot {
  width: 260px; flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.page-hero__mascot img {
  width: 260px; height: 260px; object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(14,165,233,.2));
}
@media (max-width: 700px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__mascot { display: none; }
}

/* ── SECTION LABELS ──────────────────────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--primary); margin-bottom: 12px;
}
.section-title { margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); font-size: 1.0625rem; max-width: 580px; }

/* ── HOMEPAGE HERO ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0C3A6B 60%, var(--dark-mid) 100%);
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(14,165,233,.18) 0%, transparent 70%);
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 80px 0; position: relative;
}
.hero__text { color: var(--white); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: rgba(14,165,233,.2);
  border: 1px solid rgba(14,165,233,.4); border-radius: var(--r-full);
  font-size: .8125rem; font-weight: 600; color: #7DD3FC;
  margin-bottom: 24px;
}
.hero__title { color: var(--white); margin-bottom: 20px; }
.hero__title .accent { color: var(--primary); }
.hero__subtitle { color: rgba(255,255,255,.65); font-size: 1.125rem; margin-bottom: 36px; line-height: 1.7; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 32px; }
.hero__stat { color: rgba(255,255,255,.8); }
.hero__stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--white); }
.hero__stat span   { font-size: .8125rem; color: rgba(255,255,255,.5); }
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__mascot { filter: drop-shadow(0 24px 48px rgba(14,165,233,.35)); }
.floating-card {
  position: absolute; background: rgba(255,255,255,.95);
  border-radius: var(--r-lg); padding: 12px 16px; box-shadow: var(--sh-lg);
  backdrop-filter: blur(8px);
}
.floating-card .fc-val { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.floating-card .fc-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.fc-1 { top: 10%; left: -10%; }
.fc-2 { bottom: 15%; right: -8%; }
.fc-3 { top: 50%; left: -15%; }

/* ── FEATURES STRIP ──────────────────────────────────────────────────────── */
.features-strip {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.strip-items { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.strip-item  { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .9375rem; font-weight: 500; }
.strip-item .icon { font-size: 1.25rem; }

/* ── MODULE CARDS ────────────────────────────────────────────────────────── */
.module-card {
  background: var(--white); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer; text-decoration: none; display: block;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--primary-light); }
.module-icon {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.module-icon.listening { background: var(--primary-light); }
.module-icon.writing   { background: #FEF3C7; }
.module-icon.speaking  { background: #F0FDF4; }
.module-icon.ai        { background: #F5F3FF; }
.module-card h3 { margin-bottom: 6px; }
.module-card p  { font-size: .9rem; }
.module-card .module-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: .8125rem; font-weight: 600;
}

/* ── WHY SECTION ─────────────────────────────────────────────────────────── */
.why-card {
  background: var(--white); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 28px;
  display: flex; gap: 20px; align-items: flex-start;
}
.why-icon {
  width: 48px; height: 48px; border-radius: var(--r);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark); color: rgba(255,255,255,.55);
  padding: 40px 0;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; }
.footer__logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1rem; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: .875rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer__links a:hover { color: var(--white); }
.footer__copy { font-size: .8125rem; margin-top: 24px; text-align: center; }

/* ── MATCHING SELECT ─────────────────────────────────────────────────────── */
.matching-row {
  display: grid; grid-template-columns: 1fr 200px; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.matching-row:last-child { border-bottom: none; }

/* ── ERROR TABLE ──────────────────────────────────────────────────────────── */
.error-table { width: 100%; border-collapse: collapse; }
.error-table th, .error-table td {
  padding: 12px 16px; text-align: left; font-size: .875rem;
  border-bottom: 1px solid var(--border);
}
.error-table th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); background: var(--surface); }
.error-table .incorrect-cell { color: var(--danger); font-weight: 600; }
.error-table .correct-cell   { color: var(--success-dark); font-weight: 600; }

/* ── ANSWER KEY ──────────────────────────────────────────────────────────── */
.answer-tooltip { font-size: .8rem; color: var(--text-light); }
.correct-answer { font-size: .8rem; font-weight: 600; color: var(--success-dark); margin-top: 2px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { display: none; }
  .hero__stats  { justify-content: center; }
  .hero__actions { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .section-scores { grid-template-columns: repeat(2, 1fr); }
  .criteria-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section   { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .nav__links  { display: none; }
  .matching-row { grid-template-columns: 1fr; }
  .strip-items  { gap: 20px; }
}

/* ── UTILITIES ───────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.rounded-full { border-radius: var(--r-full); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky-top { position: sticky; top: 0; z-index: 10; }

/* ── MODEL ANSWER ─────────────────────────────────────────────────────────── */
.model-answer {
  background: #FFFBF0; border-left: 4px solid var(--yellow);
  border-radius: 0 var(--r) var(--r) 0; padding: 20px 20px 20px 24px;
}
.model-answer p, .model-answer div { font-size: .9375rem; line-height: 1.8; color: var(--text); white-space: pre-wrap; }
