/* =====================================================
   없는클래스 (upneun.co.kr) — Design System
   Tokens · Base · Components · Layout · Motion
   ===================================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --ink: #0d0d0d;
  --text: #171b1f;
  --text-2: #565656;
  --muted: #6e6e6e;
  --muted-2: #9e9e9e;
  --line: #e6e6ea;
  --line-2: #dcdce0;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --bg-soft-2: #f1f1f3;

  --blue: #0769ff;
  --blue-600: #0558d6;
  --blue-700: #0447ad;
  --blue-soft: #e8f0ff;
  --blue-soft-2: #d5e4ff;
  --navy: #1e2a6e;
  --navy-deep: #141d50;
  --lime: #c6ff3d;
  --red: #ff3b3b;
  --amber: #ffb224;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(13,13,13,.05), 0 0 0 1px var(--line);
  --shadow: 0 10px 30px -12px rgba(13,13,13,.18), 0 0 0 1px var(--line);
  --shadow-lg: 0 30px 60px -24px rgba(13,13,13,.3);
  --shadow-blue: 0 14px 34px -12px rgba(7,105,255,.55);

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.65,0,.35,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --dur: .32s;

  --container: 1120px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; }
h1,h2,h3,h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 8px; z-index: 200; box-shadow: var(--shadow); transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.notice-bar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
  position: relative;
  overflow: hidden;
}
.notice-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 6s var(--ease) infinite;
}
@keyframes sweep { 0%,60% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }
.notice-bar a { color: var(--lime); font-weight: 700; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }

.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13,13,13,.25); background: rgba(255,255,255,.92); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.04em; font-size: 18px; }
.logo svg, .logo img { height: 22px; width: auto; }
.logo__mark { height: 22px; width: 33px; color: var(--ink); transition: transform .5s var(--spring); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo__text { position: relative; top: 1px; }
.logo__text em { font-style: normal; color: var(--blue); }

.nav { display: flex; align-items: center; gap: 24px; height: 100%; }
.nav a {
  position: relative; font-size: 15px; font-weight: 700; color: var(--muted-2);
  height: 100%; display: inline-flex; align-items: center;
  transition: color var(--dur);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header__login { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-radius: 8px; transition: color var(--dur), background var(--dur); }
.header__login:hover { color: var(--ink); background: var(--bg-soft); }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 2.5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background var(--dur), color var(--dur), border-color var(--dur);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(4px); }
/* shine sweep */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
/* ripple */
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.35); pointer-events: none; animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.btn--primary { --btn-bg: var(--blue); box-shadow: 0 0 0 0 rgba(7,105,255,0); }
.btn--primary:hover { --btn-bg: var(--blue-600); box-shadow: var(--shadow-blue); }
.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { box-shadow: 0 14px 30px -12px rgba(13,13,13,.5); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--white:hover { box-shadow: 0 14px 30px -12px rgba(255,255,255,.4); }
.btn--white .ripple { background: rgba(13,13,13,.12); }
.btn--line { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--line:hover { --btn-bd: var(--ink); box-shadow: 0 10px 24px -14px rgba(13,13,13,.3); }
.btn--line .ripple { background: rgba(13,13,13,.1); }
.btn--line::before { background: linear-gradient(110deg, transparent 35%, rgba(13,13,13,.05) 50%, transparent 65%); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--bg-soft); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--magnetic { transition: transform .15s ease-out, box-shadow .3s var(--ease), background var(--dur); }
.btn--magnetic:hover { transform: none; }

/* icon button */
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--muted); transition: background var(--dur), color var(--dur), transform .25s var(--spring); }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); transform: scale(1.08); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Tags / badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0; white-space: nowrap; }
.badge--online { background: var(--bg-soft-2); color: var(--text-2); }
.badge--offline { background: #fff3dd; color: #a35d00; }
.badge--live { background: #ffe5e5; color: #c81e1e; }
.badge--new { background: var(--blue); color: #fff; }
.badge--best { background: var(--ink); color: var(--lime); }
.badge--sale { background: var(--red); color: #fff; }
.badge--soft { background: var(--blue-soft); color: var(--blue-700); }





/* ---------- Section ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section__title { font-size: 40px; font-weight: 800; }
.section__title .u { background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 2px; }
.section__desc { margin-top: 12px; font-size: 16px; color: var(--muted); max-width: 540px; }
.section__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); font-size: 15px; white-space: nowrap; }
.section__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.section__link:hover svg { transform: translateX(4px); }

/* ---------- Lecture card ---------- */
.lec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lec-card {
  position: relative; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.lec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-2); }
.lec-card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft-2); }
.lec-card__thumb .cover { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.lec-card:hover .cover { transform: scale(1.05); }
.lec-card__badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.lec-card__wish { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink); z-index: 2; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--spring), background .3s; backdrop-filter: blur(6px); }
.lec-card:hover .lec-card__wish, .lec-card__wish.is-on { opacity: 1; transform: none; }
.lec-card__wish svg { width: 16px; height: 16px; transition: transform .3s var(--spring), fill .2s; fill: transparent; stroke: currentColor; stroke-width: 2; }
.lec-card__wish.is-on svg { fill: var(--red); stroke: var(--red); transform: scale(1.15); }
.lec-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lec-card__meta { display: flex; align-items: center; justify-content: space-between; }
.lec-card__title { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lec-card__sub { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lec-card__teacher { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; flex: none; letter-spacing: 0; }
.lec-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); }
.lec-card__price { display: flex; flex-direction: column; gap: 2px; }
.price-row { display: flex; align-items: baseline; gap: 6px; }
.price-row .off { color: var(--blue); font-weight: 800; font-size: 15px; }
.price-row .now { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price-row .was { font-size: 12px; color: var(--muted-2); text-decoration: line-through; }
.lec-card__info { font-size: 12px; color: var(--muted-2); }
.lec-card__rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.lec-card__rating svg { width: 13px; height: 13px; fill: var(--amber); }
.lec-card__link { position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.lec-card__link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lec-card .btn { position: relative; z-index: 2; }

/* cover art (generated) */
.cover { position: relative; display: grid; place-items: center; color: #fff; font-weight: 900; letter-spacing: -0.04em; text-align: center; padding: 20px; overflow: hidden; }
.cover__title { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.15; text-shadow: 0 2px 14px rgba(0,0,0,.25); position: relative; z-index: 1; }
.cover__kicker { font-size: 11px; letter-spacing: .18em; opacity: .85; margin-bottom: 8px; font-weight: 800; position: relative; z-index: 1; }
.cover .waves { position: absolute; inset: auto 0 0; height: 46%; opacity: .55; }
.cover .orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .7; }

/* skeleton */
.skeleton { position: relative; overflow: hidden; background: var(--bg-soft-2); border-radius: 16px; min-height: 360px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-100%); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 64px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 14s ease-in-out infinite; }
.hero__bg .blob--1 { width: 520px; height: 520px; left: -140px; top: -160px; background: var(--blue-soft-2); }
.hero__bg .blob--2 { width: 460px; height: 460px; right: -120px; top: 40px; background: #e6f9c4; animation-delay: -5s; }
.hero__bg .blob--3 { width: 300px; height: 300px; right: 30%; bottom: -120px; background: #ffe9d6; animation-delay: -9s; }
.hero__bg .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); opacity: .55; }
@keyframes float { 0%,100% { transform: translate(0,0);} 50% { transform: translate(24px,-28px);} }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(40px, 5.4vw, 66px); font-weight: 900; line-height: 1.08; letter-spacing: -0.045em; margin-top: 18px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(0); } }
.hero__title .accent { color: var(--blue); }



