:root {
  --blue: #3182F6;
  --blue-d: #1B64DA;
  --blue-l: #E8F3FF;
  --ink: #191F28;
  --ink2: #333D4B;
  --gray: #6B7684;
  --gray2: #8B95A1;
  --line: #E5E8EB;
  --bg2: #F2F4F6;
  --bg3: #F9FAFB;
  --red: #F04452;
  --green: #03B26C;
  --r: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6; letter-spacing: -0.02em; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* 헤더 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink2); }
.nav-links a:hover { background: var(--bg2); }
.nav-links .hide-m { display: inline-block; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 14px; border: 0; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-primary:disabled { background: #B0D0FB; cursor: not-allowed; transform: none; }
.btn-soft { background: var(--blue-l); color: var(--blue); }
.btn-soft:hover { background: #D6E9FF; }
.btn-gray { background: var(--bg2); color: var(--ink2); }
.btn-gray:hover { background: var(--line); }
.btn-sm { height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.nav .btn { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* 히어로 */
.hero { padding: 72px 0 40px; }
.hero .label { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; font-size: 16px; }
.hero .label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.hero h1 { margin-top: 16px; font-size: clamp(40px, 7.4vw, 72px); line-height: 1.18; font-weight: 800; letter-spacing: -0.045em; }
.hero h1 b { color: var(--blue); font-weight: 800; }
.hero p.sub { margin-top: 20px; font-size: clamp(18px, 2.4vw, 21px); color: var(--gray); line-height: 1.6; }
.hero .cta { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero-card { background: var(--bg2); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.hero-card .row { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; }
.hero-card .row .ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 24px; }
.hero-card .row small { display: block; font-size: 14px; color: var(--gray2); font-weight: 600; }
.hero-card .next { margin-top: 4px; background: #fff; border-radius: 16px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hero-card .next b { font-size: 17px; }
.hero-card .next span { font-size: 14px; color: var(--gray); }

/* 섹션 */
section.block { padding: 80px 0; }
section.gray { background: var(--bg3); }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 16px; }
h2.title { margin-top: 8px; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; }
p.lead { margin-top: 14px; font-size: 18px; color: var(--gray); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
section.gray .card { border-color: transparent; }
.card .emo { font-size: 32px; line-height: 1; }
.card h3 { margin-top: 14px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.card p { margin-top: 8px; color: var(--gray); font-size: 16px; }

/* 커리큘럼 */
.steps { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.step { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: var(--r); padding: 20px 24px; }
.step .no { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-l); color: var(--blue); font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 18px; font-weight: 700; }
.step p { color: var(--gray); font-size: 15px; margin-top: 2px; }
.step .min { font-size: 15px; font-weight: 700; color: var(--gray2); white-space: nowrap; }
.step.main { background: var(--blue); color: #fff; }
.step.main .no { background: rgba(255,255,255,.2); color: #fff; }
.step.main p, .step.main .min { color: rgba(255,255,255,.8); }

/* 체크 리스트 */
.checks { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.checks li { list-style: none; display: flex; gap: 12px; font-size: 17px; color: var(--ink2); }
.checks li::before { content: ""; flex-shrink: 0; margin-top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks.no li::before { background: var(--gray2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/13px no-repeat; }

/* 포트폴리오 */
.work { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.work .thumb { height: 150px; display: grid; place-items: center; font-size: 56px; }
.work .body { padding: 20px 22px 24px; }
.work .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); background: var(--blue-l); padding: 3px 9px; border-radius: 8px; }
.work h3 { margin-top: 10px; font-size: 19px; font-weight: 700; }
.work p { margin-top: 6px; color: var(--gray); font-size: 15px; }

/* 강사 */
.teacher { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.teacher .avatar { aspect-ratio: 1; border-radius: 28px; background: linear-gradient(160deg, #E8F3FF, #C9E2FF); display: grid; place-items: center; font-size: 110px; }
.teacher .name { font-size: 24px; font-weight: 800; }
.teacher .role { color: var(--gray); margin-top: 4px; }
.cv { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.cv li { list-style: none; display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 16px; }
.cv li span { color: var(--gray2); font-weight: 600; }

/* 일정 */
.sessions { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.session { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: flex; align-items: center; gap: 20px; }
.session .date { width: 76px; flex-shrink: 0; text-align: center; background: var(--bg2); border-radius: 16px; padding: 10px 0; }
.session .date b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; }
.session .date small { font-size: 14px; color: var(--gray); font-weight: 600; }
.session .info { flex: 1; min-width: 0; }
.session .info h3 { font-size: 18px; font-weight: 700; }
.session .info p { font-size: 15px; color: var(--gray); margin-top: 2px; }
.seats { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--red); }
.seats.ok { color: var(--blue); }
.seats.off { color: var(--gray2); }
.session .price { text-align: right; flex-shrink: 0; }
.session .price b { display: block; font-size: 19px; }
.session .price .btn { margin-top: 10px; }
.empty { text-align: center; color: var(--gray); padding: 40px 0; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gray2); font-weight: 400; font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--gray); font-size: 16px; white-space: pre-line; }

/* 마지막 CTA */
.final { background: var(--ink); color: #fff; border-radius: 32px; padding: 56px 40px; text-align: center; }
.final h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.35; }
.final p { margin-top: 12px; color: #B0B8C1; }
.final .btn { margin-top: 28px; }

/* 푸터 */
footer { padding: 48px 0 64px; color: var(--gray2); font-size: 14px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
footer .links a { color: var(--gray); font-weight: 600; }

/* 폼 */
.page { padding: 36px 0 80px; }
.page h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.35; }
.page .desc { color: var(--gray); margin-top: 8px; }
.box { background: var(--bg2); border-radius: var(--r); padding: 20px 22px; }
.box + .box { margin-top: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 16px; }
.kv span { color: var(--gray); flex-shrink: 0; }
.kv b { text-align: right; font-weight: 700; }
.field { margin-top: 22px; }
.field label { display: block; font-size: 15px; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.field label em { font-style: normal; color: var(--gray2); font-weight: 500; }
.input { width: 100%; height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 16px; font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: 96px; padding: 14px 16px; resize: vertical; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.seg button.on { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.seg button:disabled { color: #C9CED4; cursor: not-allowed; background: var(--bg3); }
.agree { margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--ink2); }
.agree input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }
.agree a { text-decoration: underline; color: var(--gray); }
.note { margin-top: 14px; font-size: 14px; color: var(--gray); }
.error { margin-top: 14px; color: var(--red); font-size: 15px; font-weight: 600; min-height: 1em; }
.sticky-cta { position: sticky; bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,255,255,0), #fff 30%); margin-top: 20px; }

/* 입금 안내 */
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #FFF4E5; color: #E57E00; }
.status-chip.ok { background: #E5F8EF; color: var(--green); }
.status-chip.off { background: var(--bg2); color: var(--gray); }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.copy-row:last-child { border-bottom: 0; }
.copy-row span { color: var(--gray); font-size: 15px; display: block; }
.copy-row b { font-size: 19px; font-weight: 800; display: block; margin-top: 2px; word-break: break-all; }
.copy-row b.code { color: var(--blue); font-size: 30px; letter-spacing: 0.06em; }
.copy-row .btn { flex-shrink: 0; }
.big-ok { text-align: center; padding: 20px 0 8px; }
.big-ok .circle { width: 72px; height: 72px; border-radius: 50%; background: var(--green); margin: 0 auto; display: grid; place-items: center; }
.big-ok h1 { margin-top: 18px; }
.wait { display: flex; align-items: center; gap: 10px; color: var(--gray); font-size: 15px; margin-top: 16px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 15px; font-weight: 600; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 문서 */
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink2); font-size: 16px; }
.doc ul { padding-left: 20px; margin-top: 6px; }
.doc li { margin: 4px 0; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 24px; }
  .hero-grid, .teacher { grid-template-columns: 1fr; gap: 28px; }
  .teacher .avatar { width: 160px; font-size: 72px; border-radius: 24px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .nav-links .hide-m { display: none; }
  .step { grid-template-columns: 44px 1fr; padding: 18px; }
  .step .min { grid-column: 2; margin-top: -6px; }
  .session { flex-wrap: wrap; padding: 20px; }
  .session .price { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; }
  .session .price .btn { margin-top: 0; }
  .final { padding: 44px 24px; border-radius: 24px; }
  .cv li { grid-template-columns: 1fr; gap: 0; }
}
