/* ===================================================================
   머스타드씨드 — 공통 스타일
   모바일 우선(기준 375px). 데스크톱은 가운데 정렬 확장.
   브랜드: 네이비 #1f2a5c / 옐로 #f5d000 / 화이트
   =================================================================== */

/* ---------- 디자인 토큰 ----------
   브랜드 상수(네이비·옐로)는 고정이고, 색 역할(배경·글자·면)은
   "시맨틱 토큰"으로 두어 라이트/다크 테마에서 값만 바뀝니다.
   테마 전환: 디폴트는 라이트(화이트)이며, 헤더 토글이
   <html data-theme="dark">를 지정할 때만 다크가 적용됩니다
   (기기 설정 prefers-color-scheme 자동적용은 하지 않음). */
:root {
  /* 브랜드 상수 (테마와 무관) */
  --navy:        #1f2a5c;
  --navy-deep:   #16204a;
  --navy-light:  #2c3a72;
  --yellow:      #f5d000;

  /* 시맨틱 토큰 — 라이트 기본값 */
  --bg:          #ffffff;              /* 페이지 배경 */
  --bg-soft:     #f6f7fb;              /* 옅은 섹션 배경 */
  --surface:     #ffffff;              /* 카드 배경 */
  --surface-2:   #f6f7fb;              /* 카드 안 인셋 칩 */
  --heading:     #1f2a5c;              /* 제목·강조 글자 (라이트=네이비) */
  --ink:         #1a1f33;              /* 본문 진한 글자 */
  --gray:        #6b7280;              /* 보조 글자 */
  --line:        #e5e7eb;              /* 구분선·카드 테두리 */
  --header-bg:   rgba(255, 255, 255, 0.92);
  --chip-expert: #eef1fb;              /* 전문가 사례 칩 배경 */
  --shadow-card: 0 6px 24px rgba(31, 42, 92, 0.08);

  --maxw:        720px;     /* 모바일 기준 콘텐츠 폭 */
  --maxw-wide:   1040px;    /* 데스크톱에서 넓게 쓰는 섹션 (숫자·카드) */
  --gap:         20px;      /* 좌우 기본 여백 */
  --radius:      16px;
  --cta-h:       64px;      /* 하단 고정 CTA 바 높이 */

  /* 모션 토큰 */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --dur:         0.6s;

  /* 어두운 섹션용 미세 그레인(노이즈) — 프리미엄 질감. 블렌드로 은은하게 올림 */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* 어두운 섹션 좌하단 깊이 글로우(네이비 라이트) */
  --glow-depth: radial-gradient(90% 70% at 8% 100%, rgba(44, 58, 114, 0.55) 0%, rgba(44, 58, 114, 0) 60%);

  color-scheme: light;
}

/* 어두운 섹션 공통 그레인 오버레이 — 텍스트(z-index:1) 아래, 배경 위 */
.hero::after,
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 140px 140px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* 다크 테마 토큰 값 — 디폴트는 화이트(라이트) 모드이고, 다크는 옵션.
   사용자가 헤더 토글로 data-theme="dark"를 켤 때만 적용된다
   (기기 설정 자동 적용은 하지 않음). */
:root[data-theme="dark"] {
  --bg:          #0e1424;
  --bg-soft:     #121a30;
  --surface:     #161f38;
  --surface-2:   #1d2745;
  --heading:     #eaf0ff;
  --ink:         #d7def0;
  --gray:        #98a2ba;
  --line:        #27324f;
  --header-bg:   rgba(14, 20, 36, 0.86);
  --chip-expert: #26315a;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* 테마 전환 시 부드럽게 (토글 직후 JS가 .theme-anim 을 잠깐 부여) */
.theme-anim,
.theme-anim .site-header,
.theme-anim .cta-bar,
.theme-anim .stat-card,
.theme-anim .case-card,
.theme-anim .org-card,
.theme-anim .svc-group,
.theme-anim .pkg-card,
.theme-anim .academy-card,
.theme-anim .compare-card,
.theme-anim .faq details,
.theme-anim .ad-chip,
.theme-anim .brand-chip,
.theme-anim .site-footer {
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

/* ---------- 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system,
               BlinkMacSystemFont, system-ui, "Segoe UI", Roboto,
               "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  /* 하단 고정 CTA 바에 콘텐츠가 가리지 않도록 여백 확보 */
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* 공통 섹션 래퍼 — 모바일 폭 기준으로 가운데 정렬 */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

/* 섹션 머리말 라벨 (예: BRAND STORY) */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--yellow);
  text-transform: uppercase;
}

