/* ==========================================================================
   zentry — Dolittle Single O₂  |  Hybrid Web App
   명세서 3-1 디자인 시스템(HSL 시맨틱 토큰) 기준
   ========================================================================== */

:root {
  /* --- 색상 (명세서 3-1) --- */
  --background: 0 0% 100%;
  --foreground: 215 28% 17%;
  --primary: 188 65% 45%;
  --primary-foreground: 0 0% 100%;
  --primary-soft: 188 65% 96%;
  --card: 0 0% 100%;
  --card-foreground: 215 28% 17%;
  --muted: 220 12% 95%;
  --muted-foreground: 220 9% 46%;
  --border: 220 13% 90%;
  --destructive: 0 72% 51%;

  /* --- 브랜드(프로모션 영상 3-2 연동) --- */
  --brand-red: #ef4b5f;
  --brand-teal: #00c2cb;

  /* --- 반경 --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-3xl: 26px;
  --r-full: 999px;

  /* --- 셸 치수 --- */
  --nav-h: 64px;
  --tab-h: 62px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* --- 타이포 --- */
  --font-body: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- 그림자 --- */
  --sh-sm: 0 1px 2px hsl(215 28% 17% / .06);
  --sh-md: 0 6px 20px -8px hsl(215 28% 17% / .16);
  --sh-lg: 0 18px 48px -20px hsl(215 28% 17% / .28);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 언어별 본문 폰트 스왑 (명세서 4-2: html[lang] 연동) */
html[lang="zh"] { --font-body: "Noto Sans SC", "Noto Sans KR", system-ui, sans-serif; }
html[lang="ja"] { --font-body: "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif; }
html[lang="th"] { --font-body: "Noto Sans Thai", "Noto Sans KR", system-ui, sans-serif; }
html[lang="en"],
html[lang="es"] { --font-body: "Plus Jakarta Sans", "Noto Sans KR", system-ui, sans-serif; }

/* ==========================================================================
   Reset / Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 앱 셸: 고정 헤더 + 앵커 오프셋 (명세서 5-2: 64px 오프셋) */
  scroll-padding-top: calc(var(--nav-h) + var(--safe-top) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;        /* 네이티브 앱형: 바운스/새로고침 억제 */
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
}

@media (min-width: 900px) { body { padding-bottom: 0; } }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 800;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

::selection { background: hsl(var(--primary) / .18); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 10px 16px; border-radius: var(--r-full); font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 72px; }
.section--muted { background: hsl(var(--muted) / .45); }
.section--tight { padding-block: 48px; }

@media (min-width: 768px) {
  .section { padding-block: 104px; }
}

.section__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  border-radius: var(--r-full);
  padding: 6px 14px;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(27px, 4.6vw, 40px);
  margin-bottom: 12px;
}

.section__lead {
  color: hsl(var(--muted-foreground));
  max-width: 62ch;
  font-size: 16px;
}

.block { margin-top: 56px; }
.block:first-of-type { margin-top: 40px; }

.block__title {
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}

.block__title::before {
  content: "";
  width: 6px; height: 22px; border-radius: var(--r-full);
  background: hsl(var(--primary));
  flex: none;
}

.block__desc {
  color: hsl(var(--muted-foreground));
  margin-bottom: 22px;
  max-width: 68ch;
}

.block__desc--quote {
  font-style: italic;
  font-weight: 500;
  color: hsl(var(--foreground) / .7);
}

/* ==========================================================================
   NavBar (명세서 5-2)
   ========================================================================== */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}

