:root {
  color-scheme: light;
  --ink: #101016;
  --navy: #090955;
  --muted: #535362;
  --line: #e7e6ee;
  --lavender: #f5f4fc;
  --paper: #fff;
  --radius: 18px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-optical-sizing: auto;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7965fc; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 80px)); }
.skip { position: fixed; top: 8px; left: 12px; z-index: 9; transform: translateY(-150%); padding: 10px 16px; background: #fff; color: var(--navy); border-radius: 8px; }
.skip:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hero {
  overflow: hidden;
  padding-top: 30px;
  border-radius: 0 0 clamp(46px, 8.2vw, 128px) clamp(46px, 8.2vw, 128px);
  background: radial-gradient(ellipse at 76% 53%, #0d0b5a 0%, #070648 21%, transparent 57%),
              radial-gradient(ellipse at 20% 55%, #0b0a42 2%, transparent 46%),
              linear-gradient(112deg, #02020d 0%, #07071c 29%, #020206 50%, #05042a 76%, #02020d 100%);
  color: #fff;
}
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 49px);
  min-height: 62px;
  padding: 8px clamp(17px, 3.1vw, 46px);
  border-radius: 100px;
  color: var(--navy);
  background: #fff;
}
.wordmark { display: inline-flex; align-items: center; flex: none; color: inherit; font-size: 1.55rem; line-height: 1; font-weight: 950; letter-spacing: -.075em; }
.nav .wordmark { color: #111; }
.brand-image { max-width: 148px; max-height: 32px; object-fit: contain; }
.nav-links, .nav-end { display: flex; align-items: center; gap: clamp(13px, 2vw, 27px); }
.nav-links { flex: 1; font-weight: 750; font-size: .98rem; }
.nav-end { margin-left: auto; gap: 20px; }
.nav-links a { white-space: nowrap; }
.nav-links a:hover:not(.login) { text-decoration: underline; text-underline-offset: .3em; }
.login {
  padding: 7px 19px;
  color: #fff;
  background: #0b0a61;
  border-radius: 60px;
  font-weight: 700;
}
.login:hover { background: #29218b; }
.menu-toggle { display: none; }
.sub-header { padding: 24px 0; background: #09072e; }

.hero-grid { position: relative; display: grid; grid-template-columns: 17% minmax(0, 1fr) 26%; align-items: start; min-height: 360px; padding-top: 34px; }
.hero-badge { padding: 1px clamp(11px, 1.8vw, 24px) 0 9px; }
.hero-badge img { width: 100%; max-width: 175px; filter: drop-shadow(0 5px 14px #0008); }
.hero-copy { position: relative; z-index: 1; padding: 8px 0 28px; }
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.1vw, 3.48rem);
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: 1.12;
  text-shadow: 0 2px 16px #0005;
}
.hero-highlight { margin: 14px 0 12px; font-size: clamp(1.25rem, 2.55vw, 2.27rem); line-height: 1.38; font-weight: 900; letter-spacing: -.065em; }
.hero-highlight strong { padding: 1px .23em .08em; background: linear-gradient(100deg, #3e24ad, #3221a2); border: 1px solid #6445dd; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-info { color: #e6e2f4; font-size: 1rem; }
.hero-note { margin-top: 2px; color: #c4bfd7; font-size: .8rem; }
.hero-copy .button { margin-top: 19px; }
.hero-photo { position: absolute; right: -5px; bottom: 0; width: 25%; max-width: 265px; }
.hero-photo img { width: 100%; }
.hero-instructor { position: absolute; top: 67%; right: 95%; width: 147px; padding-right: 8px; color: #e5e0ff; text-align: right; font-size: .8rem; line-height: 1.4; }
.hero-instructor strong { display: block; color: #fff; font-size: .95rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: center;
  font-weight: 750;
  font-size: .94rem;
  line-height: 1.38;
  transition: background .16s, border-color .16s, color .16s;
}
.button-light { border-color: #ffffff58; color: #fff; background: #fff1; font-size: .9rem; }
.button-light:hover { background: #fff; color: #0a0849; }
.button-outline { color: var(--navy); background: #fff; border-color: #deddea; }
.button-outline:hover { border-color: #8d85c8; background: var(--lavender); }
.button-primary { color: #fff; background: #161068; }
.button-primary:hover { background: #2f2289; }
.button-primary[aria-pressed="true"] { color: #2b216b; background: #ede9fb; border-color: #dad0f8; }

.home-main { padding-top: 40px; padding-bottom: 80px; }
.home-section { margin-top: 64px; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 18px; margin-bottom: 19px; }
.section-heading h2, .teacher h2, .detail-section h2 { font-size: clamp(1.55rem, 2.6vw, 2.12rem); line-height: 1.2; letter-spacing: -.056em; font-weight: 900; }
.section-heading p { color: var(--muted); font-size: 1rem; }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.program-card, .ebook-card { min-width: 0; }
.art-link { display: block; border-radius: var(--radius); }
.art-link:focus-visible { outline-offset: 5px; }
.program-art { position: relative; display: flex; align-items: center; overflow: hidden; aspect-ratio: 16/9; padding: 8.2%; color: #fff; border-radius: var(--radius); }
.program-art::after { content: ""; pointer-events: none; position: absolute; inset: 0; border: 1px solid #fff2; border-radius: inherit; }
.guarantee { background: linear-gradient(180deg, #39064f 4%, #300342 49%, #16041c 79%, #060306 100%); }
.regular { background: linear-gradient(180deg, #143e52 4%, #16384d 39%, #0b202d 74%, #030709 100%); }
.program-art p { font-size: clamp(1.35rem, 2.8vw, 2.5rem); font-weight: 900; letter-spacing: -.062em; line-height: 1.16; text-shadow: 0 2px 6px #0004; }
.enrollment { position: absolute; top: 10%; right: 8%; padding: 5px 13px; border-radius: 100px; color: #110c59; background: #fff; font-weight: 850; font-size: .92rem; line-height: 1.4; }
.card-body { padding: 13px 2px 0; }
.cohort { color: #281968; font-size: .92rem; font-weight: 800; }
.card-body h3 { margin: 5px 0 4px; font-size: clamp(1.12rem, 1.8vw, 1.44rem); font-weight: 850; letter-spacing: -.045em; }
.card-description, .muted { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 13px; padding-top: 14px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 10px; font-variant-numeric: tabular-nums; }
.price del { color: #63606e; font-size: .9rem; }
.price strong { letter-spacing: -.04em; color: #151121; font-size: 1.33rem; font-weight: 900; }
.ebook-row { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 34px; align-items: start; }
.ebook-grid { display: grid; gap: 24px; }
.book-art {
  display: grid;
  place-items: center;
  min-height: 315px;
  padding: 25px;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 25%, #fbfaff, #e8e4f2 74%, #ddd9e9);
}
.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: .72;
  width: 161px;
  min-height: 221px;
  overflow: hidden;
  padding: 15px 18px;
  border-left: 5px solid #3c3175;
  border-radius: 2px 5px 5px 2px;
  color: #f6edff;
  background: radial-gradient(at 80% 78%, #32276d, transparent 63%), linear-gradient(140deg, #111032, #1c1148);
  box-shadow: 10px 15px 25px #21124b3a, inset 3px 0 6px #0004;
}
.book-cover span:first-child, .book-cover small { font-weight: 750; }
.book-cover strong { z-index: 1; font-size: 1.84rem; font-weight: 950; letter-spacing: -.07em; line-height: 1.1; }
.book-cover .book-star { position: absolute; bottom: 0; right: -20px; color: #9a82f75c; font-size: 8.5rem; line-height: .9; }
.book-cover-image { max-height: 315px; border-radius: 3px; box-shadow: 10px 15px 25px #21124b3a; }
.teacher { min-height: 315px; padding: clamp(22px, 3.6vw, 54px); border-radius: var(--radius); background: #f6f5f9; }
.teacher p { margin: 17px 0 25px; max-width: 55ch; color: #383745; line-height: 1.75; }
.teacher dl { display: flex; gap: 27px; }
.teacher dl div + div { padding-left: 27px; border-left: 1px solid #d7d2e6; }
.teacher dt { color: var(--muted); font-size: .93rem; }
.teacher dd { margin-top: 3px; color: #171052; font-weight: 900; font-size: clamp(1.28rem, 2.4vw, 2rem); letter-spacing: -.05em; }
.reviews { border-top: 1px solid var(--line); padding-top: 31px; }
.reviews > p { color: var(--muted); }

.chat-fab { position: fixed; z-index: 3; right: max(15px, calc((100vw - 1400px) / 2)); bottom: max(23px, env(safe-area-inset-bottom)); display: grid; align-content: center; width: 70px; min-height: 69px; padding: 8px; border-radius: 13px; background: #df2a22; color: #fff; font-size: .86rem; line-height: 1.25; font-weight: 850; text-align: center; box-shadow: 0 5px 14px #2605002a; }
.chat-fab:hover { background: #bd221d; }
.footer { color: #dddce7; background: #08080a; }
.footer-inner { display: grid; grid-template-columns: 1.25fr .8fr 1.5fr; gap: 25px 35px; padding-block: 44px 30px; }
.footer .wordmark { color: #fff; margin-bottom: 13px; }
.footer h2 { color: #fff; font-size: 1rem; font-weight: 750; }
.footer p, .footer a:not(.wordmark) { color: #c5c4ce; line-height: 1.6; font-size: .93rem; }
.footer small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #29292f; color: #a9a8b3; }
.footer a:hover { text-decoration: underline; }
.policy-links { display: flex; flex-wrap: wrap; column-gap: 14px; margin-top: 10px; }

.detail { padding-block: 40px 75px; }
.back { display: inline-block; color: #342284; margin-bottom: 22px; font-weight: 800; }
.back:hover, .text-link:hover { text-decoration: underline; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.detail-box { position: sticky; top: 22px; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px #20104c0b; }
.detail-aside { align-self: stretch; }
.detail h1 { margin: 7px 0 13px; font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -.065em; font-weight: 900; line-height: 1.16; }
.detail-box h1 { font-size: clamp(1.65rem, 2.7vw, 2.35rem); }
.detail-box .button { display: flex; width: 100%; margin-top: 10px; }
.detail-box .price { margin-top: 18px; }
.detail-box .price strong { font-size: 1.7rem; }
.detail-note { margin: 13px 0; color: #514669; font-size: .91rem; }
.spec-list { margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 12px; }
.spec-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; padding-block: 5px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { font-weight: 700; }
.detail-section { margin-top: 39px; }
.detail-section h2 { margin-bottom: 14px; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.detail-section > p + p { margin-top: 12px; }
.detail-section > p + .button { margin-top: 17px; }
.detail-section details { border-bottom: 1px solid var(--line); padding-block: 13px; }
.detail-section details p { padding: 9px 0 0 17px; color: var(--muted); }
.detail-section summary { cursor: pointer; font-weight: 750; }
.step-list { margin: 0; padding-left: 1.5rem; }
.step-list li { padding: 13px 0 13px 8px; border-bottom: 1px solid var(--line); }
.step-list li::marker { color: #4a3499; font-weight: 850; }
.step-list h3 { font-size: 1.05rem; }
.step-list p { color: var(--muted); margin-top: 3px; }
.comparison { border-radius: var(--radius); background: var(--lavender); padding: 24px; }
.summary-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: center; margin-top: 15px; }
.text-link { color: #33228b; font-weight: 750; }
.lesson .intro { color: var(--muted); font-size: 1.16rem; }
.lesson blockquote { margin: 0 0 16px; padding: 15px 19px; border-left: 3px solid #7053c8; border-radius: 0 8px 8px 0; background: var(--lavender); font-size: 1.2rem; font-weight: 750; }
.lesson-checklist { display: grid; gap: 11px; padding: 16px 20px 20px; margin: 28px 0; border: 1px solid #d9d4e8; border-radius: var(--radius); }
.lesson-checklist legend { padding: 0 6px; font-weight: 850; }
.lesson-checklist label { display: flex; gap: 8px; align-items: baseline; cursor: pointer; }
.lesson-checklist input { flex: none; accent-color: #312381; }
.lesson-checklist p { color: #41328e; font-weight: 750; }
.my-login { padding: 22px; background: var(--lavender); border-radius: var(--radius); }
.saved-items { list-style: none; padding: 0; }
.saved-items li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.saved-items a { color: var(--navy); font-weight: 800; }
.saved-items a:hover { text-decoration: underline; }
.policy-page { min-height: 390px; }

@media (max-width: 1150px) {
  .hero-grid { min-height: 335px; grid-template-columns: 16% minmax(0,1fr) 24%; }
  .hero-photo { right: 0; width: 25%; }
  .hero-instructor { top: 65%; right: 91%; width: 115px; font-size: .71rem; }
  .nav { gap: 23px; }
  .nav-links { gap: 15px; font-size: .91rem; }
  .nav-end { gap: 13px; }
}
@media (max-width: 900px) {
  .wrap, .narrow { width: min(100% - 48px, 1200px); }
  .narrow { max-width: 760px; }
  .hero { padding-top: 18px; }
  .hero-grid { min-height: 323px; padding-top: 34px; }
  .hero-badge { padding-left: 0; }
  .hero-instructor { display: none; }
  .nav { gap: 18px; }
  .nav-links { gap: 12px; font-size: .88rem; }
  .nav-end { gap: 9px; }
  .login { padding-inline: 11px; }
  .ebook-row { gap: 21px; }
  .detail-grid { gap: 22px; }
}
@media (max-width: 730px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .hero, .sub-header { padding-top: 14px; }
  .sub-header { padding-bottom: 14px; }
  .nav { min-height: 54px; padding-inline: 19px; justify-content: space-between; }
  .nav .wordmark { font-size: 1.38rem; }
  .menu-toggle { display: inline-flex; color: #14105e; background: #f3f0fa; border: 0; padding: 7px 13px; border-radius: 40px; font-weight: 800; font-size: .9rem; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 7px); box-shadow: 0 12px 22px #0003; background: #fff; padding: 10px 15px; border-radius: 16px; }
  .nav-links.open { display: grid; gap: 0; }
  .nav-links a { display: flex; padding: 11px 8px; min-height: 42px; align-items: center; }
  .nav-end { margin: 0; justify-content: space-between; }
  .nav-end .login { padding-inline: 16px; }
  .hero-grid { padding-top: 17px; min-height: 365px; display: block; }
  .hero-badge { width: 65px; margin-left: 3px; padding: 0; }
  .hero-copy { padding: 5px 0 27px 3px; }
  .hero-copy h1 { font-size: clamp(1.96rem, 6.65vw, 3rem); }
  .hero-highlight { font-size: clamp(1.02rem, 4.13vw, 1.45rem); margin-top: 10px; }
  .hero-info { font-size: .86rem; }
  .hero-note { max-width: 68%; font-size: .75rem; }
  .hero-photo { right: -14px; width: 30%; min-width: 128px; max-width: 200px; }
  .hero-photo img { margin-left: auto; }
  .hero-copy .button { margin-top: 14px; }
  .home-main { padding-top: 31px; padding-bottom: 61px; }
  .home-section { margin-top: 47px; }
  .section-heading { margin-bottom: 15px; }
  .program-grid { gap: 17px; }
  .program-art p { font-size: clamp(1.15rem,3.4vw,1.8rem); }
  .enrollment { padding: 3px 8px; font-size: .76rem; }
  .card-actions { padding-top: 9px; }
  .ebook-row { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
  .teacher { padding: 22px; }
  .teacher dl { gap: 14px; }
  .teacher dl div + div { padding-left: 14px; }
  .teacher dt { font-size: .84rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-right: 33px; }
  .footer-policy { grid-column: 1 / -1; }
  .chat-fab { width: 58px; min-height: 56px; font-size: .75rem; right: 10px; }
  .detail { padding-top: 26px; }
  .detail-grid { display: flex; flex-direction: column; }
  .detail-grid > * { width: 100%; }
  .detail-aside { order: -1; }
}
@media (max-width: 540px) {
  .program-grid, .ebook-row { grid-template-columns: 1fr; gap: 28px; }
  .program-art p { font-size: clamp(1.55rem, 5.7vw, 2rem); }
  .enrollment { padding: 5px 10px; font-size: .85rem; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 6px; font-size: .95rem; }
  .teacher { min-height: 0; }
  .book-art { min-height: 290px; }
  .card-actions { flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
