/* ===== 디자인 토큰 ===== */
:root {
  --teal: #19b8c4;
  --teal-dark: #0e9aa6;
  --yellow: #ffd75e;
  --sky: #cfeaf6;
  --ink: #2b3640;
  --muted: #6b7783;
  --line: #e6edf1;
  --bg-card: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(34, 80, 100, .10);
  --font-ko: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Poppins", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ko);
  color: var(--ink);
  line-height: 1.6;
  background: linear-gradient(135deg, #7fd6dd 0%, #a9e2e6 45%, #cfeaf6 100%);
  min-height: 100vh;
  padding: 28px 16px 40px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== 바깥 흰색 카드 ===== */
.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(30, 90, 110, .18);
  padding: 22px 44px 28px;
  overflow: hidden;
}

/* ===== 메뉴 ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 0 18px;
  position: relative;
}
.brand {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .2px;
  color: var(--ink);
}
.brand::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--yellow));
}
.brand--has-logo::before { display: none; }
.brand__logo {
  width: 48px; height: 48px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 7px;
}
.brand--sm { font-size: 15px; }

/* ===== 인트로 스플래시 ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  transition: opacity .7s ease;
}
.splash.is-done { opacity: 0; pointer-events: none; }
body.splash-active { overflow: hidden; }
.splash__logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: auto;
  transform-origin: top left;
  filter: drop-shadow(0 0 26px rgba(25, 184, 196, .65));
  will-change: transform;
}
.nav__menu {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .6px;
  color: var(--muted);
}
.nav__menu a { padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--ink); border-color: var(--teal); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.link { font-size: 13px; color: var(--muted); }
.link:hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--muted); margin: 4px 0; border-radius: 2px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--teal);
  box-shadow: 0 8px 18px rgba(25, 184, 196, .28);
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--sm { padding: 8px 18px; font-size: 13px; box-shadow: none; }
.btn--ghost { background: #fff; color: var(--teal-dark); box-shadow: none; }
.btn--ghost:hover { background: #effafb; color: var(--teal-dark); }
.btn--light { background: #fff; color: var(--teal-dark); border-color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.btn--light:hover { background: #effafb; border-color: #effafb; }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.8); box-shadow: none; }
.btn--outline:hover { background: rgba(255,255,255,.16); border-color: #fff; }

/* ===== 히어로 ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
  padding: 70px 0 80px;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; color: #5b6670; letter-spacing: -.5px; }
.hero h1 span { color: var(--teal); }
.lead { margin: 22px 0 36px; color: var(--muted); max-width: 440px; font-size: 16px; }
.hero__text, .hero__art { min-width: 0; }
.hero__art svg { width: 100%; height: auto; display: block; }

/* ===== 통계 한 줄 ===== */
.stats-band { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: flex; justify-content: space-around; align-items: center; gap: 20px; }
.stats li { display: flex; align-items: baseline; gap: 8px; }
.stats b { font-family: var(--font-en); font-size: 26px; font-weight: 700; color: var(--ink); }
.stats span { font-size: 14px; color: var(--muted); }
/* ===== 공통 섹션 ===== */
.section { padding: 50px 0 40px; }
.section h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: #4a5560; }
.section__sub { color: var(--muted); margin: 8px 0 26px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(34, 80, 100, .16); }
.card h3 { font-size: 18px; margin: 12px 0 8px; color: #44505b; }
.card p { color: var(--muted); font-size: 14.5px; }

.steps, .courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step__no {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #e5f7f9; color: var(--teal-dark);
  font-family: var(--font-en); font-weight: 700;
}
.course ul { margin: 14px 0 16px; display: grid; gap: 4px; font-size: 13px; color: #55616c; }
.course ul li::before { content: "•"; color: var(--teal); margin-right: 8px; }
.course__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; }
.course__icon--teal { background: #dff5f7; }
.course__icon--yellow { background: #fff3c9; }
.course__icon--sky { background: #e2f1fa; }
.more { font-weight: 700; font-size: 14px; color: var(--teal-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.chip {
  padding: 12px 22px; border-radius: 999px;
  background: #f4fafc; border: 1px solid var(--line);
  font-weight: 500; font-size: 15px;
  transition: background .2s, transform .2s;
}
.chip i { font-style: normal; font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--teal-dark); background: #e0f5f7; border-radius: 6px; padding: 2px 7px; margin-right: 10px; }
.chip:hover { background: #e5f7f9; transform: translateY(-2px); }

/* ===== 시작하기 ===== */
.cta {
  margin-top: 6px;
  padding: 34px 38px;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--teal) 0%, #4cd0d6 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; }
.cta p { margin-top: 6px; opacity: .92; }
.cta__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.footer__legal a { color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--ink); text-decoration: underline; }

/* ===== 약관·개인정보처리방침 ===== */
.legal { max-width: 760px; margin: 0 auto; padding: 50px 0 60px; color: var(--ink); line-height: 1.75; }
.legal h1 { font-size: 27px; margin-bottom: 6px; }
.legal__updated { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.legal__note {
  background: #fff7e0; border: 1px solid #ffe6a0; border-radius: 14px;
  padding: 14px 18px; font-size: 13px; color: #7a5b00; margin: 0 0 32px; line-height: 1.6;
}
.legal h2 { font-size: 17px; margin: 32px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink); }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; font-size: 14.5px; color: var(--ink); }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal li > ul, .legal li > ol { margin-top: 6px; }

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .page { padding: 18px 22px 24px; border-radius: 26px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 30px 0 40px; }
  .hero__art { order: -1; max-width: 460px; margin: 0 auto; }
  .steps, .courses { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 12px; }
  .nav__toggle { display: block; order: -1; }
  .nav__actions { margin-left: auto; }
  .nav__menu {
    display: none;
    position: absolute; top: 56px; left: 0; right: 0; z-index: 5;
    flex-direction: column; gap: 4px; margin: 0;
    padding: 12px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow);
    font-size: 14px;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 10px 4px; border-bottom: 0; }
  .cta { padding: 26px 22px; }
}
@media (max-width: 480px) {
  body { padding: 12px 8px 24px; }
  .page { padding: 14px 16px 20px; }
  .nav__actions .link { display: none; }
  .stats { flex-direction: column; gap: 10px; }
  .hero .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== 언어 선택 ===== */
.lang-select {
  font: inherit; font-size: 13px; color: var(--muted);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer; outline: 0;
}
.lang-select:hover { border-color: var(--teal); color: var(--ink); }

/* ===== 학습 선택 페이지 ===== */
.pick { padding: 30px 0 20px; }
.pick h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; color: #4a5560; }
.pick__step { font-size: 16px; font-weight: 700; color: var(--teal-dark); margin: 30px 0 14px; }
.pick__langs { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pick__langs label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.pick__langs select {
  font: inherit; font-size: 16px; font-weight: 700; color: var(--ink);
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; min-width: 160px;
}
.pick__arrow { color: var(--teal); font-size: 22px; margin-top: 16px; }
.pick__warn { margin-top: 10px; font-size: 13px; color: #e0452c; }
.pick__course { position: relative; cursor: pointer; }
.pick__course input { position: absolute; opacity: 0; pointer-events: none; }
.pick__course:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25, 184, 196, .25), var(--shadow); }
.pick__course:has(input:checked)::after {
  content: "✓"; position: absolute; top: 16px; right: 18px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.pick__course:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; }
.pick__go { margin-top: 30px; display: flex; justify-content: flex-end; }
.btn.is-disabled { background: #c9d3d9; border-color: #c9d3d9; box-shadow: none; cursor: not-allowed; transform: none; }

.nav__actions { margin-left: auto; }
.nav__menu + .nav__actions { margin-left: 0; }

.pick__course:hover { border-color: var(--teal); }
.pick__course.is-disabled { opacity: .5; cursor: not-allowed; }

/* ===== A팀: 미리보기·근거·체험안내·FAQ ===== */
.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 50px; }
.preview .section__sub { margin-bottom: 18px; }
.demo { background: #f4fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.demo__row { background: #fff; border-radius: 14px; padding: 12px 16px; border: 1px solid var(--line); }
.demo__row small { display: block; font-size: 11.5px; color: var(--teal-dark); font-weight: 700; margin-bottom: 4px; }
.demo__row p { font-size: 15px; color: var(--ink); }
.demo__main { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo__main strong { font-size: 20px; }
.demo__play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 12px; }
.demo__pron { font-family: var(--font-en); color: var(--teal-dark) !important; font-weight: 500; }
.why__h { font-size: clamp(20px, 2.2vw, 24px); font-weight: 900; color: #4a5560; margin-bottom: 18px; }
.why { border-top: 4px solid var(--yellow); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.flow__item { list-style: none; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.compare__col h3 { margin-top: 0; }
.compare__col ul { display: grid; gap: 8px; font-size: 14.5px; color: #55616c; }
.compare__col li::before { content: "✓"; color: var(--teal-dark); font-weight: 700; margin-right: 10px; }
.compare__col--pro { border: 2px solid var(--teal); }
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: #44505b; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-dark); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible, .btn:focus-visible, .more:focus-visible, .nav a:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 8px; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.more { color: #0b7f89; }
@media (max-width: 900px) {
  .preview, .flow, .compare { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
.flow { padding: 0; margin: 0; }
