/* ═══════════════════════════════════════════
   슈퍼차일드 랜딩페이지 스타일
   ═══════════════════════════════════════════ */

/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue-deep: #24408e;
  --blue-mid: #2d50a8;
  --blue-bright: #3660c2;
  --blue-light: #6b8fd4;
  --blue-pale: #e8edf8;
  --cyan-glow: #5b7fd6;
  --warm-yellow: #f9ee53;
  --warm-orange: #FF9800;
  --coral: #FF6B6B;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-600: #757575;
  --gray-800: #424242;
  --gray-900: #212121;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(36, 64, 142, 0.10);
  --shadow-lg: 0 12px 48px rgba(36, 64, 142, 0.15);
}

html { scroll-behavior: smooth; scroll-padding-top: 56px; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}


/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--blue-deep);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.nav-logo { display: none; }
.nav-links { display: flex; }
.nav-links a {
  flex: 1;
  text-decoration: none; color: rgba(255,255,255,0.7);
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: -0.06em;
  padding: 14px 8px;
  border-bottom: 3px solid transparent;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
}
.nav-links a.active {
  color: #fff;
  border-bottom-color: #fff;
  font-weight: 800;
}
.nav-mobile-btn { display: none; }
.nav-scroll-arrow { display: none; }


/* ─── NAV MOBILE ─── */
@media (max-width: 768px) {
  .nav-inner { padding: 0; }
  .nav-links-wrap { position: relative; width: 100%; }

  .nav-scroll-arrow {
    position: absolute; top: 0; bottom: 0;
    width: 36px; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-scroll-arrow span {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--blue-deep);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    box-shadow: 0 2px 6px rgba(36,64,142,0.3);
  }
  .nav-scroll-right {
    right: 0;
    background: linear-gradient(to right, transparent 0%, var(--blue-deep) 50%);
  }
  .nav-scroll-left {
    left: 0;
    background: linear-gradient(to left, transparent 0%, var(--blue-deep) 50%);
    display: none;
  }
  .nav-links-wrap.scrolled-start .nav-scroll-left { display: flex; }
  .nav-links-wrap.scrolled-end .nav-scroll-right { display: none; }

  .nav-links {
    display: flex !important; flex-direction: row !important;
    padding: 0 !important; gap: 0 !important;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex-shrink: 0;
    font-size: 0.82rem !important;
    padding: 12px 16px !important;
  }
}


/* ─── HERO (MP4 배경) ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 24px;
  background: #1a3570;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,40,100,0.55) 0%,
    rgba(20,40,100,0.35) 50%,
    rgba(20,40,100,0.6) 100%
  );
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center; color: var(--white);
  max-width: 800px;
}
.hero-text-img {
  display: block;
  max-width: 100%;
  margin: 0 auto 40px;
  animation: fadeInDown 0.8s ease-out both;
}


/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: all 0.3s; cursor: pointer; border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--white); color: var(--blue-deep);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── SECTIONS (공통) ─── */
.section { padding: 60px 24px; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-alt { background: var(--blue-pale); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue-bright);
  margin-bottom: 14px;
}
.section-label::before,
.section-label::after {
  content: ''; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), transparent);
  border-radius: 2px;
}
.section-label::before { transform: rotate(180deg); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900; color: var(--gray-900);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1.05rem; color: var(--gray-600);
  max-width: 560px; margin: 0 auto;
}

/* 섹션 내 문의 버튼 그룹 */
.section-inquiry {
  text-align: center; margin-top: 40px;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  position: relative; z-index: 20;
  isolation: isolate;
}
.section-inquiry-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  background: var(--blue-deep); color: #fff;
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(36,64,142,0.25);
  font-family: inherit;
  position: relative; z-index: 21;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}
.section-inquiry-btn:hover {
  box-shadow: 0 6px 24px rgba(36,64,142,0.35);
  filter: brightness(1.1);
}
.section-inquiry-btn.share-btn {
  background: var(--blue-mid);
  color: #fff;
  border: none;
}
.section-inquiry-btn.share-btn:hover {
  background: var(--blue-bright);
}
.section-inquiry-btn.discount-btn {
  background: #fff;
  color: var(--blue-deep);
  border: 2px solid var(--blue-deep);
  box-shadow: 0 4px 16px rgba(36,64,142,0.12);
}
.section-inquiry-btn.discount-btn:hover {
  background: var(--blue-pale);
}


/* ─── STORY SECTION ─── */
.story-flow { max-width: 100%; margin: 0; }

.story-block {
  position: relative;
  padding: 44px 40px;
  border-radius: 20px;
  margin-bottom: 28px;
  transition: transform 0.3s;
}
.story-block:hover { }
.story-block h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 900; line-height: 1.4;
  margin-bottom: 16px;
}
.story-block p,
.story-block li { font-size: 0.98rem; line-height: 1.8; }