.navbar.is-scrolled {
  background: hsl(var(--background) / .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: hsl(var(--border));
  box-shadow: var(--sh-sm);
}

.navbar__inner {
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding-inline: 16px;
  display: flex; align-items: center; gap: 12px;
}

.navbar__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.navbar__logo { height: 30px; width: auto; object-fit: contain; }
.navbar__wordmark[hidden] { display: none; }
.navbar__wordmark { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.navbar__wordmark span { color: hsl(var(--primary)); }

@media (min-width: 1024px) {
  
}

/* 아이콘 버튼 공통 */
.icon-btn {
  height: 40px; min-width: 40px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0;
  background: transparent;
  border-radius: var(--r-full);
  color: hsl(var(--foreground) / .82);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: hsl(var(--muted) / .8); color: hsl(var(--foreground)); }
.icon-btn svg { width: 18px; height: 18px; flex: none; }

/* 언어 드롭다운 (명세서 4-2) */
.lang { position: relative; }
.lang__current { font-size: 13px; font-weight: 700; }
.lang__caret { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lang.is-open .lang__caret { transform: rotate(180deg); }

.lang__menu {
  position: fixed;
  z-index: 95;
  min-width: 176px;
  padding: 6px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  display: none;
}
.lang__menu.is-open { display: block; animation: pop .18s var(--ease); }

.lang__item {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  border: 0; background: transparent;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  text-align: left;
}
.lang__item:hover { background: hsl(var(--muted)); }
.lang__item.is-active { color: hsl(var(--primary)); background: hsl(var(--primary-soft)); }
.lang__code { font-family: var(--font-mono); font-size: 11px; opacity: .6; }

/* 햄버거 메뉴 (명세서 5-2: 항상 햄버거 형태) */
.menu {
  position: fixed;
  z-index: 95;
  min-width: 220px;
  padding: 6px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  display: none;
}
.menu.is-open { display: block; animation: pop .18s var(--ease); }

.menu__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  border: 0; background: transparent; text-align: left;
}
.menu__item:hover { background: hsl(var(--muted)); }
.menu__item svg { width: 17px; height: 17px; color: hsl(var(--primary)); flex: none; }
.menu__sep { height: 1px; margin: 6px 8px; background: hsl(var(--border)); }

@keyframes pop {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Bottom Tab Bar — 하이브리드 앱 셸
   ========================================================================== */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 88;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: hsl(var(--background) / .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 900px) { .tabbar { display: none; } }

.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent;
  font-size: 10.5px; font-weight: 700; letter-spacing: -.01em;
  color: hsl(var(--muted-foreground));
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.tab svg { width: 21px; height: 21px; }
.tab.is-active { color: hsl(var(--primary)); }
.tab.is-active svg { transform: translateY(-1px); }

/* ==========================================================================
   Hero (명세서 5-3) — 로고 · 헤드라인 · 영상만
   ========================================================================== */
.hero {
  padding-top: calc(var(--nav-h) + var(--safe-top) + 72px);
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  .hero { padding-top: calc(var(--nav-h) + var(--safe-top) + 104px); padding-bottom: 96px; }
}

.hero__inner { text-align: center; }

.hero__title {
  font-size: clamp(33px, 5.8vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.24;
  max-width: 22ch;
  margin-inline: auto;
}

.hero__sub {
  margin-top: clamp(18px, 3vw, 32px);
  font-family: var(--font-display);
  font-size: clamp(33px, 5.8vw, 52px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.22;
}

.hero__video { margin-top: 48px; }
.hero__actions { display: flex; justify-content: center; margin-top: 24px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: 15px; font-weight: 700;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 26px -12px hsl(var(--primary) / .85);
}
.btn--primary:hover { background: hsl(var(--primary) / .9); }

.btn--outline {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  box-shadow: var(--sh-sm);
}
.btn--outline:hover { background: hsl(var(--muted)); }

/* 채널 보기 — 브랜드 마크 + 텍스트 */
.btn__mark { width: 26px; height: auto; flex: none; color: var(--brand-red); }
img.btn__mark { width: 28px; }
#heroChannel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  gap: 10px;
}
#heroChannel:hover { background: hsl(var(--muted) / .7); }

.btn--ghost { background: transparent; color: hsl(var(--muted-foreground)); }
.btn--ghost:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }

.btn[disabled], .btn.is-disabled {
  opacity: .5; cursor: not-allowed; box-shadow: none;
}
.btn[disabled]:active { transform: none; }

.btn__note {
  display: block; margin-top: 10px;
  font-size: 13.5px; color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   YouTube 임베드
   ========================================================================== */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: hsl(215 28% 12%);
  box-shadow: var(--sh-lg);
  border: 1px solid hsl(var(--border));
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Cards / Grid
   ========================================================================== */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-2xl);
  padding: 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: hsl(var(--primary) / .35); }

.card__index {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: hsl(var(--primary));
  letter-spacing: .1em;
}

.card__title { font-size: 18px; margin: 8px 0 12px; }

.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 7px;
}
.card__list li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(var(--primary) / .55);
}
.card__list li:last-child { margin-bottom: 0; }

.card__note {
  margin-top: 14px; padding: 11px 13px;
  border-radius: var(--r-md);
  background: hsl(var(--destructive) / .07);
  border: 1px solid hsl(var(--destructive) / .2);
  color: hsl(var(--destructive));
  font-size: 14px; font-weight: 700;
}