/* ===================================================================
   상단 헤더
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 130;                 /* 오버레이(120)·CTA바(100) 위 — 로고/닫기/토글이 항상 최상단 */
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
/* 스크롤되면 헤더가 살짝 줄고 그림자가 생겨 떠 있는 느낌 */
.scrolled .site-header {
  border-bottom-color: transparent;
  box-shadow: 0 6px 24px rgba(31, 42, 92, 0.1);
}
.scrolled .site-header .wrap { height: 48px; }
.scrolled .brand .logo { width: 24px; height: 24px; }
/* 메뉴가 열려 있는 동안엔 축소·그림자 해제(오버레이와 한 몸) */
.menu-open .site-header { box-shadow: none; }
.menu-open.scrolled .site-header .wrap { height: 56px; }
/* 메뉴가 열리면 헤더 바는 투명 — 뒤의 오버레이와 한 몸처럼 보이게 */
.menu-open .site-header {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  transition: height 0.3s var(--ease);
}

/* 햄버거 버튼 (2선) — 열리면 X 로 모핑 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.2s ease;
}
.menu-open .nav-toggle span { background: #fff; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* 브랜드 로고 (네이비/화이트 두 버전 — 테마·메뉴 상태에 따라 교체) */
.brand { display: flex; align-items: center; gap: 9px; }
.brand .logo { width: 28px; height: 28px; flex: none; transition: width 0.3s var(--ease), height 0.3s var(--ease); }
.brand .logo-white { display: none; }
/* 워드마크(MUSTARDSEED) — 폰트 텍스트가 아니라 실제 로고 이미지에서 추출 */
.brand .wordmark {
  height: 17px;
  width: auto;
  flex: none;
  display: block;
  transition: height 0.3s var(--ease);
}
.brand .wordmark-white { display: none; }
.scrolled .brand .wordmark { height: 15px; }
/* 다크 테마: 흰 로고 + 흰 워드마크 */
:root[data-theme="dark"] .brand .logo-navy { display: none; }
:root[data-theme="dark"] .brand .logo-white { display: block; }
:root[data-theme="dark"] .brand .wordmark-navy { display: none; }
:root[data-theme="dark"] .brand .wordmark-white { display: block; }
/* 메뉴 열림(어두운 오버레이): 라이트 테마에서도 흰 로고 + 흰 워드마크 */
.menu-open .brand .logo-navy { display: none; }
.menu-open .brand .logo-white { display: block; }
.menu-open .brand .wordmark-navy { display: none; }
.menu-open .brand .wordmark-white { display: block; }

/* 헤더 우측 도구 묶음 (테마 토글 + 햄버거) */
.header-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 테마 토글 버튼 (해 ↔ 달) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--heading);
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 21px; height: 21px; }
/* 라이트일 때는 달(다크로 전환) 아이콘, 다크일 때는 해 아이콘 노출 */
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
/* 메뉴 오버레이가 열리면(어두운 배경) 토글 아이콘을 밝게 */
.menu-open .theme-toggle { color: #fff; }
.menu-open .theme-toggle:hover { background: rgba(255, 255, 255, 0.12); }

/* ===================================================================
   풀스크린 메뉴 오버레이 (body 직속 — 햄버거로 토글, 모바일·데스크톱 공통)
   =================================================================== */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 120;                 /* 헤더(130) 아래, CTA바(100) 위 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;    /* 메뉴를 위쪽으로 붙임 (가운데 X) */
  padding: 88px var(--gap) 40px;  /* 헤더(56px) 아래로 적당히 띄움 */
  overflow-y: auto;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(245, 208, 0, 0.10) 0%, rgba(245, 208, 0, 0) 55%),
    linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.menu-open .site-nav {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}
