/* ==========================================================================
   K지하철 웹사이트 디자인 시스템 v2
   앱 브랜드 토큰 기반: navy #1D2B4F / bg #F6F6F4 / Pretendard
   ========================================================================== */

:root {
  /* 브랜드 (앱과 동일) */
  --navy: #1D2B4F;
  --navy-2: #2A3A66;
  --bg: #F6F6F4;
  --blue: #2C7BE5;
  --teal: #19A5A0;
  --orange: #FF6D00;
  --red: #E53935;

  /* 서피스 & 텍스트 */
  --surface: #FFFFFF;
  --surface-2: #FDFDFB;
  --ink: var(--navy);
  --ink-2: #4A5673;
  --ink-3: #8B94AB;
  --line: rgba(29, 43, 79, .08);
  --line-strong: rgba(29, 43, 79, .16);

  /* 간격 */
  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 24px;
  --s6: 32px; --s7: 48px;  --s8: 64px;  --s9: 96px;  --s10: 128px;

  /* 라운드 */
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-pill: 999px;

  /* 그림자 */
  --sh-1: 0 1px 2px rgba(29, 43, 79, .06), 0 2px 8px rgba(29, 43, 79, .05);
  --sh-2: 0 2px 6px rgba(29, 43, 79, .06), 0 12px 32px rgba(29, 43, 79, .09);
  --sh-3: 0 8px 20px rgba(29, 43, 79, .12), 0 28px 64px rgba(29, 43, 79, .16);

  /* 타입 스케일 */
  --fs-hero: clamp(40px, 6vw, 64px);
  --fs-h2: clamp(28px, 4vw, 38px);
  --fs-h3: clamp(20px, 2.6vw, 24px);
  --fs-lead: clamp(17px, 2vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-tiny: 12.5px;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Noto Sans KR', 'Hiragino Sans',
          'Microsoft JhengHei', 'PingFang SC', sans-serif;
}

/* 긴 카드 목록의 수동 광고는 첫 화면에서 너무 멀어지지 않도록 목록 중간에 둔다. */
.content-list-ad.content-list-ad {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 100px;
  margin: var(--s4) 0;
  padding: var(--s3) 0;
  text-align: center;
}

/* ── 리셋 & 베이스 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(44, 123, 229, .18); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s5);
}

section { padding: var(--s9) 0; }

/* ── 헤더 ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 246, 244, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  flex: none;
}
.brand img { border-radius: 9px; box-shadow: var(--sh-1); }

.main-nav {
  display: flex;
  gap: var(--s1);
  flex: 1;
  min-width: 0;
}
.main-nav a {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: rgba(29, 43, 79, .06); color: var(--ink); }
.main-nav a.on { background: var(--navy); color: #fff; }

.header-app-cta {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: var(--fs-small);
  font-weight: 800;
  box-shadow: var(--sh-1);
  transition: transform .15s, background .15s, box-shadow .15s;
  cursor: pointer;
  list-style: none;
}
.header-app-cta::-webkit-details-marker { display: none; }
.header-app-cta:hover {
  transform: translateY(-1px);
  background: var(--navy-2);
  box-shadow: var(--sh-2);
}
.header-app-cta svg { width: 16px; height: 16px; fill: currentColor; }

/* 앱 다운로드 드롭다운 (iOS + Android) */
.download-menu { position: relative; flex: none; }
.download-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 228px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--sh-3);
  z-index: 60;
}
.download-menu-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 11px;
  transition: background .15s;
}
.download-menu-list a:hover { background: rgba(29, 43, 79, .06); }
.download-menu-list a + a { margin-top: 2px; }
.download-menu-list strong,
.download-menu-list small { display: block; line-height: 1.25; }
.download-menu-list strong { font-size: 14px; }
.download-menu-list small { margin-top: 2px; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.store-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  flex: none;
}
.store-mark--play { background: #111; }
.store-mark svg { width: 18px; height: 18px; fill: currentColor; }

/* 언어 드롭다운 (no-JS: <details>) */
.lang-menu { position: relative; margin-left: auto; flex: none; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-2);
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s;
}
.lang-menu[open] summary::after { transform: rotate(-135deg) translateY(2px); }
.lang-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh-2);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.lang-menu-list a {
  padding: 9px 14px;
  border-radius: var(--r-s);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-2);
}
.lang-menu-list a:hover { background: rgba(29, 43, 79, .06); color: var(--ink); }
.lang-menu-list a.on { background: var(--navy); color: #fff; }

/* 모바일 햄버거 메뉴 */
.mobile-menu { display: none; position: relative; flex: none; }
.mobile-menu summary {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .18s, opacity .18s;
}
.mobile-menu[open] summary span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.mobile-menu[open] summary span:nth-child(2) { opacity: 0; }
.mobile-menu[open] summary span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--sh-3);
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.mobile-menu-list a {
  padding: 11px 14px;
  border-radius: var(--r-s);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
}
.mobile-menu-list a:hover { background: rgba(29, 43, 79, .06); color: var(--ink); }
.mobile-menu-list a.on { background: rgba(29, 43, 79, .08); color: var(--navy); }
.mobile-store-label {
  margin: 8px 8px 5px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mobile-store-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mobile-menu-list .mobile-store-links a.mobile-menu-app {
  padding: 11px 8px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.mobile-menu-list .mobile-store-links a.mobile-menu-app--play { background: #111; }

/* ── 버튼 & 칩 & 태그 ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--navy-2); box-shadow: var(--sh-2); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
a.chip:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--ink); }
.chip--on { background: var(--navy); border-color: var(--navy); color: #fff; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .02em;
}
.tag--typing { background: rgba(44, 123, 229, .1); color: var(--blue); }
.tag--blind { background: rgba(255, 109, 0, .12); color: var(--orange); }

/* ── 히어로 ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: clamp(540px, 74vh, 760px);
  display: flex;
  align-items: center;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.hero-canvas canvas { width: 100%; height: 100%; display: block; }
body.has-3d .hero-canvas { opacity: 1; }

.hero-fallback {
  position: absolute;
  right: 24px;
  bottom: 4%;
  width: min(37vw, 460px);
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}
body.has-3d .hero-fallback { display: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  padding: var(--s8) 0;
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(25, 165, 160, .1);
  color: #0F7B77;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: var(--s5);
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

.rank-badge {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: calc(var(--s5) * -0.45) 0 var(--s4);
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.12), transparent 42%),
    linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 43, 79, .16);
  align-items: center;
  gap: 11px;
  transition: transform .15s, box-shadow .15s;
  overflow: hidden;
}
.rank-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(29, 43, 79, .28);
}
.rank-crown {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
}
.rank-badge strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.rank-badge small {
  display: block;
  margin-top: 1px;
  color: rgba(255,255,255,.68);
  font-size: 10.5px;
  line-height: 1.2;
}
.rank-arrow {
  margin-left: 5px;
  color: rgba(255,255,255,.72);
  font-weight: 900;
}

/* 홈의 일반 UI 장식은 네이비로 절제하고, 콘텐츠 고유 색상은 유지한다. */
.home-page .eyebrow {
  background: rgba(29, 43, 79, .08);
  color: var(--navy);
}
.home-page .eyebrow::before { background: var(--navy); }
.home-page .section-head .kicker,
.home-page .feature-copy .kicker { color: var(--navy); }
.home-page :focus-visible { outline-color: var(--navy); }

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.08;
  margin-bottom: var(--s4);
}

.hero .subtitle {
  font-size: var(--fs-lead);
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: var(--s3);
}

.hero .desc {
  font-size: var(--fs-body);
  color: var(--ink-2);
  max-width: 480px;
  margin-bottom: var(--s6);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* 스토어 배지 */
.store-badges {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}
.store-badges img { height: 52px; width: auto; }
.store-badges a { display: inline-flex; transition: transform .15s; }
.store-badges a:hover { transform: translateY(-2px); }

.badge-google-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 156px;
  padding: 0 14px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #c5c8ce;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.store-badges .badge-google-play img { width: 128px; height: auto; }
.badge-steam {
  display: inline-flex;
  height: 52px;
  min-width: 156px;
  padding: 0 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, #24334a, #101822);
  color: #fff;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}
.store-badges .badge-steam img { width: 119px; height: auto; }

/* ── 스탯 바 ───────────────────────────────────────────────── */
.stats { padding: 0; position: relative; z-index: 2; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--sh-2);
  overflow: hidden;
  margin-top: calc(var(--s6) * -1);
}
.stat {
  padding: var(--s5) var(--s4);
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 24%; bottom: 24%;
  width: 1px;
  background: var(--line);
}
.stat b {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.stat span {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-3);
}

/* ── 섹션 헤딩 ─────────────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s7);
}
.section-head .kicker,
.feature-copy .kicker {
  display: block;
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s3);
}
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.section-head p { color: var(--ink-2); font-size: var(--fs-lead); }

/* ── 게임 모드 카드 ────────────────────────────────────────── */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}
.mode-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--sh-1);
  padding: var(--s6);
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.mode-card--typing::before { background: var(--blue); }
.mode-card--blind::before { background: var(--orange); }
.mode-card .phone { margin: var(--s5) auto; max-width: 240px; }
.mode-card h3 { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.mode-card p { color: var(--ink-2); font-size: 15px; }

/* ── 폰 프레임 (iPhone 17 실사 프레임 PNG 오버레이) ───────────
   프레임 361×737 기준 스크린 영역: x 20–340, y 19–717 */
.phone { position: relative; }
.phone-frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 30px rgba(29, 43, 79, .2));
}
.phone-shot {
  position: absolute;
  left: 5.2%;
  top: 2.4%;
  width: 89.6%;
  height: 95.2%;
  object-fit: cover;
  border-radius: 9% / 4.2%;
  z-index: 1;
  background: #fff;
}

