/* ═══════════════════════════════════════════════════════════
   ESEO — eseoinc.com  ·  B안 (프라다형 구조)
   디자인 토큰: docs_web/design-tokens-web-v1.0.md
   raw 값 하드코딩 금지. 반드시 var(--semantic-토큰) 사용.

   A안(styles.css)과의 차이
   · 모서리 각짐 — radius 토큰 미사용
   · 그림자 없음 — shadow 토큰 미사용
   · 전체 폭(full-bleed) 미디어 + 가운데 정렬
   · 버튼 대신 밑줄 링크
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Primitive: Color ─────────────────────── */
  --neutral-0: #ffffff;
  --neutral-100: #d9d9d9;
  --neutral-500: #6d6e71;
  --neutral-700: #484848;
  --neutral-900: #1c1b1a;
  --cream-50: #fdfcf8;
  --cream-100: #f0ede8;
  --cream-200: #efe3d0;
  --blue-500: #0f52ba;
  --red-500: #e45353;
  --shadow-base: #e2dbd1;

  /* ── Primitive: Border ────────────────────── */
  --border-hairline: 0.3px;
  --border-default: 1px;
  --border-strong: 2px;

  /* ── Primitive: Radius (design-tokens-web-v1.0.md) ─── */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* ── Primitive: Type ──────────────────────── */
  --font-family-base: 'A2Z', -apple-system, BlinkMacSystemFont,
                      'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --font-2xs: 10px;   /* 푸터 fine print (sm 12에서 -2) */
  --font-sm: 12px;
  --font-md: 14px;
  --font-base: 16px;
  --font-lg: 20px;
  --font-xl: 32px;
  --font-hero: 40px;   /* 히어로 제목 전용 (xl 32 · 2xl 48 사이) */
  --font-2xl: 48px;
  --line-sm: 16px;
  --line-md: 22px;
  --line-relaxed: 28px;
  --line-web-body: 26px;
  --line-web-h1: 44px;
  --line-web-display: 60px;
  --line-hero: 54px;

  /* ── Primitive: Spacing ───────────────────── */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;

  /* ── Semantic ─────────────────────────────── */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-500);
  --text-on-brand: var(--neutral-0);
  --bg-app: var(--cream-50);
  --bg-surface: var(--cream-100);
  --bg-surface-premium: var(--cream-200);
  --surface-inverse: var(--neutral-900);
  --border-subtle: var(--neutral-100);
  --border-strong-color: var(--neutral-900);
  --brand-primary: var(--blue-500);
  --brand-primary-hover: #0d47a3;
  --focus-ring: var(--brand-primary);

  /* 사진이 들어갈 자리 — 실제 이미지 확보 시 교체 */
  --bg-media: var(--neutral-100);

  /* ── Gradient (티어 표시에만 사용) ─────────── */
  --gradient-tier-green: linear-gradient(135deg, #d0efd2, #a5e2ba);
  --gradient-tier-red: linear-gradient(135deg, #efd0d0, #e2a8a5);
  --gradient-tier-silver: linear-gradient(135deg, #dedede, #cbcbcb);
  --gradient-tier-gold: linear-gradient(135deg, #efe3d0, #e2cba5);
  --gradient-tier-blue: linear-gradient(135deg, #d0eaef, #a5dbe2);

  /* ── Layout ───────────────────────────────── */
  --container-max: 1120px;
  --container-narrow: 760px;
  --container-pad: 40px;
  --measure-text: 68ch;
  --touch-min: 44px;
  --header-h: 60px;
  --z-sticky: 100;
  --z-overlay: 200;

  /* ── Motion ───────────────────────────────── */
  --duration-fast: 120ms;
  --duration-base: 160ms;
  --duration-slow: 400ms;
  --duration-dropdown: 320ms;   /* 드롭다운/메뉴 펼침 — 느리고 부드럽게 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
  :root {
    --space-64: 48px;
    --space-96: 64px;
    --space-128: 80px;
    --font-2xl: 32px;
    --font-xl: 24px;
    --font-hero: 28px;
    --line-hero: 40px;
    --line-web-display: 44px;
    --line-web-h1: 34px;
    --container-pad: 20px;
    --header-h: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   Base
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-family-base);
  font-size: var(--font-base);
  line-height: var(--line-web-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: var(--space-20); }

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

:focus-visible {
  outline: var(--border-strong) solid var(--focus-ring);
  outline-offset: 3px;
}

/* 밑줄 링크 — 프라다식 CTA */
.link-underline {
  display: inline-block;
  font-size: var(--font-md);
  line-height: var(--touch-min);
  letter-spacing: .06em;
  border-bottom: var(--border-default) solid currentColor;
  transition: opacity var(--duration-base) var(--ease-out);
}
.link-underline:hover { opacity: .6; }

/* ═══════════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════════ */

.type-display {
  /* 히어로 제목 — 48→40px 로 축소, Bold(700) */
  font-size: var(--font-hero);
  line-height: var(--line-hero);
  font-weight: var(--weight-bold);
  letter-spacing: .01em;
}
.type-h1 {
  font-size: var(--font-xl);
  line-height: var(--line-web-h1);
  font-weight: var(--weight-light);
  letter-spacing: .04em;
}
.type-h2 {
  font-size: var(--font-lg);
  line-height: var(--line-relaxed);
  font-weight: var(--weight-light);
  letter-spacing: .04em;
}
.type-h3 {
  font-size: var(--font-base);
  line-height: var(--line-md);
  font-weight: var(--weight-medium);
}
.type-body { font-size: var(--font-base); line-height: var(--line-web-body); }
.type-body-small { font-size: var(--font-md); line-height: var(--line-md); }
.type-caption { font-size: var(--font-sm); line-height: var(--line-sm); }

.text-secondary { color: var(--text-secondary); }

/* 넓은 자간의 작은 라벨 — 프라다의 카테고리 표기 */
.eyebrow {
  display: block;
  font-size: var(--font-sm);
  line-height: var(--line-sm);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.container-narrow { max-width: var(--container-narrow); }

.center { text-align: center; }
.stack-sm > * + * { margin-top: var(--space-12); }
.stack > * + * { margin-top: var(--space-24); }

.section { padding-block: var(--space-96); }
.section-tight { padding-block: var(--space-64); }
/* 회사 소개 — 히어로와의 상단 여백 1.5배 */
#about { padding-top: calc(var(--space-96) * 1.5); }

/* ═══════════════════════════════════════════════════════════
   Header — 얇은 고정 바, 가운데 워드마크
   ═══════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-app);
  border-bottom: var(--border-default) solid var(--border-subtle);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding-inline: var(--container-pad);
}
.header-left { display: flex; gap: var(--space-32); min-height: var(--touch-min); }
.header-right { display: flex; gap: var(--space-32); justify-content: flex-end; }

.header-link {
  display: inline-block;
  font-size: var(--font-sm);
  line-height: var(--touch-min);
  letter-spacing: .1em;
  color: var(--text-primary);
  transition: opacity var(--duration-base) var(--ease-out);
  /* 버튼으로 쓰이는 경우 기본 스타일 제거 */
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.header-link:hover { opacity: .55; }

/* 현재 위치 표시 직선 — 텍스트 바로 아래(기존보다 8px 위), 텍스트 폭에 맞춤 */
.header-link.is-current { position: relative; }
.header-link.is-current::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: var(--border-default);
  background: var(--text-primary);
}
/* 「서비스」는 캐럿(▾)이 있어 그 폭만큼 직선에서 제외 → 한글 텍스트 폭과 동일 */
.dropdown-toggle.is-current::before { right: 15px; }

/* ── 서비스 드롭다운 ──────────────────────────────── */
.has-dropdown { position: relative; }
.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 6px;
  border-right: var(--border-default) solid currentColor;
  border-bottom: var(--border-default) solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--duration-base) var(--ease-out);
}
.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown.is-open .dropdown-toggle::after { transform: translateY(0) rotate(-135deg); }

.dropdown-panel {
  position: fixed;
  top: calc(var(--header-h) + var(--space-8));
  /* 화면(뷰포트) 오른쪽 끝에서 4px 떨어지게 고정 */
  right: 4px;
  left: auto;
  min-width: 240px;
  /* 배경만 80% 불투명 (글자는 선명하게 유지) */
  background: rgba(253, 252, 248, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--border-default) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;   /* 반투명 배경이 둥근 모서리를 넘지 않도록 클립 */
  padding: var(--space-8);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--duration-dropdown) var(--ease-out),
              transform var(--duration-dropdown) var(--ease-out),
              visibility var(--duration-dropdown);
  z-index: var(--z-overlay);
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel,
.has-dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  /* 아이콘이 박스 왼쪽 라인과 텍스트의 정중앙에 오도록:
     왼쪽공간(패널패딩 8 + 항목패딩 12 = 20) = 오른쪽 gap(20) */
  gap: var(--space-20);
  padding: var(--space-12) var(--space-16) var(--space-12) var(--space-12);
  border-radius: var(--radius-md);
  transition: background var(--duration-base) var(--ease-out);
}
.dropdown-item:hover { background: var(--bg-surface); }
.dropdown-icon {
  flex: none;
  width: 33px;
  height: auto;
}
.dropdown-text { display: block; }
.dropdown-name {
  display: block;
  font-size: var(--font-base);
  line-height: var(--line-md);
  font-weight: var(--weight-medium);
  letter-spacing: .04em;
}
.dropdown-item.is-active .dropdown-name { color: var(--brand-primary); }
.dropdown-desc {
  display: block;
  font-size: var(--font-sm);
  line-height: var(--line-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.wordmark { display: block; }
.wordmark img {
  height: 20px;
  width: auto;
  transition: opacity var(--duration-base) var(--ease-out);
}
.wordmark:hover img { opacity: .6; }

/* ── 햄버거(3선) 버튼 ─────────────────────────────── */
.nav-toggle {
  display: none;   /* 데스크톱 숨김, 모바일에서 표시 */
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  margin-right: calc(var(--space-12) * -1);   /* 우측 끝에 붙임 */
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-primary);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { content: ''; position: absolute; left: 0; top: -7px; }
.nav-toggle-bars::after  { content: ''; position: absolute; left: 0; top: 7px; }

/* 열렸을 때 X 로 변형 */
.nav-toggle.is-open .nav-toggle-bars { background: transparent; }
.nav-toggle.is-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* ── 모바일 ───────────────────────────────────────── */
@media (max-width: 767px) {
  /* 우측 그룹에서 텍스트 링크·서비스 드롭다운은 숨기고 햄버거만 노출 */
  .header-right .header-link,
  .header-right .has-dropdown { display: none; }
  .nav-toggle { display: inline-flex; }
  .wordmark img { height: 16px; }

  /* 하단 드롭박스 — 헤더 아래 오른쪽에 상자 형태로 펼침 */
  .mobile-nav {
    display: flex;   /* 항상 flex, opacity/visibility 로 열고 닫음(부드러운 전환) */
    position: absolute;
    top: calc(100% + var(--space-8));
    right: var(--container-pad);
    min-width: 200px;
    z-index: var(--z-overlay);
    flex-direction: column;
    padding: var(--space-8);
    background: rgba(253, 252, 248, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--border-default) solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity var(--duration-dropdown) var(--ease-out),
                transform var(--duration-dropdown) var(--ease-out),
                visibility var(--duration-dropdown);
  }
  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-nav a {
    padding: var(--space-12) var(--space-16);
    border-radius: var(--radius-md);
    font-size: var(--font-md);
    line-height: var(--line-md);
    letter-spacing: .04em;
    transition: background var(--duration-base) var(--ease-out);
  }
  .mobile-nav a:hover { background: var(--bg-surface); }
}
@media (min-width: 768px) { .mobile-nav { display: none; } }

/* ═══════════════════════════════════════════════════════════
   HEX 히어로 — 좌측 텍스트 + 우측 아이폰 목업
   ═══════════════════════════════════════════════════════════ */

/* 스크롤 스냅 — HEX 소개 페이지(html.snap)에서만 블록 단위로 강제 정렬.
   회사 소개 등 다른 페이지에는 적용되지 않는다. */
html { scroll-padding-top: var(--header-h); }
html.snap { scroll-snap-type: y mandatory; }

.hex-stage {
  /* HEX 앱 시그니처 색 — 위(크림)에서 아래(티어 블루)로 세로 그라데이션 */
  background: linear-gradient(180deg,
    var(--cream-50) 0%,
    #dcecf2 58%,
    #d0eaef 100%);
  border-bottom: var(--border-default) solid var(--border-subtle);
}
.hex-stage-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-64);
  align-items: start;
  position: relative;
  left: 20px;          /* 텍스트·아이폰 전체를 오른쪽으로 20px 이동 (sticky 유지) */
}

/* 왼쪽: 한 블록 = 한 화면, 세로 중앙, 스냅 지점 */
.hex-snap {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  scroll-snap-align: start;
  max-width: 48ch;
  padding-block: var(--space-64);
}
.hex-hero-logo { width: 252px; height: auto; margin-bottom: 72px; }
.hex-snap h1 {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
  font-size: var(--font-xl);
  line-height: var(--line-web-h1);
}
.hex-snap h2 { margin-bottom: var(--space-16); font-weight: var(--weight-medium); }
.hex-snap p { color: var(--text-secondary); }

/* 오른쪽 아이폰 + 인디케이터 — 모든 블록 동안 화면 정중앙 고정 */
.hex-hero-device {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-32);
}

/* 세로 점 인디케이터 */
.hex-dots {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.hex-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--neutral-100);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.hex-dot:hover { background: var(--neutral-500); }
.hex-dot.is-active { background: var(--neutral-900); transform: scale(1.25); }

/* 마지막 블록 뒤 푸터도 스냅 지점 */
.site-footer { scroll-snap-align: start; }

@media (max-width: 900px) {
  html.snap { scroll-snap-type: none; }   /* 모바일은 스냅·고정 해제 */
  .hex-stage-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-48);
    left: 0;   /* 모바일은 이동 해제 */
  }
  .hex-snap {
    min-height: 0;
    padding-block: var(--space-64);
    max-width: none;
  }
  .hex-snap:first-child { padding-top: var(--space-96); }
  .hex-hero-logo { margin-inline: auto; }
  .hex-hero-device { position: static; height: auto; order: -1; }  /* 폰을 맨 위로 */
  .hex-dots { display: none; }   /* 모바일은 인디케이터 숨김 */
}