/* 기능 카드 */
.feature {
  display: flex; gap: 14px; align-items: flex-start;
}
.feature__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--r-md);
  background: hsl(var(--primary-soft));
  color: hsl(var(--primary));
  display: grid; place-items: center;
}
.feature__icon svg { width: 21px; height: 21px; }
.feature__body h4 { font-size: 16px; margin-bottom: 0; line-height: 1.5; }
.feature__body h4 + p { margin-top: 5px; }
.feature__body p { font-size: 15.5px; color: hsl(var(--muted-foreground)); }

/* ==========================================================================
   Media / 이미지 프레임
   ========================================================================== */
.media {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .6);
  aspect-ratio: 16 / 10;
}
.media--3xl { border-radius: var(--r-3xl); }
.media--plain { background: hsl(var(--background)); }
.media--auto { aspect-ratio: auto; }
.media__cap {
  margin: 26px 0 10px;
  font-size: 15px; font-weight: 700;
  color: hsl(var(--foreground) / .75);
}
.media--square { aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: contain; }
.media--cover img { object-fit: cover; }
.media--auto img { height: auto; }

.media-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .media-grid--2 { grid-template-columns: 1fr 1fr; align-items: start; } }

/* 에셋 미연결 플레이스홀더 */
.media.is-placeholder { display: grid; place-items: center; padding: 20px; }
.media.is-placeholder img { display: none; }
.ph {
  text-align: center; color: hsl(var(--muted-foreground));
}
.ph svg { width: 34px; height: 34px; margin-inline: auto; opacity: .45; }
.ph__name {
  display: block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 10.5px;
  word-break: break-all; max-width: 30ch; line-height: 1.5;
}

/* ==========================================================================
   Table (스펙 / 구성품 / 회사정보)
   ========================================================================== */
.table-wrap {
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-xl);
  overflow: hidden;
  background: hsl(var(--card));
}

.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; }
.table tr + tr th, .table tr + tr td { border-top: 1px solid hsl(var(--border)); }
.table th {
  width: 40%;
  font-weight: 700;
  background: hsl(var(--muted) / .55);
  color: hsl(var(--foreground));
  white-space: nowrap;
}
.table td { color: hsl(var(--muted-foreground)); }
.table td b { color: hsl(var(--foreground)); font-weight: 700; }
.table a { color: hsl(var(--primary)); }
.table a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .table th { width: 42%; white-space: normal; }
  .table th, .table td { padding: 11px 12px; font-size: 15px; }
}

/* ==========================================================================
   DBM Pills (명세서 5-4-8)
   ========================================================================== */
.dbm { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .dbm { grid-template-columns: 1fr 1fr; } }

.dbm__panel {
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-2xl);
  background: hsl(var(--card));
  padding: 22px;
}
.dbm__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.dbm__head h4 { font-size: 17px; }
.dbm__count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-full);
  background: hsl(var(--primary-soft)); color: hsl(var(--primary));
}
.dbm__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pill {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 800;
  letter-spacing: -.01em;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: hsl(var(--foreground) / .13);
  color: hsl(var(--foreground));
  transition: background .18s, color .18s;
}
.pill:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.dbm__figure { margin: 26px 0 0; }
.dbm__figure .media__cap { margin-top: 0; }
.dbm__figure .media { overflow-x: auto; }

/* ==========================================================================
   Accordion (FAQ / 연혁)
   ========================================================================== */
.accordion {
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-xl);
  background: hsl(var(--card));
  overflow: hidden;
}
.accordion + .accordion { margin-top: 12px; }
.accordion--plain { border: 0; border-radius: 0; background: transparent; }

.accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  border: 0; background: transparent;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; text-align: left;
  transition: background .18s;
}
.accordion__trigger:hover { background: hsl(var(--muted) / .55); }
.accordion--plain .accordion__trigger { padding-inline: 0; }

.accordion__chev {
  width: 20px; height: 20px; flex: none;
  color: hsl(var(--muted-foreground));
  transition: transform .28s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__chev { transform: rotate(180deg); color: hsl(var(--primary)); }

.accordion__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__inner { overflow: hidden; }
.accordion__body { padding: 0 20px 20px; }
.accordion--plain .accordion__body { padding-inline: 0; }

.qa__group + .qa__group { margin-top: 18px; }
.qa__h {
  font-size: 15px; font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 7px;
}
.qa__list li {
  position: relative; padding-left: 16px;
  font-size: 15.5px; color: hsl(var(--muted-foreground));
  margin-bottom: 6px;
}
.qa__list li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: hsl(var(--muted-foreground) / .5);
}