.nav-menu { list-style: none; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.nav-menu li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.nav-menu li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.nav-menu a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 2px;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s ease;
}
.menu-open .nav-menu a { opacity: 1; transform: none; }
.nav-menu .n {
  flex: none;
  width: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--yellow);
}
.nav-menu .en {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: color 0.2s ease;
}
.nav-menu .ko {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  word-break: keep-all;
}
.nav-menu a:hover .en,
.nav-menu a:focus-visible .en,
.nav-menu a.is-active .en { color: var(--yellow); }
.nav-menu a.is-active .n { color: #fff; }

/* 열릴 때 메뉴 항목 순차 등장(스태거) */
.menu-open .nav-menu li:nth-child(1) a { transition-delay: 0.06s; }
.menu-open .nav-menu li:nth-child(2) a { transition-delay: 0.12s; }
.menu-open .nav-menu li:nth-child(3) a { transition-delay: 0.18s; }
.menu-open .nav-menu li:nth-child(4) a { transition-delay: 0.24s; }
.menu-open .nav-menu li:nth-child(5) a { transition-delay: 0.30s; }

@media (min-width: 768px) {
  .nav-menu a { padding: 22px 2px; }
  .nav-menu .en { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: opacity 0.2s linear; }
  .nav-menu a { opacity: 1; transform: none; transition: color 0.2s ease; }
}

/* ===================================================================
   히어로
   =================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(245, 208, 0, 0.14) 0%, rgba(245, 208, 0, 0) 55%),
    var(--glow-depth),
    linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 42%, var(--navy-deep) 100%);
}
/* 히어로 배경 사진 + 네이비 오버레이 (텍스트 가독성 확보) */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(245, 208, 0, 0.16) 0%, rgba(245, 208, 0, 0) 55%),
    var(--glow-depth),
    linear-gradient(160deg, rgba(22, 32, 74, 0.94) 0%, rgba(31, 42, 92, 0.80) 48%, rgba(22, 32, 74, 0.92) 100%);
}

/* 배경 장식 — 로고 스크리블 원을 크게 흐리게 배치 */
.hero__deco {
  position: absolute;
  right: -70px;
  top: -40px;
  width: 320px;
  height: 320px;
  opacity: 0.12;
  pointer-events: none;
}
.hero__deco circle { fill: none; stroke: #fff; stroke-width: 3; }

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 56px;
}

.hero h1 {
  margin-top: 16px;
  font-size: 30px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.hero h1 .accent { color: var(--yellow); }

.hero__sub {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  word-break: keep-all;
}

/* 히어로 CTA 버튼들 */
.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(0) scale(0.97); }
.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
/* 마우스가 있는 환경에서만 호버 효과(터치는 눌림 피드백만) */
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 208, 0, 0.4); }
  .btn--ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active, .btn--primary:hover, .btn--ghost:hover { transform: none; transition: none; }
}

/* 히어로 하단 미니 타임라인 (시작 · 기준 · 지금) */
.timeline {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.timeline__item .k {
  font-size: 14px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 6px;
}
.timeline__item .v {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  word-break: keep-all;
}

/* ===================================================================
   숫자 카운터
   =================================================================== */
.stats {
  background: var(--bg-soft);
  padding-top: 52px;
  padding-bottom: 52px;
}
.stats__head { text-align: center; margin-bottom: 30px; }
.stats__head h2 {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
  word-break: keep-all;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-card .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-card .num .suffix { font-size: 18px; margin-left: 2px; }
.stat-card .label {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: keep-all;
}
.stat-card .note {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--gray);
  word-break: keep-all;
}

/* 강조 카드 (틱톡 MCN 1위) — 가로 전체 */
.stat-highlight {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-highlight .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-highlight .num .suffix { font-size: 20px; margin-left: 1px; }
.stat-highlight .label {
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  word-break: keep-all;
}
.stat-highlight .label small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* 브랜드별 최고 조회수 TOP 5 (막대 그래프) */
.topbrands {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
}
.topbrands__head { margin-bottom: 14px; }
.topbrands__head .eyebrow { margin-bottom: 4px; }
.topbrands__head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.topbrands__list { list-style: none; margin: 0; padding: 0; }
.tb-row {
  display: grid;
  grid-template-columns: 20px minmax(72px, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.tb-row:last-child { border-bottom: 0; }
.tb-rank { font-size: 14px; font-weight: 800; color: var(--heading); text-align: center; }
.tb-brand { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.tb-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.tb-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-light), var(--navy));
  transition: width 0.9s var(--ease);
}
.topbrands.is-in .tb-fill { width: var(--w); }
.tb-views {
  font-size: 14px;
  font-weight: 800;
  color: var(--heading);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .tb-fill { transition: none; }
}

/* ===================================================================
   성과 마퀴 띠 (공통) — 핵심 숫자를 무한 스크롤로 흘려 섹션을 구분
   =================================================================== */
.marquee {
  overflow: hidden;
  background: linear-gradient(100deg, var(--navy-light), var(--navy) 50%, var(--navy-deep));
  color: #fff;
}
.marquee__track {
  display: flex;
  width: max-content;
  padding: 13px 0;
  will-change: transform;
  animation: marquee-roll 32s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 22px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}
@keyframes marquee-roll { to { transform: translateX(-50%); } }
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px var(--gap);
  }
}

