/* ==========================================================================
   배움스키스쿨 홈페이지 스타일
   색·글꼴·간격 값은 모두 css/tokens.css의 변수만 사용합니다.
   휴대폰 기준으로 먼저 쓰고, 48rem(768px)·64rem(1024px)부터 넓은 화면을 덧붙입니다.
   ========================================================================== */

/* ── 기본 ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  scrollbar-color: var(--color-scrollbar) transparent;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  word-break: keep-all;
  overflow-wrap: anywhere;
  caret-color: var(--color-caret);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

::selection { background: var(--color-selection); color: var(--color-text); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--color-link); text-underline-offset: 0.2em; }
button { font: inherit; }
table { border-collapse: separate; border-spacing: 0; }
s { text-decoration-thickness: 1px; }
strong, b { font-weight: var(--weight-bold); }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
.field :focus-visible { outline-color: var(--color-focus-on-field); }

.num { font-variant-numeric: tabular-nums; }
.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: var(--space-4); top: -4rem; z-index: var(--z-skip);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill);
  background: var(--color-field); color: var(--color-on-field); font-weight: var(--weight-bold); text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* ── 레이아웃 ─────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.field { background: var(--color-field); color: var(--color-on-field); }
.sky { background: var(--color-sky); }

.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-heading);
  text-wrap: balance;
}
.title--xl { font-size: var(--text-h1); }
.field .title { color: var(--color-on-field); }
.title em { font-style: normal; color: var(--color-accent-text); }
.field .title em { color: var(--color-accent); }

.lead {
  margin-top: var(--space-4);
  max-width: var(--measure);
  font-size: var(--text-lead);
  color: var(--color-text-muted);
}
.field .lead { color: var(--color-on-field-muted); }

.subtitle { font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-heading); font-weight: var(--weight-bold); text-wrap: balance; }
.field .subtitle { color: var(--color-on-field); }

.mark { background: linear-gradient(transparent 55%, var(--color-highlight) 55% 92%, transparent 92%); color: inherit; padding-inline: 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.note-small { margin-top: var(--space-5); font-size: var(--text-caption); color: var(--color-text-muted); line-height: 1.6; }

/* ── 버튼 ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--btn-height); padding-inline: var(--space-6);
  border: 0; border-radius: var(--btn-radius);
  font-weight: var(--weight-bold); font-size: var(--text-body); line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--kakao { background: var(--btn-kakao-bg); color: var(--btn-kakao-fg); }
@media (hover: hover) and (pointer: fine) {
  .btn--kakao:hover, .composer:hover .btn { background: var(--btn-kakao-bg-hover); }
  .btn--call:hover { background: var(--btn-call-bg-hover); }
  .btn--primary:hover { background: var(--btn-primary-bg-hover); }
  .btn--call-light:hover { background: var(--btn-call-light-bg-hover); }
  .site-nav a:hover { background: var(--color-surface-sunk); }
  .disclosure summary:hover { color: var(--pine-600); }
}
.btn--call { background: var(--btn-call-bg); color: var(--btn-call-fg); }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn--call-light { background: var(--btn-call-light-bg); color: var(--btn-call-light-fg); }
.btn--sm { min-height: var(--btn-height-sm); padding-inline: var(--space-5); font-size: var(--text-small); }

/* ── 사진 인화지 (폴라로이드) ─────────────────────────────────────────── */
.print {
  position: relative;
  background: var(--color-surface);
  padding: var(--print-border) var(--print-border) var(--print-border-bottom);
  box-shadow: var(--shadow-print);
}
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--color-surface-sunk); }
.print figcaption {
  position: absolute; inset-inline: var(--space-3); bottom: 0.625rem;
  text-align: center; font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.15; color: var(--color-heading);
}
.print::before {
  content: ""; position: absolute; top: -0.8rem; left: 50%; width: 5.5rem; height: 1.6rem;
  translate: -50% 0; rotate: 3deg; background: var(--print-tape);
}
.field .print { box-shadow: var(--shadow-print-on-field); }

/* ── 상단 바 ──────────────────────────────────────────────────────────── */
.site-top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-header);
  background: rgb(245 247 243 / 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.site-top .wrap { height: 3.5rem; display: flex; align-items: center; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--btn-height-sm); text-decoration: none; color: var(--color-heading); }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.site-nav { display: none; margin-left: auto; gap: var(--space-1); }
.site-nav a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); color: var(--color-text); text-decoration: none; font-size: var(--text-small); font-weight: var(--weight-medium); }
.site-nav a { transition: background-color var(--duration-fast) ease; }
.top-call {
  margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--btn-height-sm); padding-inline: var(--space-3);
  border-radius: var(--radius-pill); color: var(--color-heading); text-decoration: none;
  font-size: var(--text-small); font-weight: var(--weight-semibold);
}
.site-top .btn { display: none; }
@media (min-width: 64rem) {
  .site-nav { display: flex; }
  .top-call { display: none; }
  .site-top .btn { display: inline-flex; }
}