/* connector line */
.story-connector {
  display: flex; justify-content: center;
  margin: -8px 0;
  position: relative; z-index: 1;
}
.story-connector .line {
  width: 3px; height: 40px;
  background: linear-gradient(180deg, #c5d4f0, #e8edf8);
  border-radius: 2px;
}

/* about 섹션 */
#about { padding-left: 0; padding-right: 0; overflow: hidden; }
#about .section-inner { max-width: 800px; margin: 0 auto; padding: 0 5.5% 0 11%; }

/* empathy v2 */
.story-empathy-v2 {
  background: none;
  padding: 40pt 0 24pt;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}
.emp-layout {
  position: relative;
}
.emp-text {
  width: 65%;
}
.story-empathy-v2 h3 {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 9vw;
  line-height: 1.3;
  letter-spacing: -0.05em;
  color: #12388f;
  text-align: left;
  margin: 0 0 36pt 0;
}
.emp-sub {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 3.5vw;
  line-height: 1.7;
  letter-spacing: -0.05em;
  color: #303030;
  text-align: left;
  margin: 0;
  padding: 6pt 0;
  white-space: nowrap;
}
.emp-char-1 {
  position: absolute;
  right: 0;
  top: 4pt;
  width: clamp(48pt, 15vw, 65pt); height: clamp(48pt, 15vw, 65pt);
  border-radius: 50%;
  object-fit: cover;
  animation: empFloat 3s ease-in-out infinite;
}
.emp-char-2 {
  position: absolute;
  right: 8%;
  top: 78pt;
  width: clamp(48pt, 15vw, 65pt); height: clamp(48pt, 15vw, 65pt);
  border-radius: 50%;
  object-fit: cover;
  animation: empFloat 3s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes empFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5pt); }
}
.emp-logo {
  text-align: right;
  margin-top: 40pt;
}
.emp-logo img {
  height: clamp(8pt, 1.5vw, 16pt);
}

/* 데스크탑: 비례 확대 */
@media (min-width: 769px) {
  .story-empathy-v2 h3 { font-size: 28pt; line-height: 36pt; margin-bottom: 40pt; }
  .emp-char-1 { width: 120pt; height: 120pt; }
  .emp-char-2 { width: 120pt; height: 120pt; top: 145pt; }
}

/* problem */
.story-problem {
  background: #fff; border: none; box-shadow: none;
  padding: 40px 0;
}
.problem-label {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 3.5vw;
  letter-spacing: -0.05em;
  color: #12388f;
  text-align: left;
  margin: 0 0 2pt 0;
  padding-left: 5.5%;
}
.story-problem {
  padding: 24pt 0;
  margin: 0 -5.5%;
}
.story-problem h3 {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 9vw;
  letter-spacing: -0.05em;
  color: #12388f;
  text-align: left;
  margin: 0 0 16pt 0;
  padding-left: 5.5%;
}

@media (min-width: 769px) {
  .problem-label { font-size: 12pt; }
  .story-problem h3 { font-size: 28pt; }
}
/* worry strip */
.worry-strip-img {
  display: block;
  margin-top: 50pt;
  margin-left: auto;
  width: 100%;
}
.worry-text-row {
  display: flex;
  max-width: 97%;
  padding: 10.8pt 0;
  margin-left: 11%;
  gap: 0;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.worry-text-row.slide-in {
  opacity: 1;
  transform: translateX(0);
}
.worry-text-item {
  flex: 0 0 auto;
  width: 16%;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: clamp(5pt, 1.5vw, 12pt);
  line-height: 1.5;
  letter-spacing: -0.05em;
  color: #303030;
}
.worry-text-item:first-child { width: 18%; margin-right: 0; }
.worry-text-item:nth-child(2) { margin-left: -0.5%; }
.worry-text-item:nth-child(3) { margin-left: 1.5%; }
.worry-text-item:nth-child(4) { margin-left: 1.5%; }
.worry-text-item:nth-child(5) { margin-left: 1.5%; }

.story-problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.story-problem-col {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  border: 1.5px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.story-problem-col:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.story-problem-col h4 {
  font-size: 1rem; font-weight: 800; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; border-bottom: 2px solid #f5f5f5;
}
.story-problem-col:first-child h4 { color: #E65100; }
.story-problem-col:last-child h4 { color: var(--blue-deep); }
.story-problem-col ul { list-style: none; padding: 0; margin: 0; }
.story-problem-col li {
  font-size: 0.92rem; color: #555; padding: 8px 0;
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid #fafafa; line-height: 1.5;
}
.story-problem-col li:last-child { border-bottom: none; }

/* 섹션3: 슈퍼차일드를 찾아주세요 */
.section3-guide {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 80pt -5.5% 0;
  max-width: none;
  box-shadow: none;
  padding: 0;
}
.section3-bg {
  width: 100%;
  display: block;
}
/* 플로팅 뱃지 */
.s3-float {
  position: absolute;
  z-index: 2;
}
.s3-badge {
  width: clamp(28px, 6vw, 50px);
  left: 5%;
  top: 48%;
  animation: s3Float1 3s ease-in-out infinite;
}
.s3-heart {
  width: clamp(30px, 7vw, 55px);
  right: 8%;
  top: 25%;
  animation: s3Float2 2.5s ease-in-out infinite;
}
.s3-smile {
  width: clamp(32px, 7vw, 55px);
  right: 5%;
  top: 48%;
  animation: s3Float3 3.5s ease-in-out infinite;
}
@keyframes s3Float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3px, -6px) rotate(-5deg); }
}
@keyframes s3Float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, -5px) rotate(8deg); }
}
@keyframes s3Float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5px, -7px) rotate(-6deg); }
}

