:root {
  --night: #101428;
  --board: #161b3a;
  --board-2: #1d2450;
  --line: #2a315c;
  --amber: #e8c547;
  --amber-deep: #c9a21a;
  --mint: #7ee0c7;
  --paper: #f4efe4;
  --paper-2: #fffaf1;
  --ink: #1a1c2a;
  --ink-soft: #3b3f55;
  --muted: #6b7289;
  --mist: #9aa3c2;
  --warn: #b42318;
  --ok: #0f6b57;
  --white: #fff;
  --rail: 168px;
  --header: 70px;
  --max: 1180px;
  --shadow: 0 18px 40px rgba(8, 10, 24, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(232, 197, 71, 0.12), transparent 55%),
    linear-gradient(180deg, #0c1024 0%, var(--night) 180px);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.7;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea, label { font: inherit; }
button { color: inherit; }
h1, h2, .display {
  font-family: "Black Han Sans", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.28;
  word-break: keep-all;
}
.rail-brand strong {
  font-family: "Black Han Sans", sans-serif;
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
}
code, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.wrap {
  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: 1400; top: 10px; left: 10px; padding: 10px 14px;
  background: var(--paper); color: var(--ink); transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.layout {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: rgba(12, 16, 36, 0.92);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rail-brand {
  text-decoration: none;
  display: grid;
  gap: 4px;
}
.rail-brand small {
  color: var(--mist);
  font-size: 11px;
  font-weight: 600;
}
.rail nav { display: grid; gap: 4px; }
.rail nav a {
  padding: 8px 10px;
  color: var(--mist);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-left: 2px solid transparent;
}
.rail nav a:hover,
.rail nav a:focus-visible { color: var(--paper); border-color: var(--amber); }
.rail-meta {
  margin-top: auto;
  color: var(--mist);
  font-size: 11px;
  line-height: 1.5;
}

.stage { min-width: 0; }

.ticket-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 10px 0;
  color: var(--night);
  background: var(--amber);
  font-size: 12px;
  font-weight: 700;
}
.ticket-bar .wrap { display: flex; justify-content: space-between; gap: 12px; width: min(calc(100% - 40px), var(--max)); }
.ticket-bar span { opacity: 0.8; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  background: rgba(16, 20, 40, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-mobile { display: none; text-decoration: none; }
.brand-mobile strong { font-family: "Black Han Sans", sans-serif; font-size: 20px; }
.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: 20px; height: 2px; margin: 5px auto; background: var(--paper);
}
.site-nav { display: flex; gap: 18px; }
.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--amber); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.btn-primary { color: var(--night); background: var(--amber); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--amber-deep); color: var(--night); }
.btn-ghost {
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-text {
  min-height: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
}

.hero { padding: 48px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
}
.lead {
  margin: 0 0 22px;
  color: var(--mist);
  font-size: 18px;
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-row li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--mist);
  font-size: 12px;
  font-weight: 700;
}
.hero-visual { position: relative; }
.hero-caption {
  margin-top: 10px;
  color: var(--mist);
  font-size: 12px;
}

.sheet {
  margin: 28px 0 0;
  padding: 72px 0;
  color: var(--ink);
  background: var(--paper);
}
.sheet-alt { background: var(--paper-2); }
.sheet-night {
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(232, 197, 71, 0.08), transparent 30%),
    var(--board);
}
.heading { max-width: 720px; margin-bottom: 32px; }
.heading .kicker { color: var(--ok); }
.sheet-night .heading .kicker { color: var(--mint); }
.heading h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); }
.heading p { margin: 0; color: var(--muted); }
.sheet-night .heading p { color: var(--mist); }

.fit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid var(--ink);
}
.fit-card { padding: 28px; background: var(--white); }
.fit-card h3 { margin: 0 0 12px; font-size: 20px; }
.fit-card ul { margin: 0; padding-left: 18px; }
.fit-card li { margin: 8px 0; color: var(--ink-soft); }
.fit-card.is-out { background: var(--night); color: var(--paper); }
.fit-card.is-out h3 { color: var(--amber); }
.fit-card.is-out li { color: var(--mist); }

