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

:root {
  /* ★ 메인 포인트: 포스터 이미지와 동일한 네이비 블루 팔레트 */
  --blue:        #1B3A8A;
  --blue-mid:    #2348B0;
  --blue-light:  #E8EEFC;
  --blue-pale:   #F2F5FE;
  --blue-navy:   #0F2460;   /* 진한 네이비 (섹션 배경) */

  /* 배경 & 서피스 */
  --bg-page:     #F4F6FB;
  --bg-white:    #FFFFFF;
  --bg-light:    #F8FAFF;

  /* 텍스트 */
  --text-dark:   #0F1D3E;
  --text-body:   #374166;
  --text-muted:  #8A94B0;
  --text-sub:    #5D6A8A;

  /* 보더 */
  --border:      #E2E6F3;
  --border-blue: rgba(35, 72, 176, 0.2);

  /* 기타 */
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   22px;
  --transition:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --mobile-w:    480px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ──────────────────────────────────────────────
   PAGE WRAPPER
────────────────────────────────────────────── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg-page);
  background-image:
    radial-gradient(circle at 15% 25%, rgba(27,58,138,0.05) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(35,72,176,0.04) 0%, transparent 55%);
}

.mobile-container {
  width: 100%;
  max-width: var(--mobile-w);
  background: var(--bg-white);
  min-height: 100vh;
  box-shadow: 0 0 80px rgba(15,36,96,0.12);
  position: relative;
  overflow: hidden;
}

/* ──────────────────────────────────────────────
   HEADER
────────────────────────────────────────────── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.header-logo svg { color: var(--blue); }

.header-cta {
  padding: 8px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}
.header-cta:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,58,138,0.3);
}

/* ──────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--blue-navy);
  color: #fff;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,36,96,0.35);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.88);
  border-color: var(--blue);
  color: var(--blue);
}

/* ──────────────────────────────────────────────
   HERO — 이미지 배경 + 오버레이
   포스터와 동일한 블루 톤으로 통일
────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 배경 이미지 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* 포스터 블루 계열 그라디언트 오버레이 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(242,245,254,0.88) 0%,
    rgba(232,238,252,0.76) 35%,
    rgba(255,255,255,0.45) 70%,
    rgba(15,36,96,0.08) 100%
  );
  z-index: 1;
}

/* 콘텐츠 래퍼 */
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 24px 52px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(232,238,252,0.88);
  color: var(--blue);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  border: 1px solid rgba(27,58,138,0.18);
  backdrop-filter: blur(6px);
  width: fit-content;
}
.tag-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.hero-title {
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

/* 포인트 텍스트도 블루로 통일 */
.hero-accent {
  color: var(--blue);
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-cta-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

/* 칩: 이미지 위에서 자연스럽게 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(15,36,96,0.62);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.chip svg { color: rgba(255,255,255,0.8); }

/* ──────────────────────────────────────────────
   SECTIONS 공통 (사선 절단 적용)
────────────────────────────────────────────── */
.section {
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}
.section--alt {
  background: var(--bg-light);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  margin-top: -4vw;
  padding: calc(60px + 4vw) 24px 60px;
  z-index: 2;
}

/* 후기 섹션 — 포스터 네이비 블루 */
.section--navy {
  background: var(--blue-navy);
  border-bottom: none;
  clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
  margin-top: -4vw;
  padding: calc(60px + 4vw) 24px 60px;
  z-index: 3;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-label--light {
  color: rgba(255,255,255,0.45);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.section-title--white {
  color: #fff;
}

/* ──────────────────────────────────────────────
   STORY CARDS
────────────────────────────────────────────── */
.story-cards {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.story-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.story-card:hover {
  border-color: var(--border-blue);
  box-shadow: 0 4px 16px rgba(27,58,138,0.07);
}
.story-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.story-card-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.story-card-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.story-answer {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--blue-pale);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  align-items: flex-start;
}
.story-answer-bar {
  width: 3px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 40px;
}
.story-answer p {
  font-size: 0.87rem;
  color: var(--text-body);
  line-height: 1.75;
}
.story-answer strong {
  color: var(--blue);
  font-weight: 700;
}

/* ──────────────────────────────────────────────
   WHO LIST (지그재그 발자국 모양)
────────────────────────────────────────────── */
.who-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
}
.who-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  box-shadow: 0 4px 16px rgba(15,36,96,0.03);
  position: relative;
  z-index: 2;
}
.who-item:hover { background: var(--blue-pale); border-color: var(--border-blue); }

/* 번갈아 엇갈리는 배치 */
.who-item:nth-child(odd) {
  margin-right: 36px;
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
}
.who-item:nth-child(even) {
  margin-left: 36px;
  border-radius: var(--radius) var(--radius) 4px var(--radius);
}

.who-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.6;
  min-width: 22px;
}
.who-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   ACTIVITIES (지그재그 배열)
────────────────────────────────────────────── */
.act-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.act-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(15,36,96,0.03);
  position: relative;
  z-index: 2;
}
.act-card:hover {
  border-color: var(--border-blue);
  box-shadow: 0 6px 24px rgba(27,58,138,0.08);
}