/* ── 1. 히어로: 칠판 위 배움스키 문장 ────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: var(--space-7) var(--space-8);
  background: linear-gradient(180deg, var(--pine-800) 0%, var(--pine-900) 55%, var(--pine-950) 100%);
  color: var(--color-on-field);
  text-align: center;
}
.hero__inner { position: relative; display: grid; justify-items: center; max-width: 40rem; }
.hero__tag { font-size: var(--text-lead); line-height: 1.6; color: var(--color-on-field); text-wrap: balance; }
.hero__tag em { font-style: normal; color: var(--color-accent); font-weight: var(--weight-semibold); }
.hero__title {
  margin-top: var(--space-3);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4.25rem, 2.6rem + 8vw, 9rem); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--hero-title-solid);
  background: var(--hero-title-fill);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.06em 0 var(--hero-title-shadow));
  padding-bottom: 0.04em;
}
.hero__crest {
  width: min(68vw, 21rem); height: auto; margin-top: var(--space-4);
  filter: drop-shadow(0 18px 28px rgb(0 0 0 / 0.35));
}
.hero__sub { margin-top: var(--space-5); font-size: var(--text-small); color: var(--color-on-field-muted); letter-spacing: 0.02em; }
.hero__cta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.hero__cta .btn { min-width: 9.5rem; }

/* 칠판 분필 낙서 (상세페이지 히어로와 같은 그림) */
.hero__doodles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.doodle { position: absolute; height: auto; opacity: 0.5; }
/* 휴대폰: 글자·로고·버튼과 겹치지 않게 로고 양옆과 맨 아래에만 */
.doodle--goggles { width: 30vw; left: -14%; top: 36%; rotate: -12deg; }
.doodle--gondola { width: 26vw; right: -11%; top: 31%; }
.doodle--tree { width: 18vw; left: 2%; bottom: 1%; }
.doodle--snowman { width: 20vw; right: 3%; bottom: 1%; }
.doodle--snowflake { width: 9vw; right: 6%; top: 22%; }
.doodle--flake-small { width: 7vw; left: 7%; top: 25%; }
.doodle--boots, .doodle--skis, .doodle--word, .doodle--mitten { display: none; }
@media (max-width: 63.99rem) {
  .hero { padding-bottom: calc(var(--space-8) + 18vw); }
}
@media (min-width: 64rem) {
  .hero { padding-block: var(--space-8) var(--space-9); }
  .doodle--boots { display: block; width: 8.5rem; left: 2%; top: 4%; opacity: 0.4; }
  .doodle--goggles { width: 12rem; left: 7%; top: 24%; rotate: -8deg; }
  .doodle--gondola { width: 10rem; right: 8%; top: 14%; }
  .doodle--skis { display: block; width: 10rem; left: 9%; top: 50%; rotate: -4deg; }
  .doodle--word { display: block; width: 15rem; right: 5%; top: 50%; rotate: -5deg; opacity: 0.5; }
  .doodle--mitten { display: block; width: 5.5rem; left: 22%; bottom: 7%; opacity: 0.45; }
  .doodle--tree { width: 8rem; left: 3%; bottom: 4%; }
  .doodle--snowman { width: 9rem; right: 15%; bottom: 3%; }
  .doodle--snowflake { width: 4rem; right: 24%; top: 8%; }
  .doodle--flake-small { width: 3rem; left: 26%; top: 12%; }
}

/* ── 카톡 대화 (강습 전 상담에서 사용) ────────────────────────────────── */
.chat { display: grid; gap: var(--space-3); align-content: start; margin: 0; }
.chat__day {
  justify-self: center; padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  background: rgb(12 56 31 / 0.08); font-size: var(--text-caption); color: var(--color-text-muted);
}
.msg { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-2); }
.msg__avatar { width: 2.5rem; height: 2.5rem; border-radius: 0.875rem; object-fit: cover; object-position: 50% 15%; }
.msg__name { display: block; font-size: var(--text-caption); font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }
.bubble {
  max-width: 85%; padding: var(--space-3) var(--space-4); border-radius: 1.125rem;
  font-size: var(--text-small); line-height: 1.6; background: var(--bubble-teacher-bg);
}
.msg .bubble { max-width: 100%; justify-self: start; border-top-left-radius: 0.375rem; }
.bubble--parent { justify-self: end; background: var(--bubble-parent-bg); border-top-right-radius: 0.375rem; }
.bubble--follow { margin-left: 3rem; justify-self: start; max-width: calc(100% - 3rem); border-top-left-radius: 0.375rem; }
.prep-mini { margin-left: 3rem; padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-field); color: var(--color-on-field); }
.prep-mini b { font-family: var(--font-display); font-weight: 800; color: var(--color-accent); font-size: 1.0625rem; }
.prep-mini li { margin-top: var(--space-1); font-size: var(--text-small); line-height: 1.6; color: var(--color-on-field-muted); padding-left: 1.1em; text-indent: -1.1em; }
.prep-mini li::before { content: "·"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--color-accent); font-weight: var(--weight-bold); }
.chat__caption { justify-self: center; font-size: var(--text-caption); color: var(--color-text-muted); }

.composer {
  margin-top: var(--space-6);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-2);
  padding: var(--space-2); border-radius: var(--radius-pill);
  background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-line);
  text-decoration: none; color: inherit; max-width: 30rem;
}
.composer__field { padding-inline: var(--space-4); font-size: var(--text-small); color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .btn { min-height: 3rem; padding-inline: var(--space-5); }
.composer { transition: transform var(--duration-fast) var(--ease-out); }
.composer:active { transform: scale(0.98); }

.before__intro { display: grid; gap: var(--space-7); }
.before__sub { margin-top: var(--space-9); }
@media (min-width: 64rem) {
  .before__intro { grid-template-columns: 7fr 5fr; gap: var(--space-8); align-items: center; }
  .chat { padding: var(--space-5); border-radius: 2rem; background: var(--chat-bg); }
  /* 카톡 채팅방 바탕 위에서는 보조 글자 대신 본문 색 (대비 4.5:1 이상) */
  .chat__day { background: rgb(255 255 255 / 0.55); color: var(--color-text); }
  .chat__caption { color: var(--color-text); }
}

/* ── 2. 사전예약 특가 띠 ──────────────────────────────────────────────── */
.special { padding-block: var(--space-7); }
.special .wrap { display: grid; gap: var(--space-4); align-items: center; }
.special h2 { font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-on-field); }
.special p { font-size: var(--text-small); color: var(--color-on-field-muted); margin-top: var(--space-1); }
.special__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.special__price s { font-size: var(--text-body); color: var(--color-on-field-muted); }
.special__price strong { font-family: var(--font-display); font-weight: 800; font-size: var(--text-price); line-height: 1; color: var(--color-accent); }
.special__save { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--color-on-field); }
.special .btn { justify-self: start; }
.special__offers { display: grid; gap: var(--space-5); }
.special__offer + .special__offer { padding-top: var(--space-5); border-top: 1px solid rgb(255 255 255 / 0.14); }
.special .special__label { margin-top: 0; margin-bottom: var(--space-2); font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--color-on-field); }
.special__label span { font-weight: var(--weight-regular); color: var(--color-on-field-muted); margin-left: var(--space-1); }
@media (min-width: 40rem) {
  .special__offers { grid-auto-flow: column; grid-auto-columns: auto; gap: var(--space-7); align-items: start; } /* 두 가격 숫자가 같은 높이에 나란히 */
  .special__offer + .special__offer { padding-top: 0; border-top: 0; padding-left: var(--space-7); border-left: 1px solid rgb(255 255 255 / 0.14); }
}
@media (min-width: 52rem) {
  /* 위 줄: 안내 문구 + 버튼, 아래 줄: 강습별 가격 */
  .special .wrap { grid-template-columns: 1fr auto; gap: var(--space-6) var(--space-7); }
  .special .btn { grid-column: 2; grid-row: 1; align-self: center; }
  .special__offers { grid-column: 1 / -1; grid-row: 2; justify-content: start; }
}

