@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f2;
  --ink: #111311;
  --ink-2: #4a4f49;
  --ink-3: #8a908a;
  --line: #e3e5e0;
  --dark: #0b0d0b;
  --dark-2: #151915;
  --dark-line: #262c26;
  --accent: #ff5a1f;       /* CTA 오렌지 */
  --accent-ink: #ffffff;
  --olive: #8fa36b;        /* 포인트 올리브 */
  --radius: 14px;
  --maxw: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.6; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ── 헤더 ── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 13, 11, .82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06); color: #fff;
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.logo-sub { font-size: 12px; font-weight: 600; color: var(--olive); padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.nav { display: flex; gap: 26px; margin-left: 10px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.78); }
.nav a:hover { color: #fff; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  transition: transform .15s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ff6d38; }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-line { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { background: var(--bg-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.menu-btn { display: none; width: 40px; height: 40px; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav, .logo-sub, .header-right .hide-m { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .mobile-nav.open {
    display: flex; flex-direction: column; position: fixed; top: var(--header-h); inset-inline: 0; z-index: 49;
    background: var(--dark); color: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--dark-line);
  }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--dark-line); font-weight: 600; }
}

/* ── 공통 섹션 ── */
.section { padding: 120px 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
.h2 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.3; letter-spacing: -.03em; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-2); margin-top: 18px; }
.section-dark .lead { color: rgba(255,255,255,.66); }
.center { text-align: center; }
.hl { color: var(--accent); }
.mark { background: linear-gradient(transparent 60%, rgba(255,90,31,.28) 60%); }

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── 폼 ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input {
  height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,19,17,.08); }