/* ── 앱 쇼케이스 (기울어진 폰 3대) ─────────────────────────── */
.showcase { overflow: hidden; background: var(--surface); border-block: 1px solid var(--line); }
.showcase-strip {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--s5);
  perspective: 1400px;
  padding: var(--s4) 0 var(--s3);
}
.showcase-strip .phone {
  width: min(250px, 26vw);
  flex: none;
  transition: transform .35s ease;
}
.showcase-strip .phone:nth-child(1) { transform: rotateY(13deg) rotateZ(-1.5deg) translateY(16px); }
.showcase-strip .phone:nth-child(2) { transform: translateY(-4px) scale(1.04); z-index: 1; }
.showcase-strip .phone:nth-child(3) { transform: rotateY(-13deg) rotateZ(1.5deg) translateY(16px); }
.showcase-strip .phone:hover { transform: translateY(-10px) scale(1.05); z-index: 2; }

/* ── 커버리지 / 노선망 탐색 ────────────────────────────────── */
.country-chips {
  display: flex;
  justify-content: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.country-chips .chip { font-size: 15px; padding: 9px 18px; }

.city-list {
  text-align: center;
  color: var(--ink-3);
  font-size: var(--fs-small);
  margin-bottom: var(--s6);
}

.line-dots {
  display: flex;
  justify-content: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s7);
}
.line-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .12), var(--sh-1);
}