.section3-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 10% 8% 5%;
}
.section3-content h3 {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: clamp(14pt, 3.8vw, 20.6pt);
  color: #fff;
  letter-spacing: -0.05em;
  margin-bottom: 16pt;
  max-width: 97%;
  white-space: nowrap;
}
.section3-content h3 em {
  font-style: italic;
}
.section3-divider {
  width: 1px;
  height: 40pt;
  background: #fff;
  margin-bottom: 16pt;
}
.section3-content p {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 15.6pt;
  line-height: 22.5pt;
  letter-spacing: -0.05em;
  color: #4c79b6;
  max-width: 97%;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .section3-content h3 { font-size: 36pt; }
  .section3-content p { font-size: 24pt; line-height: 38pt; }
  .section3-divider { height: 50pt; }
}
.section3-content p strong {
  font-weight: 400;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3pt;
}
.story-review {
  margin-top: 20px; padding: 20px 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 14px; border-left: 4px solid var(--warm-yellow);
}
.story-review p {
  font-size: 0.92rem; font-style: italic;
  color: rgba(255,255,255,0.9); line-height: 1.7;
}
.story-review .reviewer {
  margin-top: 10px; font-size: 0.82rem;
  font-style: normal; opacity: 0.6;
}

/* 섹션4: 왜 슈퍼차일드 일까? */
.section4-why {
  padding: 40pt 0 100pt;
  background: linear-gradient(to bottom, #f5f5f5 50%, #ffffff 85%);
  box-shadow: none;
  border-radius: 0;
  margin: 0 -5.5%;
  padding-left: 10.5%;
  padding-right: 10.5%;
  max-width: none;
}
.section4-why h3 {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: clamp(14pt, 5vw, 24pt);
  letter-spacing: -0.05em;
  color: #232426;
  text-align: left;
  margin-bottom: 30pt;
}
.s4-logo-area {
  position: relative;
  width: 100%;
}
.s4-bg {
  width: 90%;
  display: block;
  opacity: 0.15;
}
.s4-badge {
  position: absolute;
  width: clamp(80px, 25vw, 180px);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.s4-b1 { left: 2%; top: 5%; }
.s4-b2 { right: 2%; top: 15%; }
.s4-b3 { left: 35%; top: 45%; }
.s4-b4 { right: 10%; top: 55%; }
.s4-b5 { left: 5%; bottom: 5%; }

/* 뱃지 순차 등장 애니메이션 */
.s4-badge {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.section4-why.visible .s4-b1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.section4-why.visible .s4-b2 { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.section4-why.visible .s4-b3 { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.section4-why.visible .s4-b4 { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
.section4-why.visible .s4-b5 { opacity: 1; transform: translateY(0); transition-delay: 1.0s; }

.s4-logo {
  text-align: right;
  margin-top: 20pt;
}
.s4-logo img {
  height: clamp(8pt, 1.5vw, 16pt);
}

.s4-learn-img {
  width: 90%;
  display: block;
  margin: 30pt auto 0;
  margin-left: 8%;
}

.s4-diff-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: clamp(14pt, 6vw, 28pt);
  letter-spacing: -0.05em;
  color: #0c52af;
  text-align: center;
  margin-top: 80pt;
}

.s4-learn-img {
  margin-top: 50pt;
  animation: learnGlow 2.5s ease-in-out infinite;
}
@keyframes learnGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15) drop-shadow(0 0 8px rgba(12, 82, 175, 0.3)); }
}

.s4-bottom-text {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 3.5vw;
  letter-spacing: -0.05em;
  color: #a5a5a5;
  line-height: 1.5;
  margin-top: 20pt;
  text-align: left;
}

/* 뱃지 둥둥 떠다니기 */
@keyframes s4Float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.section4-why.visible .s4-b1 { animation: s4Float 4s ease-in-out 2s infinite; }
.section4-why.visible .s4-b2 { animation: s4Float 4.5s ease-in-out 2.2s infinite; }
.section4-why.visible .s4-b3 { animation: s4Float 5s ease-in-out 2.5s infinite; }
.section4-why.visible .s4-b4 { animation: s4Float 4.8s ease-in-out 2.7s infinite; }
.section4-why.visible .s4-b5 { animation: s4Float 5.2s ease-in-out 3s infinite; }

/* 섹션4 비교 */
.s4-compare {
  margin-top: 150pt;
  text-align: center;
}
.s4-compare-title {
  height: clamp(60px, 18vw, 130px);
  width: auto;
  display: block;
  margin: 0 auto 20pt;
}
.s4-compare-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 500px;
  margin: 0 auto;
}
.s4-compare-img {
  flex: 1;
  min-width: 0;
  border-radius: 0;
  object-fit: contain;
  max-width: 50%;
}
.s4-compare-img:nth-child(2) {
  margin-top: 25%;
}

/* 섹션4 애니메이션 */
.section4-why h3 {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section4-why.visible h3 {
  opacity: 1;
  transform: translateY(0);
}
.s4-diff-title {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}
.section4-why.visible .s4-diff-title {
  opacity: 1;
  transform: translateY(0);
}
.s4-learn-img {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out 0.5s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}
.section4-why.visible .s4-learn-img {
  opacity: 1;
  transform: scale(1);
}
.s4-bottom-text {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out 0.7s, transform 0.5s ease-out 0.7s;
}
.section4-why.visible .s4-bottom-text {
  opacity: 1;
  transform: translateY(0);
}
.s4-logo {
  opacity: 0;
  transition: opacity 0.5s ease-out 0.9s;
}
.section4-why.visible .s4-logo {
  opacity: 1;
}

/* 자립심 비교 애니메이션 */
.s4-compare-title {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.s4-compare.visible .s4-compare-title {
  opacity: 1;
  transform: scale(1);
}
.s4-compare-img:nth-child(1) {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out 0.3s, transform 0.7s ease-out 0.3s;
}
.s4-compare-img:nth-child(2) {
  opacity: 0;
  transform: translateX(40px) translateY(25%);
  transition: opacity 0.7s ease-out 0.6s, transform 0.7s ease-out 0.6s;
}
.s4-compare.visible .s4-compare-img:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
}
.s4-compare.visible .s4-compare-img:nth-child(2) {
  opacity: 1;
  transform: translateX(0) translateY(25%);
}

/* 섹션5: 체험 수업부터 */
.section5-steps {
  padding: 60pt 10% 40pt;
  margin: 0 -5.5%;
  background: url('../assets/s5/bg.webp') no-repeat center top;
  background-size: cover;
  overflow: visible;
  box-shadow: none;
  border-radius: 0;
  position: relative;
}
.s5-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: clamp(14pt, 5.3vw, 24pt);
  letter-spacing: -0.05em;
  color: #0d0d0d;
  line-height: 1.4;
  text-align: left;
  margin-bottom: 80pt;
}
.s5-step {
  margin-bottom: 80pt;
}
.s5-num {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 0.45em;
  color: #0d0d0d;
  position: absolute;
  top: -0.55em;
  left: -1.3em;
}
.s5-step-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: clamp(16pt, 6.7vw, 28pt);
  letter-spacing: -0.05em;
  color: #0d0d0d;
  line-height: 1.3;
  margin: 0;
  position: relative;
  text-align: left;
}
.s5-step-desc {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 3.5vw;
  letter-spacing: -0.03em;
  color: #666;
  line-height: 1.6;
  margin-top: 10pt;
  text-align: left;
}