textarea.input { height: auto; padding: 12px 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.check a { text-decoration: underline; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.error-msg { color: #d93025; font-size: 14px; min-height: 20px; margin: 4px 0 10px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* ── 인증 페이지 ── */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) 20px 60px; background: var(--bg-soft); }
.auth-box { width: 100%; max-width: 440px; padding: 40px 32px; }
.auth-box h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-box .sub { color: var(--ink-3); margin-bottom: 28px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.auth-foot a { color: var(--ink); font-weight: 700; margin-left: 6px; }

/* ── 강의 카드 ── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; margin-top: 50px; }
.course-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.course-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
.course-card .desc { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.course-card .price-row { margin-top: auto; padding-top: 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.discount { color: var(--accent); font-weight: 800; font-size: 18px; }
.price { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.list-price { color: var(--ink-3); text-decoration: line-through; font-size: 14px; }
.monthly { width: 100%; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.monthly b { color: var(--ink); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 6px; background: var(--accent); color: #fff; letter-spacing: .02em; }
.badge-soft { background: rgba(143,163,107,.16); color: #5a6b3d; }

/* 썸네일 (이미지 대신 CSS 아트) */
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 100% 0%, rgba(143,163,107,.45), transparent 55%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.thumb.t-fit::before { background: radial-gradient(120% 90% at 100% 0%, rgba(255,90,31,.5), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.thumb.t-talk::before { background: radial-gradient(120% 90% at 100% 0%, rgba(90,130,200,.5), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.thumb .t-label { position: relative; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); letter-spacing: .12em; }
.thumb .t-title { position: relative; font-size: 24px; font-weight: 900; line-height: 1.25; letter-spacing: -.03em; margin-top: 6px; }
.thumb .badge { position: absolute; top: 16px; left: 16px; }

/* ── 푸터 ── */
.footer { background: #070807; color: rgba(255,255,255,.5); font-size: 13px; padding: 50px 0 60px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer p { line-height: 1.9; }
.footer .links { margin-top: 18px; display: flex; gap: 18px; color: rgba(255,255,255,.75); font-weight: 600; }

/* ── 토스트 ── */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 10px; font-size: 15px; opacity: 0; transition: .25s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ── 페이지 공통 레이아웃 ── */
.page { padding-top: calc(var(--header-h) + 48px); padding-bottom: 100px; min-height: 80vh; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 26px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs button { padding: 12px 16px; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--ink-3); font-weight: 600; background: var(--bg-soft); }
.status { font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); }
.status.DONE { background: #e6f4ea; color: #1e7b34; }
.status.CANCELED, .status.PARTIAL_CANCELED { background: #fdecea; color: #c5221f; }
.status.WAITING_FOR_DEPOSIT { background: #fff4e5; color: #b26a00; }
.empty { text-align: center; color: var(--ink-3); padding: 60px 0; }
.progress-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ── 헤더 메뉴 활성 / 좁은 화면 ── */
.nav a.on { color: #fff; }
.nav { gap: 22px; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 1280px) { .logo-sub { display: none; } }
@media (max-width: 1100px) {
  .nav, .header-right .hide-m { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .mobile-nav.open {
    display: flex; flex-direction: column; position: fixed; top: var(--header-h); inset-inline: 0; z-index: 49;
    background: var(--dark); color: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--dark-line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--dark-line); font-weight: 600; }
}

/* ── 떠 있는 상담 버튼 ── */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255,90,31,.45); transition: transform .2s; }
.fab-btn:hover { transform: scale(1.06); }
.fab-panel { width: 270px; background: #fff; color: var(--ink); border-radius: 16px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.fab-panel b { font-size: 17px; }
.fab-panel p { font-size: 13px; color: var(--ink-3); margin: 2px 0 14px; }
.fab-item { display: block; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); font-weight: 700; font-size: 14px; margin-top: 8px; }
.fab-item:hover { background: var(--line); }
.fab-item.kakao { background: #fee500; color: #191919; }
@media (max-width: 760px) { .fab { bottom: 88px; right: 14px; } .fab-btn { width: 54px; height: 54px; } }

/* ── 서브페이지 공통 히어로 ── */
.sub-hero { background: var(--dark); color: #fff; text-align: center; padding: calc(var(--header-h) + 80px) 20px 80px; position: relative; overflow: hidden; }
.sub-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 50% 0%, rgba(143,163,107,.25), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); }
.sub-hero > * { position: relative; }
.sub-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -.035em; line-height: 1.3; }
.sub-hero p { color: rgba(255,255,255,.65); margin-top: 14px; font-size: clamp(16px, 2vw, 19px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 40px 0 30px; }
.chip { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; background: #fff; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 앵커 이동 시 헤더에 가리지 않게 */
[id] { scroll-margin-top: calc(var(--header-h) + 60px); }

/* ── 요금제 카드 ── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 24px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.plan.hot { background: var(--dark); color: #fff; border-color: var(--dark); box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); transform: translateY(-10px); }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 99px; }
.plan-badge.dark { background: var(--ink); }
.plan-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.plan-sub { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.plan.hot .plan-sub, .plan.hot .plan-month { color: rgba(255,255,255,.6); }
.plan-price { font-size: 30px; font-weight: 900; letter-spacing: -.03em; margin-top: 18px; }
.plan-month { font-size: 14px; color: var(--ink-2); }
.plan-month b { color: var(--accent); font-size: 16px; }
.plan-seats { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); background: rgba(255,90,31,.1); padding: 6px 10px; border-radius: 8px; align-self: flex-start; }
.plan-feats { list-style: none; margin: 20px 0 24px; flex: 1; font-size: 14.5px; }
.plan-feats li { padding: 7px 0 7px 24px; position: relative; border-top: 1px solid var(--line); }
.plan.hot .plan-feats li { border-color: rgba(255,255,255,.1); }
.plan-feats li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 900; }
.plan-more { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--ink-3); text-decoration: underline; }
.plan.hot .plan-more { color: rgba(255,255,255,.5); }
.plan-offline { background: var(--bg-soft); }
@media (max-width: 1100px) { .plans { grid-template-columns: 1fr 1fr; gap: 26px 16px; } .plan.hot { transform: none; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* ── 합격 사례 카드 ── */
.case { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.case:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.case-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.case-unit { background: var(--dark); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 7px; }
.case-who { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.case-row { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; }
.case-row small { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--ink-3); }
.case-row p { font-size: 15px; line-height: 1.55; margin-top: 2px; color: var(--ink-2); }
.case-row.after { background: rgba(255,90,31,.08); }
.case-row.after small { color: var(--accent); }
.case-row.after p { color: var(--ink); }
.case-arrow { text-align: center; color: var(--accent); font-weight: 900; margin: 4px 0; }
.case-link { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--ink-3); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cases { grid-template-columns: 1fr; } }
.cases > div { display: flex; }
.cases > div > .case, .cases > .case { flex: 1; }

/* ── 환불 보장 배지 ── */
.guarantee { max-width: 760px; margin: 20px auto 0; }
.g-badge { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-radius: 16px; background: #eef6ea; border: 2px solid #8fbf7a; }
.g-badge .g-ic { font-size: 34px; }
.g-badge b { display: block; font-size: 19px; color: #1f4d14; letter-spacing: -.02em; }
.g-badge small { display: block; font-size: 13.5px; color: #4a6b3e; margin-top: 2px; }
.g-badge.sm { padding: 12px 14px; gap: 10px; border-width: 1px; }
.g-badge.sm .g-ic { font-size: 22px; }
.g-badge.sm b { font-size: 14.5px; }
.g-badge.sm small { font-size: 12px; }

/* 월 금액 강조 */
.plan-price .per { font-size: .55em; font-weight: 800; margin-left: 2px; opacity: .75; }
.plan-month { font-size: 13.5px; }
.install-note { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 20px; }

/* 카카오 로그인 */
.kakao-login { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 12px; background: #fee500; color: #191919; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.kakao-login svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kakao-note { font-size: 12px; color: var(--ink-3); text-align: center; }
.kakao-note a { text-decoration: underline; }
.plan-promo { margin-top: 10px; font-size: 13px; font-weight: 800; color: #b3261e; background: #fdecea; padding: 7px 10px; border-radius: 8px; align-self: flex-start; }
.plan-promo small { font-weight: 600; color: #8c2f28; }
.upg { margin-top: 22px; padding: 20px; border-radius: 14px; border: 2px solid var(--accent); text-align: left; background: #fff; }
.upg small { color: var(--accent); font-weight: 800; font-size: 12.5px; }
.upg b { display: block; font-size: 19px; margin: 4px 0 6px; }
.upg p { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.plan-pre { margin-top: 10px; font-size: 13px; font-weight: 800; color: #1f4d14; background: #eef6ea; padding: 7px 10px; border-radius: 8px; align-self: flex-start; }
.share-line { text-align: center; margin-top: 12px; }
.share-btn { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }
.share-btn:hover { background: var(--bg-soft); }

/* ── 공통: 마지막 CTA · FAQ · 모바일 하단 고정 버튼 (홈 · UDT 페이지 공용) ── */
/* ── CHALLENGE ── */
.challenge {
  text-align: center; color: #fff; padding: 140px 20px;
  background: linear-gradient(rgba(11,13,11,.78), rgba(11,13,11,.88)), url("/img/challenge.jpg") center/cover, #1a2016;
}
.challenge h2 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; letter-spacing: -.04em; }
.challenge p { color: rgba(255,255,255,.7); margin: 16px 0 40px; font-size: 18px; }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 50px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 4px; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--ink-2); }

/* ── 모바일 하단 고정 CTA ── */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: none; transform: translateY(100%); transition: transform .3s; }
.sticky-cta.show { transform: none; }
@media (max-width: 760px) { .sticky-cta { display: block; } .section { padding: 90px 0; } }