/* ===================================================================
   하단 고정 CTA 바 (모든 페이지 공통)
   전화 · 카카오톡 · 상담 신청
   =================================================================== */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: calc(var(--cta-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(31, 42, 92, 0.08);
}
.cta-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--cta-h);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.cta-bar a svg { width: 22px; height: 22px; transition: transform 0.15s var(--ease); }
.cta-bar a.is-primary { background: var(--yellow); color: var(--navy); flex: 1.3; }
.cta-bar a.is-kakao { background: #fee500; color: #191600; }
.cta-bar a + a { border-left: 1px solid var(--line); }
/* 탭 피드백 — 누르면 살짝 어두워지고 아이콘이 톡 */
.cta-bar a {
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.15s ease, background-color 0.18s ease;
}
.cta-bar a:active { filter: brightness(0.93); }
.cta-bar a:active svg { transform: translateY(-2px); }
@media (hover: hover) {
  .cta-bar a:hover svg { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-bar a, .cta-bar a svg { transition: none; }
  .cta-bar a:active svg, .cta-bar a:hover svg { transform: none; }
}

/* ===================================================================
   데스크톱 보정 — 모바일 레이아웃을 가운데로 확장
   =================================================================== */
@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 16px; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card .num { font-size: 34px; }
  /* 넓은 화면에서는 고정 바를 가운데 카드 형태로 */
  .cta-bar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--maxw);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
  }
}

/* ===================================================================
   공통 섹션 머리말 (3대 사업 · 사례 · 브랜드)
   =================================================================== */
.section { padding-top: 54px; padding-bottom: 54px; }
.section__head { margin-bottom: 26px; }
.section__head h2 {
  margin-top: 10px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
  line-height: 1.34;
  word-break: keep-all;
}
.section__head p.lead {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--gray);
  word-break: keep-all;
}

/* ===================================================================
   3대 사업 카드
   =================================================================== */
.services { display: grid; gap: 14px; }
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 190px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(150deg, var(--navy-light), var(--navy) 60%, var(--navy-deep));
  box-shadow: var(--shadow-card);
}
/* 사업 카드 배경 사진 + 어둡게 깔기 */
.service-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 32, 74, 0.35) 0%, rgba(22, 32, 74, 0.72) 55%, rgba(16, 24, 56, 0.92) 100%);
}
.service-card > * { position: relative; z-index: 2; }
.service-card .idx {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}
.service-card h3 {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.service-card p {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  word-break: keep-all;
}
.service-card .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===================================================================
   대표 사례 캐러셀 (가로 스크롤 스냅)
   =================================================================== */
.cases-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  /* 좌우로 더 스크롤되는 느낌을 주는 여백 */
  margin-left: calc(var(--gap) * -1);
  margin-right: calc(var(--gap) * -1);
  padding-left: var(--gap);
  padding-right: var(--gap);
  scrollbar-width: none;
}
.cases-scroller::-webkit-scrollbar { display: none; }

.case-card {
  flex: 0 0 72%;
  max-width: 280px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}
