/* ============================================================
   와이즈플랜랩 (WisePlanLab) 공통 디자인 시스템
   ============================================================ */
:root {
  --brand:       #2563EB;
  --brand-bright:#3B82F6;
  --brand-deep:  #1E3A8A;
  --brand-ink:   #0F172A;
  --brand-50:    #EFF6FF;
  --brand-100:   #DBEAFE;
  --accent-teal: #0D9488;
  --accent-amber:#D97706;
  --ink:         #1E293B;
  --muted:       #64748B;
  --bg:          #F8FAFC;
  --card:        #FFFFFF;
  --line:        #E2E8F0;
  --shadow:      0 22px 54px -22px rgba(15, 23, 42, 0.16);
  --shadow-sm:   0 8px 24px -10px rgba(15, 23, 42, 0.10);
  --font: "Pretendard Variable", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ───────── 공통 헤더 & 내비게이션 ───────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--brand-ink);
}
.logo .logo-en {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 2px 7px;
  border-radius: 6px;
}
nav.menu {
  display: flex;
  gap: 20px;
  flex: 1;
}
nav.menu a {
  color: #334155;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
  white-space: nowrap;
}
nav.menu a:hover,
nav.menu a.active {
  color: var(--brand);
}
nav.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width 0.2s;
}
nav.menu a:hover::after,
nav.menu a.active::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--brand-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  padding: 8px 22px 20px;
  z-index: 49;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  padding: 13px 4px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mm-cta {
  margin-top: 14px;
  background: var(--brand);
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 13px;
}
@media (min-width: 1020px) { .mobile-menu { display: none; } }
@media (max-width: 1019px) { nav.menu { display: none; } .hamburger { display: flex; } }
@media (max-width: 520px) { .nav-right .btn { display: none; } .logo .logo-en { display: none; } }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border-radius: 10px;
  padding: 12px 22px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
a.btn-primary,
.btn-primary {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.55);
}
a.btn-primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-bright);
  color: #fff;
  box-shadow: 0 16px 32px -10px rgba(37, 99, 235, 0.65);
}
a.btn-ghost,
.btn-ghost {
  background: #fff;
  color: var(--brand-ink);
  text-decoration: none;
  border-color: #CBD5E1;
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

/* ───────── 공통 컨테이너 & 섹션 ───────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 5px 13px;
  border-radius: 999px;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -0.03em;
  line-height: 1.24;
}
.section-head p {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* 페이지 상단 배너 (서브페이지 공통) */
.page-hero {
  background: linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--line);
  padding: 54px 24px 48px;
}
.page-hero-inner { max-width: 1000px; margin: 0 auto; }
.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.page-hero p.lead {
  margin-top: 14px;
  font-size: 17px;
  color: #475569;
  max-width: 740px;
  line-height: 1.65;
}

/* 카드 & 그리드 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: #CBD5E1;
}
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
}

/* 법적 고지 / 콘텐츠 문서 페이지 */
.doc-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 38px;
  margin: 40px auto 70px;
  box-shadow: var(--shadow-sm);
}
.doc-box h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-ink);
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.doc-box h2:first-child { margin-top: 0; }
.doc-box p, .doc-box li {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.75;
}
.doc-box ul, .doc-box ol { margin: 10px 0 16px 22px; }
.doc-box li { margin-bottom: 6px; }
.doc-box a:not(.btn) { color: var(--brand); text-decoration: underline; }
.doc-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
@media (max-width: 640px) { .doc-box { padding: 26px 20px; } }

/* ───────── 공통 푸터 ───────── */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 50px 24px 36px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.footer-tag { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-nav a { font-size: 14px; color: #475569; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--brand); }
.footer-family {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.footer-family .family-label { font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.footer-family a { font-size: 13px; color: var(--brand); text-decoration: none; font-weight: 600; }
.footer-family a:hover { text-decoration: underline; }
.footer-info { margin-top: 22px; }
.footer-info p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-info p b { color: var(--brand-ink); }
.footer-bottom { margin-top: 16px; font-size: 12.5px; color: #94A3B8; }

/* ───────── 에디토리얼 이미지 & 캡션 ───────── */
.editorial-figure {
  margin: 26px 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.editorial-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 11px;
}
.editorial-figure figcaption {
  margin-top: 10px;
  padding: 0 6px 2px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
