:root {
  color-scheme: light;

  --paper: #F7F9FC;
  --soft: #EDF2F9;
  --card: #FFFFFF;
  --ink: #0D1B36;
  --muted: #55607A;
  --line: #DCE4EF;
  --brand: #0054BA;
  --brand-dark: #003F8C;
  --accent: #D0343F;
  --on-dark: #F2F6FC;
  --on-dark-muted: #B7C2D6;
  --font-logo: "Jost", "Onest", system-ui, sans-serif;

  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --font-ko: "Gowun Batang", "Noto Serif KR", "Malgun Gothic", serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 12px 32px -12px rgba(22, 24, 29, .14);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[lang="ko"] { font-family: var(--font-ko); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}
.container-narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brand);
}
.logo-cap {
  width: auto;
  height: 46px;
  margin: -12px 0 0 -3px;
}
.footer-logo {
  display: block;
  width: 190px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: .97rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  place-items: center;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px);
}
.hero-watermark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-52%);
  font-size: clamp(320px, 52vw, 720px);
  font-weight: 700;
  line-height: 1;
  color: var(--soft);
  pointer-events: none;
  user-select: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow [lang="ko"] {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.accent { color: var(--brand); }

.lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .97rem;
  color: var(--muted);
}
.hero-facts b { color: var(--ink); font-weight: 600; }

.phrase-card {
  position: relative;
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.phrase-card::before {
  content: "";
  position: absolute;
  left: 0; top: 36px; bottom: 36px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--accent) 50%, var(--brand) 50%);
}
.phrase-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.phrase-ko {
  margin-top: 20px;
  min-height: 2.5em;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.25;
  word-break: keep-all;
}
.phrase-rom {
  margin-top: 8px;
  font-size: 1.02rem;
  color: var(--accent);
  font-weight: 500;
}
.phrase-uz {
  margin-top: 4px;
  font-size: 1.12rem;
  font-weight: 500;
}
.phrase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.phrase-card.is-switching .phrase-ko,
.phrase-card.is-switching .phrase-rom,
.phrase-card.is-switching .phrase-uz { opacity: 0; transform: translateY(6px); }
.phrase-ko, .phrase-rom, .phrase-uz { transition: opacity .25s, transform .25s; }

.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 .95rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.listen-btn:hover { border-color: var(--brand); color: var(--brand); }