/* iPhone 17 Pro 목업 (순수 CSS) — 매트 블랙 프레임 + 다이나믹 아일랜드 */
.iphone {
  position: relative;
  width: 312px;
  aspect-ratio: 100 / 205;         /* 시뮬레이터 외형 비율에 근접 */
  border-radius: 60px;
  padding: 11px;                   /* 검은 프레임(베젤) 두께 */
  background: linear-gradient(150deg, #26262a 0%, #0a0a0b 30%, #0a0a0b 70%, #202024 100%);
  box-shadow:
    inset 0 0 0 1.5px #000,
    inset 0 0 0 2.5px rgba(255, 255, 255, .06),
    0 34px 70px rgba(28, 27, 26, .30),
    0 10px 24px rgba(28, 27, 26, .18);
}
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 49px;
  overflow: hidden;
  background: var(--bg-media);      /* 앱 스크린샷 삽입 전 회색 자리 */
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

/* 측면 버튼 (검정) */
.ip-btn {
  position: absolute;
  background: linear-gradient(180deg, #2a2a2e, #0c0c0d);
  border-radius: 2px;
  z-index: 1;
}
.ip-action { left: -2px; top: 132px; width: 3px; height: 30px; }   /* 액션 버튼 */
.ip-volup  { left: -2px; top: 184px; width: 3px; height: 54px; }   /* 볼륨 + */
.ip-voldn  { left: -2px; top: 252px; width: 3px; height: 54px; }   /* 볼륨 − */
.ip-power  { right: -2px; top: 208px; width: 3px; height: 82px; }  /* 전원 */
/* 아이폰 안 화면 필름 — 프레임을 세로로 쌓고, 스크롤에 맞춰 위로 이동 */
.iphone-film {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}
.iphone-film img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}
/* 스플래시(전체화면 로고)는 중앙 기준으로 담는다 */
.iphone-film img.is-centered {
  object-position: center;
}
/* 여러 화면을 겹쳐 크로스페이드로 순환하는 프레임 */
.film-frame {
  position: relative;
  width: 100%;
}
.film-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.film-frame img.is-on {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .film-frame img { transition: none; }
}
.iphone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #060606;
  border-radius: var(--radius-pill);
  z-index: 3;
}
.iphone-ph { text-align: center; color: var(--text-secondary); }
.iphone-ph img { width: 56px; height: auto; opacity: .45; margin: 0 auto var(--space-8); }