/* 섹션5 장식요소 */
.s5-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.s5-deco-baby {
  width: clamp(60px, 20vw, 120px);
  right: 3%;
  top: 26%;
}
.s5-deco-boy {
  width: clamp(40px, 13vw, 75px);
  right: 40%;
  top: 44%;
}
.s5-deco-bubble {
  width: clamp(35px, 12vw, 70px);
  right: 15%;
  top: 48%;
}
.s5-deco-heart {
  width: clamp(25px, 8vw, 45px);
  left: 60px;
  top: -1.5em;
}
@keyframes s5Float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}
@keyframes s5Float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-4deg); }
}
@keyframes s5Float3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* 장식 둥둥 */
.s5-deco-baby { animation: s5Float1 3s ease-in-out infinite; }
.s5-deco-bubble { animation: s5Float2 2.8s ease-in-out infinite; }
.s5-deco-boy { animation: s5Float3 3.2s ease-in-out infinite; }
.s5-deco-heart { animation: s5Float1 2.5s ease-in-out 0.5s infinite; }

/* 섹션5 애니메이션 */
.s5-title {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section5-steps.visible .s5-title {
  opacity: 1;
  transform: translateY(0);
}
.section5-steps .s5-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section5-steps.visible .s5-step:nth-child(2) { transition-delay: 0.3s; }
.section5-steps.visible .s5-step:nth-child(3) { transition-delay: 0.5s; }
.section5-steps.visible .s5-step:nth-child(4) { transition-delay: 0.7s; }
.section5-steps.visible .s5-step {
  opacity: 1;
  transform: translateY(0);
}

/* 섹션6 */
.section6 {
  padding: 0;
  margin: 0 -5.5%;
  box-shadow: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.s6-img {
  width: 100%;
  display: block;
}
.s6-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.s6-text {
  padding: 5% 10.5%;
}
.s6-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 9vw;
  color: #fff;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}
.s6-desc {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 3.5vw;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.s6-review-img {
  position: absolute;
  left: 10.5%;
  right: 10.5%;
  bottom: 15px;
  width: 79%;
}

/* 섹션7: 수업시간·반 구성 */
.section7 {
  padding: 40px 0 50px;
  background: #fff;
  margin: 0 -5.5%;
  position: relative;
  overflow: hidden;
}
.s7-clock {
  width: 30%;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
}
.s7-header {
  padding: 0 10.5% 15px;
  position: relative;
  z-index: 1;
}
.s7-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 9vw;
  letter-spacing: -0.05em;
  color: #232426;
  margin-bottom: 3px;
  max-width: 97%;
}
.s7-desc {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 3.5vw;
  letter-spacing: -0.05em;
  color: #232426;
  max-width: 97%;
}
.s7-tabs {
  display: flex;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.s7-tab-btn {
  width: 50%;
  display: block;
  cursor: pointer;
}
.s7-img {
  width: 100%;
  display: block;
  margin-bottom: 30px;
  padding: 0 10.5%;
  box-sizing: border-box;
}
.s7-panel { display: none; position: relative; z-index: 1; }
.s7-classes {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 10.5%;
  padding: 30px 0;
}
.s7-class-img {
  width: 100%;
  display: block;
  margin-bottom: 45px;
}
.s7-class-img:nth-child(1) {
  margin-bottom: 15px;
}
.s7-class-img:last-child {
  margin-bottom: 0;
}
.s7-panel.active { display: block; }

/* 섹션8: 수강료 */
.section8 {
  position: relative;
  padding: 40px 0 50px;
  overflow: visible;
  margin-top: 50px;
}
.s8-bg {
  position: absolute;
  right: -5.5%;
  top: calc(-7% - 30px);
  z-index: 0;
  pointer-events: none;
  width: 55%;
}
.s8-bg img {
  width: 100%;
  display: block;
}
.s8-header {
  padding: 0 5.5% 15px;
  position: relative;
  z-index: 1;
}
.s8-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 9vw;
  letter-spacing: -0.05em;
  color: #232426;
  margin-bottom: 3px;
  max-width: 97%;
}
.s8-desc {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 3.5vw;
  letter-spacing: -0.05em;
  color: #232426;
  max-width: 97%;
}
.s8-img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  padding: 0 5.5%;
  box-sizing: border-box;
}

.s6-confidence {
  margin: 0;
  padding: 7.5px 5.5% 50px;
}
.s6-confidence-img {
  width: 100%;
  display: block;
}

/* 섹션9: 친구추천 이벤트 */
.section9 {
  background: #eaeef0;
  padding: 40px 10.5% 50px;
  margin: 0 -5.5% 0;
}
.s9-block {
  margin-bottom: 50px;
}
.s9-block:last-child {
  margin-bottom: 0;
}
.s9-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 9vw;
  letter-spacing: -0.05em;
  color: #232426;
  margin-bottom: 6px;
  max-width: 97%;
}
.s9-desc {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 3.5vw;
  letter-spacing: -0.05em;
  color: #232426;
  max-width: 97%;
  margin-bottom: 20px;
}
.s9-img {
  width: 100%;
  display: block;
}

