/* 홈 */

/* ── 첫 화면 ── */
.hero { position: relative; display: flex; align-items: flex-end; min-height: max(660px, min(100svh, 1000px)); overflow: hidden; background: var(--ink); color: var(--white); }
.hero__media { position: absolute; inset: 0; transform-origin: 50% 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; opacity: 0; transition: opacity 1.1s ease; }
.hero__video.is-on { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 28, .84) 0%, rgba(7, 11, 28, .5) 42%, rgba(7, 11, 28, .06) 72%), linear-gradient(0deg, rgba(7, 11, 28, .78) 0%, rgba(7, 11, 28, 0) 46%); }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; padding-top: calc(var(--hd-h) + 72px); padding-bottom: 36px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 0 rgba(255, 106, 61, .6); animation: dot-pulse 2.2s infinite; }
@keyframes dot-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 106, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0); } }
.hero__title { font-size: var(--fs-hero); line-height: 1.12; letter-spacing: -0.045em; }
.hero__swap { position: relative; display: inline-block; vertical-align: top; height: 1.12em; overflow: hidden; color: var(--clay); }
.hero__word { position: absolute; left: 0; top: 0; white-space: nowrap; visibility: hidden; }
.hero__word.is-on { visibility: visible; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.7; color: rgba(255, 255, 255, .86); max-width: 44ch; }

.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; width: min(100%, 720px); padding: 8px; margin-top: 8px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(18px) saturate(1.3); }
.finder__field { position: relative; min-width: 0; }
.finder__field label { position: absolute; left: 17px; top: 9px; z-index: 1; font-size: 12px; font-weight: 700; color: var(--mute); pointer-events: none; }
.finder .select { height: var(--btn-l); padding-top: 18px; border-color: transparent; font-weight: 700; color: var(--ink); border-radius: 12px; }
.finder__go { border-radius: 12px; }

.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; width: 100%; margin-top: 28px; padding-top: 4px; }
.hero__tabs { display: flex; gap: 28px; }
.hero__tab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 104px; padding: 12px 0 16px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .55); transition: color .3s; }
.hero__tab:hover, .hero__tab[aria-selected="true"] { color: var(--white); }
.hero__tab .num { font-size: 12px; opacity: .7; }
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .25); }
.hero__bar i { display: block; height: 100%; background: var(--white); transform-origin: 0 50%; transform: scaleX(0); }
.hero__stats { display: flex; gap: 36px; }
.hero__stats li { display: grid; gap: 4px; }
.hero__stats b { font-size: 30px; line-height: 1; }
.hero__stats span { font-size: 13px; color: rgba(255, 255, 255, .72); }

@media (max-width: 1023px) {
  .hero__stats { display: none; }
}
@media (max-width: 767px) {
  .hero { min-height: max(640px, 100svh); }
  .hero__video { object-position: 66% 50%; }
  .hero__shade { background: linear-gradient(0deg, rgba(7, 11, 28, .92) 0%, rgba(7, 11, 28, .62) 48%, rgba(7, 11, 28, .2) 100%); }
  .hero__inner { gap: 18px; padding-bottom: 24px; }
  .finder { grid-template-columns: 1fr 1fr; }
  .finder__go { grid-column: 1 / -1; }
  .hero__foot { margin-top: 12px; }
  .hero__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .hero__tab { min-width: 0; font-size: 13px; gap: 4px; padding: 10px 0 12px; }
  .hero__tab .num { display: none; }
}

/* ── 종목 띠 ── */
.band { background: var(--court); color: var(--white); padding: 22px 0; }
.band__item { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 28px; white-space: nowrap; }
.band__item b { font: 800 clamp(34px, 4.6vw, 68px)/1 var(--font-display); font-stretch: 100%; letter-spacing: -0.01em; }
.band__item i { font-style: normal; font-size: 15px; font-weight: 600; opacity: .75; }
.band__dot { flex: none; align-self: center; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); }

/* ── 왜 레슨픽 ── */
.intro__text { margin: 24px 0 clamp(48px, 6vw, 80px); max-width: 23em; font-size: clamp(26px, 3.3vw, 48px); line-height: 1.42; font-weight: 700; letter-spacing: -0.04em; }
.intro__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.intro__cards li { display: grid; align-content: start; gap: 10px; padding: 32px 28px; border-radius: var(--r-card); background: var(--white); }
.ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 14px; background: var(--court-soft); color: var(--court); }
.ic svg { width: 26px; height: 26px; }
.intro__cards h3 { font-size: 21px; line-height: 1.35; }
.intro__cards p { font-size: 15.5px; color: var(--mute); }
@media (max-width: 767px) { .intro__cards { grid-template-columns: 1fr; } .intro__cards li { padding: 26px 22px; } }