@media (max-width: 400px) { .iphone { width: 260px; } }

/* ═══════════════════════════════════════════════════════════
   Media — 사진이 들어갈 자리
   ⚠️ 지금은 회색 솔리드. 실제 사진 확보 시 background-image 로 교체.
   ═══════════════════════════════════════════════════════════ */

.media {
  position: relative;
  background: var(--bg-media);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media-hero { min-height: calc(100svh - var(--header-h)); }
.media-band { min-height: 72svh; }
.media-tile { aspect-ratio: 3 / 4; }
.media-wide { aspect-ratio: 16 / 9; }

/* ── 실제 이미지가 적용된 슬롯 ─────────────────────
   .has-image 를 붙이면 회색 플레이스홀더 라벨이 사라진다.
   회색 배경(--bg-media)은 이미지 로딩 전 바탕으로 그대로 남긴다. */
.media.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.media.has-image::after { content: none; }

.hero-landing {
  background-image: url('assets/generated/hero/event-b.jpg');
  background-image: image-set(
    url('assets/generated/hero/event-b.webp') type('image/webp'),
    url('assets/generated/hero/event-b.jpg') type('image/jpeg'));
}
.hero-hex {
  background-image: url('assets/generated/hero/hex-hero.jpg');
  background-image: image-set(
    url('assets/generated/hero/hex-hero.webp') type('image/webp'),
    url('assets/generated/hero/hex-hero.jpg') type('image/jpeg'));
}

/* 기능 타일 4장 */
.tile-verified {
  background-image: url('assets/generated/features/01-verified.jpg');
  background-image: image-set(
    url('assets/generated/features/01-verified.webp') type('image/webp'),
    url('assets/generated/features/01-verified.jpg') type('image/jpeg'));
}
.tile-hexagon {
  background-image: url('assets/generated/features/02-hexagon.jpg');
  background-image: image-set(
    url('assets/generated/features/02-hexagon.webp') type('image/webp'),
    url('assets/generated/features/02-hexagon.jpg') type('image/jpeg'));
}
.tile-mutual {
  background-image: url('assets/generated/features/03-mutual.jpg');
  background-image: image-set(
    url('assets/generated/features/03-mutual.webp') type('image/webp'),
    url('assets/generated/features/03-mutual.jpg') type('image/jpeg'));
}
.tile-lounge {
  background-image: url('assets/generated/features/04-lounge.jpg');
  background-image: image-set(
    url('assets/generated/features/04-lounge.webp') type('image/webp'),
    url('assets/generated/features/04-lounge.jpg') type('image/jpeg'));
}

/* 마무리 이미지 */
.media-closing {
  background-image: url('assets/generated/closing/closing.jpg');
  background-image: image-set(
    url('assets/generated/closing/closing.webp') type('image/webp'),
    url('assets/generated/closing/closing.jpg') type('image/jpeg'));
}

/* 사진 위 검은 딤 처리 — 이미지 자체는 손대지 않고 가독성만 확보.
   아래로 갈수록 짙어져 좌측 하단 텍스트가 선명하게 읽힌다. */
.media.has-dim::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(0, 0, 0, .72) 0%,
      rgba(0, 0, 0, .55) 28%,
      rgba(0, 0, 0, .28) 60%,
      rgba(0, 0, 0, .12) 100%);
  pointer-events: none;
}