.case-card .ctype {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
}
.case-card .ctype.is-expert  { background: var(--chip-expert); color: var(--heading); }
.case-card .ctype.is-creator { background: #fff6cc; color: #8a6d00; }
.case-card .metric {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.case-card .metric small { font-size: 13px; font-weight: 600; color: var(--gray); margin-left: 4px; }
.case-card .desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray);
  word-break: keep-all;
}
.case-card .followers {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}
.case-card .who {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.case-card .avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.case-card .who .name { font-size: 14px; font-weight: 700; }
.case-card .who .role { font-size: 12px; color: var(--gray); word-break: keep-all; }

/* 스와이프 힌트 */
.swipe-hint { margin-top: 2px; font-size: 12px; color: var(--gray); }

/* ===================================================================
   협업 브랜드 로고 롤링 (마퀴)
   =================================================================== */
.brands { background: var(--bg-soft); overflow: hidden; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marquee 40s linear infinite;
}
.marquee + .marquee { margin-top: 10px; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.brand-chip {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================================
   문의 CTA (네이비 마감 섹션)
   =================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(245, 208, 0, 0.12) 0%, rgba(245, 208, 0, 0) 55%),
    var(--glow-depth),
    linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
}
.contact .wrap { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.contact h2 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.contact__actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .case-card { flex-basis: 300px; }
  .contact__actions { flex-direction: row; justify-content: center; max-width: none; }
  .contact__actions .btn { min-width: 180px; }
}

/* ===================================================================
   페이지 공통 서브 히어로 (about 등 하위 페이지 상단)
   =================================================================== */
.page-hero {
  color: #fff;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(245, 208, 0, 0.14) 0%, rgba(245, 208, 0, 0) 55%),
    linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.page-hero .wrap { padding-top: 44px; padding-bottom: 44px; }
.page-hero h1 {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.34;
  word-break: keep-all;
}
.page-hero p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  word-break: keep-all;
}

/* ===================================================================
   대표 소개 (CEO)
   =================================================================== */
.ceo { display: grid; gap: 22px; }
.ceo__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-card);
}
.ceo__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.ceo__name { font-size: 22px; font-weight: 800; color: var(--heading); }
.ceo__role { margin-top: 4px; font-size: 14px; color: var(--gray); }
.ceo__info {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ceo__info li {
  list-style: none;
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  word-break: keep-all;
}
.ceo__info .k {
  flex: none;
  width: 54px;
  font-weight: 700;
  color: var(--heading);
}

/* 대표 성과 칩 (10년) */
.ceo__stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ceo__stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.ceo__stat .n { font-size: 22px; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.ceo__stat .t { margin-top: 2px; font-size: 12px; color: var(--gray); word-break: keep-all; }

/* 틱톡 MCN TOP1 배너 */
.top1 {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.top1 .period { font-size: 13px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.04em; }
.top1 .big { margin-top: 6px; font-size: 26px; font-weight: 800; }
.top1 .big b { color: var(--yellow); }
.top1 .desc { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.78); word-break: keep-all; }

/* ===================================================================
   조직
   =================================================================== */
.org { display: grid; gap: 12px; }
.org-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}
.org-card .en {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--yellow);
}
.org-card h3 { margin-top: 4px; font-size: 17px; font-weight: 800; color: var(--heading); }
.org-card p { margin-top: 8px; font-size: 13.5px; color: var(--gray); line-height: 1.6; word-break: keep-all; }
.org-support {
  margin-top: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink);
  word-break: keep-all;
}
.org-support strong { color: var(--heading); }

/* ===================================================================
   아카데미 실적
   =================================================================== */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.academy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.academy-card .en { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--gray); }