/* ── 3. 배움스키만의 방식 ─────────────────────────────────────────────── */
.method__grid { display: grid; gap: var(--space-8); }
.method__text p + p { margin-top: var(--space-4); }
.method__text .lead { margin-top: var(--space-5); color: var(--color-text); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.collage .print:nth-child(1) { rotate: -2deg; }
.collage .print:nth-child(2) { rotate: 2.5deg; margin-top: var(--space-7); }
.collage .print { --print-border-bottom: 4.25rem; }
.collage figcaption { font-size: 1.375rem; }
@media (min-width: 64rem) {
  .method__grid { grid-template-columns: 5fr 6fr; align-items: center; gap: var(--space-9); }
}

/* ── 4. 강사진 ────────────────────────────────────────────────────────── */
.team-photo { margin-top: var(--stack-heading); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-sunk); }
.team-photo img { width: 100%; }
.quals { margin-top: var(--space-7); display: grid; gap: var(--space-6) var(--space-6); }
.qual__head { display: flex; align-items: center; gap: var(--space-3); }
.qual__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--pine-100); color: var(--color-heading); flex: none; }
.qual__icon .icon { width: 1.375rem; height: 1.375rem; }
.qual h3 { font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-heading); }
.qual__sub { font-size: var(--text-small); color: var(--color-text-muted); }
.qual ul { margin-top: var(--space-3); display: grid; gap: var(--space-1); }
.qual li { display: flex; gap: var(--space-2); font-size: var(--text-small); line-height: 1.6; }
.qual li .icon { width: 1rem; height: 1rem; margin-top: 0.3em; color: var(--pine-600); }
@media (min-width: 48rem) { .quals { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .quals { grid-template-columns: repeat(4, 1fr); } }

.coaches { margin-top: var(--space-8); }
.coaches__rail {
  margin-top: var(--space-5);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 18rem); gap: var(--space-4);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.coaches__rail:focus-visible { outline-offset: -3px; }
.coach { scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-field); color: var(--color-on-field); display: flex; flex-direction: column; }
.coach img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; background: var(--ink-900); }
.coach__body { padding: var(--space-4) var(--space-5) var(--space-5); }
.coach h4 { font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-on-field); }
.coach__role { font-size: var(--text-caption); color: var(--color-on-field-muted); line-height: 1.5; }
.coach__pledge { margin-top: var(--space-3); font-family: var(--font-hand); font-size: 1.625rem; line-height: 1.25; color: var(--color-on-field); }
.coaches__hint { margin-top: var(--space-2); font-size: var(--text-caption); color: var(--color-text-muted); }
@media (min-width: 64rem) {
  .coaches__rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: var(--space-5); }
  .coaches__hint { display: none; }
}

.cert { margin-top: var(--space-8); display: grid; gap: var(--space-4); padding: var(--card-pad); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); }
.cert h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-heading); }
.cert p { font-size: var(--text-small); color: var(--color-text-muted); }
.cert strong { color: var(--color-accent-text); }
@media (min-width: 52rem) { .cert { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-7); } }

/* ── 5. 강습 전 상담 ──────────────────────────────────────────────────── */
.compare { margin-top: var(--stack-heading); display: grid; gap: var(--space-3); }
.compare__item { border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.compare__item b { display: block; font-size: var(--text-small); }
.compare__item span { font-size: var(--text-body); font-weight: var(--weight-semibold); }
.compare__item--them { background: var(--color-surface-sunk); color: var(--color-text-muted); }
.compare__item--us { background: var(--color-field); color: var(--color-on-field); }
.compare__item--us b { color: var(--color-accent); }
@media (min-width: 48rem) { .compare { grid-template-columns: 1fr 1fr; } }

.before__grid { margin-top: var(--stack-heading); display: grid; gap: var(--space-7); }
.before__grid .compare { margin-top: 0; align-content: start; }
@media (min-width: 64rem) { .before__grid .compare { grid-template-columns: 1fr; } }
@media (min-width: 64rem) { .before__grid { grid-template-columns: 5fr 6fr; gap: var(--space-8); align-items: start; } }

.mapping__title { font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-heading); }
.mapping { margin-top: var(--space-4); }
.mapping li { display: grid; gap: var(--space-1) var(--space-5); padding-block: var(--space-4); border-top: 1px solid var(--color-line); }
.mapping li:last-child { border-bottom: 1px solid var(--color-line); }
.mapping b { color: var(--color-heading); }
.mapping span { color: var(--color-text-muted); font-size: var(--text-small); line-height: 1.7; }
@media (min-width: 48rem) { .mapping li { grid-template-columns: 13rem 1fr; } }

.first30 { margin-top: var(--space-8); max-width: 40rem; }
.first30 p { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h2); line-height: var(--leading-tight); color: var(--color-heading); text-wrap: balance; }
.first30 p em { font-style: normal; color: var(--color-accent-text); }
.first30 span { display: block; margin-top: var(--space-3); color: var(--color-text-muted); }

