:root {
  --ink: #1a2744;
  --ink-soft: #33415f;
  --muted: #5c6574;
  --paper: #f6f3ec;
  --paper-2: #fffdf8;
  --line: rgba(26, 39, 68, 0.14);
  --sage: #2f6b5c;
  --sage-dark: #245447;
  --sage-soft: #dce8e3;
  --sand: #e8d5b5;
  --clay: #c9785a;
  --warn: #8b3a2f;
  --white: #fff;
  --shadow: 10px 10px 0 rgba(26, 39, 68, 0.1);
  --radius: 10px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.7;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1200; top: 12px; left: 12px; padding: 10px 14px;
  background: var(--white); border-radius: 8px; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.age-bar {
  padding: 8px 0;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}
.age-bar span { opacity: 0.78; margin: 0 8px; }

.topbar {
  position: sticky; z-index: 100; top: 0; height: 74px;
  background: rgba(246, 243, 236, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.15; }
.brand strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--sand); background: var(--ink); border-radius: 8px;
}
.brand-mark svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--sage-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 8px;
  font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn-primary { color: var(--white); background: var(--sage); border: 2px solid var(--sage-dark); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--sage-dark); }
.btn-secondary { color: var(--ink); background: var(--white); border: 2px solid var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--sand); }
.btn-ghost { color: var(--ink); background: transparent; border: 0; text-decoration: underline; min-height: auto; padding: 0; font-size: 13px; }