/* 번갈아 엇갈리는 배치 */
.act-card:nth-child(odd) {
  margin-right: 36px;
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
}
.act-card:nth-child(even) {
  margin-left: 36px;
  border-radius: var(--radius) var(--radius) 4px var(--radius);
}
.act-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.45;
  min-width: 20px;
  margin-top: 2px;
}
.act-content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
}
.act-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.act-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.act-card p {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ──────────────────────────────────────────────
   REVIEWS — 네이비 다크 배경
────────────────────────────────────────────── */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.review-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.2);
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #F5C842;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.review-info {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}

/* ──────────────────────────────────────────────
   BENEFITS
────────────────────────────────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.benefit-card {
  padding: 20px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.benefit-card:hover {
  border-color: var(--border-blue);
  background: var(--blue-pale);
}
.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 12px;
}
.benefit-card h4 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  line-height: 1.3;
}
.benefit-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ──────────────────────────────────────────────
   APPLY SECTION — 블루 그라디언트 (사선 절단 적용)
────────────────────────────────────────────── */
.apply-section {
  background: linear-gradient(145deg, var(--blue-navy) 0%, var(--blue) 100%);
  padding: 0;
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -5vw;
  position: relative;
  z-index: 5;
}
.apply-inner {
  padding: calc(60px + 5vw) 24px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apply-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.apply-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.apply-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 28px;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #fff;
  color: var(--blue-navy);
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  transition: var(--transition);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.btn-apply:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.apply-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
.footer {
  padding: 22px 24px;
  text-align: center;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.footer-logo svg { color: var(--blue); }
.footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────
   SCROLL ANIMATIONS
────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-cta-wrap { flex-direction: column; }
  .btn-ghost-white { justify-content: center; }
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────
   MODAL
────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 96, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-white);
  width: 100%;
  max-width: var(--mobile-w);
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

@media (min-width: 481px) {
  .modal-backdrop {
    align-items: center;
  }
  .modal-content {
    border-radius: 20px;
    max-height: 85vh;
  }
  .modal-backdrop.active .modal-content {
    transform: translateY(0) scale(1);
  }
  .modal-content {
    transform: translateY(20px) scale(0.95);
  }
}

.modal-header {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--bg-page);
  color: var(--text-dark);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ──────────────────────────────────────────────
   FORM ELEMENTS
────────────────────────────────────────────── */
.form-group {
  margin-bottom: 24px;
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.required {
  color: #EF4444;
  margin-left: 2px;
}

input[type="text"],
input[type="number"],
input[type="tel"],
select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-page);
  transition: var(--transition);
  font-family: inherit;
}
input::placeholder {
  color: var(--text-muted);
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(27,58,138,0.1);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  margin-bottom: 0;
}
.checkbox-label input {
  display: none;
}
.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--blue);
  border-color: var(--blue);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.conditional-input {
  margin-top: 8px;
  margin-left: 30px;
  width: calc(100% - 30px) !important;
  opacity: 0.5;
  pointer-events: none;
}
.conditional-input.active {
  opacity: 1;
  pointer-events: auto;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.form-group--consent {
  background: var(--blue-pale);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-blue);
}
.checkbox-label--large {
  font-weight: 700;
  color: var(--blue-navy);
}
.checkbox-label--large .checkbox-custom {
  margin-top: 4px;
}
.consent-desc {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 4px;
  line-height: 1.5;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--blue-navy);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
}
.btn-submit:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,36,96,0.25);
}