/* ── 6. 강습 후 피드백 ────────────────────────────────────────────────── */
.after__grid { display: grid; gap: var(--space-8); }
.fb-card { border-radius: var(--radius-lg); padding: var(--card-pad); background: var(--color-surface); box-shadow: var(--shadow-print); }
.fb-card__meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-caption); color: var(--color-text-muted); }
.fb-card__meta img { width: 2rem; height: 2rem; border-radius: 0.75rem; object-fit: cover; object-position: 50% 15%; }
.fb-card__text { margin-top: var(--space-4); font-size: var(--text-small); line-height: 1.8; }
.fb-card__text p + p { margin-top: var(--space-3); }
.fb-card__photos { margin-top: var(--space-4); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.fb-card__photos img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface-sunk); }
.fb-points { margin-top: var(--stack-heading); display: grid; gap: var(--space-5); }
.fb-point { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); }
.fb-point h3 { font-size: var(--text-body); color: var(--color-heading); line-height: 1.5; }
.fb-point p { font-size: var(--text-small); color: var(--color-text-muted); line-height: 1.65; }
.after__close { margin-top: var(--space-7); font-size: var(--text-lead); max-width: var(--measure); }
.after__close strong { color: var(--color-heading); }
@media (min-width: 48rem) { .fb-points { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (min-width: 64rem) { .after__grid { grid-template-columns: 5fr 6fr; gap: var(--space-9); align-items: center; } }

/* ── 7. 아이 눈높이 표현: 칠판 사전 ───────────────────────────────────── */
.words .lead { margin-top: var(--space-3); }
.dict { margin-top: var(--stack-heading); }
.dict__row { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-top: 1px solid rgb(255 255 255 / 0.12); }
.dict__row:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.dict dt { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); color: var(--color-on-field-muted); }
.dict dt .icon { width: 1rem; height: 1rem; color: var(--color-accent); }
.dict dd { font-family: var(--font-hand); font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.2; color: var(--color-on-field); }
@media (min-width: 48rem) {
  .dict__row { grid-template-columns: 15rem 1fr; align-items: center; gap: var(--space-6); }
  .dict dt { justify-content: space-between; }
}

/* ── 8. 부모님 후기 ───────────────────────────────────────────────────── */
.reviews { margin-top: var(--stack-heading); display: grid; gap: var(--space-8) var(--space-7); }
.review { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-5); align-items: start; margin: 0; }
.review .print { --print-border: 0.375rem; --print-border-bottom: 1.25rem; rotate: -2.5deg; }
.review:nth-child(even) .print { rotate: 2deg; }
.review .print::before { width: 3rem; height: 1rem; top: -0.5rem; }
.review__stars { display: flex; gap: 2px; color: var(--gold-700); }
.review__stars .icon { width: 0.875rem; height: 0.875rem; }
.review__title { margin-top: var(--space-2); font-size: var(--text-body); font-weight: var(--weight-bold); line-height: 1.5; color: var(--color-heading); }
.review blockquote { margin: 0; }
.review blockquote p { margin-top: var(--space-2); font-size: var(--text-small); color: var(--color-text-muted); line-height: 1.7; }
.review__who { margin-top: var(--space-2); font-size: var(--text-caption); color: var(--color-text-muted); }
.facts { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--color-line); font-size: var(--text-lead); color: var(--color-text-muted); }
.facts strong { color: var(--color-heading); }
@media (min-width: 52rem) {
  .reviews { grid-template-columns: 1fr 1fr; }
  .review { grid-template-columns: 9rem 1fr; }
}

/* ── 9. 진행 과정 ─────────────────────────────────────────────────────── */
.course { margin-top: var(--stack-heading); counter-reset: course; }
.course li { position: relative; padding: 0 0 var(--space-6) var(--space-8); counter-increment: course; }
.course li::before {
  /* 코스를 잇는 점선 */
  content: ""; position: absolute; left: 0.9375rem; top: 2.25rem; bottom: 0.25rem; width: 0;
  border-left: 2px dashed var(--pine-300);
}
.course li:last-child { padding-bottom: 0; }
.course li:last-child::before { display: none; }
.course__dot {
  position: absolute; left: 0; top: 0.125rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-surface); box-shadow: inset 0 0 0 2px var(--pine-800);
  color: var(--color-heading); font-size: var(--text-caption); font-weight: var(--weight-bold);
}
.course li:first-child .course__dot, .course li:last-child .course__dot { background: var(--pine-800); color: var(--color-on-field); }
.course h3 { font-size: var(--text-body); line-height: 1.5; color: var(--color-heading); }
.course p { font-size: var(--text-small); color: var(--color-text-muted); line-height: 1.65; }
@media (min-width: 64rem) {
  .course { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-7) var(--space-6); }
  .course li { padding: var(--space-8) 0 0 0; }
  .course li::before { left: 2.5rem; right: calc(var(--space-6) * -1 + var(--space-2)); top: 0.9375rem; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 2px dashed var(--pine-300); }
  .course li:nth-child(4)::before { display: none; }
}

/* ── 10. 강습 종류 · 커리큘럼 · 등급 ──────────────────────────────────── */
.programs { margin-top: var(--stack-heading); display: grid; gap: var(--space-6); }
.program { padding-top: var(--space-4); border-top: 3px solid var(--pine-800); }
.program h3 { font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-heading); }
.program__ratio { display: block; margin-top: var(--space-1); color: var(--color-accent-text); font-weight: var(--weight-semibold); font-size: var(--text-small); }
.program p { margin-top: var(--space-1); font-size: var(--text-small); color: var(--color-text-muted); line-height: 1.65; }
@media (min-width: 48rem) { .programs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .programs { grid-template-columns: repeat(4, 1fr); } }

.curriculum { margin-top: var(--space-9); }
.levels { margin-top: var(--space-4); }
.disclosure { border-bottom: 1px solid var(--color-line); }
.disclosure:first-child { border-top: 1px solid var(--color-line); }
.disclosure summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 3.5rem; padding-block: var(--space-3); font-weight: var(--weight-semibold); color: var(--color-heading);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary { transition: color var(--duration-fast) ease; }
.disclosure summary small { display: block; font-weight: var(--weight-regular); color: var(--color-text-muted); font-size: var(--text-caption); }
.disclosure summary .icon { width: 1.25rem; height: 1.25rem; transition: rotate var(--duration-base) var(--ease-out); }
.disclosure[open] > .disclosure__body { animation: disclose var(--duration-base) var(--ease-out); }
@keyframes disclose { from { opacity: 0; translate: 0 -4px; } }
.disclosure[open] summary .icon { rotate: 45deg; }
.disclosure__body { padding-bottom: var(--space-5); font-size: var(--text-small); line-height: 1.75; color: var(--color-text); }
.steps-list { display: grid; gap: var(--space-2); counter-reset: st; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--space-2); }
.steps-list li::before { content: counter(st); width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ice-50); color: var(--ice-700); font-size: var(--text-caption); font-weight: var(--weight-bold); margin-top: 0.15em; }

