/* 학점은행제 기태쌤 — 공통 스타일 (v2)
   방향: 검정 바탕, 가운데 떠 있는 알약형 메뉴, 위에서 내려오는 조명,
        둥근 어두운 카드, 주황 버튼 + 파랑·보라·노랑·초록 포인트 */

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

:root {
  --bg: #080808;
  --card: #141414;
  --card-2: #1c1c1c;
  --edge: rgba(255, 255, 255, .09);
  --text: #ffffff;
  --mute: #9a9a9a;
  --orange: #dc370a;
  --orange-hi: #ff4f1f;
  --blue: #1f6bff;
  --purple: #774dff;
  --yellow: #ffc93c;
  --green: #2bc275;
  --error: #ff7a6b;

  --light-bg: #ffffff;
  --light-card: #f4f4f4;
  --light-text: #080808;
  --light-mute: #5f5f5f;

  --display: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --wrap: 1160px;
  --gutter: 20px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.todo { color: var(--yellow); }

/* ───── 버튼 ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: var(--r-s);
  font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease-out, transform .12s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #c22e06; }
.btn-gray { background: #3a3a3a; color: #fff; }
.btn-gray:hover { background: #4a4a4a; }
.btn-white { background: #fff; color: #080808; }
.btn-white:hover { background: #e6e6e6; }
.btn-dark { background: #080808; color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* 글 + 동그라미 화살표 링크 */
.more { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-family: var(--display); font-size: 15px; }
.more i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .8; transition: background-color .15s, color .15s; }
.more svg { width: 14px; height: 14px; }
.more:hover i { background: currentColor; }
.more:hover svg { stroke: var(--bg); }
.light .more:hover svg { stroke: #fff; }

/* ───── 떠 있는 알약 메뉴 ───── */
.pill-nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 14px;
  background: rgba(34, 34, 34, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--edge);
  max-width: calc(100vw - 24px);
}
.pill-nav .logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: #080808; display: grid; place-items: center; font-size: 15px; padding-top: 2px; }
.pill-nav .links { display: none; }
.pill-nav .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 9px; text-decoration: none; font-size: 15px; color: #cfcfcf; white-space: nowrap; }
.pill-nav .links a:hover, .pill-nav .links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.pill-nav .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 9px; }

/* 오른쪽 아래 떠 있는 상담 버튼 */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  background: var(--purple); color: #fff; text-decoration: none;
  font-family: var(--display); font-size: 15px;
  box-shadow: 0 10px 30px -8px rgba(119, 77, 255, .7);
}
.fab[hidden] { display: none; }
.fab:hover { background: #6638f5; }
.fab svg { width: 14px; height: 14px; }

/* ───── 히어로 ───── */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 56px; text-align: center;
}
.hero::before { /* 위에서 내려오는 조명 */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none;
  background: radial-gradient(ellipse 34% 100% at 50% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 45%, transparent 72%);
}
.hero > .wrap { position: relative; }
.tag {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--edge);
  font-family: var(--display); font-size: 14px;
}
.hero h1 {
  margin-top: 20px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 9vw, 72px); line-height: 1.16; letter-spacing: -0.03em;
}
.hero-lead { margin: 22px auto 0; max-width: 34em; color: var(--mute); }
.hero-lead strong { color: #fff; font-weight: 600; }

/* 무대: 가운데 계산기 + 주변에 떠 있는 위젯 */
.stage { position: relative; margin: 44px auto 0; max-width: 1040px; }
.float { display: none; }

/* ───── 학점 계산기 (가운데 화면) ───── */
.planner {
  position: relative; z-index: 2;
  max-width: 520px; margin-inline: auto; text-align: left;
  background: var(--card); border-radius: var(--r-l);
  padding: 24px 20px 22px;
  box-shadow: inset 0 0 0 1px var(--edge), 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.planner h2 { font-family: var(--display); font-weight: 500; font-size: 20px; }
.planner-sub { color: var(--mute); font-size: 15px; margin-top: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.seg label, .chips label { position: relative; }
.seg input, .chips input { position: absolute; opacity: 0; inset: 0; }
.seg span, .chips span {
  display: grid; place-items: center; min-height: 50px; text-align: center; padding: 6px;
  border-radius: var(--r-s); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--edge);
  font-weight: 600; font-size: 15px; line-height: 1.3; cursor: pointer;
}
.seg input:checked + span, .chips input:checked + span { background: #fff; color: #080808; box-shadow: none; }
.seg input:focus-visible + span, .chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.range-row { margin-top: 20px; }
.range-row label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 15px; }
.range-row output { font-family: var(--display); font-size: 20px; color: var(--yellow); }
input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.meter-bar { display: flex; height: 36px; border-radius: 8px; overflow: hidden; background: var(--card-2); margin-top: 6px; }
.meter-have { background: var(--blue); transition: width .35s ease-out; }
.meter-need { flex: 1; background: repeating-linear-gradient(-45deg, #2a2a2a 0 8px, #202020 8px 16px); }
.meter-legend { display: flex; justify-content: space-between; font-size: 14px; color: var(--mute); margin-top: 6px; }
.result { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-s); background: var(--blue); }
.result strong { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.3; display: block; }
.result p { font-size: 15px; margin-top: 4px; color: #e3ecff; }
.planner .btn { margin-top: 14px; }
.fineprint { font-size: 13.5px; color: var(--mute); margin-top: 12px; line-height: 1.5; }

/* ───── 섹션 공통 ───── */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin-inline: auto; }
.section-title { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 6.4vw, 46px); line-height: 1.25; letter-spacing: -0.025em; }
.section-lead { margin-top: 14px; color: var(--mute); }
.light { background: var(--light-bg); color: var(--light-text); }
.light .section-lead { color: var(--light-mute); }

/* 어두운 카드 */
.card {
  background: var(--card); border-radius: var(--r-l);
  box-shadow: inset 0 0 0 1px var(--edge);
  padding: 28px 24px;
}

/* 히어로 아래 두 갈래 카드 */
.duo { display: grid; gap: 14px; }
.duo .card { display: grid; gap: 18px; align-content: space-between; min-height: 230px; position: relative; overflow: hidden; }
.duo h2 { font-family: var(--display); font-weight: 500; font-size: 26px; }
.duo p { color: var(--mute); margin-top: 8px; }
.duo .btn { justify-self: start; }
.glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.glyph svg { width: 26px; height: 26px; }
.glyph.blue { background: var(--blue); }
.glyph.green { background: var(--green); }
.glyph.orange { background: var(--orange-hi); }
.glyph.purple { background: var(--purple); }
.glyph.yellow { background: var(--yellow); }

/* 숫자 지표 */
.stats { display: grid; gap: 14px; margin-top: 14px; }
.stat { text-align: center; padding: 30px 20px; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 10vw, 60px); line-height: 1.1; letter-spacing: -0.03em; }
.stat b small { font-size: .42em; margin-left: 4px; letter-spacing: 0; }
.stat span { display: block; margin-top: 8px; color: var(--mute); }
.stat .todo { font-size: 22px; font-family: var(--display); line-height: 2.6; display: block; }

/* 단계별 시스템 */
.system { display: grid; gap: 14px; margin-top: 40px; }
.system .card { text-align: center; padding: 36px 24px 28px; display: grid; gap: 10px; justify-items: center; }
.system .num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 24px; padding-top: 3px; color: #080808; margin-bottom: 6px;
}
.system .card:nth-child(1) .num { background: var(--yellow); }
.system .card:nth-child(2) .num { background: var(--green); }
.system .card:nth-child(3) .num { background: var(--orange-hi); }
.system h3 { font-family: var(--display); font-weight: 500; font-size: 26px; }
.system p { color: var(--mute); max-width: 22em; }