.qa__list--ol { counter-reset: qa; }
.qa__list--ol li { padding-left: 24px; }
.qa__list--ol li::before {
  counter-increment: qa;
  content: counter(qa) ".";
  left: 0; top: 0;
  width: auto; height: auto; border-radius: 0; background: none;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 800;
  color: hsl(var(--primary));
}

.qa__p {
  font-size: 15.5px;
  color: hsl(var(--muted-foreground));
  max-width: 72ch;
}

.qa__sub { margin-top: 6px; }
.qa__sub li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  color: hsl(var(--muted-foreground) / .92);
  margin-bottom: 4px;
}
.qa__sub li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 1px; border-radius: 0;
  background: hsl(var(--muted-foreground) / .55);
}

/* 연혁 타임라인 */
.history { margin-top: 4px; }
.history__year + .history__year { margin-top: 26px; }
.history__y {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
  color: hsl(var(--primary));
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.history__y::after { content: ""; height: 1px; width: 40px; background: hsl(var(--primary) / .35); }

.history__month { position: relative; padding-left: 20px; margin-bottom: 14px; }
.history__month::before {
  content: ""; position: absolute; left: 3px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: hsl(var(--card)); border: 2px solid hsl(var(--primary) / .6);
}
.history__month::after {
  content: ""; position: absolute; left: 6px; top: 20px; bottom: -14px;
  width: 1px; background: hsl(var(--border));
}
.history__month:last-child::after { display: none; }
.history__m { font-size: 14.5px; font-weight: 800; margin-bottom: 5px; }
.history__items li {
  font-size: 15px; color: hsl(var(--muted-foreground));
  margin-bottom: 3px;
}

/* ==========================================================================
   5W1H
   ========================================================================== */
.w5 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .w5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .w5 { grid-template-columns: repeat(3, 1fr); } }

.w5__card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-2xl);
  padding: 22px;
}
.w5__card--wide { grid-column: 1 / -1; }
.w5__label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.w5__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: hsl(var(--foreground) / .78);
}

/* ==========================================================================
   Social (명세서 5-7-2)
   ========================================================================== */
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.social__link {
  width: 48px; height: 48px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -6px hsl(215 28% 17% / .3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.social__link:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.social__link.has-img { box-shadow: none; }
.social__link img,
.social__link svg { width: 100%; height: 100%; display: block; object-fit: contain; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.35fr 1fr; align-items: start; } }

.contact__actions { display: grid; gap: 10px; }
.contact__cta {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-xl);
  background: hsl(var(--card));
  transition: border-color .2s, transform .2s var(--ease);
}
.contact__cta:hover { border-color: hsl(var(--primary) / .5); transform: translateX(2px); }
.contact__cta svg { width: 20px; height: 20px; color: hsl(var(--primary)); flex: none; }
.contact__cta small { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); font-weight: 600; }
.contact__cta b { font-size: 15px; font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding-block: 32px;
  text-align: center;
  font-size: 14.5px;
  color: hsl(var(--muted-foreground));
}
.footer__meta { margin-top: 6px; font-size: 12px; opacity: .8; }

/* ==========================================================================
   App chrome — 설치 배너 / 오프라인 토스트 / 로더
   ========================================================================== */
.appbanner {
  position: fixed; z-index: 96;
  left: 12px; right: 12px;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px);
  display: none;
  align-items: center; gap: 12px;
  padding: 12px 14px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
.appbanner.is-open { display: flex; animation: pop .24s var(--ease); }
.appbanner__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-md);
  background: hsl(var(--primary)); color: #fff;
  display: grid; place-items: center;
}
.appbanner__body { flex: 1; min-width: 0; }
.appbanner__body b { display: block; font-size: 14px; }
.appbanner__body span { font-size: 12px; color: hsl(var(--muted-foreground)); }
.appbanner .btn { padding: 9px 16px; font-size: 13px; }

@media (min-width: 900px) {
  .appbanner { left: auto; right: 24px; bottom: 24px; max-width: 380px; }
}

.toast {
  position: fixed; z-index: 120;
  left: 50%; transform: translate(-50%, 20px);
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 18px);
  padding: 11px 18px;
  border-radius: var(--r-full);
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* 스크롤 진행 인디케이터 */
.progress {
  position: fixed; top: 0; left: 0; z-index: 99;
  height: 2px; width: 0;
  background: linear-gradient(90deg, hsl(var(--primary)), var(--brand-teal));
  transition: width .1s linear;
}

/* ==========================================================================
   Reveal 애니메이션 (명세서 7-1 AnimatedSection 대응)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* 플레이스홀더는 에셋이 없을 때만 노출 */
.media:not(.is-placeholder) .ph { display: none; }