.grades { margin-top: var(--space-9); }
.grades > p { margin-top: var(--space-3); max-width: var(--measure); color: var(--color-text-muted); font-size: var(--text-small); }
.badge-row { margin-top: var(--space-5); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4) var(--space-2); max-width: 52rem; }
.badge-row li { display: grid; justify-items: center; gap: var(--space-1); font-size: var(--text-caption); color: var(--color-text-muted); text-align: center; line-height: 1.3; }
.badge-row img { width: clamp(3.25rem, 2.6rem + 1.6vw, 4.25rem); height: auto; mix-blend-mode: multiply; } /* 연맹 뱃지 원본 (흰 바탕을 페이지 바탕에 녹임) */
.badge-row b { color: var(--color-text); font-weight: var(--weight-semibold); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (min-width: 48rem) { .badge-row { grid-template-columns: repeat(10, 1fr); } }
.grade-table-wrap { overflow-x: auto; margin-top: var(--space-2); }
.grade-table { width: 100%; min-width: 32rem; font-size: var(--text-small); background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; }
.grade-table th, .grade-table td { padding: var(--space-2) var(--space-3); text-align: center; }
.grade-table thead th { background: var(--table-head-bg); color: var(--table-head-fg); font-weight: var(--weight-semibold); }
.grade-table tbody tr:nth-child(even) td, .grade-table tbody tr:nth-child(even) th { background: var(--table-row-alt); }
.grade-table tbody th { font-weight: var(--weight-semibold); }
.grade-notes { margin-top: var(--space-3); display: grid; gap: var(--space-1); color: var(--color-text-muted); font-size: var(--text-caption); }

/* ── 11. 요금 ─────────────────────────────────────────────────────────── */
.price .lead { color: var(--color-text); }
.price__fine { margin-top: var(--space-2); font-size: var(--text-caption); color: var(--color-text-muted); }
.ratio-picker { margin: var(--stack-heading) 0 0; padding: 0; border: 0; }
.ratio-picker legend { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--color-heading); margin-bottom: var(--space-2); padding: 0; }
.ratio-picker__opts { display: inline-grid; grid-auto-flow: column; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-pill); background: var(--color-surface-sunk); }
.ratio-picker input { position: absolute; opacity: 0; pointer-events: none; }
.ratio-picker label {
  min-height: var(--btn-height-sm); display: inline-flex; align-items: center; justify-content: center; gap: 0.25em; padding-inline: var(--space-5); white-space: nowrap;
  border-radius: var(--radius-pill); font-size: var(--text-small); font-weight: var(--weight-semibold); cursor: pointer; color: var(--color-text);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.ratio-picker label small { font-weight: var(--weight-regular); font-size: var(--text-caption); margin-left: 0.25em; }
.ratio-picker input:checked + label { background: var(--color-field); color: var(--color-on-field); }
.ratio-picker input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.price-tables { margin-top: var(--space-5); }
.price-table { display: none; width: 100%; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; font-size: var(--text-small); }
.price:has(#ratio-1:checked) .price-table--1,
.price:has(#ratio-2:checked) .price-table--2,
.price:has(#ratio-3:checked) .price-table--3 { display: table; animation: table-in var(--duration-base) var(--ease-out); }
.price:has(#ratio-1:checked) .price-table--1, .price:has(#ratio-2:checked) .price-table--2 { animation: table-in var(--duration-base) var(--ease-out); }
@keyframes table-in { from { opacity: 0; translate: 0 6px; } }
.price-table caption { text-align: left; padding: 0 0 var(--space-2); font-weight: var(--weight-semibold); color: var(--color-heading); }
.price-table th, .price-table td { padding: var(--space-3) var(--space-2); text-align: right; vertical-align: middle; white-space: nowrap; }
.price-table th:first-child, .price-table td:first-child { padding-left: var(--space-3); }
.price-table th:last-child, .price-table td:last-child { padding-right: var(--space-3); }
.price-table thead small { display: block; font-size: var(--text-caption); }
.price-table caption small { font-weight: var(--weight-regular); color: var(--color-text-muted); font-size: var(--text-caption); }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table thead th { background: var(--table-head-bg); color: var(--table-head-fg); font-weight: var(--weight-semibold); }
.price-table thead small { color: var(--gold-100); font-weight: var(--weight-regular); }
.price-table tbody tr:nth-child(even) > * { background: var(--table-row-alt); }
.price-table tbody th { font-weight: var(--weight-semibold); color: var(--color-heading); }
.price-table s { display: block; font-size: var(--text-caption); color: var(--color-text-muted); }
.price-table td strong { font-size: var(--text-body); color: var(--color-heading); }
.price-table__best { display: inline-block; margin-top: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--gold-100); color: var(--gold-800); font-size: var(--text-caption); font-weight: var(--weight-bold); }
@media (min-width: 48rem) { .price-table th, .price-table td { padding: var(--space-4) var(--space-5); } }
/* :has()를 모르는 오래된 브라우저에서는 세 표를 모두 보여 줍니다 */
@supports not selector(:has(*)) {
  .price-table { display: table; margin-bottom: var(--space-5); }
  .ratio-picker { display: none; }
}

.price-notes { margin-top: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-small); color: var(--color-text-muted); }
.price-notes li { display: flex; gap: var(--space-2); line-height: 1.65; }
.price-notes li .icon { width: 1rem; height: 1rem; margin-top: 0.3em; color: var(--pine-600); }

.included { margin-top: var(--space-9); }
.included__list { margin-top: var(--space-4); display: grid; gap: var(--space-3) var(--space-6); }
.included__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); padding-left: 1.75rem; position: relative; font-size: var(--text-small); line-height: 1.6; }
.included__list li .icon { position: absolute; left: 0; top: 0.2em; width: 1.125rem; height: 1.125rem; color: var(--pine-600); }
.included__list b { color: var(--color-heading); font-size: var(--text-body); }
.included__list span { color: var(--color-text-muted); }
@media (min-width: 48rem) { .included__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .included__list { grid-template-columns: repeat(3, 1fr); } }

.hours { margin-top: var(--space-9); }
.hours > .lead { margin-top: var(--space-2); }
.grades .disclosure { margin-top: var(--space-5); border-top: 1px solid var(--color-line); }
.hours__grid { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.hour-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); }
.hour-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--color-surface-sunk); }
.hour-card__body { padding: var(--card-pad); }
.hour-card h4 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h2); line-height: 1; color: var(--color-heading); }
.hour-card__for { margin-top: var(--space-3); font-weight: var(--weight-bold); color: var(--color-heading); line-height: 1.6; }
.hour-card ul { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-line); display: grid; gap: var(--space-2); font-size: var(--text-small); color: var(--color-text-muted); }
.hour-card li { display: flex; gap: var(--space-2); line-height: 1.65; }
.hour-card li .icon { width: 1rem; height: 1rem; margin-top: 0.3em; color: var(--pine-600); }
@media (min-width: 48rem) { .hours__grid { grid-template-columns: 1fr 1fr; } }

.permit { margin-top: var(--space-8); border-radius: var(--radius-lg); padding: var(--card-pad); }
.permit h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h2); line-height: var(--leading-tight); color: var(--color-on-field); }
.permit > p { margin-top: var(--space-3); max-width: var(--measure); color: var(--color-on-field-muted); font-size: var(--text-small); line-height: 1.7; }
.permit dl { margin-top: var(--space-5); display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); font-size: var(--text-small); }
.permit dl div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-3); }
.permit dt { color: var(--color-text-muted); }
.permit dd strong { font-size: var(--text-body); color: var(--color-heading); }