/* 히어로 콘텐츠 — 좌측 하단 정렬 */
.media-hero.hero-landing { place-items: end start; }
.media-hero.hero-landing .media-content {
  text-align: left;
  max-width: 760px;
  padding: 0 var(--container-pad) var(--space-96);
  margin-inline-start: max(0px, calc((100vw - var(--container-max)) / 2));
}
.media-hero.hero-landing .hero-logo { margin: 0 0 var(--space-32); }

/* 어두운 배경 위 흰색 텍스트 */
.media-content.on-dark,
.media-content.on-dark .type-display,
.media-content.on-dark .type-body { color: var(--text-on-brand); }
.media-content.on-dark .type-body { opacity: .88; }

@media (max-width: 767px) {
  .media-hero.hero-landing .media-content { padding-bottom: var(--space-64); }
}

/* 사진 자리임을 알리는 표시 — 업로드 전 제거 */
.media::after {
  content: attr(data-placeholder);
  position: absolute;
  bottom: var(--space-16);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-sm);
  line-height: var(--line-sm);
  letter-spacing: .1em;
  color: var(--neutral-500);
  opacity: .5;
  white-space: nowrap;
}

.media-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-40) var(--container-pad);
  max-width: 720px;
}
.media-content .type-display,
.media-content .type-h1 { margin-bottom: var(--space-16); }