.phrase-dots { display: flex; gap: 4px; }
.phrase-dot {
  width: 28px; height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.phrase-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color .2s, transform .2s;
}
.phrase-dot[aria-pressed="true"]::before { background: var(--brand); transform: scale(1.3); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-lead { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-glyph {
  display: block;
  margin-bottom: 20px;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.feature:nth-child(even) .feature-glyph { color: var(--accent); }
.feature p { margin-top: 10px; font-size: .98rem; color: var(--muted); }

/* Results */
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .eyebrow,
.section-dark .section-lead { color: var(--on-dark-muted); }
.section-dark .eyebrow [lang="ko"] { color: #9CC2FF; }
.section-dark :focus-visible,
.lightbox :focus-visible { outline-color: #fff; }
.section-dark .section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }

.round-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, opacity .15s;
}
.round-btn:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--ink); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* Harakat o‘chirilgan bo‘lsa (yoki JS'siz) oddiy gorizontal lenta; .is-moving — uzluksiz aylanuvchi holat */
.results-marquee {
  overflow-x: auto;
  padding: 8px 20px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.results-marquee.is-moving {
  overflow: hidden;
  overflow: clip;
  padding-inline: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.results-track {
  display: flex;
  width: max-content;
}
.is-moving .results-track { will-change: transform; }
.result-card {
  flex: none;
  width: clamp(210px, 21vw, 264px);
  margin-right: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.result-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  background: #12305F;
  transition: transform .2s;
}
.result-card:hover img { transform: translateY(-4px); }
.result-card:focus-visible { outline-offset: 4px; border-radius: 18px; }
.result-cap { display: block; margin-top: 12px; font-size: .95rem; font-weight: 600; }
.result-cap span { font-weight: 400; color: var(--on-dark-muted); }

.lightbox {
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(7, 14, 30, .88); }
.lightbox-figure { display: grid; justify-items: center; gap: 14px; margin: 0; }
.lightbox-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 640px);
  max-height: calc(100vh - 140px);
  border-radius: 16px;
}
.lightbox-bar { display: flex; align-items: center; justify-content: center; gap: 16px; }
.lightbox-cap { min-width: 11em; font-weight: 600; text-align: center; }
.lightbox .round-btn { background: rgba(255, 255, 255, .1); }
.lightbox-close { position: fixed; top: 16px; right: 16px; }

/* Courses */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 500 .95rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.course {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.course-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.course-ko { font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--accent); }
.tag {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.course p { margin-top: 10px; font-size: .98rem; color: var(--muted); }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 18px 0 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: .9rem;
  font-weight: 500;
}
.course-meta li + li::before { content: "·"; margin-right: 14px; color: var(--muted); }
.course-link {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 0;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s;
}
.course-link:hover { border-color: var(--brand); }

/* Hangul */
.hangul {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.hangul-panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 32px 28px;
  background: var(--ink);
  color: #F2F6FC;
  border-radius: 28px;
  text-align: center;
}
.hangul-big { font-size: 7.5rem; font-weight: 700; line-height: 1.1; }
.hangul-rom {
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #9CC2FF;
  letter-spacing: .04em;
}
.hangul-example {
  margin: 24px 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07);
}
.hangul-word { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.hangul-word-meta { margin-top: 4px; font-size: .98rem; color: #B7C2D6; }
.hangul-panel .listen-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
  color: #F2F6FC;
}
.hangul-panel .listen-btn:hover { border-color: #fff; color: #fff; }

.hangul-group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.hangul-group-title [lang="ko"] { font-size: .95rem; font-weight: 400; color: var(--muted); }
.hangul-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
.hangul-grid:last-child { margin-bottom: 0; }
.hangul-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1;
  min-height: 64px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s, transform .15s;
}
.hangul-key:hover { border-color: var(--ink); transform: translateY(-2px); }
.hangul-key-letter { font-family: var(--font-ko); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.hangul-key-rom { font-size: .78rem; font-weight: 500; color: var(--muted); }
.hangul-key[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.hangul-key[aria-pressed="true"] .hangul-key-rom { color: rgba(255, 255, 255, .85); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::after {
  content: "0" counter(step);
  position: absolute;
  right: 22px; top: 26px;
  font: 600 .85rem/1 var(--font-body);
  color: var(--muted);
}
.step-ko {
  display: block;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.step p { margin-top: 10px; font-size: .98rem; color: var(--muted); }

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.plan h3 { font-size: 1.4rem; }
.plan-desc { margin-top: 6px; color: var(--muted); font-size: .98rem; }
.plan-price { margin: 24px 0; font-size: 1.05rem; font-weight: 500; }
.plan-price b {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.plan-price span { color: var(--muted); }
.plan-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  font-size: .98rem;
}
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .5em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

.plan-featured { background: var(--ink); border-color: var(--ink); color: #F2F6FC; }
.plan-featured .plan-desc,
.plan-featured .plan-price span { color: #B7C2D6; }
.plan-featured .plan-list li::before { border-color: #9CC2FF; }
.plan-badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .8rem;
  font-weight: 600;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 16px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* Signup */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contacts { display: grid; gap: 20px; margin: 36px 0 0; }
.contacts dt {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contacts dd { margin: 4px 0 0; font-size: 1.12rem; font-weight: 500; }
.contacts a { text-decoration: none; border-bottom: 1.5px solid var(--line); }
.contacts a:hover { border-color: var(--brand); color: var(--brand); }

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend { padding: 0; font-size: .95rem; font-weight: 600; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--muted); }

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brand); background: var(--card); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field-error { font-size: .9rem; color: var(--accent); font-weight: 500; }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.radio input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.radio input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }

.form-hint { font-size: .88rem; color: var(--muted); text-align: center; }
.form-result {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  font-size: .97rem;
}
.form-result.is-error { background: #FBEAEC; }
.form-result.is-error strong { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .65; cursor: progress; }
.form-result strong { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 1.08rem; }
.form-result pre {
  margin: 12px 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  font: 400 .9rem/1.5 var(--font-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { font-size: .92rem; color: var(--muted); }

/* Reveal on scroll (faqat JS yoqilganda) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .hangul { grid-template-columns: 1fr; }
  .hangul-panel {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 28px;
    text-align: left;
  }
  .hangul-big { grid-row: span 3; font-size: 6rem; }
  .hangul-example { margin: 14px 0; }
  .hangul-panel .listen-btn { justify-self: start; }
}

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(22, 24, 29, .25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--ink);
  }
  .site-nav .btn { margin-top: 16px; min-height: 50px; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-watermark { top: 0; right: -18%; transform: none; opacity: .7; }
  .plans { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .feature-grid, .steps, .course-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hangul-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .hangul-key { min-height: 56px; border-radius: 14px; }
  .hangul-key-letter { font-size: 1.6rem; }
  .hangul-panel { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .hangul-big { grid-row: auto; }
  .hangul-panel .listen-btn { justify-self: center; }
  .faq summary { font-size: 1.05rem; }
  .result-card { width: 62vw; margin-right: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