/* 섹션10: 셔틀안내 */
.section10 {
  padding: 40px 5.5% 50px;
}
.s10-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 9vw;
  letter-spacing: -0.05em;
  color: #232426;
  margin-bottom: 6px;
  max-width: 97%;
}
.s10-desc {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 3.5vw;
  letter-spacing: -0.05em;
  color: #232426;
  max-width: 97%;
  margin-bottom: 20px;
}
.s10-img {
  width: 100%;
  display: block;
}

/* 섹션5~8 데스크탑 폰트 제한 */
@media (min-width: 769px) {
  .s6-title { font-size: 24px; }
  .s6-desc { font-size: 12px; }
  .section5-steps { background-position: center -150px; }
  .s9-title { font-size: 32px; }
  .s9-desc { font-size: 14px; }
  .s10-title { font-size: 32px; }
  .s10-desc { font-size: 14px; }
  .s5-title { font-size: 24px; }
  .s5-step-title { font-size: 28px; }
  .s5-step-desc { font-size: 14px; }
  .s7-title { font-size: 32px; }
  .s7-desc { font-size: 14px; }
  .s8-title { font-size: 32px; }
  .s8-desc { font-size: 14px; }
}



/* ═══ 시설 · 주차 · 위치 ═══ */
.section-facility {
  padding: 60px 16.5% 50px;
  background: #fff;
  letter-spacing: -0.05em;
}
.sf-title, .sf-desc, .sf-badges {
  padding-left: 0;
  margin-left: 0;
}
.sf-inner { max-width: 100%; }
.sf-title {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 9vw;
  letter-spacing: -0.05em;
  color: #232426;
  margin-bottom: 6px;
  max-width: 97%;
}
.sf-desc {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 3.5vw;
  letter-spacing: -0.05em;
  color: #232426;
  max-width: 97%;
  margin-bottom: 20px;
}
.sf-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 35px;
}
.sf-badge {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 2.5vw;
  font-weight: 500;
  color: #1a3068;
  background: #eef2fa;
  padding: 5px 10px;
  border-radius: 20px;
}
.sf-tabs {
  display: flex;
  margin-bottom: 20px;
}
.sf-tab {
  flex: 1;
  padding: 10px 0;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 3.5vw;
  border: none;
  cursor: pointer;
  background: #e8e8e8;
  color: #999;
  transition: all 0.2s;
}
.sf-tab.active {
  background: #1a3068;
  color: #fff;
}
.sf-panel { display: none; }
.sf-panel.active { display: block; }
.sf-info-panel { display: none; }
.sf-info-panel.active { display: block; }
.sf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 35px;
}
.sf-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.sf-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.sf-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 3vw;
  text-align: center;
}
.sf-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sf-info-block {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 20px;
}
.sf-info-block h4 {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 4vw;
  color: #1a3068;
  margin-bottom: 10px;
}
.sf-info-block p {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 3vw;
  color: #555;
  line-height: 1.6;
  margin-bottom: 4px;
}
.sf-map-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #1a3068;
  color: #fff;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 2.8vw;
  border-radius: 8px;
  text-decoration: none;
}

@media (min-width: 769px) {
  .sf-title { font-size: 32px; }
  .sf-desc { font-size: 14px; }
  .sf-badge { font-size: 12px; }
  .sf-tab { font-size: 14px; }
  .sf-card span { font-size: 13px; }
  .sf-info-block h4 { font-size: 16px; }
  .sf-info-block p { font-size: 13px; }
  .sf-map-btn { font-size: 12px; }
}