.hero-logo {
  width: min(280px, 56vw);
  margin: 0 auto var(--space-32);
}
.band-logo { width: min(260px, 52vw); margin: 0 auto var(--space-24); }

/* ═══════════════════════════════════════════════════════════
   Grid — 여백 없이 붙는 4단
   ═══════════════════════════════════════════════════════════ */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tile-grid { grid-template-columns: 1fr; } }

.tile figcaption {
  padding: var(--space-20) var(--space-16) var(--space-32);
  text-align: center;
}
.tile figcaption .type-h3 { margin-bottom: var(--space-4); }
.tile figcaption p {
  font-size: var(--font-sm);
  line-height: var(--line-sm);
  color: var(--text-secondary);
}

/* 그리드 칸 사이 아주 얇은 구분선 — 붙어 있되 경계는 보이게 */
.tile-grid .tile + .tile .media { box-shadow: inset 1px 0 0 var(--bg-app); }

/* ═══════════════════════════════════════════════════════════
   Tier
   ═══════════════════════════════════════════════════════════ */

.tier-row { display: grid; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 767px) { .tier-row { grid-template-columns: 1fr; } }

.tier-cell {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-20);
}
@media (max-width: 767px) { .tier-cell { aspect-ratio: auto; padding-block: var(--space-32); } }