/* ── 12. 오시는 길 ────────────────────────────────────────────────────── */
.way__grid { margin-top: var(--stack-heading); display: grid; gap: var(--space-7); }
.way-map { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); }
.way-map img { width: 100%; aspect-ratio: 1349 / 1043; }
.way-map figcaption { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); font-size: var(--text-small); }
.way-map figcaption .icon { color: var(--map-marker); }
.way-steps { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 19rem); gap: var(--space-4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: var(--space-3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); counter-reset: way; }
.way-steps li { scroll-snap-align: start; counter-increment: way; }
.way-steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface-sunk); }
.way-steps h3 { margin-top: var(--space-3); font-size: var(--text-body); line-height: 1.5; color: var(--color-heading); }
.way-steps h3::before { content: counter(way) ". "; color: var(--ice-700); }
.way-steps p { margin-top: var(--space-1); font-size: var(--text-small); color: var(--color-text-muted); line-height: 1.65; }
@media (min-width: 64rem) {
  .way__grid { grid-template-columns: 6fr 5fr; align-items: start; }
  .way-steps { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; gap: var(--space-6) var(--space-5); }
}

/* ── 13. FAQ · 환불 ───────────────────────────────────────────────────── */
.faq__grid { display: grid; gap: var(--space-8); }
.faq-list { margin-top: var(--stack-heading); }
.faq-list .disclosure summary { font-size: var(--text-body); }
.faq-list .disclosure__body p + p { margin-top: var(--space-2); }
.refund { align-self: start; }
.refund h3 { font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-heading); }
.refund table { margin-top: var(--space-4); width: 100%; font-size: var(--text-small); }
.refund th, .refund td { padding: var(--space-3) 0; border-top: 1px solid var(--color-line); text-align: left; font-weight: var(--weight-regular); }
.refund td { text-align: right; font-weight: var(--weight-bold); color: var(--color-heading); }
.refund tr:last-child > * { border-bottom: 1px solid var(--color-line); }
.refund p { margin-top: var(--space-3); font-size: var(--text-caption); color: var(--color-text-muted); }
@media (min-width: 64rem) { .faq__grid { grid-template-columns: 7fr 4fr; gap: var(--space-9); } .refund { margin-top: calc(var(--stack-heading) + var(--text-h2) * 1.2); } }

/* ── 14. 상담·예약: 신청서 + 카톡·전화 ──────────────────────────────────── */
.contact__grid { display: grid; gap: var(--space-7); grid-template-areas: "head" "form" "quick"; }
.contact__head { grid-area: head; }
.apply { grid-area: form; }
.contact__quick { grid-area: quick; }
.contact .title { font-size: var(--text-h1); }
.contact__quick-title { font-weight: var(--weight-semibold); color: var(--color-on-field); }
.contact__btns { margin-top: var(--space-4); display: grid; gap: var(--space-3); max-width: 24rem; }
.contact__btns .btn { width: 100%; }
.contact__meta { margin-top: var(--space-4); font-size: var(--text-small); color: var(--color-on-field-muted); }
.contact__meta a { color: var(--color-on-field); }
.kakao-help { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: rgb(255 255 255 / 0.08); font-size: var(--text-small); color: var(--color-on-field); max-width: 24rem; }
.kakao-help[hidden] { display: none; }
.contact .print { display: none; rotate: -2deg; max-width: 18rem; margin-top: var(--space-8); }
.contact .print img { aspect-ratio: 3 / 4; }
@media (min-width: 64rem) {
  .contact__grid { grid-template-columns: 5fr 7fr; grid-template-areas: "head form" "quick form"; column-gap: var(--space-9); row-gap: var(--space-6); align-items: start; }
  .contact .print { display: block; }
}

/* 상담 신청서: 칠판 위의 흰 신청 카드 */
.apply {
  background: var(--color-surface); color: var(--color-text);
  border-radius: var(--radius-lg); padding: var(--card-pad);
  box-shadow: var(--shadow-print-on-field);
}
.apply__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h3); line-height: var(--leading-snug); color: var(--color-heading); }
.apply__lead { margin-top: var(--space-1); font-size: var(--text-small); color: var(--color-text-muted); }
.apply__finder { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-sky); font-size: var(--text-small); line-height: 1.6; }
.apply__finder b { display: block; color: var(--color-heading); }
.apply__grid { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .apply__grid { grid-template-columns: 1fr 1fr; } .apply__field--wide { grid-column: 1 / -1; } }
.apply__field { display: grid; gap: var(--space-1); min-width: 0; }
.apply__field label { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--color-heading); }
.apply__field label small { font-weight: var(--weight-regular); color: var(--color-text-muted); font-size: var(--text-caption); }
.apply__req { color: var(--color-error); }
.apply input[type="text"], .apply input[type="tel"], .apply input[type="date"], .apply select, .apply textarea {
  width: 100%; min-height: var(--btn-height-sm); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-input-border); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text);
  font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.apply textarea { resize: vertical; min-height: 5.5rem; }
.apply input::placeholder, .apply textarea::placeholder { color: var(--ink-600); opacity: 1; }
.apply input:focus-visible, .apply select:focus-visible, .apply textarea:focus-visible { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 3px rgb(37 143 196 / 0.35); }
.apply [aria-invalid="true"] { border-color: var(--color-error); }
.apply__hint-sm { font-size: var(--text-caption); color: var(--color-text-muted); line-height: 1.5; }
.apply__error { font-size: var(--text-caption); color: var(--color-error); font-weight: var(--weight-semibold); line-height: 1.5; }
.apply__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__consent { margin-top: var(--space-5); display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; font-size: var(--text-small); line-height: 1.6; }
.apply__consent input { width: 1.25rem; height: 1.25rem; margin: 0.15em 0 0; accent-color: var(--pine-800); }
.apply__error--consent { margin-top: var(--space-1); }
.apply__submit { margin-top: var(--space-5); width: 100%; }
.apply__submit[disabled] { opacity: 0.6; cursor: progress; }
.apply__status { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-small); line-height: 1.6; }
.apply__status.is-success { background: var(--pine-100); color: var(--color-heading); }
.apply__status.is-error { background: var(--color-error-bg); color: var(--color-error); }
.apply__fallback { margin-top: var(--space-4); display: grid; gap: var(--space-3); font-size: var(--text-small); }
.apply__summary { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-sunk); white-space: pre-wrap; font-family: var(--font-body); font-size: var(--text-small); line-height: 1.7; max-height: 16rem; overflow: auto; }
.apply__fallback-btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.apply__fallback[hidden], .finder__result[hidden], .apply__status[hidden], .apply__error[hidden], .apply__finder[hidden] { display: none; }

