/* ── RESET & TOKENS ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #2b4f9e;
  --primary-dark: #1e3a7a;
  --primary-light: #8aaee0;
  --accent:       #e87040;
  --accent-light: #f4b59e;
  --dark:         #1a1a1a;
  --mid:          #474747;
  --light:        #6e6e6e;
  --bg:           #ffffff;
  --bg-soft:      #f2f5fb;
  --bg-accent:    #e8eef8;
  --radius:       16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Google Sans', Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
  transition: background 0.3s, border-color 0.3s;
}
nav.nav-scrolled {
  background: var(--bg);
  border-bottom: 1px solid #eee;
}

nav:not(.nav-scrolled) .nav-logo { color: #fff; }
nav:not(.nav-scrolled) .nav-logo span { color: #fff; }
nav:not(.nav-scrolled) .nav-links a { color: rgba(255,255,255,0.9); }
nav:not(.nav-scrolled) .nav-links a:hover { color: #fff; }
nav:not(.nav-scrolled) .lang-btn { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.4); }
nav:not(.nav-scrolled) .lang-btn.active { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.7); }
nav:not(.nav-scrolled) .nav-cta { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links { display: flex; gap: 2rem; font-size: 0.9rem; color: var(--mid); }
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 5vw 5rem;
  background: var(--bg-accent);
}

.hero-logo {
  height: 220px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--mid);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  transition: background 0.2s, transform 0.1s;
}
.hero-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 560px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ── SECTION WRAPPER ────────────────────────────────── */
section { padding: 5rem 5vw; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-sub {
  font-size: 1rem;
  color: var(--mid);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── ABOUT ──────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 520px;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text .highlight {
  display: inline-block;
  background: var(--bg-accent);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--mid);
}
.about-text p { color: var(--mid); margin-bottom: 1rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.badge {
  background: var(--bg-soft);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid);
}

/* ── SCENE BANNER ───────────────────────────────────── */
.scene-banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  aspect-ratio: 1126 / 720;
  padding: 0;
  background: url('img/khloe_korean_scene_cropped.gif') center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    color-mix(in srgb, var(--bg-accent) 70%, transparent) 85%,
    var(--bg-accent) 100%
  );
}
.scene-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
  padding: 0 1.5rem;
  line-height: 1.4;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

/* ── WHY CARDS ──────────────────────────────────────── */
.why-section { background: var(--bg-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--light); }

/* ── GAINS ──────────────────────────────────────────── */
.gains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gain-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-accent);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.gain-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 5px;
}
.gain-item p { font-size: 0.9rem; color: var(--mid); }

/* ── TESTIMONIALS ───────────────────────────────────── */
.testimonials-section { background: var(--bg-soft); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-card::before {
  content: '\201C';
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary-light);
  font-family: Georgia, serif;
}

.testimonial-quote {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-accent);
  border: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-detail {
  font-size: 0.775rem;
  color: var(--light);
}

/* ── FORMAT ─────────────────────────────────────────── */
.format-section { background: var(--bg-soft); }

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.format-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.format-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.format-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light);
  margin-bottom: 0.3rem;
}
.format-item p { font-size: 1rem; font-weight: 600; color: var(--dark); }

/* ── SCHEDULE ───────────────────────────────────────── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
}
.schedule-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
  color: var(--mid);
}
.schedule-table tr:nth-child(even) td { background: var(--bg-soft); }
.schedule-table tr:last-child td { border-bottom: none; }

.week-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── PRICING ────────────────────────────────────────── */
.pricing-section { background: var(--bg-soft); }
.pricing-section .section-label,
.pricing-section .section-title { text-align: center; }
.pricing-section .section-sub { text-align: center; margin: 0 auto 3rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid #eee;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  background: var(--bg-accent);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
}

.pricing-tier { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 0.5rem; }
.pricing-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-price { font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--light); }
.pricing-price small { display: block; font-size: 0.9rem; font-weight: 400; color: var(--light); margin-top: 0.1rem; }
.price-from { font-size: 0.8rem; font-weight: 400; color: var(--light); line-height: 1; }
.pricing-footnote { margin-top: 1.5rem; font-size: 0.8rem; color: var(--light); max-width: 680px; line-height: 1.6; text-align: center; margin-left: auto; margin-right: auto; }
.pricing-terms { margin-top: 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; align-items: center; }
.pricing-terms li { font-size: 0.8rem; color: var(--light); line-height: 1.5; }
.pricing-terms li::before { content: '* '; }
.pricing-desc { font-size: 0.875rem; color: var(--light); margin-bottom: 1.5rem; }

.pricing-features { list-style: none; margin-bottom: 1.75rem; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 0.6rem;
}
.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.pricing-btn:hover { background: var(--primary-dark); }
.pricing-btn.outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.pricing-btn.outline:hover { background: var(--bg-accent); color: var(--primary-dark); border-color: var(--primary-dark); }

/* ── CONTACT ────────────────────────────────────────── */
.contact-section { background: var(--bg-soft); text-align: center; }
.contact-section .section-title { margin-bottom: 0.5rem; }
.contact-section .section-sub { margin: 0 auto 2rem; }