.tier-cell .tier-name {
  display: block;
  font-size: var(--font-lg);
  line-height: var(--line-relaxed);
  font-weight: var(--weight-light);
  letter-spacing: .1em;
  margin-bottom: var(--space-8);
}
.tier-cell .tier-desc {
  font-size: var(--font-sm);
  line-height: var(--line-sm);
  color: var(--neutral-700);
}

.tier-tri { background: var(--gradient-tier-green); }
.tier-quad { background: var(--gradient-tier-red); }
.tier-quin { background: var(--gradient-tier-silver); }
.tier-hex { background: var(--gradient-tier-gold); }
.tier-bluehex { background: var(--gradient-tier-blue); }

/* ═══════════════════════════════════════════════════════════
   Prose — 읽는 글 단락
   ═══════════════════════════════════════════════════════════ */

.prose {
  max-width: 60ch;
  margin-inline: auto;
  text-align: left;
}
.prose p + p { margin-top: var(--space-20); }
.prose strong { font-weight: var(--weight-medium); }

@media (max-width: 600px) { .prose { max-width: none; } }

/* ═══════════════════════════════════════════════════════════
   Axis grid — 6축
   ═══════════════════════════════════════════════════════════ */

.axis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--border-default) solid var(--border-subtle);
  border-left: var(--border-default) solid var(--border-subtle);
}
@media (max-width: 900px) { .axis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .axis-grid { grid-template-columns: 1fr; } }