/* ── 10-1. 우리 아이 강습 찾기 ─────────────────────────────────────────── */
.hero__finder { margin-top: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--btn-height-sm); padding-inline: var(--space-2); color: var(--color-on-field); font-size: var(--text-small); text-underline-offset: 0.3em; }
.hero__finder .icon { width: 1rem; height: 1rem; }

.finder__form { margin-top: var(--stack-heading); display: grid; gap: var(--space-6); }
.finder__progress { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--color-heading); }
.finder__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.finder__q legend { display: flex; align-items: center; gap: var(--space-2); padding: 0; margin-bottom: var(--space-3); font-weight: var(--weight-bold); font-size: var(--text-body); color: var(--color-heading); }
.finder__n { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--color-field); color: var(--color-on-field); font-size: var(--text-caption); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: var(--btn-height-sm); padding-inline: var(--space-4);
  border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line);
  font-size: var(--text-small); font-weight: var(--weight-medium); cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}
.chip input:checked + span { background: var(--color-field); color: var(--color-on-field); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.chip span:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked) + span:hover { box-shadow: inset 0 0 0 1px var(--pine-600); } }

.finder__result { margin-top: var(--space-8); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-print); overflow: hidden; }
.finder__result:focus { outline: none; }
.result__head { padding: var(--card-pad); background: var(--color-field); color: var(--color-on-field); display: grid; gap: var(--space-4); grid-template-columns: 1fr auto; align-items: center; }
.result__kicker { font-size: var(--text-small); color: var(--color-on-field-muted); }
.result__class { margin-top: var(--space-1); font-family: var(--font-display); font-weight: 800; font-size: var(--text-h2); line-height: var(--leading-tight); color: var(--color-on-field); }
.result__goal { margin-top: var(--space-2); font-size: var(--text-small); color: var(--color-on-field); }
.result__goal b { color: var(--color-accent); font-weight: var(--weight-semibold); }
.result__badge { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--snow-0); padding: 0.25rem; }
.result__body { padding: var(--card-pad); display: grid; gap: var(--space-6); }
.result__facts { display: grid; gap: var(--space-4); }
@media (min-width: 48rem) { .result__facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .result__facts { grid-template-columns: repeat(4, 1fr); } }
.result__fact { display: grid; gap: var(--space-1); align-content: start; }
.result__fact dt { font-size: var(--text-caption); color: var(--color-text-muted); }
.result__fact dd { font-weight: var(--weight-bold); font-size: var(--text-h3); color: var(--color-heading); line-height: 1.3; }
.result__fact .result__why { font-size: var(--text-small); font-weight: var(--weight-regular); color: var(--color-text-muted); line-height: 1.6; }
.result__plan h4 { font-size: var(--text-body); color: var(--color-heading); }
.result__plan .steps-list { margin-top: var(--space-3); font-size: var(--text-small); line-height: 1.7; }
.result__kakao { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-sky); font-size: var(--text-small); line-height: 1.7; }
.result__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.result__note { font-size: var(--text-caption); color: var(--color-text-muted); }
.btn--ghost { background: transparent; color: var(--color-heading); box-shadow: inset 0 0 0 1px var(--color-line); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--color-surface-sunk); } }

/* ── 바닥글 ───────────────────────────────────────────────────────────── */
.site-foot { padding-block: var(--space-7) calc(var(--space-7) + var(--bar-height)); background: var(--color-field-deep); color: var(--color-on-field-muted); font-size: var(--text-small); }
.site-foot .wrap { display: grid; gap: var(--space-3); }
.site-foot strong { color: var(--color-on-field); font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; }
.site-foot a { color: var(--color-on-field); }
.site-foot small { font-size: var(--text-caption); }
@media (min-width: 64rem) { .site-foot { padding-bottom: var(--space-7); } }

/* ── 휴대폰 하단 상담 바 ──────────────────────────────────────────────── */
.cta-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  padding: var(--space-3) var(--space-3) max(var(--space-3), env(safe-area-inset-bottom));
  background: var(--bar-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-bar);
  translate: 0 110%; visibility: hidden;
  transition: translate var(--duration-exit) var(--ease-out), visibility 0s linear var(--duration-exit);
}
.cta-bar.is-shown { translate: 0 0; visibility: visible; transition: translate var(--duration-base) var(--ease-out), visibility 0s; }
.cta-bar .btn { padding-inline: var(--space-3); }
@media (min-width: 64rem) { .cta-bar { display: none; } }

/* ── 움직임 ───────────────────────────────────────────────────────────────
   원칙: 내용은 처음부터 보이는 상태가 기본이고, 움직임은 그 위에 얹습니다.
   스크립트가 동작하지 않거나 '동작 줄이기'를 켠 기기에서는 모든 내용이 바로 보입니다. */