.hero { padding: 64px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
.eyebrow {
  margin: 0 0 12px; color: var(--sage-dark);
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
}
.age-pill {
  display: inline-flex; margin: 0 0 14px; padding: 6px 10px;
  background: var(--sand); border: 2px solid var(--ink);
  font-size: 12px; font-weight: 800;
}
.hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 54px); line-height: 1.22; letter-spacing: -0.04em; }
.lead { margin: 0 0 24px; color: var(--ink-soft); font-size: 18px; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.trust-list li::before { content: "·"; margin-right: 8px; color: var(--sage); font-weight: 900; }
.hero-visual { position: relative; }
.visual-note {
  position: absolute; right: 12px; bottom: 24px; width: 210px;
  padding: 14px 16px; background: var(--white); border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.visual-note span { display: block; color: var(--sage-dark); font-size: 11px; font-weight: 800; }
.visual-note strong { font-size: 14px; }

.disclosure-strip {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 48px; padding: 16px 20px;
  background: var(--ink); color: #d7ddd8; font-size: 13px; line-height: 1.55;
}
.disclosure-strip strong { color: var(--sand); white-space: nowrap; }

.section { padding: 88px 0; }
.section-tint { background: var(--paper-2); }
.section-sage { background: var(--sage-soft); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.25; }
.section-heading p { margin: 0; color: var(--muted); }

.who-grid, .bound-grid, .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  padding: 28px; background: var(--white); border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; }
.card.is-limit { background: var(--ink); color: var(--paper); }
.card.is-limit p, .card.is-limit li { color: #c9d2cc; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card {
  display: flex; flex-direction: column; min-height: 100%;
  padding: 28px; background: var(--white); border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.course-card .tag { color: var(--sage-dark); font-size: 12px; font-weight: 800; }
.course-card h3 { margin: 12px 0 10px; font-size: 22px; }
.course-card p { color: var(--muted); margin-top: 0; }
.course-card ol { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.course-meta { display: flex; justify-content: space-between; gap: 12px; margin: auto 0 16px; font-size: 13px; font-weight: 700; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.price small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }

.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.compare th { background: var(--ink); color: var(--paper); font-weight: 800; }
.compare td:first-child { font-weight: 800; width: 22%; }
.compare .yes { color: var(--sage-dark); font-weight: 800; }
.compare .no { color: var(--warn); font-weight: 800; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

.curriculum { display: grid; gap: 14px; }
.mod {
  display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start;
  padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
}
.mod span { color: var(--sage-dark); font-size: 12px; font-weight: 800; }
.mod h3 { margin: 0 0 6px; font-size: 18px; }
.mod p { margin: 0; color: var(--muted); font-size: 14px; }

.journal-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.steps span {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--sand); border: 2px solid var(--ink); font-weight: 800;
}
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sources a {
  padding: 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700;
}
.sources a:hover { border-color: var(--ink); }
.sources small { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; }

.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.contact-note {
  padding: 18px; background: var(--sand); border-left: 6px solid var(--ink); font-weight: 700;
}
.contact-form {
  padding: 32px; display: grid; gap: 8px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form label { margin-top: 8px; font-size: 13px; font-weight: 800; }
.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 12px 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(47, 107, 92, 0.15); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 600; line-height: 1.45; }
.consent-row input { margin-top: 3px; accent-color: var(--sage); }
.form-error { display: none; margin: 6px 0 0; padding: 10px 12px; color: var(--warn); background: #f8e8e4; border-radius: 8px; font-size: 13px; }
.form-error.is-on { display: block; }
.contact-form .btn { justify-self: start; margin-top: 10px; }
.contact-form > small { color: var(--muted); }

.footer { padding: 48px 0 28px; color: #d5ddd8; background: #121820; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-light small { color: #9aa7b4; }
.brand-light .brand-mark { color: var(--sand); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a, .footer nav button, .footer-link {
  padding: 0; color: #d8ece9; background: none; border: 0;
  font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.footer-meta { padding-top: 20px; display: grid; gap: 8px; color: #93a49c; font-size: 12px; }
.footer-meta p { margin: 0; }
.footer-meta a { color: #d8ece9; font-weight: 700; }
.footer-bottom {
  margin-top: 16px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #93a49c;
}

.modal {
  position: fixed; z-index: 600; inset: 0; display: none; padding: 24px;
  background: rgba(18, 24, 32, 0.72); overflow-y: auto;
}
.modal.is-open { display: grid; place-items: center; }
.modal-dialog {
  position: relative; width: min(680px, 100%); max-height: min(760px, calc(100vh - 48px));
  padding: 36px; overflow-y: auto; background: var(--paper-2);
  border: 3px solid var(--ink); border-radius: var(--radius);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 40px; height: 40px;
  background: var(--white); border: 1px solid var(--line); border-radius: 50%;
  font-size: 24px; cursor: pointer;
}
.modal-copy { color: var(--muted); }
.modal-copy h3 { margin: 24px 0 8px; color: var(--ink); font-size: 17px; }

.success-modal .modal-dialog { text-align: center; max-width: 460px; }
.success-mark {
  width: 64px; height: 64px; margin: 8px auto 18px; display: grid; place-items: center;
  color: var(--white); background: var(--sage); border-radius: 50%; font-size: 32px;
}
.success-modal h2 { margin: 0 0 10px; }
.success-modal p { margin: 0 0 12px; color: var(--muted); }
.success-modal .btn { margin-top: 10px; }

.consent-banner {
  position: fixed; z-index: 800; right: 16px; bottom: 16px; left: 16px;
  max-width: 740px; margin-inline: auto; padding: 18px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.consent-banner-inner { display: grid; gap: 12px; }
.consent-banner p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.consent-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.mobile-cta {
  display: none; position: fixed; z-index: 90; right: 12px; bottom: 12px; left: 12px;
}
.mobile-cta .btn { width: 100%; }

@media (max-width: 960px) {
  .hero-grid, .who-grid, .bound-grid, .course-grid, .journal-grid, .contact-grid, .sources { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .sources { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .site-nav {
    position: absolute; top: 74px; right: 0; left: 0; display: none;
    padding: 8px 20px 18px; flex-direction: column; align-items: stretch;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .hero-grid, .who-grid, .bound-grid, .journal-grid, .contact-grid { grid-template-columns: 1fr; }
  .disclosure-strip { flex-direction: column; gap: 6px; }
  .disclosure-strip strong { white-space: normal; }
  .mobile-cta { display: block; }
  .footer-top, .footer-bottom { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 36px; }
  .hero-actions, .trust-list { display: grid; }
  .btn { width: 100%; }
  .section { padding: 64px 0; }
  .mod { grid-template-columns: 1fr; gap: 6px; }
  .sources { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .visual-note { position: static; width: auto; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