.axis {
  padding: var(--space-32) var(--space-24);
  border-right: var(--border-default) solid var(--border-subtle);
  border-bottom: var(--border-default) solid var(--border-subtle);
}
.axis-num {
  display: block;
  font-size: var(--font-sm);
  line-height: var(--line-sm);
  letter-spacing: .16em;
  color: var(--text-secondary);
  margin-bottom: var(--space-16);
}
.axis h3 { margin-bottom: var(--space-8); }
.axis p {
  font-size: var(--font-md);
  line-height: var(--line-md);
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   Notice — 가입 전 안내
   ═══════════════════════════════════════════════════════════ */

.notice {
  background: var(--bg-surface);
  padding: var(--space-32);
}
.notice ul { padding-left: var(--space-20); margin: 0; }
.notice li { margin-bottom: var(--space-8); }
.notice li:last-child { margin-bottom: 0; }
.notice strong { font-weight: var(--weight-medium); }

/* ═══════════════════════════════════════════════════════════
   Info table — 각진 형태
   ═══════════════════════════════════════════════════════════ */

.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--border-default) solid var(--border-subtle);
}
.info-table th, .info-table td {
  text-align: left;
  padding: var(--space-16) 0;
  border-bottom: var(--border-default) solid var(--border-subtle);
  font-size: var(--font-md);
  line-height: var(--line-md);
  vertical-align: top;
}
.info-table th {
  width: 220px;
  color: var(--text-secondary);
  font-weight: var(--weight-regular);
  white-space: nowrap;
  padding-right: var(--space-24);
}
@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: auto; }
  .info-table th { border-bottom: 0; padding-bottom: 0; }
  .info-table td { padding-top: var(--space-4); }
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ═══════════════════════════════════════════════════════════
   Footer — 다단, 작은 글씨
   ═══════════════════════════════════════════════════════════ */

.site-footer {
  padding-top: var(--space-64);
  padding-bottom: var(--space-24);   /* 저작권 아래 여백 = 라인↔사업자번호 간격과 동일 */
  background: var(--bg-app);
}

/* 푸터 정보 — 로고 아래, 한 줄씩 세로 나열, 작은 글씨 */
.footer-info p {
  font-size: var(--font-2xs);
  line-height: var(--line-sm);
  color: var(--text-secondary);
}
.footer-info p + p { margin-top: var(--space-4); }
.footer-info .strong {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
  font-size: var(--font-sm);       /* 12px */
  line-height: var(--line-sm);
}
.footer-info .copy { margin-top: var(--space-12); }
/* 사업자등록번호·이메일·전화 — 가로 병렬 (모바일에서는 자동 줄바꿈) */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-24);
}

/* 회색 구분선 — 위(회사명·대표·주소)와 아래(사업자번호·연락처·저작권) 분리 */
.footer-rule {
  height: var(--border-default);
  background: var(--border-subtle);
  margin-block: var(--space-24);
}
.footer-logo {
  height: 22px;
  width: auto;
  margin-bottom: var(--space-24);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-40);
  padding-bottom: var(--space-48);
}
@media (max-width: 900px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; gap: var(--space-32); } }

