/* =========================================================
   티핏랩 TEEFIT — static site
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f5f6f8;
  --c-ink: #1d1a19;
  --c-text: #26282b;
  --c-muted: #686d74;
  --c-line: #e3e5e8;
  --c-brand: #3e65b9;          /* 로고 파란색 */
  --c-brand-dark: #2f4f95;
  --c-brand-soft: #eef2fa;
  --c-dark: #121417;
  --c-on-dark: #f1f2f4;
  --c-on-dark-muted: #9aa1a9;
  --c-ph: #d9dcdf;
  --c-todo: #b0472e;

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --container: 1200px;
  --narrow: 860px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }

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

/* ---------- 사진 자리표시 ----------
   .photo 안의 <img>를 불러오지 못하면(onerror로 제거) 회색 박스와 "사진 준비 중"이 보인다. */
.photo { position: relative; aspect-ratio: 4 / 3; background: var(--c-ph); overflow: hidden; }
.photo::before {
  content: "사진 준비 중";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #7b8188;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo:has(img)::before { display: none; }   /* 사진이 있으면 '사진 준비 중'을 숨긴다 */
.photo.fit img { object-fit: contain; background: #fff; }   /* 글자가 든 이미지는 잘리지 않게 */

/* 확인이 필요한 문구 표시 — 확인 후 class와 표시를 지운다 */
.todo { color: var(--c-todo) !important; }
.verify {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0; vertical-align: middle;
  color: var(--c-todo); border: 1px solid currentColor;
}

/* ---------- 공통 타이포 ---------- */
.label {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: .16em;
  color: var(--c-brand); margin-bottom: 18px;
}
.section { padding: 136px 0; }
.section.alt { background: var(--c-bg-alt); }
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; line-height: 1.32; letter-spacing: -.025em;
  color: var(--c-ink);
}
.section-lead { margin-top: 20px; font-size: 17px; color: var(--c-muted); max-width: 680px; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  font-size: 15px; font-weight: 600; text-align: center;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--c-brand); color: #fff; }
.btn-primary:hover { background: var(--c-brand-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--c-ink); }
.btn-outline { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.arrow::after { content: "→"; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(255,255,255,.97); color: var(--c-ink);
  box-shadow: 0 1px 0 var(--c-line);
  backdrop-filter: blur(8px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; }
.logo .logo-dark { display: none; }
.is-scrolled .logo .logo-dark, .is-solid .logo .logo-dark, .menu-open .logo .logo-dark { display: block; }
.is-scrolled .logo .logo-light, .is-solid .logo .logo-light, .menu-open .logo .logo-light { display: none; }

.gnb { display: flex; align-items: center; gap: 36px; }
.gnb a { font-size: 15px; font-weight: 500; opacity: .86; transition: opacity .2s; }
.gnb a:hover, .gnb a[aria-current="page"] { opacity: 1; }
.gnb .gnb-cta {
  opacity: 1; padding: 10px 20px; border-radius: 999px;
  background: var(--c-brand); color: #fff;
}
.gnb .gnb-cta:hover { background: var(--c-brand-dark); }

.menu-toggle {
  display: none; width: 40px; height: 40px;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; position: relative;
}
.menu-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- 언어 전환 (KO / EN) ----------
   본문은 <span lang="ko">…</span><span lang="en">…</span> 짝으로 쓰고, html의 data-lang 값에 따라 한쪽만 보인다. */
html:not([data-lang="en"]) [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="ko"] { display: none !important; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.lang-switch button {
  background: none; border: 0; padding: 6px 6px; cursor: pointer; color: inherit; opacity: .45; letter-spacing: .04em;
}
.lang-switch button[aria-pressed="true"] { opacity: 1; }
.lang-switch .sep { opacity: .3; }
.header-right { display: flex; align-items: center; gap: 28px; }

/* ---------- Hero: 배경 영상 + 사전 CS 대화 ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  background: var(--c-dark); color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: #1b1e22; }
.hero-bg::before {
  content: attr(data-placeholder-ko);
  position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 12px; color: #6f757c;
}
html[data-lang="en"] .hero-bg::before { content: attr(data-placeholder-en); }
.hero-bg.has-media::before, .hero-bg:has(picture)::before { display: none; }
.hero-bg picture, .hero-bg img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .6s var(--ease); }
.hero-video.is-ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,15,.78) 0%, rgba(10,12,15,.62) 50%, rgba(10,12,15,.45) 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero .label { color: #a9bfe9; }
.hero-title { font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; color: #fff; }
.hero-desc { margin-top: 26px; max-width: 560px; font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,.84); }
.hero-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--c-ink); }
.hero-quote { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); font-size: 15px; color: #fff; font-weight: 600; }

.chat {
  background: #fff; border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(29,26,25,.18), 0 0 0 1px rgba(29,26,25,.05);
  overflow: hidden; max-width: 520px; justify-self: end; width: 100%;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
.chat-room { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--c-ink); }
.chat-room .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fae6a; }
.chat-tag { white-space: nowrap; flex: none; font-size: 11px; font-weight: 600; color: var(--c-muted); border: 1px solid var(--c-line); border-radius: 999px; padding: 2px 9px; }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; height: 470px; overflow-y: auto; scroll-behavior: smooth; background: #fbfbfc; scrollbar-width: thin; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.msg .who { font-size: 11px; color: var(--c-muted); }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.6; color: var(--c-ink); }
.msg.clinic { align-self: flex-start; }
.msg.clinic .bubble { background: #fff; border: 1px solid var(--c-line); border-top-left-radius: 4px; }
.msg.lab { align-self: flex-end; align-items: flex-end; }
.msg.lab .bubble { background: var(--c-brand); color: #fff; border-top-right-radius: 4px; }
.msg .photo { width: 220px; max-width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; flex: none; }
.msg .photo::before { content: attr(data-label-ko); font-size: 12px; text-align: center; padding: 0 12px; }
.album { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: 260px; max-width: 100%; border-radius: 12px; overflow: hidden; }
.album .photo { width: auto; border-radius: 0; grid-column: span 2; aspect-ratio: 1 / 1; }
.album .photo:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 4 / 3; }
.album .photo::before { font-size: 10px; }
html[data-lang="en"] .msg .photo::before { content: attr(data-label-en); }
.file-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--c-line); font-size: 13px; color: var(--c-ink);
}
.file-chip::before { content: "PDF"; font-size: 10px; font-weight: 700; color: #fff; background: #c9483b; border-radius: 4px; padding: 2px 5px; }
.sys { align-self: center; font-size: 12px; color: var(--c-brand-dark); background: var(--c-brand-soft); border-radius: 999px; padding: 5px 14px; text-align: center; }
.typing { align-self: flex-end; display: none; gap: 4px; padding: 12px 14px; background: var(--c-brand-soft); border-radius: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand); opacity: .4; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
.chat.is-playing .step-item { display: none; }
.chat.is-playing .step-item.is-shown { display: flex; animation: msgIn .45s var(--ease); }
.chat.is-playing .typing.is-on { display: inline-flex; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-muted); }
.chat-foot button { background: none; border: 0; color: var(--c-brand); font-weight: 600; cursor: pointer; font-size: 12px; padding: 4px 0; }
/* 스토리 3개: 활성 스토리만 보이고, 위쪽 점으로 바로 넘어간다 */
.chat [data-story]:not(.is-active) { display: none; }
.chat-story { display: flex; flex-direction: column; gap: 12px; }
.chat-stories { display: flex; justify-content: center; gap: 4px; padding: 6px 0 0; }
.chat-dot { width: 28px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-line); transition: background .2s, width .2s; }
.chat-dot[aria-current="true"]::before { width: 20px; border-radius: 999px; background: var(--c-brand); }
.chat-dot:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: 6px; }
.album.n2 .photo, .album.n2 .photo:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 4 / 3; }
.album.n3 .photo:first-child { grid-column: span 6; aspect-ratio: 16 / 9; }
.album.n3 .photo:nth-child(2), .album.n3 .photo:nth-child(3) { grid-column: span 3; aspect-ratio: 4 / 3; }

/* ---------- 01 소개: 가치 3가지 ---------- */
#about { padding: 82px 0; }   /* 다른 섹션(136px)의 약 60% */
.pillars { display: flex; flex-direction: column; gap: 64px; }
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pillar:nth-child(even) .pillar-text { order: 2; }
.pillar-num { font-size: 13px; color: var(--c-muted); }
.pillar .label { margin: 6px 0 14px; }
.pillar h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.025em; color: var(--c-ink); line-height: 1.3; }
.pillar p { margin-top: 18px; color: var(--c-muted); }
.pillar-media { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--c-ph); aspect-ratio: 16 / 10; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar-media.team-chart { aspect-ratio: auto; background: #fff; border: 1px solid var(--c-line); }
.pillar-media.team-chart img { height: auto; object-fit: contain; }
/* 디자인 캡처 위 컨펌 배지: 이미지에 굽지 않고 코드로 얹는다 */
.confirm-badge {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; color: var(--c-ink);
  font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px -8px rgba(0,0,0,.35);
}
.confirm-badge .tick { width: 22px; height: 22px; border-radius: 50%; background: #3fae6a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

/* ---------- 02 WHY ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 32px 28px; }
.fact .label { margin-bottom: 14px; font-size: 12px; }
.fact strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--c-ink); line-height: 1.35; }
.fact p { margin-top: 10px; font-size: 14px; color: var(--c-muted); }
.closing-line { margin-top: 56px; text-align: center; font-size: 17px; color: var(--c-muted); }

/* ---------- 03 일하는 방식 ---------- */
.index-list {
  display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px;
  border-top: 1px solid var(--c-ink); margin-bottom: 72px;
}
.index-list li { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.index-list .num { font-size: 13px; font-weight: 600; color: var(--c-brand); min-width: 22px; }
.index-list .name { font-weight: 600; color: var(--c-ink); }
.index-list .tag { margin-left: auto; font-size: 13px; color: var(--c-muted); text-align: right; }

.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.system { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.system .photo { aspect-ratio: 16 / 9; }
.system .photo.team-chart { aspect-ratio: auto; background: #fff; border-bottom: 1px solid var(--c-line); }
.system .photo.team-chart img { position: static; height: auto; object-fit: contain; }
.system-body { padding: 28px 28px 32px; }
.system-body .num { font-size: 13px; font-weight: 600; color: var(--c-brand); }
.system-body h3 { margin: 6px 0 10px; font-size: 21px; font-weight: 700; color: var(--c-ink); letter-spacing: -.015em; }
.system-body p { font-size: 15px; color: var(--c-muted); }
.note-chip { display: inline-block; margin-top: 12px; padding: 2px 10px; font-size: 12px; font-weight: 600; color: var(--c-brand); background: var(--c-brand-soft); border-radius: 999px; }


/* ---------- 04 보철 안내 ---------- */
.notice-bar {
  display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: center;
  padding: 20px 24px; margin-bottom: 56px;
  background: var(--c-brand-soft); border-radius: 12px; font-size: 15px; color: var(--c-brand-dark);
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.product .photo.fit-dark { aspect-ratio: 4 / 3; background: #000; }
.product .photo.fit-dark img { object-fit: contain; }   /* 4:3 원본 전체가 보이게, 남는 곳은 테두리와 같은 검정 */
.product-body { padding: 26px 26px 30px; }
.product-body .num { font-size: 13px; font-weight: 600; color: var(--c-brand); }
.product-body h3 { margin: 6px 0 4px; font-size: 21px; font-weight: 700; color: var(--c-ink); }
.product-body .items { font-size: 14px; font-weight: 600; color: var(--c-brand-dark); margin-bottom: 14px; }
.product-body p { font-size: 15px; color: var(--c-muted); }
.product-body p + p { margin-top: 8px; }
/* 수가표 배너: 품목 격자 바로 아래, 간격은 카드 사이(24px)와 같게 */
.price-banner { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; border-radius: 16px; background: #066CFF; color: #fff; }
.price-banner h3 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.price-banner p { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.9); }
.price-btn { flex: none; background: #fff; color: #066CFF; border-color: #fff; }
.price-btn:hover { background: #e9f1ff; border-color: #e9f1ff; }

/* ---------- 05 디지털 워크플로우 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 72px; }
.step { position: relative; padding: 0 16px; text-align: center; }
.step::before {
  content: ""; position: absolute; top: 28px; left: 50%; width: 100%; height: 1px; background: #c9d5ee;
}
.step:last-child::before { display: none; }
.step-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-brand); color: #fff; font-weight: 700; font-size: 17px;
}
.step h3 { font-size: 18px; font-weight: 700; color: var(--c-ink); }
.step p { margin-top: 8px; font-size: 14px; color: var(--c-muted); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info { border-top: 1px solid var(--c-ink); padding-top: 24px; }
.info h3 { font-size: 18px; font-weight: 700; color: var(--c-ink); margin-bottom: 10px; }
.info p { font-size: 15px; color: var(--c-muted); }
.info a { color: var(--c-brand); font-weight: 600; }

/* ---------- 06 제작 사례: 격자 + 더 보기 ---------- */
/* 제작 사례: 한 번에 1건. 2:1 칸에 원본 전체(case-12처럼 비율이 다르면 남는 곳은 어둡게) */
.case-viewer { max-width: 1100px; margin: 0 auto; }
.case-stage { position: relative; }
.case-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; background: #121417; }
.case-track::-webkit-scrollbar { display: none; }
.case-track:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.case { flex: 0 0 100%; margin: 0; aspect-ratio: 2 / 1; scroll-snap-align: start; background: #121417; }
.case img { width: 100%; height: 100%; object-fit: contain; display: block; }
.case-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--c-ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px -6px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.case-nav.prev { left: 16px; } .case-nav.next { right: 16px; }
.case-nav:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.case-count { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.case-thumbs { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.case-thumb { flex: 0 0 120px; aspect-ratio: 2 / 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #121417; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-thumb:hover { opacity: .85; }
.case-thumb[aria-current="true"] { opacity: 1; border-color: var(--c-brand); }
.case-thumb:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.note { margin-top: 32px; font-size: 13px; color: var(--c-muted); }

/* ---------- 05 제작 과정 사진 ---------- */

/* 운영 화면 설명 */
.screen-note { margin-top: 10px; font-size: 12px !important; color: var(--c-muted); }

/* ---------- 마무리 CTA ---------- */
.cta { background: var(--c-dark); color: var(--c-on-dark); text-align: center; padding: 128px 0; }
.cta img { height: 40px; width: auto; margin: 0 auto 28px; }
.cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.025em; }
.cta p { margin-top: 14px; color: var(--c-on-dark-muted); }
.cta .hero-actions { margin-top: 40px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0c0d0f; color: var(--c-on-dark-muted); padding: 56px 0 40px; font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid #24272b; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; color: var(--c-on-dark); font-size: 14px; }
.footer-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-contact a:hover, .footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 24px; line-height: 1.9; }
.footer-bottom .policy { color: var(--c-on-dark); font-weight: 600; }
.to-top { color: var(--c-on-dark); }

/* ---------- 하위 페이지 공통 ---------- */
.page-head { padding: calc(var(--header-h) + 88px) 0 56px; background: var(--c-bg-alt); }
.page-head .section-title { font-size: clamp(30px, 4vw, 48px); }
.page-body { padding: 72px 0 128px; }

/* 티핏랩 이야기 */
.story-block { padding: 48px 0; border-top: 1px solid var(--c-line); }
.story-block:first-child { border-top: 2px solid var(--c-ink); }
.story-block h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--c-ink); letter-spacing: -.02em; margin-bottom: 20px; }
.story-block p { color: var(--c-text); }
.story-block p + p { margin-top: 10px; }
.story-block .en { color: var(--c-muted); font-size: 15px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv h3 { font-size: 14px; letter-spacing: .16em; color: var(--c-brand); margin-bottom: 10px; }
.mv strong { display: block; font-size: 19px; color: var(--c-ink); margin-bottom: 6px; }
.signature { margin-top: 28px; font-weight: 700; color: var(--c-ink); }

/* 신청 양식 */
.form { display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > label, .field legend { font-size: 15px; font-weight: 600; color: var(--c-ink); padding: 0; }
.req { color: var(--c-brand); margin-left: 2px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  font: inherit; font-size: 15px; color: var(--c-text);
  padding: 13px 14px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff; width: 100%;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-brand); }
.field textarea { resize: vertical; min-height: 120px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 14px; background: #fff;
}
.check input { accent-color: var(--c-brand); margin: 0; }
.check:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); color: var(--c-brand-dark); }
.check-etc input[type="text"] { border: 0; border-bottom: 1px solid var(--c-line); padding: 2px 4px; font: inherit; font-size: 14px; width: 140px; }
.is-invalid { border-color: var(--c-todo) !important; }
fieldset.is-invalid { border: 0 !important; }
fieldset.is-invalid legend { color: var(--c-todo); }
.consent { background: var(--c-bg-alt); border-radius: 12px; padding: 20px 22px; font-size: 14px; color: var(--c-muted); }
.consent dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; margin-bottom: 14px; }
.consent dt { font-weight: 600; color: var(--c-text); }
.consent a { color: var(--c-brand); font-weight: 600; }
.consent .check { margin-top: 6px; }
.form-msg { min-height: 1.6em; font-size: 14px; }
.form-msg.is-error { color: var(--c-todo); }
.form-msg.is-ok { color: var(--c-brand); }
.form .btn { align-self: flex-start; min-width: 200px; }

/* 구글 설문지 신청서 */
.form-note { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; }
.form-note a, .form-alt a { color: var(--c-brand); font-weight: 600; }
.gform { border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; background: #fff; }
.gform iframe { display: block; width: 100%; height: 2300px; border: 0; }
.form-alt { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--c-muted); }
@media (max-width: 600px) { .gform iframe { height: 2600px; } }

/* 개인정보 처리방침 */
.policy-doc h2 { font-size: 18px; font-weight: 700; color: var(--c-ink); margin: 40px 0 12px; }
.policy-doc p, .policy-doc li { font-size: 15px; color: var(--c-text); }
.policy-doc p + p { margin-top: 8px; }
.policy-doc ul, .policy-doc ol { margin: 8px 0; padding-left: 18px; }
.policy-doc ul { list-style: disc; }
.policy-doc ol { list-style: decimal; }
.policy-doc li + li { margin-top: 4px; }
.policy-doc .blank { color: var(--c-todo); font-weight: 600; }
.policy-doc .table-wrap { margin: 12px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.policy-doc table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 14px; }
.policy-doc th, .policy-doc td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; color: var(--c-text); }
.policy-doc thead th { background: var(--c-bg-alt); font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.policy-doc tbody th { font-weight: 700; white-space: nowrap; }
.policy-doc .memo { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--c-todo); background: #fbf3f1; font-size: 14px; color: var(--c-todo); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
  .chat.is-playing .step-item { display: flex; }
  .typing { display: none !important; }
  .hero-video { display: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .gnb { gap: 22px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; --gutter: 20px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 44px; }
  .logo img { height: 26px; }

  .menu-toggle { display: block; }
  .gnb {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; color: var(--c-ink); padding: 16px var(--gutter);
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  .gnb a { font-size: 19px; padding: 16px 0; border-bottom: 1px solid var(--c-line); opacity: 1; }
  .gnb .gnb-cta { margin-top: 24px; text-align: center; border-bottom: 0; }
  .chat-body { height: 420px; }
  .hero { min-height: 0; }
  .hero-shade { background: rgba(10,12,15,.66); }
  .menu-open .gnb { transform: none; visibility: visible; }
  .menu-open .site-header { background: #fff; color: var(--c-ink); }
  .menu-open { overflow: hidden; }

  #about { padding: 58px 0; }
  .pillars { gap: 48px; }
  .pillar { grid-template-columns: 1fr; gap: 24px; }
  .pillar:nth-child(even) .pillar-text { order: 0; }
  .index-list { grid-template-columns: 1fr; }
  .system-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0; text-align: left; }
  .step::before { top: 56px; left: 28px; width: 1px; height: calc(100% - 28px); }
  .step-num { margin: 0; grid-row: span 2; }
  .step p { margin-top: 4px; }
  .info-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .chat { justify-self: stretch; max-width: none; }
  .header-right { gap: 12px; }
  .mv { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .price-banner { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 24px; }
  .price-btn { width: 100%; justify-content: center; }
  .case-track { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }   /* 모바일: 화면 폭을 꽉 채움 */
  .case-nav { width: 38px; height: 38px; font-size: 22px; }
  .case-nav.prev { left: 6px; } .case-nav.next { right: 6px; }
  .case-thumb { flex-basis: 88px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .index-list .tag { display: none; }
  .form .btn { align-self: stretch; }
  .consent dl { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