/* 중간 유도 두 줄 */
.asks { display: grid; gap: 14px; margin-top: 14px; }
.ask {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  text-decoration: none; padding: 24px;
  transition: background-color .15s ease-out;
}
.ask:hover { background: var(--card-2); }
.ask small { display: block; color: var(--mute); font-size: 15px; }
.ask strong { display: block; font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.4; margin-top: 4px; }
.ask i { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ask svg { width: 16px; height: 16px; }

/* 후기 카드 (밝은 영역) */
.quotes { display: grid; gap: 14px; margin-top: 40px; }
.quote { background: var(--light-card); border-radius: var(--r-m); padding: 26px 24px; display: grid; gap: 22px; align-content: space-between; min-height: 220px; }
.quote p { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.55; }
.quote footer { font-size: 15px; color: var(--light-mute); }
.quote footer b { display: block; color: var(--light-text); font-size: 16px; }
.quote.is-empty { background: repeating-linear-gradient(-45deg, #f4f4f4 0 10px, #ececec 10px 20px); }
.quote.is-empty p { color: #7a7a7a; font-size: 17px; }
.center { text-align: center; margin-top: 28px; }

/* 자주 묻는 질문 */
.faq { max-width: 820px; margin: 36px auto 0; border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; min-height: 60px; font-family: var(--display); font-weight: 500; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 300; font-size: 26px; line-height: 1; color: var(--mute); transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--mute); max-width: 40em; }

/* 마지막 상담 예약 큰 카드 */
.cta {
  border-radius: var(--r-l); padding: 32px 20px; display: grid; gap: 28px;
  background: radial-gradient(ellipse 80% 90% at 20% 0%, #2c2c2c, #151515 70%);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 9vw, 64px); line-height: 1.12; letter-spacing: -0.03em; }
.cta-copy p { color: var(--mute); margin-top: 16px; max-width: 24em; }

/* ───── 하위 페이지 머리 ───── */
.page-head { position: relative; overflow: hidden; padding: 120px 0 36px; text-align: center; }
.page-head::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
  background: radial-gradient(ellipse 34% 100% at 50% 0%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 45%, transparent 72%);
}
.page-head > .wrap { position: relative; }
.page-head h1 { margin-top: 18px; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 8vw, 56px); line-height: 1.2; letter-spacing: -0.03em; }
.page-head p { margin: 16px auto 0; color: var(--mute); max-width: 32em; }

/* 과정 선택 카드 */
.courses { display: grid; gap: 14px; }
.course { display: grid; gap: 18px; text-decoration: none; padding: 26px 24px; transition: background-color .15s ease-out; }
.course:hover { background: var(--card-2); }
.course small { color: var(--mute); font-size: 15px; display: block; }
.course h2 { font-family: var(--display); font-weight: 500; font-size: 26px; margin-top: 2px; }
.course-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.course-row i { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.course-row svg { width: 16px; height: 16px; }
.note { margin-top: 22px; text-align: center; color: var(--mute); }

/* ───── 상담 접수 폼 ───── */
.sheet { background: var(--card); border-radius: var(--r-l); padding: 26px 20px; box-shadow: inset 0 0 0 1px var(--edge); max-width: 560px; margin-inline: auto; text-align: left; }
.cta .sheet { background: rgba(8, 8, 8, .55); max-width: none; margin: 0; }
.field { margin-top: 20px; border: 0; padding: 0; margin-inline: 0; min-width: 0; }
div.field:first-of-type { margin-top: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 8px; padding: 0; }
.opt { font-weight: 400; color: var(--mute); }
.field .hint { font-size: 14px; color: var(--mute); margin-top: 6px; }
.input {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-s);
  background: var(--card-2); font-size: 17px; color: #fff;
}
.input::placeholder { color: #7d7d7d; }
.input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }
.has-error .input { border-color: var(--error); }
.error { display: none; color: var(--error); font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.has-error .error { display: block; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-memo { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r-s); background: var(--blue); font-size: 15px; font-weight: 600; }

.consent { margin-top: 22px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card-2); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; font-weight: 600; font-size: 15.5px; min-height: 44px; padding-top: 8px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--orange-hi); }
.consent details { font-size: 14.5px; color: var(--mute); }
.consent summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.consent dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.consent dt { font-weight: 600; color: #fff; }
.consent dd { margin: 0; }
.consent.has-error { box-shadow: inset 0 0 0 1px var(--error); }
.form-foot { margin-top: 20px; }
.form-note { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-s); font-size: 15px; font-weight: 600; background: var(--yellow); color: #2b2000; }
.done { text-align: center; padding: 20px 0 8px; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.done-mark svg { width: 30px; height: 30px; }
.done h2 { font-family: var(--display); font-weight: 500; font-size: 24px; }
.done p { color: var(--mute); margin-top: 8px; }
.done .btn { margin-top: 22px; }

/* ───── 후기 페이지 ───── */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 6px; background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--edge); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; min-height: 48px; padding: 0 18px; border: 0; background: transparent; border-radius: 9px; font-family: var(--display); font-size: 15px; color: #cfcfcf; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: #fff; color: #080808; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.shot { aspect-ratio: 3 / 4; border-radius: var(--r-m); overflow: hidden; background: var(--card); padding: 0; border: 0; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.is-empty {
  cursor: default; display: grid; place-items: center; text-align: center; padding: 10px;
  background: repeating-linear-gradient(-45deg, #141414 0 10px, #1a1a1a 10px 20px);
  box-shadow: inset 0 0 0 1px var(--edge);
  color: #8a8a8a; font-size: 14px; font-weight: 600; line-height: 1.4;
}
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; }
.viewer::backdrop { background: rgba(0, 0, 0, .86); }
.viewer img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--r-s); background: #fff; }
.viewer form { text-align: center; margin-top: 12px; }
.viewer .btn { min-height: 46px; }

/* ───── 바닥글 ───── */
.site-foot { color: var(--mute); font-size: 14.5px; padding: 40px 0 110px; margin-top: 72px; border-top: 1px solid var(--edge); }
.site-foot strong { color: #fff; font-family: var(--display); font-weight: 500; font-size: 16px; display: block; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot small { display: block; margin-top: 18px; font-size: 13.5px; }

/* ───── 넓은 화면 ───── */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 18px; }
  .pill-nav { top: 16px; }
  .pill-nav .links { display: flex; }
  .fab { right: 28px; bottom: 28px; }
  .hero { padding: 150px 0 72px; }
  .page-head { padding: 150px 0 48px; }
  .planner { padding: 30px; }
  .section { padding: 110px 0; }
  .duo, .asks, .courses { grid-template-columns: 1fr 1fr; }
  .stats, .system { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .card { padding: 34px; }
  .course { padding: 34px; min-height: 220px; align-content: space-between; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .sheet { padding: 36px; }
  .cta { padding: 56px; }
}
@media (min-width: 1000px) {
  .quotes { grid-template-columns: repeat(4, 1fr); }
  .cta { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }

  /* 계산기 주변에 떠 있는 위젯 */
  .float {
    display: block; position: absolute; z-index: 1; text-align: left;
    background: var(--card); border-radius: 16px; padding: 14px 16px;
    box-shadow: inset 0 0 0 1px var(--edge), 0 24px 50px -24px #000;
    font-size: 14px; color: var(--mute); line-height: 1.4;
    animation: drift 7s ease-in-out infinite alternate;
  }
  .float b { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; color: #fff; line-height: 1.25; }
  .float.f1 { left: 0; top: 40px; width: 190px; }
  .float.f2 { left: 40px; bottom: 90px; width: 200px; animation-delay: -2s; }
  .float.f3 {
    right: 20px; top: 150px; width: 150px; height: 150px; border-radius: 50%;
    background: var(--blue); color: #e3ecff; box-shadow: none;
    display: grid; place-content: center; text-align: center; animation-delay: -4s;
  }
  .float.f4 { right: 0; bottom: 60px; width: 210px; animation-delay: -1s; }
  .float.f5 { right: 60px; top: 10px; border-radius: 999px; padding: 10px 18px 10px 10px; display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); animation-delay: -3s; }
  .float.f5 i { width: 30px; height: 30px; border-radius: 50%; background: var(--orange-hi); display: grid; place-items: center; }
  .float.f5 svg { width: 14px; height: 14px; }
  .bars { display: flex; align-items: end; gap: 6px; height: 54px; margin-top: 10px; }
  .bars span { flex: 1; border-radius: 4px 4px 0 0; background: #2e2e2e; }
  .bars span:nth-child(1) { height: 30%; }
  .bars span:nth-child(2) { height: 48%; }
  .bars span:nth-child(3) { height: 66%; }
  .bars span:nth-child(4) { height: 82%; background: var(--yellow); }
  .bars span:nth-child(5) { height: 100%; background: var(--green); }
}
@keyframes drift { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

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

/* ═════════ 움직임 (v3) ═════════ */

/* 첫 화면 등장: 알약 문구 → 제목 한 줄씩 → 설명 → 계산기 → 위젯 */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
@keyframes glow { from { opacity: 0; transform: scaleY(.6); } }

.hero::before, .page-head::before { transform-origin: top; animation: glow 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero .tag, .page-head .tag { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; animation: line-up .9s cubic-bezier(.2, .8, .2, 1) both; }
.line:nth-child(1) > span { animation-delay: .1s; }
.line:nth-child(2) > span { animation-delay: .22s; }
.hero-lead, .page-head p { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .42s both; }
.planner { animation: pop 1s cubic-bezier(.2, .8, .2, 1) .55s both; }

/* 스크롤하면 나타나는 요소 (스크립트가 켜진 경우에만 숨김) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 화살표 동그라미: 올리면 화살표가 살짝 튀어나감 */
.ask i svg, .course-row i svg, .more i svg, .fab svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ask:hover i svg, .course:hover .course-row i svg, .more:hover i svg, .fab:hover svg { transform: translate(2px, -2px) scale(1.12); }
.ask i, .course-row i { transition: background-color .2s ease-out; }
.ask:hover i, .course:hover .course-row i { background: var(--yellow); }

/* 질문 펼침을 부드럽게 (지원하는 브라우저에서만) */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .35s cubic-bezier(.2, .7, .2, 1), opacity .3s ease-out, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* 떠 있는 메뉴: 아래로 스크롤하면 숨고, 위로 올리면 다시 나옴 */
.pill-nav { transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease-out; }
.pill-nav.is-away { transform: translate(-50%, -130%); opacity: 0; }
.pill-nav.is-away:focus-within { transform: translateX(-50%); opacity: 1; }

/* 3단계 시스템: 카드 안 작은 화면 */
.step { text-align: left; display: grid; gap: 14px; align-content: start; }
.step .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 24px; padding-top: 3px; color: #080808; }
.step:nth-child(1) .num { background: var(--yellow); }
.step:nth-child(2) .num { background: var(--green); }
.step:nth-child(3) .num { background: var(--orange-hi); }
.step h3 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 5vw, 34px); }
.step > p { color: var(--mute); max-width: 26em; }
.pin-cards { display: grid; gap: 14px; margin-top: 36px; }
.pin-nav { display: none; }
.demo { margin-top: 10px; padding: 18px; border-radius: var(--r-m); background: var(--bg); box-shadow: inset 0 0 0 1px var(--edge); display: grid; gap: 10px; font-size: 15px; }
.demo > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--n, 0) * 160ms + 250ms); }
.step.is-in .demo > *, html:not(.js) .demo > * { opacity: 1; transform: none; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--card-2); justify-self: start; }
.bubble.me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--blue); }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.file i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.file i svg { width: 18px; height: 18px; }
.file small { margin-left: auto; color: var(--mute); font-size: 13.5px; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.todo-row i { width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.todo-row i svg { width: 14px; height: 14px; }
.todo-row.now i { background: transparent; box-shadow: inset 0 0 0 2px var(--orange-hi); }
.todo-row.now { color: var(--orange-hi); font-weight: 600; }
.todo-row.now i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange-hi); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.5); opacity: .5; } }