.footer-col h3 {
  /* 아래 메뉴 항목과 같은 크기(14px), 한 단계 두꺼운 서체(Medium) */
  font-size: var(--font-md);
  line-height: var(--line-md);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-16);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a, .footer-col p {
  /* 제목(14px)보다 2px 작게, 항목 간 간격도 좁게 */
  font-size: var(--font-sm);
  line-height: var(--line-sm);
  color: var(--text-secondary);
  transition: color var(--duration-base) var(--ease-out);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-col a.is-primary { color: var(--text-primary); font-weight: var(--weight-medium); }

.footer-legal {
  padding-bottom: var(--space-48);
}
.footer-legal p {
  font-size: var(--font-sm);
  line-height: var(--line-sm);
  color: var(--text-secondary);
}
.footer-legal p + p { margin-top: var(--space-8); }

/* ═══════════════════════════════════════════════════════════
   Legal pages
   ═══════════════════════════════════════════════════════════ */

.page-head {
  padding-block: var(--space-96) var(--space-40);
  border-bottom: var(--border-default) solid var(--border-subtle);
  margin-bottom: var(--space-48);
  text-align: center;
}
.page-head .updated {
  display: block;
  margin-top: var(--space-12);
  font-size: var(--font-md);
  color: var(--text-secondary);
}

.legal { padding-bottom: var(--space-64); }
.legal h2 {
  margin-top: var(--space-48);
  margin-bottom: var(--space-16);
  font-size: var(--font-lg);
  line-height: var(--line-relaxed);
  font-weight: var(--weight-medium);
}
.legal h3 {
  margin-top: var(--space-24);
  margin-bottom: var(--space-8);
  font-size: var(--font-base);
  line-height: var(--line-md);
  font-weight: var(--weight-medium);
}
.legal p { margin-bottom: var(--space-12); }
.legal li { margin-bottom: var(--space-4); }
.legal .info-table { margin-block: var(--space-16) var(--space-24); }
.legal a { color: var(--brand-primary); border-bottom: var(--border-default) solid currentColor; }
.legal a:hover { color: var(--brand-primary-hover); }

.callout {
  background: var(--bg-surface);
  border-left: var(--border-strong) solid var(--text-primary);
  padding: var(--space-20) var(--space-24);
  margin-block: var(--space-24);
}
.callout p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: var(--space-40);
  margin-bottom: var(--space-24);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: var(--border-default) solid var(--text-primary);
  font-size: var(--font-sm);
  line-height: 1;
}
.steps h3 { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════
   TODO 표시 — 업로드 전 반드시 실제 값으로 교체
   ═══════════════════════════════════════════════════════════ */

.todo {
  background: #fff3c4;
  border-bottom: var(--border-strong) dotted #b45309;
  padding: 0 var(--space-4);
  color: #7c2d12;
}

.review-banner {
  background: #7c2d12;
  color: var(--neutral-0);
  text-align: center;
  padding: var(--space-12) var(--space-20);
  font-size: var(--font-md);
  line-height: var(--line-md);
}
.review-banner strong { font-weight: var(--weight-medium); }

/* ═══════════════════════════════════════════════════════════
   Scroll reveal
   ═══════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 푸터 법적 링크 행 — 사업자 정보 행 바로 위 */
.footer-links-row { margin-bottom: var(--space-20); }  /* 사업자 행과의 간격 */
.footer-links-row a {
  color: var(--text-secondary);     /* 사업자등록번호 행과 동일 색 */
  font-weight: var(--weight-medium);
  font-size: var(--font-sm);        /* 회사명·대표·주소(.strong)와 동일 크기 */
  line-height: var(--line-sm);
}
.footer-links-row a:hover { color: var(--text-primary); }