.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-link:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(40,160,180,0.2); }

/* ── LANG TOGGLE ────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid var(--primary);
  border-radius: 50px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-btn {
  padding: 0.3rem 0.75rem;
  background: transparent;
  color: var(--primary);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}
.lang-btn:not(.active):hover {
  background: var(--bg-accent);
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 5vw;
  font-size: 0.8rem;
  color: var(--light);
  border-top: 1px solid #eee;
}
.footer-credit {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--light);
}
.footer-credit a {
  color: var(--light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover { color: var(--primary); }

/* ── SAMPLE LESSON ──────────────────────────────────── */
.lesson-section { background: var(--bg); }

.lesson-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.lesson-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.lesson-tab.active { background: var(--primary); color: #fff; }
.lesson-tab:not(.active):hover { background: var(--bg-accent); }

.lesson-panel { display: none; }
.lesson-panel.active { display: block; }

.numbers-table-wrap { overflow-x: auto; }
.numbers-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 540px;
  margin: 0 auto;
}
.numbers-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
}
.numbers-table .th-lang { font-weight: 400; font-size: 0.75rem; opacity: 0.85; margin-left: 0.4rem; }
.numbers-table td { padding: 0.6rem 1.25rem; border-bottom: 1px solid #eee; }
.numbers-table tr:nth-child(even) td { background: var(--bg-soft); }
.numbers-table tr:last-child td { border-bottom: none; }
.numbers-table td:first-child { font-weight: 700; color: var(--light); width: 48px; }
.numbers-table .kr { font-size: 1.05rem; font-weight: 700; color: var(--dark); font-family: 'Noto Sans KR', sans-serif; }
.numbers-table .rom { font-size: 0.75rem; color: var(--light); margin-left: 0.5rem; }

.lesson-tip {
  background: var(--bg-accent);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: var(--mid);
  max-width: 540px;
  margin: 1.25rem auto 0;
}

.usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.usage-card { border-radius: var(--radius); padding: 1.5rem; border: 2px solid #eee; }
.sino-card { border-color: var(--primary-light); background: var(--bg-accent); }
.native-card { border-color: var(--accent-light); background: #fff5f1; }
.usage-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.sino-card h3 { color: var(--primary-dark); }
.native-card h3 { color: var(--accent); }
.usage-when { font-size: 0.8rem; color: var(--light); margin-bottom: 1rem; }
.usage-examples { list-style: none; margin-bottom: 1rem; }
.usage-examples li { font-size: 0.9rem; color: var(--mid); padding: 0.3rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.usage-examples li:last-child { border-bottom: none; }
.usage-examples strong { color: var(--dark); font-family: 'Noto Sans KR', sans-serif; }
.usage-tip { font-size: 0.8rem; color: var(--mid); padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.7); border-radius: 8px; }

.quiz-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.quiz-q { background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem; }
.quiz-q-text { font-size: 0.95rem; color: var(--dark); margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.quiz-badge {
  flex-shrink: 0;
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}
.quiz-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-opt {
  background: var(--bg);
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  font-family: 'Noto Sans KR', 'Google Sans', sans-serif;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:not(:disabled):hover { border-color: var(--primary); background: var(--bg-accent); }
.quiz-opt.opt-correct { border-color: #22a05b; background: #e8f8ef; color: #155d35; font-weight: 600; }
.quiz-opt.opt-wrong { border-color: #e03e3e; background: #fef2f2; color: #9b1c1c; }
.quiz-opt:disabled { cursor: default; }
.quiz-exp {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--mid);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--primary-light);
}
.quiz-result {
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  background: var(--bg-accent);
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--primary-light);
}
.quiz-score-text { font-size: 1.1rem; color: var(--mid); line-height: 1.5; }
.quiz-score-text strong { display: block; font-size: 2.5rem; color: var(--primary); line-height: 1.2; }
.quiz-result-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.quiz-retry {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.quiz-retry:hover { background: var(--primary); color: #fff; }
.quiz-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  transition: background 0.2s;
}
.quiz-cta:hover { background: var(--primary-dark); }
.lesson-cta-note { margin-top: 2rem; font-size: 0.875rem; color: var(--light); text-align: center; }
.lesson-cta-note a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--primary-light); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero, .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image { order: -1; aspect-ratio: 3/2; }
  .nav-links { display: none; }
  .usage-grid { grid-template-columns: 1fr; }

  /* Nav: prevent logo wrap, hide CTA button */
  nav { padding: 0 4vw; }
  .nav-logo { font-size: 0.95rem; white-space: nowrap; }
  .nav-cta { display: none; }
  .lang-btn { font-size: 0.8rem; padding: 0.3rem 0.6rem; }

  /* Hero: scale down heading and constrain logo */
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-logo { height: auto; max-width: 80%; }

  /* Scene text: smaller on mobile */
  .scene-text { font-size: 1.2rem; }

  /* Pricing footnote full width */
  .pricing-footnote { max-width: 100%; }
}