.explore-cta { text-align: center; }

/* ── 기능 행 ───────────────────────────────────────────────── */
.features { padding-block: var(--s7); }
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s8);
  align-items: center;
  padding: var(--s7) 0;
}
.feature-row .phone { max-width: 280px; margin: 0 auto; }
.feature-copy h3 { font-size: var(--fs-h2); margin-bottom: var(--s4); }
.feature-copy p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 460px; }
.feature-copy .btn { margin-top: var(--s5); }
.feature-row--flip .feature-copy { order: -1; }

/* ── CTA ───────────────────────────────────────────────────── */
.cta-wrap { padding-block: var(--s5) var(--s8); }
.cta {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-l);
  padding: var(--s8) var(--s6);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.cta h2 { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.cta p { color: rgba(255, 255, 255, .75); font-size: var(--fs-lead); margin-bottom: var(--s6); }
.cta .store-badges { justify-content: center; }

/* CTA 노선색 도트 디바이더 */
.cta-line {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--s6);
}
.cta-line i {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex: none;
}

/* ── 문서 페이지 (privacy / support) ──────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: var(--s8) var(--s5) var(--s9); }
.doc h1 { font-size: var(--fs-h2); margin-bottom: var(--s2); }
.doc .doc-date { color: var(--ink-3); font-size: var(--fs-small); margin-bottom: var(--s6); }

.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  padding: var(--s5) var(--s6);
  margin-bottom: var(--s4);
}
.doc-card h2 { font-size: 17px; margin-bottom: var(--s3); }
.doc-card p { color: var(--ink-2); font-size: 15px; margin-bottom: var(--s3); }
.doc-card p:last-child { margin-bottom: 0; }
.doc-card ul { color: var(--ink-2); font-size: 15px; margin: 0 0 var(--s2); padding-left: 22px; }
.doc-card li { margin-bottom: var(--s2); }
.doc-card a { color: var(--blue); font-weight: 600; }
.doc-card a.mail-btn {
  display: inline-block;
  margin-top: var(--s3);
  padding: 12px 28px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: background .15s, transform .15s;
}
.doc-card a.mail-btn:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ── Maps 랜딩 ─────────────────────────────────────────────── */
.maps-hero {
  padding: var(--s8) 0 var(--s5);
  text-align: center;
}
.maps-hero h1 { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.maps-hero p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 580px; margin: 0 auto; }