@media (min-width: 1000px) {
  /* 왼쪽 제목은 고정, 오른쪽 카드가 지나가며 단계가 바뀜 */
  .pin { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .pin-side { position: sticky; top: 22vh; text-align: left; }
  .pin-side .section-title { font-size: 42px; }
  .pin-nav { display: grid; gap: 4px; list-style: none; margin: 40px 0 0; padding: 0; counter-reset: s; }
  .pin-nav li { counter-increment: s; display: flex; align-items: center; gap: 14px; padding: 10px 0; font-family: var(--display); font-size: 22px; color: #4d4d4d; transition: color .35s ease-out; }
  .pin-nav li::before { content: ""; width: 0; height: 2px; background: #fff; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
  .pin-nav li.is-active { color: #fff; }
  .pin-nav li.is-active::before { width: 36px; }
  .pin-cards { margin-top: 0; gap: 28px; padding-bottom: 6vh; }
  .step { min-height: 62vh; padding: 44px; align-content: center; transition: opacity .45s ease-out, transform .45s cubic-bezier(.2, .8, .2, 1); }
  .js .step.is-in:not(.is-active) { opacity: .35; transform: scale(.97); }

  /* 위젯 등장 + 마우스 따라 살짝 움직임 */
  .float { animation: fade .9s ease-out both, drift 7s ease-in-out infinite alternate; translate: calc(var(--mx, 0) * var(--depth, 12px)) calc(var(--my, 0) * var(--depth, 12px)); transition: translate .5s cubic-bezier(.2, .7, .2, 1); }
  .float.f1 { animation-delay: .9s, 0s; --depth: 18px; }
  .float.f2 { animation-delay: 1.05s, -2s; --depth: -14px; }
  .float.f3 { animation-delay: 1.2s, -4s; --depth: 26px; }
  .float.f4 { animation-delay: 1.35s, -1s; --depth: -20px; }
  .float.f5 { animation-delay: 1.5s, -3s; --depth: 12px; }
  .bars span { transform-origin: bottom; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; }
  .bars span:nth-child(1) { animation-delay: 1.2s; }
  .bars span:nth-child(2) { animation-delay: 1.3s; }
  .bars span:nth-child(3) { animation-delay: 1.4s; }
  .bars span:nth-child(4) { animation-delay: 1.5s; }
  .bars span:nth-child(5) { animation-delay: 1.6s; }
}
@keyframes grow { from { transform: scaleY(0); } }

/* ═════════ 기기별 화면 구성 (v5) ═════════
   휴대폰  ~719px : 한 줄 배치, 메뉴 버튼, 옆으로 넘기는 카드
   태블릿  720px~ : 두 줄 배치
   노트북 1000px~ : 떠 있는 위젯, 스크롤 고정 섹션
   큰 화면 1440px~: 폭과 제목을 더 크게 */

.pill-nav { top: calc(12px + env(safe-area-inset-top)); }
.menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.is-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.is-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
.floats { display: contents; }
.consent summary { min-height: 44px; }
.stats { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 719.98px) {
  /* 메뉴: 알약 아래로 펼쳐지는 목록 */
  .pill-nav .links {
    display: grid; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    padding: 6px; border-radius: 14px;
    background: #1e1e1e; box-shadow: inset 0 0 0 1px var(--edge), 0 24px 50px -20px #000;
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity .2s ease-out, translate .25s cubic-bezier(.2, .8, .2, 1), visibility .2s;
  }
  .pill-nav.is-open .links { opacity: 1; visibility: visible; translate: 0 0; }
  .pill-nav .links a { min-height: 50px; font-size: 16px; }
  .pill-nav .logo { font-size: 14.5px; padding-right: 8px; }
  .pill-nav .btn { padding: 0 14px; }

  /* 첫 화면: 계산기 아래에 옆으로 넘기는 정보 칩 */
  .stage { display: grid; }
  .tilt { order: 1; }
  .floats {
    order: 2; display: flex; gap: 10px; margin: 16px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .floats::-webkit-scrollbar { display: none; }
  .float {
    display: block; flex: none; scroll-snap-align: start; text-align: left;
    min-width: 150px; padding: 14px 16px; border-radius: 16px;
    background: var(--card); box-shadow: inset 0 0 0 1px var(--edge);
    font-size: 13.5px; line-height: 1.4; color: var(--mute);
  }
  .float b { display: block; font-size: 20px; color: #fff; line-height: 1.3; }
  .float.f1 { display: none; }
  .float.f3 { background: var(--blue); color: #e3ecff; box-shadow: none; }
  .float.f5 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; }
  .float.f5 i { width: 28px; height: 28px; border-radius: 50%; background: var(--orange-hi); display: grid; place-items: center; flex: none; }
  .float.f5 svg { width: 14px; height: 14px; }
  .hero { padding-bottom: 40px; }

  /* 숫자 지표: 세 칸을 한 줄에 */
  .stats { gap: 8px; }
  .stat { padding: 18px 6px; border-radius: var(--r-m); }
  .stat b { font-size: 30px; }
  .stat span { font-size: 13.5px; margin-top: 4px; }
  .stat .todo { font-size: 15px; line-height: 2; }

  /* 후기 카드: 세로로 쌓지 않고 옆으로 넘김 */
  .quotes {
    display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 82%; scroll-snap-align: center; min-height: 200px; }
  .js .quotes .reveal { transition-delay: 0s; }

  /* 여백과 글자: 작은 화면에 맞게 */
  .section { padding: 56px 0; }
  .card { padding: 24px 20px; border-radius: 22px; }
  .duo .card { min-height: 0; }
  .ask { padding: 20px; gap: 12px; }
  .ask strong { font-size: 18px; }
  .cta { padding: 28px 16px 16px; }
  .cta .sheet { padding: 20px 16px; }
  .faq summary { font-size: 17px; padding: 18px 0; }
  .fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 50px; padding: 0 18px; }
  .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* 작은 화면에서는 제목이 멀어지는 효과를 약하게 */
  .hero .hero-copy { scale: 1; translate: 0 calc(var(--p, 0) * 30px); }
}

@media (max-width: 359.98px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .pill-nav .logo-mark { display: none; }
  .pill-nav .logo { padding-left: 10px; }
  .seg span, .chips span { font-size: 14px; }
  .result strong { font-size: 22px; }
}

@media (min-width: 720px) {
  .menu-btn { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) and (max-width: 999.98px) {
  /* 태블릿: 위젯 대신 계산기 아래에 정보 칩을 가운데 정렬 */
  .stage { display: grid; }
  .tilt { order: 1; }
  .floats { order: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
  .float {
    display: block; text-align: left; min-width: 170px; padding: 16px 18px; border-radius: 16px;
    background: var(--card); box-shadow: inset 0 0 0 1px var(--edge);
    font-size: 14px; line-height: 1.4; color: var(--mute);
  }
  .float b { display: block; font-size: 22px; color: #fff; line-height: 1.3; }
  .float.f1 { display: none; }
  .float.f3 { background: var(--blue); color: #e3ecff; box-shadow: none; }
  .float.f5 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; }
  .float.f5 i { width: 30px; height: 30px; border-radius: 50%; background: var(--orange-hi); display: grid; place-items: center; flex: none; }
  .float.f5 svg { width: 14px; height: 14px; }
  /* 태블릿: 3단계 카드를 한 줄에 하나씩, 안쪽은 글과 화면을 좌우로 */
  .step { grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: center; }
  .step .num, .step h3, .step > p { grid-column: 1; }
  .step .demo { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1440px) {
  :root { --wrap: 1280px; }
  .hero h1 { font-size: 88px; }
  .stage { max-width: 1160px; }
  .planner { max-width: 560px; }
  .pin-side .section-title { font-size: 48px; }
  .section { padding: 130px 0; }
}

/* 손가락으로 쓰는 기기: 마우스 올림 효과가 눌린 채 남지 않게 */
@media (hover: none) {
  .ask:hover, .course:hover { background: var(--card) var(--glow); }
  .ask:hover i, .course:hover .course-row i { background: #fff; }
  .ask:active, .course:active { background: var(--card-2) var(--glow); }
}

/* ═════════ 서체: 전부 Pretendard, 제목·버튼은 굵게 ═════════ */
html body :is(h1, h2, h3, .btn, .tag, .logo, .fab, .more, .tab, .num, .stat b, .result strong, .range-row output, .float b, .f5, .pin-nav li, .ask strong, .quote p, .faq summary) { font-weight: 700; }
html body :is(.hero h1, .page-head h1, .cta h2) { font-weight: 800; letter-spacing: -0.04em; }
html body .section-title { letter-spacing: -0.035em; }
html body :is(.logo-mark, .num, .step .num) { padding-top: 0; }

/* ═════════ 움직임 2차 (v4) ═════════ */

/* 페이지를 넘길 때 화면이 부드럽게 바뀜 (지원 브라우저) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease-in both; }
::view-transition-new(root) { animation: vt-in .4s ease-out both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* 첫 화면: 스크롤하면 제목은 멀어지고(--p), 기울어 있던 계산기는 바로 섬(--t) */
.hero-copy { translate: 0 calc(var(--p, 0) * 70px); scale: calc(1 - var(--p, 0) * .08); opacity: calc(1 - var(--p, 0) * 1.5); transform-origin: 50% 100%; will-change: translate, opacity; }
.hero::before { opacity: calc(1 - var(--p, 0) * .9); }
.stage { perspective: 1400px; }
.tilt { position: relative; z-index: 2; }
@media (min-width: 720px) {
  .tilt {
    transform-origin: 50% 0;
    transform: rotateX(calc((1 - var(--t, 1)) * 16deg)) scale(calc(.94 + var(--t, 1) * .06));
    will-change: transform;
  }
}

/* 섹션 제목: 단어가 하나씩 아래에서 올라옴 */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .w > span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--w, 0) * 70ms + 100ms); }
.js .is-in .w > span { transform: none; }

/* 카드: 마우스 위치를 따라 은은한 조명이 비침 */
.card { --glow: radial-gradient(420px circle at var(--gx, 50%) var(--gy, -300px), rgba(255, 255, 255, .09), transparent 65%); background-image: var(--glow); }
.ask:hover, .course:hover { background: var(--card-2) var(--glow); }
.cta { --glow: radial-gradient(600px circle at var(--gx, 20%) var(--gy, 0%), rgba(255, 255, 255, .1), transparent 65%); background: var(--glow), radial-gradient(ellipse 80% 90% at 20% 0%, #2c2c2c, #151515 70%); }

/* 떠 있는 상담 버튼: 첫 화면을 지나면 아래에서 올라옴 */
.fab { transition: translate .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease-out, background-color .15s; }
.fab.is-low { translate: 0 90px; opacity: 0; pointer-events: none; }

/* 밝은 후기 영역: 검정에서 흰색으로 넘어가는 둥근 모서리 */
.light { border-radius: var(--r-l) var(--r-l) 0 0; }
.light + .section { border-radius: var(--r-l) var(--r-l) 0 0; margin-top: calc(var(--r-l) * -1); background: var(--bg); position: relative; }

/* 스크롤 진행 표시 (화면 맨 위 얇은 선) */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--orange-hi); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }

@media (min-width: 1000px) {
  /* 위젯: 스크롤하면 서로 다른 속도로 흩어짐 */
  .float { translate: calc(var(--mx, 0) * var(--depth, 12px)) calc(var(--my, 0) * var(--depth, 12px) + var(--p, 0) * var(--fall, -60px)); }
  .float.f1 { --fall: -90px; }
  .float.f2 { --fall: 60px; }
  .float.f3 { --fall: -140px; }
  .float.f4 { --fall: 90px; }
  .float.f5 { --fall: -50px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy { translate: none; scale: none; opacity: 1; }
  .tilt { transform: none; }
  .js .w > span { transform: none; }
  .fab.is-low { translate: none; opacity: 1; pointer-events: auto; }
  .progress { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .demo > * { opacity: 1 !important; transform: none !important; }
  .js .step.is-in:not(.is-active) { opacity: 1; transform: none; }
  .float { translate: none; }
}

/* ═════════ 색상 정리 (v6): 신뢰·전문성 ═════════
   포인트는 파랑 하나. 초록은 "완료", 호박색은 "주의"에만 씁니다.
   바탕은 순검정 대신 짙은 남색으로 바꿔 교육·금융 서비스에 가까운 인상을 줍니다. */
:root {
  --bg: #060a14;
  --card: #0d1422;
  --card-2: #151e30;
  --edge: rgba(150, 180, 255, .13);
  --mute: #9ba8bd;
  --blue: #2f6bff;
  --blue-hi: #6b9bff;
  --sky: #a9c7ff;
  --amber: #ffcf5c;
  --orange: var(--blue);
  --orange-hi: var(--blue);
  --purple: var(--blue);
  --yellow: var(--sky);
  --light-card: #f1f4f9;
  --light-mute: #56607a;
}
:focus-visible { outline-color: var(--sky); }
.btn-orange:hover { background: #1f57e6; }
.btn-gray { background: #222c40; }
.btn-gray:hover { background: #2d3950; }
.pill-nav { background: rgba(16, 23, 38, .82); }
.fab { box-shadow: 0 10px 30px -8px rgba(47, 107, 255, .7); }
.fab:hover { background: #1f57e6; }
.todo, .stat .todo { color: var(--amber); }
.form-note { background: var(--amber); }
.glyph.blue, .glyph.green, .glyph.orange, .glyph.purple, .glyph.yellow { background: var(--blue); }
.step:nth-child(1) .num, .step:nth-child(2) .num, .step:nth-child(3) .num,
.system .card:nth-child(1) .num, .system .card:nth-child(2) .num, .system .card:nth-child(3) .num { background: #fff; }
.meter-need { background: repeating-linear-gradient(-45deg, #1a2438 0 8px, #131b2c 8px 16px); }
.range-row output { color: var(--sky); }
.shot.is-empty { background: repeating-linear-gradient(-45deg, #0d1422 0 10px, #121a2b 10px 20px); color: #8492aa; }
.cta { background: var(--glow), radial-gradient(ellipse 80% 90% at 20% 0%, #1b2740, #0b111d 70%); }
.cta .sheet { background: rgba(6, 10, 20, .6); }
.ask:hover i, .course:hover .course-row i { background: var(--sky); }
.file i { background: #fff !important; }
.todo-row.now { color: var(--blue-hi); }
.todo-row.now i { box-shadow: inset 0 0 0 2px var(--blue-hi); }
.todo-row.now i::after { background: var(--blue-hi); }
.check input { accent-color: var(--blue); }
.plan-memo, .result { background: var(--blue); }
@media (max-width: 719.98px) { .pill-nav .links { background: #111a2b; } }
@media (min-width: 1000px) {
  .pin-nav li { color: #4b5873; }
  .bars span { background: #1e2a42; }
  .bars span:nth-child(4) { background: var(--blue-hi); }
  .bars span:nth-child(5) { background: var(--blue); }
  .float.f5 i { background: var(--green); }
}
@media (max-width: 999.98px) { .float.f5 i { background: var(--green); } }

/* ═════════ 모션 3차 (v6) ═════════ */

/* 첫 화면 배경: 천천히 흐르는 격자 (위쪽에서만 보이고 아래로 사라짐) */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(150, 180, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 180, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 75%);
  animation: grid-drift 14s linear infinite, fade 1.6s ease-out both;
  translate: 0 calc(var(--p, 0) * -60px);
}
@keyframes grid-drift { to { background-position: 0 56px, 56px 0; } }
.hero > .wrap { z-index: 1; }

/* 흐르는 띠: 다루는 과정이 끊임없이 지나감. 스크롤 속도에 따라 빨라짐 */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--edge); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(22px, 4.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; color: #fff; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(170, 195, 255, .55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 한 문장 선언: 스크롤하는 만큼 단어가 차례로 밝아짐 */
.statement { padding: 96px 0; }
.scrub { max-width: 24em; margin-inline: auto; text-align: center; font-size: clamp(26px, 5.4vw, 52px); font-weight: 700; line-height: 1.38; letter-spacing: -0.035em; }
.js .scrub .sw { color: #fff; opacity: .16; transition: opacity .25s linear; }
.js .scrub .sw.on { opacity: 1; }

/* 3단계: 왼쪽 목록에 스크롤 진행 레일 */
@media (min-width: 1000px) {
  .pin-nav { position: relative; padding-left: 26px; }
  .pin-nav::before, .pin-nav::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
  .pin-nav::before { background: var(--edge); }
  .pin-nav::after { background: var(--blue); transform-origin: top; transform: scaleY(var(--pp, 0)); }
  .pin-nav li::before { display: none; }
  .pin-nav li { transition: color .35s ease-out, translate .35s cubic-bezier(.2, .8, .2, 1); }
  .pin-nav li.is-active { translate: 6px 0; }
}

/* 밝은 후기 영역: 스크롤해 들어오면 양옆에서 펼쳐짐 */
.js .light { clip-path: inset(0 calc((1 - var(--g, 1)) * 7%) 0 calc((1 - var(--g, 1)) * 7%) round var(--r-l) var(--r-l) 0 0); }

/* 주 버튼: 빛이 한 번 지나가고, PC에서는 마우스 쪽으로 살짝 끌려옴 */
.btn-orange { position: relative; }
.btn-orange, .fab { overflow: hidden; isolation: isolate; }
.btn-orange::after, .fab::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  translate: -120% 0; transition: translate .7s cubic-bezier(.2, .7, .2, 1);
}
.btn-orange:hover::after, .fab:hover::after { translate: 120% 0; }
.btn { transition: background-color .15s ease-out, transform .12s ease-out, translate .3s cubic-bezier(.2, .8, .2, 1); }
.fab { transition: translate .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease-out, background-color .15s; }

/* 계산기 결과: 값이 바뀔 때 살짝 튐 */
@keyframes bump { 40% { transform: scale(1.035); } }
.result.is-bump { animation: bump .35s cubic-bezier(.2, .8, .2, 1); }

/* 후기 탭: 선택 표시가 옆으로 미끄러짐 */
.tabs { position: relative; }
.tabs .tab { position: relative; z-index: 1; background: transparent !important; transition: color .25s ease-out; }
.tab-ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 9px; background: #fff; transition: transform .4s cubic-bezier(.2, .8, .2, 1), width .4s cubic-bezier(.2, .8, .2, 1); }
.gallery .shot { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--k, 0) * 45ms); }

@media (max-width: 719.98px) {
  .statement { padding: 64px 0; }
  .marquee { padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .scrub .sw { opacity: 1; }
  .js .light { clip-path: none; }
  .marquee-track { animation: none; }
  .hero::after { animation: none; translate: none; }
}

/* ═════════ 수강후기 CMS (v7) ═════════
   후기 탭의 노션 카드와 후기 상세 페이지. 기존 색·글꼴·둥글기·간격 값만 씁니다.
   카드: PC 3열 / 태블릿 2열 / 모바일 1열. 후기가 없으면 기존 "자료 준비 중" 칸을 그대로 씁니다. */
.gallery.review-grid { grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .gallery.review-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .gallery.review-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; border-radius: var(--r-l);
  transition: background-color .15s ease-out, translate .3s cubic-bezier(.2, .8, .2, 1);
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--k, 0) * 45ms);
}
.review-card:hover { background-color: var(--card-2); translate: 0 -3px; }
.review-thumb { aspect-ratio: 4 / 3; background: var(--card-2); overflow: hidden; }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2, .8, .2, 1); }
.review-card:hover .review-thumb img { scale: 1.04; }
.review-thumb.is-blank { background: repeating-linear-gradient(-45deg, #0d1422 0 10px, #121a2b 10px 20px); }
.review-body { padding: 20px 22px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.review-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.review-cat, .review-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.review-cat { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--edge); color: var(--sky); }
.review-badge, .review-badge-tag { background: var(--blue); color: #fff; }
.review-title { font-size: 19px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; }
.review-summary { color: var(--mute); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review-card time { color: var(--mute); font-size: 14px; margin-top: auto; padding-top: 4px; }
.review-more { display: flex; justify-content: center; margin-top: 24px; }
.review-more[hidden], .tag[hidden] { display: none; }
.review-badge-tag { margin-left: 6px; box-shadow: none; }

/* 후기 상세 본문 */
.review-article { max-width: 760px; margin-inline: auto; }
.review-article > * + * { margin-top: 18px; }
.review-article[aria-busy="true"] { min-height: 40vh; }
.review-article h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; margin-top: 44px; }
.review-article h3 { font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; margin-top: 36px; }
.review-article h4 { font-size: 19px; line-height: 1.45; font-weight: 700; margin-top: 28px; }
.review-article p, .review-article li { color: rgba(255, 255, 255, .86); font-size: 17.5px; line-height: 1.8; }
.review-article ul, .review-article ol { padding-left: 1.3em; margin-bottom: 0; }
.review-article li + li { margin-top: 6px; }
.review-article blockquote { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: #fff; font-size: 19px; line-height: 1.7; }
.review-article figure { margin: 28px 0 0; }
.review-article figure img { width: 100%; border-radius: var(--r-m); background: var(--card); }
.review-article figcaption { color: var(--mute); font-size: 14px; margin-top: 8px; text-align: center; }
.review-article hr { border: 0; border-top: 1px solid var(--edge); margin: 40px 0 0; }
.review-article .review-cover { margin-top: 0; }
.review-article .review-cover img { border-radius: var(--r-l); }
.review-article .btn { margin-top: 8px; }
@media (max-width: 719.98px) {
  .review-body { padding: 18px 18px 20px; }
  .review-article p, .review-article li { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .review-card { animation: none; }
  .review-card:hover { translate: none; }
  .review-card:hover .review-thumb img { scale: none; }
}

/* ═════════ 배경 영상 (v8) ═════════
   첫 화면부터 숫자 지표 카드까지(.video-zone) 영상이 화면에 고정되어 깔립니다.
   처음에는 화면 한가운데 작은 점으로 시작해, 스크롤하면 화면 전체로 넓어지며 확대(1.15배)가 풀립니다. */
.video-zone { position: relative; isolation: isolate; }
.bg-video { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-video-stick {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  clip-path: inset(32.5% 49.5% 66.5% round 28px); /* 처음에는 큰 제목 뒤의 작은 점 */
  will-change: clip-path;
}
.bg-video-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%;
  transform: scale(1.15); transform-origin: 60% 58%; will-change: transform;
  background: var(--bg);
}
/* 글씨가 잘 읽히도록 남색으로 덮고, 아래쪽은 바탕색으로 자연스럽게 이어 줍니다 */
.bg-video-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 50% 34%, rgba(6, 10, 20, .4), transparent 70%),
    linear-gradient(180deg, rgba(6, 10, 20, .25) 0%, rgba(6, 10, 20, .45) 55%, rgba(6, 10, 20, .8) 85%, var(--bg) 100%);
}
.video-zone > section { position: relative; z-index: 1; }
/* 영상 위에서는 격자 무늬를 옅게 */
.video-zone .hero::after { opacity: .45; }

.video-toggle {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(13, 20, 34, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--edge); color: #cfd8e8; font-size: 13.5px; font-weight: 600;
}
.video-toggle:hover { color: #fff; }
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: inline; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

@media (max-width: 719.98px) {
  .bg-video-stick { clip-path: inset(29.5% 49.5% 69.5% round 22px); }
  .video-toggle { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-video-stick { clip-path: none; }
  .bg-video-media { transform: none; }
}

/* 선언 문장: 정해 둔 줄마다 끊고, 화면이 좁으면 그 줄 안에서만 고르게 줄바꿈 */
.scrub-line { display: block; text-wrap: balance; }
.step > p { line-height: 1.75; }

/* ═════════ 상담 예약 카드: 유튜브 버튼 + 기태쌤 사진 (v9) ═════════ */
.cta { overflow: hidden; }
.cta-copy { position: relative; display: flex; flex-direction: column; }
.cta .sheet { position: relative; z-index: 1; }

/* 유튜브 채널 버튼 */
.yt-btn {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  margin-top: 24px; min-height: 58px; padding: 8px 18px 8px 10px;
  border-radius: 16px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--edge);
  transition: background-color .15s ease-out, translate .3s cubic-bezier(.2, .8, .2, 1);
}
.yt-btn:hover { background: rgba(255, 255, 255, .11); translate: 0 -2px; }
.yt-icon { width: 42px; height: 30px; flex: none; }
.yt-label { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.yt-label small { display: block; font-size: 12.5px; font-weight: 500; color: var(--mute); }
.yt-go { width: 14px; height: 14px; margin-left: 6px; opacity: .7; transition: translate .25s cubic-bezier(.2, .8, .2, 1); }
.yt-btn:hover .yt-go { translate: 2px -2px; opacity: 1; }

/* 기태쌤 사진: 배경을 뺀 인물 사진, 아래쪽은 카드 바탕으로 자연스럽게 사라짐 */
.cta-photo { position: relative; align-self: center; margin: 8px 0 -40px; pointer-events: none; }
.cta-photo::before { /* 인물 뒤 은은한 파란 빛 — 어두운 정장과 바탕을 구분 */
  content: ""; position: absolute; left: 10%; right: 10%; top: 8%; height: 60%;
  background: radial-gradient(closest-side, rgba(47, 107, 255, .32), transparent);
  filter: blur(8px); z-index: -1;
}
.cta-photo img {
  display: block; height: 320px; width: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}

@media (min-width: 1000px) {
  /* 글은 위쪽에, 사진은 왼쪽 칸 오른쪽 아래에 카드 바닥까지 */
  .cta { align-items: stretch; }
  .cta-copy { padding-top: 8px; }
  .cta-photo { margin: auto -12px -56px 0; align-self: flex-end; }
  .cta-photo img { height: clamp(360px, 32vw, 470px); }
}
@media (max-width: 719.98px) {
  .yt-btn { margin-top: 20px; }
  .cta-photo { margin-bottom: -28px; }
  .cta-photo img { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .yt-btn:hover, .yt-btn:hover .yt-go { translate: none; }
}

/* 왼쪽 위젯(플랜 설계 · 비용 NO): 글자 위젯이 되어 태블릿·휴대폰 정보 칩에도 보여 줍니다 */
.float.f1 b { margin-top: 4px; }
@media (max-width: 999.98px) { .float.f1 { display: block; } }

/* 휴대폰: 숫자 지표 세 칸에서 "9.5 / 10" 등이 두 줄로 깨지지 않게 */
@media (max-width: 719.98px) {
  .stat b { white-space: nowrap; font-size: 26px; letter-spacing: -0.04em; }
  .stat b small { font-size: .5em; margin-left: 2px; }
  .stat span { white-space: nowrap; font-size: 12.5px; }
}

/* ═════════ 상담 예약 카드: 밝은 카드 (v10) ═════════
   흰 배경에서 찍은 인물 사진이 자연스럽게 어울리도록 이 카드만 밝게 바꿉니다.
   글씨는 진한 남색, 포인트는 파랑. (상담접수 페이지 등 다른 곳은 그대로) */
.cta {
  --text: #0b1a3a;
  --mute: #55627a;
  --card-2: #f3f6fb;
  --edge: rgba(20, 45, 100, .14);
  --error: #c62a1e;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 70% at 18% 100%, rgba(47, 107, 255, .10), transparent 70%),
    radial-gradient(ellipse 70% 60% at 10% 0%, #eaf1ff, transparent 70%),
    #ffffff;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}
/* 상담접수 페이지의 폼도 같은 밝은 카드로 */
.sheet-light {
  --text: #0b1a3a;
  --mute: #55627a;
  --card-2: #f3f6fb;
  --edge: rgba(20, 45, 100, .14);
  --error: #c62a1e;
  color: var(--text);
  background: #fff;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}
.cta h2 { color: var(--text); }
:is(.cta, .sheet-light) :focus-visible { outline-color: var(--blue); }

/* 유튜브 버튼 */
.cta .yt-btn { color: var(--text); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--edge); }
.cta .yt-btn:hover { background: #e7edf8; }

/* 인물 사진 뒤 빛은 아주 옅게 */
.cta .cta-photo::before { background: radial-gradient(closest-side, rgba(47, 107, 255, .14), transparent); }

/* 상담 폼 */
.cta .sheet { background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 18px 40px -26px rgba(20, 45, 100, .45); }
:is(.cta, .sheet-light) .input { background: #fff; color: var(--text); border-color: #d3dbe8; }
:is(.cta, .sheet-light) .input::placeholder { color: #8a95a8; }
:is(.cta, .sheet-light) .input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .18); }
:is(.cta, .sheet-light) .chips span { background: #fff; box-shadow: inset 0 0 0 1px #d3dbe8; }
:is(.cta, .sheet-light) .chips input:checked + span { background: var(--blue); color: #fff; box-shadow: none; }
:is(.cta, .sheet-light) .consent { background: var(--card-2); }
:is(.cta, .sheet-light) .consent dt { color: var(--text); }
:is(.cta, .sheet-light) .done .btn-white { background: var(--text); color: #fff; }
:is(.cta, .sheet-light) .done .btn-white:hover { background: #1b2c55; }

/* ═════════ 인물 사진: 더 크게 + 가장자리 자연스럽게 (v11) ═════════
   원본 사진 테두리에서 잘린 어깨(특히 오른쪽)가 세로로 딱 끊겨 보이지 않도록
   아래쪽 + 좌우 가장자리를 함께 흐리게 합니다(두 그라디언트가 겹치는 부분만 보임). */
.cta-photo img {
  -webkit-mask-image:
    linear-gradient(to bottom, #000 52%, transparent 96%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 74%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 52%, transparent 96%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 74%, transparent 98%);
  mask-composite: intersect;
  height: 360px;
}
@media (min-width: 1000px) {
  .cta-photo { margin-right: -28px; }
  .cta-photo img { height: clamp(420px, 35vw, 520px); }
}
@media (max-width: 719.98px) {
  .cta-photo img { height: 320px; }
}

/* ═════════ 로고 (v12) ═════════ */
/* 상단 메뉴: 글자 "학" 대신 로고 이미지 */
img.logo-mark { display: block; width: 28px; height: 28px; padding: 0; border-radius: 7px; background: none; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
/* 바닥글: 사업자 정보 오른쪽에 로고 */
.foot-row { display: flex; align-items: flex-start; gap: 40px; }
.foot-logo { flex: none; width: 104px; height: 104px; border-radius: 14px; margin-top: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
@media (max-width: 719.98px) {
  .foot-row { gap: 20px; }
  .foot-logo { width: 72px; height: 72px; border-radius: 12px; }
}
/* 메뉴의 사이트 이름이 좁은 화면에서 눌려 버튼 밑으로 겹치지 않게 */
.pill-nav .logo { flex: none; }

/* 개인정보 안내: 안전 조항 목록 */
.consent-notes { margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }
.consent-notes li { line-height: 1.55; }

/* 바닥글 연락처 링크 */
.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.site-foot a:hover { color: #fff; }

/* ═════════ 상담 예약 카드: 사진 없이 가운데 정렬 (v13) ═════════ */
.cta-copy { text-align: center; align-items: center; justify-content: center; }
.cta-copy p { margin-inline: auto; max-width: none; line-height: 1.8; text-wrap: balance; }
@media (min-width: 1000px) { .cta-copy { padding-top: 0; } }

/* 선언 문장 핵심 단어 노란색 강조 */
.scrub .hl { color: var(--amber); }

/* ═════════ 메인 리뷰 칸: 추천 후기 카드 (v14) ═════════
   흰 배경 영역에 맞게 밝은 카드로. 1~4개 몇 개든 가운데 정렬. */
.quotes.is-featured { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; }
.light .review-card { background: #fff; color: var(--light-text); box-shadow: inset 0 0 0 1px rgba(20, 45, 100, .12), 0 18px 40px -30px rgba(20, 45, 100, .5); }
.light .review-card:hover { background: #f7f9fd; }
.light .review-thumb { background: #eef2f8; }
.light .review-thumb.is-blank { background: repeating-linear-gradient(-45deg, #f1f4f9 0 10px, #e9eef6 10px 20px); }
.light .review-cat { background: #eef3ff; color: #1f57e6; box-shadow: none; }
.light .review-summary, .light .review-card time { color: var(--light-mute); }
@media (max-width: 719.98px) {
  .quotes.is-featured { display: flex; }
  .quotes.is-featured .review-card { flex: 0 0 82%; scroll-snap-align: center; }
}
@media (max-width: 719.98px) {
  .quotes.is-featured { scroll-padding-inline: var(--gutter); }
  .quotes.is-featured .review-card { scroll-snap-align: start; }
}
@media (max-width: 719.98px) { .quotes.is-featured { justify-content: flex-start; } }

/* ═════════ 상담 전용 페이지 /consult (v15) ═════════
   메인 상담 카드와 같은 디자인. 제목은 이 페이지의 h1 이므로 메인 카드 h2 와 같은 모양으로 맞춤 */
.consult-page { padding: 104px 0 8px; }
.cta h1 { font-family: var(--display); font-size: clamp(36px, 9vw, 64px); line-height: 1.12; font-weight: 800; letter-spacing: -0.04em; color: var(--text); margin: 0; }
@media (min-width: 720px) { .consult-page { padding-top: 120px; } }

/* ═════════ 메인 수료 후기: 왼쪽으로 흐르는 카드 줄 (v16) ═════════
   PC·모바일 모두 한 줄로 흐르고, 양 끝은 부드럽게 흐려집니다. 손으로 넘겨도 됩니다. */
.quotes.is-marquee {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: none; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.quotes.is-marquee::-webkit-scrollbar { display: none; }
.quotes.is-marquee > .quote,
.quotes.is-marquee > .review-card { flex: 0 0 clamp(250px, 78vw, 320px); scroll-snap-align: none; }
.quotes.is-marquee > .quote { min-height: 200px; }
.lead-lines { line-height: 1.7; }
@media (max-width: 719.98px) {
  .quotes.is-marquee { gap: 12px; }
  .lead-lines { font-size: 16px; }
}

/* 페이지 머리 소개 문구: 줄 길이를 고르게 (마지막 줄에 한두 단어만 남지 않게) (v17) */
.page-head p { text-wrap: balance; }
@media (max-width: 719.98px) { .page-head p { font-size: 15.5px; line-height: 1.65; } }

/* ═════════ 첫 화면: 유튜브 영상 썸네일 위젯 (v18) ═════════
   f1(왼쪽 위), f5(오른쪽 위), f3(오른쪽 가운데) 자리에 최신 영상이 떠 있습니다. */
.float.fv {
  padding: 8px; border-radius: 18px; background: var(--card); color: #fff;
  box-shadow: inset 0 0 0 1px var(--edge), 0 24px 50px -24px #000;
  text-decoration: none; display: block; text-align: left;
}
.fv-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0d1424; }
.fv-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .5s cubic-bezier(.2, .7, .2, 1); }
.fv-img i { position: absolute; right: 8px; bottom: 8px; width: 26px; transition: scale .3s; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.fv-img i svg { display: block; width: 100%; height: auto; }
.fv-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 8px 4px 2px; font-size: 13px; line-height: 1.4; font-weight: 600; color: #dfe6f3;
}
.float.fv:hover .fv-img img { scale: 1.05; }
.float.fv:hover .fv-img i { scale: 1.12; }
.float.fv:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 999.98px) {
  .float.fv { width: 220px; min-width: 0; padding: 8px; display: block; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); }
}
@media (prefers-reduced-motion: reduce) {
  .float.fv:hover .fv-img img, .float.fv:hover .fv-img i { scale: none; }
}
@media (max-width: 999.98px) {
  /* 썸네일 카드 옆 글자 칩이 썸네일 높이만큼 늘어나지 않게 */
  .floats { align-items: flex-start; }
}
@media (max-width: 719.98px) {
  /* "배경 영상 멈춤" 버튼이 카드 줄과 겹치지 않게 아래 여백 확보 */
  .video-zone .hero { padding-bottom: 72px; }
}

/* ═════════ 첫 화면 유튜브 영상: 휴대폰·태블릿에서 왼쪽으로 흐르는 줄 (v19) ═════════
   SITE.youtube 영상만 보여 주고(140학점·24학점 칩은 숨김), PC에서는 앞의 3개만 떠 있습니다. */
@media (max-width: 999.98px) {
  .floats.has-videos > .float:not(.fv) { display: none; }
  .floats.has-videos {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px;
    margin: 20px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px;
    overflow-x: auto; scroll-snap-type: none; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .floats.has-videos::-webkit-scrollbar { display: none; }
  .floats.has-videos > .float.fv { flex: 0 0 auto; width: 236px; scroll-snap-align: none; }
}

/* ═════════ 첫 화면 PC: 양옆 영상 + 양옆 어둡게 (v20) ═════════ */
@media (min-width: 1000px) {
  /* 2) 양옆 여백 살짝 어둡게 (가운데 제목·계산기에 시선이 모이게) — 영상 카드보다 아래에 깔림 */
  .video-zone::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .28) 16%, transparent 32%, transparent 68%, rgba(0, 0, 0, .28) 84%, rgba(0, 0, 0, .58) 100%);
  }

  /* 3) 영상 카드: 왼쪽·오른쪽 번갈아, 제목 옆부터 계산기 옆까지 고르게 (위치는 계산기 맨 위 기준) */
  .floats.has-videos > .float:not(.fv) { display: none; }
  .float.fv { width: 210px; height: auto; border-radius: 18px; padding: 8px; display: block; place-content: initial;
    background: rgba(15, 22, 38, .86); color: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 24px 50px -24px #000; }
  .float.fv .fv-img img { filter: brightness(.9); transition: filter .3s, scale .5s cubic-bezier(.2, .7, .2, 1); }
  .float.fv:hover .fv-img img { filter: none; }
  .float.fv-1 { left: 0;     top: -330px; animation-delay: .9s, 0s;    --depth: 18px;  --fall: -90px; }
  .float.fv-2 { right: 0;    top: -270px; animation-delay: 1.05s, -2s; --depth: -14px; --fall: -70px; }
  .float.fv-3 { left: -24px; top: -40px;  animation-delay: 1.2s, -4s;  --depth: 24px;  --fall: -40px; }
  .float.fv-4 { right: -24px; top: 20px;  animation-delay: 1.35s, -1s; --depth: -20px; --fall: 40px; }
  .float.fv-5 { left: 16px;  top: 250px;  animation-delay: 1.5s, -3s;  --depth: 12px;  --fall: 70px; }
  .float.fv-6 { right: 16px; top: 300px;  animation-delay: 1.65s, -5s; --depth: -16px; --fall: 90px; }
}
@media (min-width: 1000px) and (max-width: 1279.98px) {
  .float.fv { width: 184px; }
  .float.fv .fv-title { font-size: 12px; }
}
@media (min-width: 1440px) {
  .float.fv { width: 230px; }
  .float.fv-1 { top: -360px; }
  .float.fv-2 { top: -300px; }
}

/* ═════════ 단계별 학습 시스템: 카드 오른쪽 위 픽토그램 (v21) ═════════
   1 상담(말풍선) · 2 자료(책·문서) · 3 끝까지 관리(학사모·체크). 색은 번호 원과 같은 색 */
.step { position: relative; }
.step:nth-child(1) { --pc: var(--yellow); }
.step:nth-child(2) { --pc: var(--green); }
.step:nth-child(3) { --pc: var(--orange-hi); }
.step-pict { position: absolute; top: 20px; right: 18px; width: 96px; height: 96px; pointer-events: none; }
.step-pict::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pc) 20%, transparent), transparent 68%);
}
.step-pict svg { position: relative; display: block; width: 100%; height: 100%; animation: pict-float 4.5s ease-in-out infinite alternate; }
.step:nth-child(2) .step-pict svg { animation-delay: -1.5s; }
.step:nth-child(3) .step-pict svg { animation-delay: -3s; }
@keyframes pict-float { from { translate: 0 -4px; rotate: -2deg; } to { translate: 0 4px; rotate: 2deg; } }
@media (min-width: 720px) {
  .step-pict { width: 120px; height: 120px; top: 32px; right: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .step-pict svg { animation: none; }
}

/* ═════════ 개인정보처리방침 페이지 + 바닥글 링크 (v22) ═════════ */
.policy-wrap { padding-top: 8px; }
.policy { max-width: 760px; margin: 0 auto; text-align: left; color: #c9d3e4; font-size: 16px; line-height: 1.75; }
.policy h2 { margin: 44px 0 12px; font-family: var(--display); font-size: 21px; line-height: 1.4; color: #fff; scroll-margin-top: 100px; }
.policy p { margin: 0 0 10px; }
.policy ul { margin: 0 0 10px; padding-left: 1.2em; display: grid; gap: 6px; }
.policy strong { color: #fff; }
.policy-toc { background: var(--card); border-radius: var(--r-m); padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--edge); }
.policy-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 28px; font-size: 15px; }
.policy-toc li { break-inside: avoid; padding: 3px 0; }
.policy-toc a { color: #c9d3e4; text-decoration: none; }
.policy-toc a:hover { color: #fff; text-decoration: underline; }
.policy-table { overflow-x: auto; margin: 4px 0 14px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--edge); }
.policy-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.policy-table th, .policy-table td { padding: 12px 14px; border-bottom: 1px solid var(--edge); vertical-align: top; text-align: left; }
.policy-table thead th { background: rgba(255, 255, 255, .05); color: #fff; font-weight: 600; white-space: nowrap; }
.policy-table tbody th { color: #fff; font-weight: 600; white-space: nowrap; }
.policy-table tr:last-child > * { border-bottom: 0; }
.policy-table small { color: var(--mute); }
.policy-card { background: var(--card); border-radius: var(--r-m); padding: 20px 22px; box-shadow: inset 0 0 0 1px var(--edge); }
.policy-plain { list-style: none; padding-left: 0 !important; }
.foot-legal { margin: 18px 0 8px; font-size: 14px; }
.foot-legal a { color: #fff; text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }
.consent-more { display: inline-block; margin-top: 10px; font-size: 13.5px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 719.98px) {
  .policy { font-size: 15px; }
  .policy h2 { font-size: 19px; margin-top: 36px; }
  .policy-toc ol { columns: 1; }
}