/* ── 종목 가로 스크롤 ── */
.rail { overflow: hidden; }
.rail .head h2 { color: var(--white); }
.rail .more { color: var(--white); }
.rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__track { display: flex; gap: 20px; width: max-content; }
.rail .sp-card { width: clamp(248px, 24vw, 330px); scroll-snap-align: start; background: rgba(255, 255, 255, .06); color: var(--white); }
.rail .sp-card:hover { box-shadow: none; }
.rail .sp-card__price, .rail .sp-card__meta { color: rgba(255, 255, 255, .66); }
.rail .sp-card__price b { color: var(--white); }
.rail__foot { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.rail__foot .num { font-size: 14px; color: rgba(255, 255, 255, .7); }
.rail__bar { flex: 1; max-width: 320px; height: 2px; background: rgba(255, 255, 255, .16); }
.rail__bar i { display: block; height: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(.04); }
.rail.is-pinned { display: flex; flex-direction: column; justify-content: center; height: 100svh; padding-block: calc(var(--hd-h) + 8px) 28px; }
.rail.is-pinned .head { margin-bottom: 28px; }
.rail.is-pinned .rail__viewport { overflow: visible; }
.rail.is-pinned .sp-card { width: clamp(220px, calc((100svh - 400px) * .62), 330px); }

/* ── 예약 흐름 ── */
.story { overflow-x: clip; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.story__phone { position: sticky; top: max(calc(var(--hd-h) + 16px), calc(50svh - 310px)); display: grid; place-items: center; isolation: isolate; }
.story__glow { position: absolute; z-index: -1; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(36, 72, 255, .22), transparent 62%); }
.story__btn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; width: 100%; padding: 24px 0; text-align: left; opacity: .32; transition: opacity .45s var(--ease); }
.story__step.is-on .story__btn { opacity: 1; }
.story__btn .num { padding-top: 8px; font-size: 15px; color: var(--court); }
.story__btn b { display: block; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.3; letter-spacing: -0.035em; }
.story__btn span span { display: block; margin-top: 8px; font-size: var(--fs-lead); color: var(--mute); line-height: 1.65; }
.story.is-scroll { display: flex; align-items: center; height: 100svh; padding-block: calc(var(--hd-h) + 12px) 24px; }
.story.is-scroll .story__grid { align-items: center; width: 100%; }
.story.is-scroll .story__phone { position: relative; top: 0; }
.story.is-scroll .phone { --pw: min(300px, calc((100svh - var(--hd-h) - 64px) * .484)); }
.story.is-scroll .story__text .head { margin-bottom: 32px; }
.story.is-scroll .story__btn { padding: 18px 0 18px 24px; border-left: 2px solid var(--line); transition: opacity .45s var(--ease), border-color .45s var(--ease); }
.story.is-scroll .story__step.is-on .story__btn { border-left-color: var(--court); }
.story.is-scroll .story__btn b { font-size: clamp(22px, 2vw, 28px); }
.story.is-scroll .story__btn span span { font-size: 16px; }
@media (max-width: 1023px) {
  .story__grid { grid-template-columns: 1fr; gap: 40px; }
  .story__phone { position: relative; top: 0; order: -1; }
  .story__phone .phone { --pw: min(280px, 74vw); }
  .story__text .head { margin-bottom: 16px; }
  .story__btn { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .story__btn b { font-size: 20px; }
  .story__btn span span { font-size: 15px; }
}

/* ── 수치 ── */
.numbers { padding-block: clamp(72px, 7vw, 112px); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.numbers__grid li { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .35); }
.numbers__v { white-space: nowrap; }
.numbers__v b { font-size: clamp(44px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.02em; font-stretch: 108%; }
.numbers__v small { margin-left: 6px; font-size: 18px; font-weight: 600; opacity: .75; }
.numbers__grid p:last-child { font-size: 16px; opacity: .85; }
.numbers__note { margin-top: 32px; font-size: 13px; opacity: .6; }
@media (max-width: 767px) { .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
@media (max-width: 479px) { .numbers__v b { font-size: 36px; } .numbers__v small { font-size: 15px; margin-left: 3px; } }

/* ── 코치 ── */
.coaches__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1023px) { .coaches__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .coaches__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .coaches__grid::-webkit-scrollbar { display: none; }
  .coaches__grid > * { scroll-snap-align: start; }
}

/* ── 후기 ── */
.reviews .head { margin-bottom: 48px; }
.reviews__row + .reviews__row { margin-top: 16px; }

/* ── 코치 모집 ── */
.cbanner { position: relative; display: flex; align-items: center; min-height: clamp(540px, 72svh, 780px); overflow: hidden; background: var(--ink); color: var(--white); }
.cbanner__media { position: absolute; inset: 0; }
.cbanner__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.cbanner__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 28, .88) 0%, rgba(7, 11, 28, .45) 50%, rgba(7, 11, 28, .05) 80%); }
.cbanner__inner { position: relative; z-index: 1; display: grid; justify-items: start; gap: 20px; padding-block: 96px; }
.cbanner h2 { font-size: var(--fs-h1); line-height: 1.16; }
.cbanner p { max-width: 32ch; font-size: var(--fs-lead); color: rgba(255, 255, 255, .85); }
.cbanner .btn { margin-top: 12px; }
@media (max-width: 767px) {
  .cbanner { align-items: flex-end; }
  .cbanner__media::after { background: linear-gradient(0deg, rgba(7, 11, 28, .92) 0%, rgba(7, 11, 28, .5) 55%, rgba(7, 11, 28, .1) 100%); }
  .cbanner__inner { padding-block: 64px 56px; }
}

/* ── 앱 설치 ── */
.appcta { overflow: hidden; }
.appcta__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.appcta__text { display: grid; justify-items: start; gap: 20px; }
.appcta__title { font-size: var(--fs-h1); line-height: 1.12; }
.appcta__title .en { color: var(--clay); font-size: .78em; font-stretch: 125%; letter-spacing: -0.02em; }
.appcta .lead { color: rgba(255, 255, 255, .78); }
.appcta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.appcta__phone { display: grid; place-items: center; }
.appcta__phone .phone { --pw: 280px; transform: rotate(-5deg); }
@media (max-width: 1023px) {
  .appcta__grid { grid-template-columns: 1fr; }
  .appcta__phone .phone { --pw: min(260px, 70vw); }
}
@media (max-width: 479px) { .appcta__btns .btn { width: 100%; } }