.country-section { padding: var(--s5) 0 var(--s6); }
.country-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.country-head .flag { font-size: 24px; }
.country-head h2 { font-size: var(--fs-h3); }
.country-head .count { color: var(--ink-3); font-size: var(--fs-small); font-weight: 600; }

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s4);
}

.city-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  padding: var(--s5);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.city-card h3 { font-size: 19px; display: flex; align-items: center; gap: var(--s2); }
.city-card h3::after {
  content: '→';
  margin-left: auto;
  color: var(--ink-3);
  font-weight: 400;
  transition: transform .18s, color .18s;
}
.city-card:hover h3::after { transform: translateX(4px); color: var(--navy); }
.city-card .meta { color: var(--ink-3); font-size: var(--fs-small); font-weight: 600; }
.city-card .dots { display: flex; gap: 5px; flex-wrap: wrap; }
.city-card .dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: none;
}

/* ── 푸터 ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s7) 0;
  margin-top: var(--s8);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s7);
}
.footer-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 800;
}
.footer-brand img { border-radius: 7px; }
.footer-store-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}
.footer-store-links a,
.footer-social a,
.footer-email {
  color: var(--ink-2);
  font-size: var(--fs-small);
  font-weight: 600;
}
.footer-store-links a:hover,
.footer-social a:hover,
.footer-email:hover { color: var(--ink); }
.footer-links { display: flex; gap: var(--s2); flex-direction: column; align-items: flex-start; }
.footer-links a {
  color: var(--ink-2);
  font-size: var(--fs-small);
  font-weight: 600;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-3); font-size: var(--fs-tiny); }

/* ── 반응형 ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  section { padding: var(--s8) 0; }
  .feature-row { gap: var(--s6); }
  .showcase-strip .phone { width: min(210px, 28vw); }
}

@media (max-width: 640px) {
  .header-inner { gap: var(--s3); }
  .main-nav, .download-menu { display: none; }
  .mobile-menu { display: block; }
  .brand span { display: inline; }
  .lang-menu { margin-left: auto; }

  section { padding: var(--s7) 0; }

  .hero { min-height: 560px; }
  .hero-inner { padding: var(--s7) 0; }
  .rank-badge { margin-top: calc(var(--s4) * -0.3); }
  .hero-fallback { right: -30%; bottom: 6%; width: 120vw; opacity: .45; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .mode-grid { grid-template-columns: 1fr; }

  .showcase-strip { gap: var(--s3); }
  .showcase-strip .phone { width: 30vw; }

  .hero-actions { align-items: flex-start; flex-direction: column; }
  .store-badges { gap: 9px; }
  .store-badges img,
  .badge-google-play,
  .badge-steam { height: 48px; }
  .badge-google-play { padding-inline: 13px 16px; }
  .store-badges .badge-google-play img { width: 120px; height: auto; }

  .feature-row { grid-template-columns: 1fr; text-align: center; gap: var(--s5); }
  .feature-row .phone { max-width: 230px; order: -1; }
  .feature-row--flip .feature-copy { order: 0; }
  .feature-copy p { margin: 0 auto; }

  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-primary { align-items: center; }
  .footer-links { align-items: center; }
}

/* ── 접근성: 모션 최소화 ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── 정보 화면 수동 광고 ───────────────────────────────────── */
.lost-found-ad,
.first-last-train-ad,
.station-name-change-ad {
  min-height: 90px;
  margin-top: var(--s5);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}