.academy-card .n { margin-top: 6px; font-size: 22px; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.academy-card .t { margin-top: 4px; font-size: 12.5px; color: var(--gray); word-break: keep-all; }

/* ===================================================================
   언론보도
   =================================================================== */
.press-list { display: flex; flex-direction: column; }
.press-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 4px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.press-item:last-child { border-bottom: 1px solid var(--line); }
.press-item .date { font-size: 13px; font-weight: 800; color: var(--heading); }
.press-item .outlet { font-size: 12px; color: var(--gray); }
.press-item .title {
  grid-column: 2;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  word-break: keep-all;
}
.press-item a.title:hover { color: var(--heading); text-decoration: underline; }

@media (min-width: 768px) {
  .page-hero h1 { font-size: 34px; }
  .ceo { grid-template-columns: 300px 1fr; align-items: start; }
  .ceo__stats { grid-template-columns: repeat(3, 1fr); }
  .org { grid-template-columns: repeat(2, 1fr); }
  .academy-grid { grid-template-columns: repeat(4, 1fr); }
  .press-item { grid-template-columns: 110px 160px 1fr; align-items: baseline; }
  .press-item .title { grid-column: 3; }
}

/* ===================================================================
   프로그램 — 전문가/일반인 비교
   =================================================================== */
.compare { display: grid; gap: 12px; }
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.compare-card.is-core { border: 2px solid var(--navy); }
.compare-card .en { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--yellow); }
.compare-card h3 { margin-top: 4px; font-size: 19px; font-weight: 800; color: var(--heading); }
.compare-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  word-break: keep-all;
}
.compare-row:first-of-type { margin-top: 10px; }
.compare-row dt { font-weight: 700; color: var(--heading); }
.compare-row dd { color: var(--ink); }

/* 성장 프로그램 보장 밴드 */
.band {
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(245, 208, 0, 0.14) 0%, rgba(245, 208, 0, 0) 55%),
    linear-gradient(160deg, var(--navy-light), var(--navy) 55%, var(--navy-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 20px;
}
.band-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
.band-stat .n { font-size: 26px; font-weight: 800; color: var(--yellow); letter-spacing: -0.02em; }
.band-stat .t { margin-top: 4px; font-size: 13.5px; font-weight: 700; }
.band-stat .s { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, 0.68); word-break: keep-all; }

/* ===================================================================
   15가지 서비스 (교육 · 제작 · 운영 · 연결)
   =================================================================== */
.svc-groups { display: grid; gap: 12px; }
.svc-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.svc-group .cat-en { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--yellow); }
.svc-group h3 { margin-top: 3px; font-size: 16px; font-weight: 800; color: var(--heading); }
.svc-group ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-group li {
  list-style: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  color: var(--ink);
}

/* ===================================================================
   패키지 가격표 (가로 스와이프)
   =================================================================== */