.hero__desc { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.65; opacity: 0; animation: fadeUp .8s var(--ease) .5s forwards; }
.hero__desc strong { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s var(--ease) .7s forwards; }
.hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 30px; opacity: 0; animation: fadeUp .8s var(--ease) .9s forwards; }
.hero__proof .stack { display: flex; }
.hero__proof .stack .avatar { width: 34px; height: 34px; border: 2px solid #fff; margin-left: -10px; font-size: 12px; }
.hero__proof .stack .avatar:first-child { margin-left: 0; }
.hero__proof p { font-size: 14px; color: var(--muted); }
.hero__proof p b { color: var(--ink); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: none;} }

.hero__visual { position: relative; height: 520px; opacity: 0; animation: fadeUp 1s var(--ease) .4s forwards; }
.hero__card { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.hero__card--main { left: 8%; top: 6%; width: 72%; transform: rotate(-3deg); animation: bob 7s ease-in-out infinite; }
.hero__card--main .cover { height: 190px; }
.hero__card--main .body { padding: 16px 18px 18px; }
.hero__card--main .t { font-weight: 800; font-size: 17px; color: var(--ink); }
.hero__card--main .m { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hero__card--main .bar { height: 6px; border-radius: 6px; background: var(--bg-soft-2); margin-top: 14px; overflow: hidden; }
.hero__card--main .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #39a1ff); border-radius: 6px; animation: grow 1.8s var(--ease) 1.2s forwards; }
@keyframes grow { to { width: 72%; } }
.hero__card--main .pct { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); margin-top: 6px; font-weight: 600; }
.hero__card--chip { right: 0; top: 30%; padding: 14px 16px; display: flex; align-items: center; gap: 12px; animation: bob 6s ease-in-out -2s infinite; }
.hero__card--chip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.hero__card--chip .ic svg { width: 20px; height: 20px; }
.hero__card--chip b { display: block; font-size: 14px; color: var(--ink); }
.hero__card--chip span { font-size: 12px; color: var(--muted); }
.hero__card--review { left: 0; bottom: 4%; width: 60%; padding: 16px 18px; animation: bob 8s ease-in-out -4s infinite; }
.hero__card--review .stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; }
.hero__card--review p { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.hero__card--review .who { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.hero__card--eq { right: 6%; bottom: 10%; padding: 14px 16px 10px; animation: bob 7.5s ease-in-out -1s infinite; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.eq i { width: 6px; background: linear-gradient(180deg, var(--blue), var(--lime)); border-radius: 3px; animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(2){animation-delay:-.2s}.eq i:nth-child(3){animation-delay:-.4s}.eq i:nth-child(4){animation-delay:-.6s}.eq i:nth-child(5){animation-delay:-.8s}.eq i:nth-child(6){animation-delay:-1s}.eq i:nth-child(7){animation-delay:-.3s}.eq i:nth-child(8){animation-delay:-.7s}
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.hero__card--eq span { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; font-weight: 600; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 28px 26px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat__num { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.stat__num small { font-size: 20px; font-weight: 800; margin-left: 2px; color: var(--blue); }
.stat__label { margin-top: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; }
.cat__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); transition: transform .4s var(--spring), background .3s, color .3s; }
.cat__ic svg { width: 26px; height: 26px; }
.cat b { font-size: 14px; color: var(--ink); }
.cat span { font-size: 12px; color: var(--muted-2); }
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat:hover .cat__ic { transform: scale(1.1) rotate(-6deg); background: var(--blue); color: #fff; }

/* coaches */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.coach { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate; cursor: default; }
.coach::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: transform .8s var(--ease); background: var(--c1); }
.coach::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.75)); }
.coach:hover::before { transform: scale(1.06); }
.coach__face { position: absolute; left: 50%; top: 30%; transform: translate(-50%,-50%); width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 36px; font-weight: 900; z-index: -1; border: 1px solid rgba(255,255,255,.25); transition: transform .5s var(--spring); }
.coach:hover .coach__face { transform: translate(-50%,-56%) scale(1.05); }
.coach__tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--lime); }
.coach__name { font-size: 22px; font-weight: 800; margin-top: 4px; }
.coach__hook { font-size: 13px; opacity: .85; margin-top: 6px; line-height: 1.45; }
.coach__cred { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.coach:hover .coach__cred { max-height: 80px; opacity: 1; }
.coach__cred span { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.coach--next { background: var(--bg-soft); border: 2px dashed var(--line-2); color: var(--ink); justify-content: center; align-items: center; text-align: center; }
.coach--next::before, .coach--next::after { display: none; }
.coach--next b { font-size: 22px; font-weight: 900; }
.coach--next span { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* curriculum */
.curri { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.curri__sticky { position: sticky; top: 100px; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); overflow: hidden; }
.step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); transform: scaleY(0); transition: transform .4s var(--ease); transform-origin: top; }
.step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.step:hover::before { transform: scaleY(1); }
.step__lv { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--blue); }
.step__lv b { display: block; font-size: 28px; color: var(--ink); letter-spacing: -0.03em; margin-top: 2px; }
.step__t { font-size: 17px; font-weight: 800; color: var(--ink); }
.step__d { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.step__r { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue-700); background: var(--blue-soft); padding: 5px 10px; border-radius: 8px; }
.step__tag { position: absolute; right: 18px; top: 18px; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 26px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.review__stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; }
.review__t { font-size: 17px; font-weight: 800; color: var(--ink); }
.review__p { font-size: 14px; color: var(--text-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review__who { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.review__who b { color: var(--ink); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--ink); color: #fff; padding: 72px 64px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(7,105,255,.65), transparent 60%); z-index: -1; animation: float 12s ease-in-out infinite; }
.cta-band::after { content: ""; position: absolute; width: 400px; height: 400px; left: 30%; bottom: -300px; background: radial-gradient(circle, rgba(198,255,61,.35), transparent 60%); z-index: -1; animation: float 10s ease-in-out -4s infinite; }
.cta-band h2 { color: #fff; font-size: 40px; font-weight: 900; letter-spacing: -0.04em; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.7); font-size: 16px; max-width: 520px; }
.cta-band .logo-watermark { position: absolute; right: 40px; bottom: -40px; width: 300px; color: rgba(255,255,255,.06); z-index: -1; }

/* ---------- Lectures page ---------- */
.page-head { padding: 40px 0 0; }
.banner { position: relative; border-radius: var(--radius-xl); overflow: hidden; height: 300px; background: var(--ink); color: #fff; }
.banner__track { display: flex; height: 100%; transition: transform .7s var(--ease); }
.banner__slide { flex: 0 0 100%; height: 100%; position: relative; display: grid; align-items: center; padding: 0 64px; isolation: isolate; }
.banner__slide .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; right: -120px; top: -200px; }
.banner__t { color: #fff; font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; }
.banner__t .u { position: relative; display: inline-block; }
.banner__t .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; background: var(--lime); border-radius: 4px; }
.banner__d { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 15px; }
.banner__slide .btn { margin-top: 26px; }





.banner__nav { position: absolute; left: 64px; bottom: 24px; display: flex; gap: 6px; z-index: 2; }
.banner__nav button { width: 24px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); transition: background .3s, width .3s var(--ease); }
.banner__nav button.is-active { background: var(--lime); width: 40px; }
.banner__arrows { position: absolute; right: 24px; bottom: 20px; display: flex; gap: 8px; z-index: 2; }
.banner__arrows button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; transition: background .3s, transform .3s var(--spring); }
.banner__arrows button:hover { background: rgba(255,255,255,.15); transform: scale(1.08); }
.banner__arrows svg { width: 16px; height: 16px; }

.list-head { margin-top: 56px; }
#catalog { scroll-margin-top: calc(var(--header-h) + 16px); }
.list-head:has(+ .toolbar[hidden]) { margin-bottom: 24px; }
[hidden]:not([hidden="until-found"]) { display: none !important; }
.list-head h1 { font-size: 28px; font-weight: 700; }
.list-head p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 20px; flex-wrap: wrap; }
.toolbar__count { font-size: 14px; color: var(--muted); }
.toolbar__count b { color: var(--ink); }
.search { position: relative; width: 320px; max-width: 100%; }
.search input { width: 100%; height: 44px; padding: 0 40px 0 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-soft); font-size: 14px; color: var(--ink); outline: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(7,105,255,.12); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: 0; pointer-events: none; transition: opacity .2s, background .2s; }
.search .clear.is-show { opacity: 1; pointer-events: auto; }
.search .clear:hover { background: var(--line); }
.search .clear svg { position: static; transform: none; width: 14px; height: 14px; }

.chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text-2); background: #fff; transition: background .3s var(--ease), color .3s, border-color .3s, transform .25s var(--spring); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { font-size: 11px; font-weight: 800; color: var(--muted-2); }
.chip.is-active .n { color: var(--lime); }
.sort { position: relative; }
.sort select { appearance: none; height: 38px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; outline: none; transition: border-color .25s, box-shadow .25s; }
.sort select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7,105,255,.12); }
.sort svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; color: var(--line-2); margin: 0 auto 14px; }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.lec-card.is-enter { animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98);} to { opacity: 1; transform: none;} }

/* ---------- Detail page ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); padding: 24px 0 18px; }
.crumb a:hover { color: var(--ink); }
.crumb b { color: var(--ink); font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding-bottom: 96px; }
.detail__hero { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); align-items: center; }
.detail__hero .cover { border-radius: 14px; aspect-ratio: 16/10; overflow: hidden; }
.detail__hero h1 { font-size: 26px; font-weight: 800; margin-top: 10px; line-height: 1.3; }
.detail__meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.detail__meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail__meta svg { width: 15px; height: 15px; }
.detail__teacher { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.detail__teacher .avatar { width: 32px; height: 32px; font-size: 12px; }
.detail__teacher b { color: var(--ink); }
.detail__teacher span { color: var(--muted); font-size: 12px; display: block; }

.tabs { position: sticky; top: calc(var(--header-h) + 0px); z-index: 20; margin-top: 20px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; }
.tabs__ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); background: var(--ink); border-radius: 10px; transition: transform .45s var(--ease); z-index: 0; }
.tabs button { position: relative; z-index: 1; height: 44px; font-size: 14px; font-weight: 700; color: var(--muted); border-radius: 10px; transition: color .3s; }
.tabs button.is-active { color: #fff; }
.tabs button .n { margin-left: 4px; font-size: 11px; color: var(--muted-2); }
.tabs button.is-active .n { color: var(--lime); }
.panel { margin-top: 20px; padding: 28px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: 140px; }
.panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.panel h2 small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 8px; }
.intro__poster { border-radius: 16px; overflow: hidden; background: var(--ink); color: #fff; padding: 48px 32px; text-align: center; position: relative; isolation: isolate; }
.intro__poster::before { content: ""; position: absolute; width: 500px; height: 500px; left: 50%; top: -60%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(7,105,255,.6), transparent 65%); z-index: -1; }
.intro__poster .k { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--lime); }
.intro__poster h3 { color: #fff; font-size: 30px; font-weight: 900; margin-top: 12px; letter-spacing: -0.04em; }
.intro__poster p { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 15px; }
.intro__points { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.point { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--bg-soft); }
.point__ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow-sm); }
.point__ic svg { width: 18px; height: 18px; }
.point b { font-size: 14px; color: var(--ink); display: block; }
.point span { font-size: 13px; color: var(--muted); margin-top: 2px; display: block; }
.intro__body { margin-top: 22px; font-size: 15px; color: var(--text-2); line-height: 1.75; }
.intro__body p + p { margin-top: 12px; }
.intro__body strong { color: var(--ink); }

.chapter { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.chapter + .chapter { margin-top: 10px; }
.chapter__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; background: var(--bg-soft); transition: background .25s; }
.chapter__head:hover { background: var(--bg-soft-2); }
.chapter__head .ch { font-size: 11px; font-weight: 900; color: var(--blue); letter-spacing: .1em; min-width: 36px; }
.chapter__head .t { font-size: 15px; font-weight: 700; color: var(--ink); flex: 1; }
.chapter__head .c { font-size: 12px; color: var(--muted); }
.chapter__head svg { width: 16px; height: 16px; color: var(--muted); transition: transform .35s var(--ease); }
.chapter.is-open .chapter__head svg { transform: rotate(180deg); }
.chapter__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.chapter.is-open .chapter__body { grid-template-rows: 1fr; }
.chapter__body > div { overflow: hidden; }
.lesson { display: flex; align-items: center; gap: 14px; padding: 12px 18px; font-size: 14px; border-top: 1px solid var(--line); transition: background .2s; }
.lesson:hover { background: var(--bg-soft); }
.lesson .i { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft-2); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--text-2); flex: none; }
.lesson .t { flex: 1; color: var(--text); }
.lesson .d { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lesson .lock { width: 14px; height: 14px; color: var(--muted-2); }
.lesson .free { font-size: 10px; font-weight: 800; color: var(--blue); background: var(--blue-soft); padding: 2px 6px; border-radius: 4px; }
.more-btn { margin-top: 14px; }

.rev-summary { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: 14px; background: var(--bg-soft); margin-bottom: 20px; }
.rev-summary .big { font-size: 52px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--ink); text-align: center; }
.rev-summary .big small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 6px; }
.rev-summary .stars { text-align: center; color: var(--amber); margin-top: 4px; letter-spacing: 2px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bars div { display: grid; grid-template-columns: 24px 1fr 36px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.bars i { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; display: block; }
.bars i b { display: block; height: 100%; background: var(--amber); width: 0; transition: width 1s var(--ease); border-radius: 6px; }
.rev { padding: 20px 0; border-top: 1px solid var(--line); }
.rev__head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rev__head b { color: var(--ink); font-size: 14px; }
.rev__head .stars { color: var(--amber); letter-spacing: 1px; font-size: 12px; margin-left: auto; }
.rev__t { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 10px; }
.rev__p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-top: 6px; }
.rev__p.secret { color: var(--muted-2); display: inline-flex; align-items: center; gap: 6px; }
.rev__p.secret svg { width: 14px; height: 14px; }

.buy { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.buy__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.buy__price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.buy__price .now { font-size: 30px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); }
.buy__price .off { font-size: 18px; font-weight: 800; color: var(--blue); }
.buy__was { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.buy__timer { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-700); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.buy__timer b { font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: .02em; }
.buy__list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); }
.buy__list li { display: flex; align-items: center; gap: 8px; }
.buy__list svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.buy__actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.buy__note { margin-top: 12px; font-size: 12px; color: var(--muted-2); line-height: 1.5; }
.buy__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.buy__share { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 6px; }

/* ---------- Footer (First Class) ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.78); margin-top: 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(7,105,255,.35), transparent 60%); pointer-events: none; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; font-size: 13px; font-weight: 600; }
.footer__links a { color: rgba(255,255,255,.7); transition: color .25s; position: relative; }
.footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: #fff; transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: right; }
.footer__links a:hover { color: #fff; }
.footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__links a.strong { color: #fff; font-weight: 800; }
.footer__sns { display: flex; gap: 8px; }
.footer__sns a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .3s, transform .3s var(--spring); }
.footer__sns a:hover { background: var(--blue); transform: translateY(-3px); }
.footer__sns svg { width: 16px; height: 16px; }
.footer__mid { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding: 32px 0; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer__brand .logo__mark { color: #fff; height: 24px; width: 36px; }
.footer__brand b { font-size: 17px; font-weight: 800; }
.footer__brand span { font-size: 13px; color: rgba(255,255,255,.6); margin-left: 6px; }
.footer__info { margin-top: 18px; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.72); }
.footer__info .sep { margin: 0 8px; color: rgba(255,255,255,.3); }
.footer__info a { color: #fff; font-weight: 600; }
.footer__info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__family { position: relative; }
.footer__family button { height: 40px; padding: 0 14px 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 24px; min-width: 180px; justify-content: space-between; transition: background .25s, border-color .25s; }
.footer__family button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.footer__family svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.footer__family.is-open svg { transform: rotate(180deg); }
.footer__family ul { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 180px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; transform: translateY(6px) scale(.98); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.footer__family.is-open ul { opacity: 1; transform: none; pointer-events: auto; }
.footer__family li a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background .2s; }
.footer__family li a:hover { background: var(--bg-soft); }
.footer__bottom { padding: 18px 0 28px; font-size: 12px; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Floating / Toast / Modal ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab__top { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--spring); }
.fab__top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.fab__top svg { width: 18px; height: 18px; }
.fab__chat { height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .3s var(--spring), background .3s; }
.fab__chat:hover { transform: scale(1.04); background: var(--blue); }
.fab__chat svg { width: 20px; height: 20px; }



.toast-wrap { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--spring) both; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; color: var(--lime); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96);} to { opacity: 1; transform: none;} }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px);} }

.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__bg { position: absolute; inset: 0; background: rgba(13,13,13,.55); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 32px 28px 28px; box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.97); transition: transform .4s var(--spring); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; right: 14px; top: 14px; }
.modal__box h3 { font-size: 22px; font-weight: 800; }
.modal__box p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.field input { width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 14px; font-size: 14px; outline: none; transition: border-color .25s, box-shadow .25s; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7,105,255,.12); }
.modal__or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted-2); margin: 18px 0 12px; }
.modal__or::before, .modal__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social .btn { height: 44px; font-size: 13px; }
.social .btn--kakao { --btn-bg: #fee500; --btn-fg: #191919; }
.social .btn--naver { --btn-bg: #03c75a; --btn-fg: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; } .reveal[data-delay="5"] { transition-delay: .4s; }

/* cursor glow on dark cards */
.glow-card { position: relative; overflow: hidden; }
.glow-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.08), transparent 45%); opacity: 0; transition: opacity .4s; }
.glow-card:hover::after { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lec-grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .coaches { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 440px; max-width: 520px; }
  .curri { grid-template-columns: 1fr; gap: 32px; }
  .curri__sticky { position: static; }
  .detail { grid-template-columns: 1fr; }
  .buy { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 56px 40px; }
  .banner__slide { grid-template-columns: 1fr; padding: 0 40px; }

  .banner__nav { left: 40px; }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  .nav { display: none; }
  .header__login { display: none; }
  .burger { display: grid; }
  .mobile-nav { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; transform: translateY(-110%); transition: transform .4s var(--ease); z-index: 99; box-shadow: var(--shadow-lg); }
  .mobile-nav.is-open { transform: none; }
  .mobile-nav a { display: block; padding: 14px 0; font-size: 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .section__title { font-size: 30px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .lec-grid, .reviews, .coaches, .stats { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 40px; }
  .hero__visual { height: 400px; }
  .hero__card--main { width: 82%; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .detail__hero { grid-template-columns: 1fr; }
  .banner { height: 260px; }
  .cta-band h2 { font-size: 30px; }
  .footer__mid { grid-template-columns: 1fr; }
  .intro__points { grid-template-columns: 1fr; }
  .rev-summary { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Catalog and shared interaction refinements ---------- */
:where(a, button, select, input):focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 4px;
}
:where(.banner, .cta-band, .footer) :focus-visible { outline-color: var(--lime); }

.section__title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.13;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.section__desc { line-height: 1.65; word-break: keep-all; }
.section__head { margin-bottom: clamp(28px, 4vw, 44px); }

.btn:disabled, .chip:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.chip { min-height: 40px; white-space: nowrap; }
.chip .n {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.chip.is-active .n { background: rgba(255, 255, 255, .14); }
.lec-card:focus-within .lec-card__wish { opacity: 1; transform: none; }
.lec-card__wish { width: 44px; height: 44px; }
.lec-card__info { color: var(--muted); }
.lec-card__foot { gap: 8px; flex-wrap: wrap; }
.detail > * { min-width: 0; }

.list-head { margin-top: clamp(36px, 6vw, 72px); }
.list-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 850; line-height: 1.1; }
.filters {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}
.filters__secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}
.filters .chips { padding: 4px; }
.filters .sort { flex: none; }
.banner__track { touch-action: pan-y; }
.banner__slide { padding-bottom: 30px; }
.banner__nav { align-items: center; bottom: 18px; }
.banner__nav button { height: 24px; background: transparent; }
.banner__nav button.is-active { background: transparent; }
.banner__nav button::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .5);
}
.banner__nav button.is-active::before { background: var(--lime); }
.banner__arrows button { width: 44px; height: 44px; }

@media (hover: none) {
  .lec-card__wish { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .mobile-nav:not(.is-open) { visibility: hidden; }
  .mobile-nav { position: absolute; top: 100%; padding-top: 6px; }
  .filters .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-padding-inline: 8px;
    padding: 6px;
  }
  .filters .chips > * { flex: none; }
  .filters__secondary { display: grid; grid-template-columns: minmax(0, 1fr); }
  .filters__secondary .sort { justify-self: end; }
  .banner { height: 318px; }
  .banner__slide { padding: 14px 20px 60px; }
  .banner__slide .btn { margin-top: 16px; }
  .banner__nav { left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

#site-header { position: sticky; top: calc(-1 * var(--notice-offset, 0px)); z-index: 100; }
.modal__box { max-height: calc(100dvh - 40px); overflow: auto; }
.cat:focus-visible .cat__ic { background: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .val.reveal.is-in:hover, .cat.reveal.is-in:hover, .step.reveal.is-in:hover { transform: none; }
}

#chips { min-width: 0; max-width: 100%; }
@media (max-width: 720px) {
  .filters > .chips { width: 100%; }
}

.search .clear:not(.is-show) { visibility: hidden; }
.page-head { padding-inline: 24px; }
@media (max-width: 720px) { .page-head { padding-inline: 16px; } }