/* ─── FOOTER ─── */
.footer {
  background: #1a1a1a; color: rgba(255,255,255,0.4);
  padding: 40px 24px; text-align: center;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 0.82rem;
}
.footer strong { color: rgba(255,255,255,0.7); }


/* ─── FAB (Floating Action Button) ─── */
.fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 1500;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 14px;
}
.fab-main {
  width: 62px; height: 62px; border-radius: 18px;
  background: #1a3068;
  color: white; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(36,64,142,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.fab-main:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(36,64,142,0.5); }
.fab-main .pulse {
  position: absolute; inset: -4px; border-radius: 22px;
  border: 2px solid rgba(36,64,142,0.5);
  animation: fabPulse 2.5s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.35); opacity: 0; }
}
.fab-main-text {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 0.68rem; font-weight: 800; line-height: 1.3;
  letter-spacing: -0.02em; text-align: center;
}
.fab-main-close { font-size: 1.5rem; font-weight: 300; display: none; }
.fab.open .fab-main-text { display: none; }
.fab.open .fab-main-close { display: block; }
.fab.open .fab-main { border-radius: 50%; background: var(--blue-bright); }
.fab.open .fab-main .pulse { display: none; }

.fab-menu {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  opacity: 0; transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.fab.open .fab-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.fab-item {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; cursor: pointer;
  background: #fff; border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.25s;
  border: 1px solid rgba(0,0,0,0.06);
}
.fab-item:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.fab-item-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; margin-right: 12px;
}
.fab-item-icon.phone { background: #e8f5e9; }
.fab-item-icon.register { background: #fff3e0; }
.fab-item-text { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.9rem; font-weight: 600; color: #232426; line-height: 1.3; }
.fab-item-text small {
  display: block; font-size: 0.75rem; color: #757575;
  font-weight: 400; margin-top: 1px;
}


/* ─── POPUP / OVERLAY (공통) ─── */
.discount-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  padding: 40px 20px;
}
.discount-overlay.show { opacity: 1; pointer-events: auto; }
.discount-popup {
  background: #fff; border-radius: 20px;
  max-width: 480px; width: 100%;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative; margin: auto 0; flex-shrink: 0;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s;
}
.discount-overlay.show .discount-popup { transform: translateY(0) scale(1); }
.discount-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #f5f5f5; color: #666;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.discount-close:hover { background: #eee; color: #333; }
.discount-popup h2 {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: #1a3068;
  margin-bottom: 20px; text-align: center;
}

/* discount cards */
.discount-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; margin-bottom: 12px;
  background: #f8f9fc; border-radius: 14px;
  border: 1px solid #eef1f8;
}
.discount-card-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.discount-card h4 { font-size: 0.95rem; font-weight: 800; color: #333; margin-bottom: 4px; }
.discount-card p { font-size: 0.82rem; color: #888; margin: 0 0 6px; }
.discount-highlight {
  display: inline-block;
  background: var(--blue-deep); color: #fff;
  padding: 5px 12px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700;
}
.discount-event {
  margin-top: 20px; padding: 20px;
  background: linear-gradient(135deg, #24408e, #3660c2);
  border-radius: 14px; text-align: center;
}
.discount-event h3 {
  font-size: 1.05rem; font-weight: 800; color: #f9ee53;
  margin-bottom: 16px;
}
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tier-card {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 16px 10px;
  text-align: center; transition: transform 0.2s;
}
.tier-card:hover { transform: translateY(-2px); }
.tier-highlight { background: rgba(249,238,83,0.15); border-color: rgba(249,238,83,0.4); }
.tier-crown { font-size: 1.2rem; margin-bottom: 4px; }
.tier-stars { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.tier-reward { font-size: 0.85rem; color: #fff; line-height: 1.4; }
.tier-reward strong { font-size: 1rem; color: #f9ee53; }
.tier-note { margin: 14px 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* compact discount popup */
.dc-compact-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 14px;
}
.dc-compact-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: #f8f9fc; border-radius: 10px;
  border: 1px solid #eef1f8;
}
.dc-compact-icon { font-size: 1.3rem; flex-shrink: 0; }
.dc-compact-text {
  font-size: 0.82rem; color: #333; line-height: 1.5;
}
.dc-compact-text strong { color: #111; }
.dc-compact-text em {
  font-style: normal; font-weight: 700;
  color: var(--blue-deep);
}
.dc-compact-event {
  background: linear-gradient(135deg, #24408e, #3660c2);
  border-radius: 12px; padding: 14px 16px;
  text-align: center;
}
.dc-compact-event-title {
  font-size: 0.85rem; font-weight: 800;
  color: #f9ee53; margin-bottom: 10px;
}
.dc-compact-tiers {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.dc-compact-tiers span {
  padding: 8px 6px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
}
.dc-compact-tiers span strong { color: #fff; }
.dc-tier-hot {
  background: rgba(249,238,83,0.15) !important;
  border-color: rgba(249,238,83,0.3) !important;
  color: #fff !important;
}
.dc-tier-hot strong { color: #f9ee53 !important; }

/* prep popup */
.prep-popup-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #f8f9fc; border-radius: 14px; padding: 20px 24px;
  font-size: 2rem; flex: 1;
  border: 1.5px solid #eef1f8;
}
.prep-popup-item span { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.88rem; font-weight: 600; color: #232426; }


/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white); border-radius: 20px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  color: #1a3068;
}
.modal-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--gray-100);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  color: var(--gray-600);
}
.modal-close:hover { background: #e0e0e0; }
.modal-body { padding: 28px 32px 32px; }


/* ─── FORM ─── */
.form-group { margin-bottom: 22px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; margin-bottom: 22px; }
.form-label {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  display: block; font-size: 0.88rem; font-weight: 600;
  color: #232426; margin-bottom: 8px;
}
.form-label .required { color: var(--coral); margin-left: 2px; }

/* radio group */
.radio-group { display: flex; gap: 10px; }
.radio-option { flex: 1; position: relative; }
.radio-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-option label {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 16px; border-radius: 12px;
  border: 2px solid #e0e0e0;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: all 0.25s; text-align: center;
  background: var(--white);
}
.radio-option input:checked + label {
  border-color: #1a3068;
  background: #eef2fa;
  color: #1a3068;
  box-shadow: 0 0 0 3px rgba(54,96,194,0.15);
}
.radio-option label:hover { border-color: var(--blue-light); }

/* gender pills */
.gender-group { display: flex; gap: 10px; }
.gender-option { position: relative; flex: 1; }
.gender-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.gender-option label {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; border-radius: 12px;
  border: 2px solid #e0e0e0;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: all 0.25s; background: var(--white);
}
.gender-option.boy input:checked + label {
  border-color: #5b7fd6; background: #e8edf8; color: #2d50a8;
}
.gender-option.girl input:checked + label {
  border-color: #F06292; background: #FCE4EC; color: #C2185B;
}
.gender-option label:hover { border-color: var(--blue-light); }

/* text input */
.form-input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 2px solid #e0e0e0; font-size: 0.95rem;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; transition: border-color 0.25s;
  outline: none; background: var(--white);
}
.form-input:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(54,96,194,0.12); }
.form-input::placeholder { color: #bdbdbd; }

/* select */
.form-select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 2px solid #e0e0e0; font-size: 0.95rem;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; transition: border-color 0.25s;
  outline: none; background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23757575' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.form-select:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(54,96,194,0.12); }

/* infant badge */
.infant-badge {
  display: none; align-items: center; gap: 6px;
  margin-top: 8px; padding: 10px 14px;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border-radius: 10px; font-size: 0.85rem; font-weight: 600;
  color: #E65100;
  border: 1px solid #FFB74D;
  animation: badgePop 0.3s ease-out;
}
.infant-badge.show { display: flex; }
@keyframes badgePop {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* time slots */
.time-slot-section { margin-top: 4px; }
.time-slot-section-title {
  font-size: 0.82rem; font-weight: 700; color: var(--gray-600);
  margin-bottom: 8px; margin-top: 14px;
  display: flex; align-items: center; gap: 6px;
}
.time-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slot { position: relative; }
.time-slot input { position: absolute; opacity: 0; width: 0; height: 0; }
.time-slot label {
  display: block; padding: 10px 18px; border-radius: 10px;
  border: 2px solid #e0e0e0;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.25s; background: var(--white);
  white-space: nowrap; text-align: center;
}
.time-slot input:checked + label {
  border-color: var(--blue-bright); background: var(--blue-pale);
  color: var(--blue-deep);
}
.time-slot label:hover { border-color: var(--blue-light); }
.time-slot.disabled label { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ─── TIME SLOT CARDS (모달 내 혼잡도 포함 시간 선택) ─── */
.ts-group { margin-bottom: 16px; }
.ts-group-title {
  font-size: 0.82rem; font-weight: 700; color: var(--gray-600);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.ts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.ts-card { position: relative; }
.ts-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.ts-card label {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 10px 10px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  gap: 6px;
  min-height: 72px;
  justify-content: center;
}
.ts-card label:hover { border-color: var(--blue-light); background: #fafbff; }
.ts-card input:checked + label {
  border-color: var(--blue-bright);
  background: var(--blue-pale);
  box-shadow: 0 0 0 3px rgba(54,96,194,0.15);
}
.ts-card-time {
  font-size: 1.05rem; font-weight: 900;
  color: var(--gray-900);
  line-height: 1;
}
.ts-card input:checked + label .ts-card-time { color: var(--blue-deep); }


@media (max-width: 768px) {
  .ts-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
  .ts-card label { padding: 10px 8px 8px; min-height: 64px; }
  .ts-card-time { font-size: 0.95rem; }
}

/* prep toggle (in modal) */
.prep-toggle {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 2px dashed #c5d4f0;
  background: #eef2fa;
  font-size: 0.92rem; font-weight: 600;
  color: #1a3068; cursor: pointer;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.25s;
}
.prep-toggle:hover { border-color: var(--blue-bright); background: #D0E8FF; }
.prep-toggle .arrow { display: inline-block; transition: transform 0.3s; font-size: 0.8rem; }
.prep-toggle.open .arrow { transform: rotate(180deg); }
.prep-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e8edf8;
}
.prep-content.open {
  max-height: 300px; margin-top: 10px; padding: 20px;
  border-color: #c5d4f0;
}
.prep-items { display: flex; gap: 8px; flex-wrap: nowrap; margin-bottom: 14px; }
.prep-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--blue-pale); padding: 8px 12px;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  border-radius: 10px; font-size: 0.92rem; font-weight: 700;
  color: var(--blue-deep);
}
.prep-note {
  font-size: 0.85rem; color: var(--gray-600); line-height: 1.6;
  padding: 12px 14px; background: #F5F5F5; border-radius: 8px;
}
.prep-note strong { color: #43A047; }

/* submit */
.form-submit {
  width: 100%; padding: 16px; border: none; border-radius: 14px;
  background: #1a3068;
  color: white; font-size: 1.05rem; font-weight: 700;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif; cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(36,64,142,0.25);
  margin-top: 8px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(36,64,142,0.35); }
.form-submit:active { transform: translateY(0); }

/* success state */
.modal-success {
  display: none; padding: 48px 32px; text-align: center;
}
.modal-success.show { display: block; }
.modal-success .check-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #43A047, #66BB6A);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 20px;
  animation: checkPop 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes checkPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.modal-success h3 { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: #232426; }
.modal-success p { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; font-size: 0.95rem; color: #888; margin-bottom: 28px; line-height: 1.6; }
.modal-success .btn { display: inline-flex; }


/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.lightbox.show .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev,
.lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-caption {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem; font-weight: 600;
  text-align: center;
  background: rgba(0,0,0,0.5);
  padding: 8px 20px; border-radius: 8px;
}

/* 클릭 가능한 앨범 이미지 */
.album-img { cursor: pointer; }
.album-img:hover img { transform: scale(1.03); transition: transform 0.3s; }
.change-gallery img { cursor: pointer; }


/* ─── SCROLL ANIMATION ─── */
.reveal {
  opacity: 0; transform: translateY(15px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── 상단 애니메이션 ─── */

/* 히어로: 텍스트 이미지 스케일 + 페이드 */
.hero-text-img {
  animation: heroTextIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes heroTextIn {
  0% { opacity: 0; transform: scale(0.85); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* 히어로 비디오: 서서히 밝아지기 */
.hero-video {
  animation: videoBrighten 2s ease-out both;
}
@keyframes videoBrighten {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* 섹션1 제목: 왼쪽에서 슬라이드 + 페이드 (글자별 딜레이 효과) */
.story-empathy-v2 h3 {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.story-empathy-v2.visible h3 {
  opacity: 1;
  transform: translateX(0);
}

/* 섹션1 본문: 아래에서 페이드인 (딜레이) */
.story-empathy-v2 .emp-sub {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.story-empathy-v2.visible .emp-sub:nth-of-type(1) { transition-delay: 0.4s; }
.story-empathy-v2.visible .emp-sub:nth-of-type(2) { transition-delay: 0.6s; }
.story-empathy-v2.visible .emp-sub {
  opacity: 1;
  transform: translateY(0);
}

/* 섹션1 캐릭터: 바운스 인 */
.emp-char-1 {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease-out 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}
.emp-char-2 {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease-out 0.8s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s;
}
.story-empathy-v2.visible .emp-char-1,
.story-empathy-v2.visible .emp-char-2 {
  opacity: 1;
  transform: scale(1);
}

/* 섹션1 로고: 페이드인 */
.emp-logo {
  opacity: 0;
  transition: opacity 0.6s ease-out 1s;
}
.story-empathy-v2.visible .emp-logo {
  opacity: 1;
}

/* 섹션2: 혹시 / 이런 고민 순차 등장 */
.problem-label {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.story-problem.visible .problem-label {
  opacity: 1;
  transform: translateY(0);
}
.story-problem h3 {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}
.story-problem.visible h3 {
  opacity: 1;
  transform: translateX(0);
}

/* 섹션3: 제목 페이드 + 선 늘어남 + 본문 순차 */
.section3-content h3 {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.section3-guide.visible .section3-content h3 {
  opacity: 1;
  transform: translateY(0);
}
.section3-divider {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s ease-out 0.4s;
}
.section3-guide.visible .section3-divider {
  transform: scaleY(1);
}
.section3-content p {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s ease-out 0.8s, transform 0.7s ease-out 0.8s;
}
.section3-guide.visible .section3-content p {
  opacity: 1;
  transform: translateY(0);
}

/* 섹션3 플로팅 뱃지: 톡톡 튀어나오기 */
.s3-badge {
  opacity: 0;
  transform: scale(0) rotate(-20deg);
  transition: opacity 0.4s ease-out 1s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1s;
}
.s3-heart {
  opacity: 0;
  transform: scale(0) rotate(15deg);
  transition: opacity 0.4s ease-out 1.2s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s;
}
.s3-smile {
  opacity: 0;
  transform: scale(0) rotate(-10deg);
  transition: opacity 0.4s ease-out 1.4s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s;
}
.section3-guide.visible .s3-badge,
.section3-guide.visible .s3-heart,
.section3-guide.visible .s3-smile {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  html { scroll-padding-top: 48px; }

  .hero {
    min-height: 70vh;
    padding: 60px 20px 80px;
  }
  .hero-text-img { max-width: 90%; }

  .fab { bottom: 20px; right: 20px; }

  .modal { max-height: 95vh; border-radius: 16px; }
  .modal-header { padding: 22px 20px 16px; }
  .modal-header h2 { font-size: 1.15rem; }
  .modal-body { padding: 20px 20px 28px; }
  .form-row { flex-direction: column; gap: 0; }
}