.pkg-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gap) * -1);
  padding: 4px var(--gap) 14px;
  scrollbar-width: none;
}
.pkg-scroller::-webkit-scrollbar { display: none; }
.pkg-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pkg-head { background: var(--navy); color: #fff; padding: 16px; text-align: center; }
.pkg-card.is-highlight .pkg-head { background: var(--yellow); color: var(--navy); }
.pkg-name { font-size: 13px; font-weight: 700; opacity: 0.92; }
.pkg-price { margin-top: 4px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.pkg-body { padding: 4px 14px 14px; }
.pkg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.pkg-row:first-child { border-top: none; }
.pkg-f { color: var(--gray); }
.pkg-row .ok { color: var(--heading); font-weight: 800; }
.pkg-row .no { color: #cbd0da; }
.pkg-row .val { font-weight: 700; color: var(--ink); }
.pkg-note { margin-top: 14px; font-size: 12px; color: var(--gray); line-height: 1.6; word-break: keep-all; }

/* ===================================================================
   FAQ (AEO)
   =================================================================== */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  word-break: keep-all;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--gray); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 16px 16px; font-size: 14px; line-height: 1.7; color: var(--ink); word-break: keep-all; }

/* ===================================================================
   사례 페이지 — 그리드 + 광고 레퍼런스
   =================================================================== */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.case-grid .case-card { flex: initial; max-width: none; padding: 18px 16px; }
.case-grid .case-card .metric { font-size: 23px; margin-top: 12px; }

.ads-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ad-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ad-brand { font-size: 14px; font-weight: 700; color: var(--heading); word-break: keep-all; }
.ad-views { font-size: 12.5px; color: var(--gray); font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .compare { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-groups { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .ads-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===================================================================
   사업자 정보 푸터 (전 페이지 공통)
   =================================================================== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
}
/* 푸터 상단 사이트 메뉴 (햄버거를 못 찾는 사용자용 보조 내비) */
.site-footer .foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.site-footer .foot-nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}
.site-footer .foot-nav a:hover { color: var(--yellow); }
.site-footer .foot-brand { font-size: 14px; font-weight: 800; color: var(--heading); }
.site-footer .foot-info {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12.5px;
  color: var(--gray);
}
.site-footer .foot-info a { color: var(--gray); }
.site-footer .foot-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
}
.site-footer .foot-links a { color: var(--heading); font-weight: 700; }
.site-footer .foot-copy { color: var(--gray); margin-left: auto; font-weight: 500; }

/* ===================================================================
   상담 신청 폼 (contact.html)
   =================================================================== */
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-lead { color: var(--gray); font-size: 14px; line-height: 1.7; margin-bottom: 26px; word-break: keep-all; }
.inquiry-form { display: flex; flex-direction: column; gap: 18px; position: relative; }
.inquiry-form .field { display: flex; flex-direction: column; gap: 7px; }
.inquiry-form label { font-size: 13.5px; font-weight: 700; color: var(--heading); }
.inquiry-form label .req { color: #e4572e; margin-left: 3px; }
.inquiry-form label .opt { color: var(--gray); font-weight: 600; font-size: 12px; margin-left: 4px; }
.inquiry-form input[type="text"],
.inquiry-form input[type="tel"],
.inquiry-form input[type="email"],
.inquiry-form input[type="url"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;               /* iOS 포커스 자동 확대 방지(16px 이상) */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.inquiry-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder { color: var(--gray); opacity: 0.8; }
/* 셀렉트 커스텀 화살표 */
.inquiry-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.inquiry-form :is(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 42, 92, 0.12);
}
:root[data-theme="dark"] .inquiry-form :is(input, select, textarea):focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 208, 0, 0.18);
}
/* 두 칸 묶음(데스크톱에서 2열) */
.inquiry-form .grid2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
/* 개인정보 동의 */
.inquiry-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.inquiry-form .consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.inquiry-form .consent label { font-weight: 600; color: var(--ink); font-size: 13px; line-height: 1.6; }
.inquiry-form .consent a { color: var(--heading); text-decoration: underline; }
/* 허니팟(스팸 방지) — 화면에서 숨김. left:-9999px 대신 clip으로 레이아웃 영향 제거 */
.inquiry-form .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
.inquiry-form button[type="submit"] { width: 100%; margin-top: 6px; }
.inquiry-form button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }
/* 제출 결과 안내 */
.form-status {
  display: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  padding: 13px 15px;
  border-radius: 12px;
  word-break: keep-all;
}
.form-status.is-ok { display: block; background: #e7f6ec; color: #176b36; border: 1px solid #b7e2c6; }
.form-status.is-error { display: block; background: #fdecea; color: #b3261e; border: 1px solid #f5c6c0; }
:root[data-theme="dark"] .form-status.is-ok { background: #15321f; color: #86e0a4; border-color: #1f5733; }
:root[data-theme="dark"] .form-status.is-error { background: #3a1d1b; color: #f3a79e; border-color: #6b2b26; }
@media (min-width: 768px) {
  .inquiry-form .grid2 { grid-template-columns: 1fr 1fr; }
}

/* ===================================================================
   법적 문서 (개인정보처리방침 등)
   =================================================================== */
.legal { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.legal .meta { color: var(--gray); font-size: 13px; margin-bottom: 8px; }
.legal h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  margin: 30px 0 10px;
  word-break: keep-all;
}
.legal h2:first-of-type { margin-top: 8px; }
.legal p { margin: 8px 0; word-break: keep-all; }
.legal ul { margin: 8px 0 8px 18px; }
.legal li { margin: 5px 0; word-break: keep-all; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}
.legal th { background: var(--bg-soft); color: var(--heading); font-weight: 700; }

/* ---------- 등장 애니메이션 ----------
   JS가 켜져 있을 때(html.js)만 숨겼다가 나타나게 한다.
   JS가 없거나 느릴 때도 콘텐츠는 항상 보이도록(접근성·SEO) 함. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* 등장이 끝나면 합성 레이어 해제 */
.js .reveal.is-in { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
