:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #172a42;
  background: #fafbfc;
  --primary: #235fb2;
  --gray: #536679;
  --line: #d4dee7;
}
* { box-sizing: border-box; }
body, h1, h2, p, figure, dl, dd { margin: 0; }
body { word-break: keep-all; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #245b9f; outline-offset: 3px; }
.page { width: min(1080px, calc(100% - 80px)); margin: 0 auto; }
.skip,.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { left: 12px; top: 12px; width: auto; height: auto; padding: 12px; background: white; z-index: 3; clip-path: none; }
.bar { background: white; border-bottom: 1px solid #e7ebf0; }
.bar-inner { min-height: 68px; display: flex; align-items: center; gap: 38px; }
.brand { display: inline-flex; align-items: center; color: #3078df; font-weight: 750; font-size: 23px; letter-spacing: -1.4px; }
.brand img { width: 45px; height: 30px; margin-right: 7px; object-fit: contain; }
.brand-light { font-weight: 350; color: #657689; }
nav { display: flex; gap: 27px; font-size: 14px; color: var(--gray); }
nav a[aria-current] { color: var(--primary); font-weight: 700; }
nav a, .app-link { padding: 12px 0; }
nav a:hover, footer a:hover { text-decoration: underline; }
.app-link { margin-left: auto; font-size: 13px; }
.hero { margin: 34px 0 44px; min-height: 225px; display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid #d4e3ef; border-radius: 20px; overflow: hidden; background: #e9f1f9; }
.hero-copy { padding: 37px 42px; align-self: center; }
.course-type { color: #355d86; font-size: 13px; font-weight: 700; }
.course-type span { padding: 0 4px; }
h1 { font-size: clamp(2.1rem,4.2vw,3.5rem); letter-spacing: -.065em; line-height: 1.2; margin: 9px 0 14px; }
.hero-copy p:last-child { font-size: 16px; line-height: 1.65; color: #405872; }
.hero figure { position: relative; min-height: 100%; overflow: hidden; }
.hero figure img { display: block; position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: 50% 31%; }
figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 10px; color: #fff; background: #26323ed9; padding: 4px 8px; border-radius: 4px; }
.preview-note { font-size: 12px; color: #586775; margin: -23px 0 22px; }
#catalog { scroll-margin: 14px; }
#load-state { margin: 0 0 2rem; color: var(--gray); line-height: 1.8; }
#load-state a, noscript a { color: var(--primary); text-decoration: underline; }
.catalog-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: start; gap: 34px; }
.list h2 { font-size: 26px; letter-spacing: -.06em; margin-bottom: 16px; }
.options { padding: 0; margin: 0; border: 0; min-width: 0; }
.option { display: flex; position: relative; gap: 13px; align-items: center; padding: 14px 19px; min-height: 74px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; margin-bottom: 8px; }
.option:hover { border-color: #8eaac9; }
.option:has(input:checked) { background: #eef5ff; border-color: #3e75b9; box-shadow: inset 0 0 0 1px #3e75b9; }
.option:has(input:focus-visible) { outline: 3px solid #316daf; outline-offset: 2px; }
.option input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.option-title { min-width: 0; font-weight: 700; font-size: 18px; }
.amounts { margin-left: auto; text-align: right; }
.amounts del { display: block; font-size: 12px; line-height: 1.4; color: #63717f; }
.amount-line { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.amount-line b { font-size: 20px; letter-spacing: -.04em; }
.amount-line small, #unit { color: var(--gray); font-size: 13px; }
.summary { border: 1px solid #ccd9e5; background: white; border-radius: 17px; padding: 25px; position: sticky; top: 18px; }
.summary-label { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.summary h2 { font-size: 27px; letter-spacing: -.06em; line-height: 1.3; }
.receipt { padding-top: 18px; font-variant-numeric: tabular-nums; }
.receipt dl { border-top: 1px solid var(--line); padding: 12px 0; }
.receipt dl div { display: flex; gap: 12px; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.receipt dt { color: #526578; }
.receipt dd { font-weight: 600; text-align: right; }
.receipt .discount { color: var(--primary); }
.result { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); padding: 16px 0 18px; }
.result > span { color: #526578; font-size: 14px; }
.result > div { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
#total { font-size: 26px; font-weight: 750; letter-spacing: -.05em; }
#action { border-top: 1px solid #e2e8ee; padding-top: 15px; }
#action p { font-size: 12px; color: var(--gray); line-height: 1.6; margin-bottom: 9px; }
.action-link { width: 100%; border: 0; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; padding: 13px; background: var(--primary); color: white; font-weight: 700; font-size: 15px; }
.action-link:hover { background: #164b91; }
footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--gray); padding: 26px 0 38px; margin-top: 42px !important; }
@media (max-width:800px) {
  .page { width: calc(100% - 40px); }
  .hero { margin: 22px 0 36px; }
  .hero-copy { padding: 26px; }
  .catalog-grid { gap: 18px; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .option { padding: 12px; gap: 8px; }
  .summary { padding: 18px; }
}
@media (max-width:690px) {
  .page { width: calc(100% - 32px); }
  .bar-inner { min-height: 55px; gap: 15px; }
  .brand { font-size: 19px; }
  .brand img { width: 31px; height: 23px; margin-right: 4px; }
  .home-link { display:none; }
  nav { font-size: 12px; }
  .hero { min-height: 144px; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); border-radius: 14px; margin: 16px 0 30px; }
  .hero-copy { padding: 18px 13px 18px 17px; }
  h1 { font-size: clamp(23px,5.8vw,32px); margin: 7px 0 9px; }
  .hero-copy p:last-child { font-size: 12px; line-height: 1.55; }
  .course-type { font-size: 11px; }
  .hero figure img { object-position: 47% 30%; }
  figcaption { right: 4px; bottom: 5px; font-size: 8px; padding: 3px 4px; }
  .catalog-grid { display: block; }
  .list h2 { font-size: 22px; margin-bottom: 12px; }
  .summary { position: static; margin-top: 16px; }
  .option { padding: 11px 13px; min-height: 65px; }
  .option-title { font-size: 16px; }
  .amount-line { gap: 5px; }
  .amount-line b { font-size: 17px; }
  .amount-line small { font-size: 11px; }
  .preview-note { margin-top: -18px; }
}
.retry { background: transparent; color: var(--primary); border: 0; text-decoration: underline; padding: 0; }
#review-order { border: 1px solid var(--line); border-radius: 15px; padding: 24px; width: min(400px, calc(100% - 32px)); color: inherit; }
#review-order::backdrop { background: #162d4a88; }
#review-order h2 { font-size: 24px; margin: 10px 0; }
#review-order p { line-height: 1.65; margin: 7px 0; }
#review-order button { margin-top: 15px; }
#review-order .preview-amount { font-size: 23px; font-weight: 700; }
#review-order small { color: var(--gray); }
@media (max-width:690px) {
  .option-title { line-height: 1.35; font-size: 15px; }
  .option:has([value="pre-5"]) .option-title { max-width: 100px; }
  .hero-copy { padding-right: 8px; }
}