.catalog {
  display: grid;
  gap: 12px;
}
.course-row {
  display: grid;
  grid-template-columns: 92px 1.2fr 0.8fr auto;
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: var(--white);
  border: 1px solid #ddd6c6;
}
.course-code {
  color: var(--amber-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  font-weight: 700;
}
.course-row h3 { margin: 0 0 8px; font-size: 22px; }
.course-row p, .course-row li { color: var(--muted); }
.course-row ol { margin: 0; padding-left: 18px; }
.course-side {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: right;
}
.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.course-row .btn { justify-self: end; align-self: center; }

.sample-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.note-stack { display: grid; gap: 12px; }
.note {
  padding: 16px 18px;
  background: var(--white);
  border-left: 5px solid var(--amber);
}
.note strong { display: block; margin-bottom: 4px; }
.note p { margin: 0; color: var(--muted); font-size: 14px; }

.hour-bar { display: grid; grid-template-columns: 22fr 48fr 20fr 10fr; gap: 6px; margin-top: 18px; }
.hour-bar span {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 8px;
  color: var(--night);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.hour-bar span:nth-child(1) { background: #fde7c7; }
.hour-bar span:nth-child(2) { background: var(--amber); }
.hour-bar span:nth-child(3) { background: var(--mint); }
.hour-bar span:nth-child(4) { background: #d7dcf0; }
.hour-copy { display: grid; gap: 14px; margin-top: 22px; }
.hour-copy article {
  padding: 0;
}
.hour-copy h3 { margin: 0 0 4px; font-size: 18px; }
.hour-copy p { margin: 0; color: var(--mist); }

.glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid #ddd6c6;
}
.glossary div {
  padding: 18px 20px;
  border-bottom: 1px solid #eee6d8;
  border-right: 1px solid #eee6d8;
}
.glossary dt {
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-deep);
}
.glossary dd { margin: 0; color: var(--ink-soft); font-size: 14px; }

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stamp {
  min-height: 180px;
  padding: 22px;
  border: 2px dashed var(--amber);
  background: rgba(16, 20, 40, 0.55);
}
.stamp h3 { margin: 0 0 8px; color: var(--amber); font-size: 18px; }
.stamp p { margin: 0; color: var(--mist); font-size: 14px; }

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

.faq { display: grid; gap: 0; background: var(--white); border: 1px solid #ddd6c6; }
.faq details { padding: 0 20px; border-bottom: 1px solid #eee6d8; }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.form-sheet {
  padding: 36px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid #d8d0c0;
  box-shadow: var(--shadow);
  background-image: radial-gradient(circle at 18px 28px, #d8d0c0 5px, transparent 6px);
  padding-left: 48px;
}
.form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.form-head h2 { margin: 6px 0 0; }
.form-no {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.form-note { margin: 0 0 18px; color: var(--muted); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 12px 10px;
  border: 1px solid #ddd6c6;
  vertical-align: top;
  text-align: left;
}
.compare-table th { background: var(--night); color: var(--paper); }
.compare-table .yes { color: var(--ok); font-weight: 800; }
.compare-table .no { color: var(--warn); font-weight: 700; }
.compare-table .choice { background: #fff8e6; }
.compare-table .choice label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 800;
  cursor: pointer;
}
.compare-table col.is-on,
.compare-table td.is-on { background: rgba(232, 197, 71, 0.14); }
.compare-table th.is-on { box-shadow: inset 0 -3px 0 var(--amber); }
.table-scroll { overflow-x: auto; margin: 8px 0 22px; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields textarea, .fields select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #d8d0c0;
  background: var(--white);
  outline: none;
}
.fields input:focus, .fields textarea:focus, .fields select:focus {
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.25);
}
.checks { display: grid; gap: 10px; margin: 18px 0; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 600; }
.checks input { margin-top: 3px; accent-color: var(--amber-deep); }
.form-actions { display: grid; gap: 8px; }
.form-error {
  display: none;
  margin: 0;
  padding: 10px 12px;
  color: var(--warn);
  background: #fde8e6;
  font-size: 13px;
}
.form-error.is-on { display: block; }
.form-actions small { color: var(--muted); }

.footer {
  padding: 40px 0 28px;
  color: var(--mist);
  background: #090c1c;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.footer strong { display: block; color: var(--paper); font-family: "Black Han Sans", sans-serif; font-size: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer nav a, .footer nav button, .footer-link {
  padding: 0;
  color: var(--mist);
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.footer-meta { padding-top: 16px; display: grid; gap: 6px; font-size: 12px; }
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--amber); font-weight: 700; }
.footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

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

.age-gate, .modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
  padding: 24px;
  background: rgba(8, 10, 24, 0.82);
  overflow-y: auto;
}
.age-gate.is-open, .modal.is-open { display: grid; place-items: center; }
.age-card, .modal-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 32px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--night);
}
.age-card h2, .modal-dialog h2 { margin: 0 0 10px; }
.age-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd6c6;
  background: var(--white);
  font-size: 24px;
  cursor: pointer;
}
.modal-copy { color: var(--muted); }
.modal-copy h3 { margin: 22px 0 8px; color: var(--ink); font-size: 16px; }
.success-modal .modal-dialog { text-align: center; max-width: 460px; }
.success-mark {
  width: 64px;
  height: 64px;
  margin: 6px auto 16px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--amber);
  font-size: 28px;
  font-weight: 800;
}
.success-modal p { margin: 0 0 12px; color: var(--muted); }
.success-modal .btn { margin-top: 8px; }

.consent-banner {
  position: fixed;
  z-index: 850;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 720px;
  margin-inline: auto;
  padding: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--night);
  box-shadow: var(--shadow);
}
.consent-banner .btn-ghost,
.age-card .btn-ghost,
.modal-dialog .btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
}
.consent-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .rail { display: none; }
  .brand-mobile, .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header);
    right: 0; left: 0;
    display: none;
    flex-direction: column;
    padding: 8px 20px 16px;
    background: var(--board);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .hero-grid, .fit-grid, .sample-grid { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1fr; }
  .course-side { text-align: left; }
  .course-row .btn { justify-self: start; }
  .stamp-grid, .sources { grid-template-columns: 1fr 1fr; }
  .dock { display: block; }
}

@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 28px; }
  .sheet { padding: 52px 0; }
  .glossary, .fields, .hour-bar { grid-template-columns: 1fr; }
  .stamp-grid, .sources { grid-template-columns: 1fr; }
  .form-sheet { padding: 22px; }
  .form-head { flex-direction: column; }
  .footer-top, .footer-bottom, .ticket-bar .wrap { flex-direction: column; }
  .btn { width: 100%; }
  .hero-actions { display: grid; }
}

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