/* 사진 인화지: 마우스를 올리면 집어 든 것처럼 반듯해지며 살짝 떠오름 */
.print { transition: rotate var(--duration-base) var(--ease-out), translate var(--duration-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .print:hover, :is(.collage, .review, .contact) .print:hover { rotate: 0deg; translate: 0 -4px; }
}
@media print { .is-armed [data-reveal], .is-armed .chat > *, .is-armed .chat .bubble { opacity: 1 !important; translate: none !important; scale: none !important; } }

@media (prefers-reduced-motion: no-preference) {
  /* 첫 화면: 문구 → 제목 → 문장 로고 → 버튼 순서로 한 번만 등장, 분필 낙서는 천천히 드러남 */
  .hero__tag, .hero__title, .hero__crest, .hero__sub, .hero__cta {
    animation: hero-in var(--duration-reveal) var(--ease-out) both;
  }
  .hero__title { animation-delay: var(--stagger); }
  .hero__crest { animation-name: crest-in; animation-delay: calc(var(--stagger) * 2); }
  .hero__sub { animation-delay: calc(var(--stagger) * 3); }
  .hero__cta { animation-delay: calc(var(--stagger) * 4); }
  .hero__doodles { animation: chalk-in 900ms ease both 120ms; }

  /* 사진이 붙듯이 등장 (스크립트가 data-reveal에 .is-armed를 붙인 경우에만 숨겼다가 보여 줌) */
  .is-armed [data-reveal] {
    opacity: 0; translate: 0 16px; scale: 0.98;
    transition:
      opacity var(--duration-reveal) var(--ease-out),
      translate var(--duration-reveal) var(--ease-out),
      scale var(--duration-reveal) var(--ease-out),
      rotate var(--duration-base) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }
  .is-armed [data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }
  /* 함께 보이는 사진은 왼쪽부터 차례로 */
  .collage .print:nth-child(2), .review:nth-child(2) .print { --i: 1; }
  .review:nth-child(3) .print { --i: 2; }
  .review:nth-child(4) .print { --i: 3; }
  @media (hover: hover) and (pointer: fine) {
    .is-armed .print[data-reveal].is-in:hover { translate: 0 -4px; transition-delay: 0s; }
  }

  /* 카톡 대화: 강사 '입력 중' → 말풍선 → 부모 답장 → 준비노트 순서로 도착 */
  .is-armed .chat > * { opacity: 0; translate: 0 12px; transition: opacity var(--duration-base) var(--ease-out), translate var(--duration-base) var(--ease-out); }
  .is-armed .chat > .is-in { opacity: 1; translate: 0 0; }
  .is-armed .chat .msg .bubble { opacity: 0; scale: 0.96; transform-origin: 0 0; transition: opacity var(--duration-base) var(--ease-out), scale var(--duration-base) var(--ease-out); }
  .is-armed .chat .msg .bubble.is-in { opacity: 1; scale: 1; }
}

@keyframes hero-in { from { opacity: 0; translate: 0 14px; } }
@keyframes crest-in { from { opacity: 0; scale: 0.94; } }
@keyframes chalk-in { from { opacity: 0; } }

/* 입력 중 표시 (카톡의 점 세 개) */
.typing { display: inline-flex; gap: 4px; padding: var(--space-3) var(--space-4); border-radius: 1.125rem; border-top-left-radius: 0.375rem; background: var(--bubble-teacher-bg); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); animation: typing 900ms ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 150ms; }
.typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes typing { 0%, 60%, 100% { translate: 0 0; opacity: 0.45; } 30% { translate: 0 -3px; opacity: 1; } }

/* 동작 줄이기: 위치가 바뀌는 움직임은 없애고, 이해를 돕는 색·투명도 변화만 짧게 남김 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .composer:active { transform: none; }
  .print, .print:hover { transition: none; translate: none; }
  .disclosure summary .icon { transition: none; }
  .disclosure[open] > .disclosure__body,
  .price-table { animation: fade-only var(--duration-base) ease; }
  .cta-bar, .cta-bar.is-shown { translate: 0 0; opacity: 0; transition: opacity var(--duration-base) ease, visibility 0s linear var(--duration-base); }
  .cta-bar.is-shown { opacity: 1; transition: opacity var(--duration-base) ease, visibility 0s; }
  .typing { display: none; }
}
@keyframes fade-only { from { opacity: 0; } }

/* ── 홈 + 공통 메뉴바 (2026-10-16 여러 페이지 구조) ─────────────────────
   공통 메뉴바가 칠판 위에 투명하게 겹치도록 첫 화면을 메뉴바 높이만큼 끌어올립니다. */
.hero { margin-top: calc(-1 * var(--header-h-now)); padding-top: calc(var(--header-h-now) + var(--space-7)); }
@media (min-width: 64rem) { .hero { padding-top: calc(var(--header-h-now) + var(--space-8)); } }

/* 바로가기: 나머지 내용은 메뉴별 페이지로 (하위 페이지와 같은 이중 테두리 카드) */
.hub { background: var(--snow-0); }
.hub__grid { margin-top: var(--stack-heading); display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .hub__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .hub__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.hub__card { display: block; text-decoration: none; color: var(--color-text); }
.hub__card .core { display: grid; grid-template-columns: 6rem 1fr; align-items: center; gap: var(--space-4); padding: var(--space-2); }
@media (min-width: 40rem) { .hub__card .core { grid-template-columns: 1fr; gap: 0; padding: 0; } }
.hub__img { display: block; aspect-ratio: 1; border-radius: calc(var(--radius-core) - 0.375rem); overflow: hidden; }
@media (min-width: 40rem) { .hub__img { aspect-ratio: 16 / 10; border-radius: 0; } }
.hub__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-fluid); }
.hub__body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-3); padding-right: var(--space-2); }
@media (min-width: 40rem) { .hub__body { padding: var(--space-5) var(--space-4) var(--space-5) var(--space-5); } }
.hub__body b { display: block; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: var(--color-heading); }
.hub__desc { display: block; font-size: var(--text-small); line-height: 1.5; color: var(--color-text-muted); }
.hub .button__dot { background: var(--color-field); color: var(--color-on-field); }
@media (hover: hover) and (pointer: fine) { .hub__card:hover img { transform: scale(1.04); } .hub__card:hover .button__dot { transform: translate(2px, -1px) scale(1.06); } }

/* ── 홈 강사진: 첫 화면 칠판과 같은 어두운 초록 ─────────────────────────
   특가 띠(진초록) 아래로 이어지며 점점 더 깊어지는 칠판, 분필 낙서 몇 개만 흐리게. */
.coaches-dark {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgb(47 91 69 / 0.35), transparent 70%),
    linear-gradient(180deg, var(--pine-800) 0%, var(--pine-900) 45%, var(--pine-950) 100%);
  border-top: 1px solid rgb(255 255 255 / 0.06);
}
.coaches-dark__doodles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.coaches-dark__doodles img { position: absolute; opacity: 0.22; }
.coaches-dark__doodles img:nth-child(1) { width: 4.5rem; right: 6%; top: 3.5rem; }
.coaches-dark__doodles img:nth-child(2) { width: 2.5rem; left: 7%; top: 6rem; }
.coaches-dark__doodles img:nth-child(3) { width: 6.5rem; left: 2%; bottom: 3rem; opacity: 0.16; }
@media (max-width: 47.98rem) { .coaches-dark__doodles img:nth-child(3) { display: none; } }
.coaches-dark .coaches { margin-top: 0; }
.coaches-dark .subtitle { font-size: var(--text-h2); color: var(--color-on-field); }
.coaches-dark .coach { background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 24px 40px -28px rgb(0 0 0 / 0.7); }
.coaches-dark .coach img { background: var(--pine-950); }
.coaches-dark .coaches__hint { color: var(--color-on-field-muted); }
.coaches-dark .cert { background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); }
.coaches-dark .cert__title { color: var(--color-on-field); }
.coaches-dark .cert p { color: var(--color-on-field-muted); }
.coaches-dark .cert strong { color: var(--color-accent); }
