/* CoDoc 랜딩 — 그레이톤 디자인 시스템. 3 코어 그레이: 라이트(#E4E7EB) · 미드(#6E757E) · 딥(#181B1F). */
:root {
  --bg: #EEF1FB;            /* 울트라마린 청사진 틴트 — 앱(#EAEDF7 계열)과 정합 */
  --surface: #FFFFFF;
  --line: #E4E7EB;          /* 라이트 그레이 — 경계/구분선 */
  --line-soft: #EEF0F2;
  --mid: #6E757E;           /* 미드 그레이 — 라벨/메타 등 보조 텍스트 */
  --mid-soft: #9AA0A8;
  --body: #464C54;          /* 본문 그레이 — 단락/설명(대비 ≈8.4:1, 읽기용) */
  --ink: #181B1F;           /* 딥 그레이 — 본문/제목 */
  --ink-soft: #353A41;
  --spine-dim: #C8CFE0;     /* 안 그려진 선 */
  --spine-lit: #2C4BC4;     /* 그려진 선(군청 포인트) */
  --accent: #2C4BC4;        /* 군청 포인트 */
  --accent-deep: #26418C;
  --accent-soft: #E4E8F6;
  --accent-line: #CBD3EC;
  --shadow: 0 1px 2px rgba(24,27,31,.04), 0 8px 24px rgba(24,27,31,.06);
  --shadow-lg: 0 4px 12px rgba(24,27,31,.06), 0 24px 56px rgba(24,27,31,.10);
  --r: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-snap-type: y mandatory; }
/* 히어로 정거장 스냅 — 트랙(.scrolly) 안 투명 마커에만 스냅. mandatory + scroll-snap-stop:always = 한 제스처=한 정거장(엣지 중간 정지 방지). sticky 무대엔 절대 걸지 말 것. */
.snap-marker { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
/* 노드 '붙는' 락온 글로우 — scrolly.js 가 정착 시 .node-lock 토글. filter 라 인라인 transform(빌보드)과 안 겹침. */
@keyframes nodeLock { 0% { filter: drop-shadow(0 0 0 rgba(44,75,196,0)); } 24% { filter: drop-shadow(0 7px 28px rgba(44,75,196,.5)); } 100% { filter: drop-shadow(0 0 0 rgba(44,75,196,0)); } }
[data-node].node-lock { animation: nodeLock .62s var(--ease); }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(251,251,252,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand .mark { width: 22px; height: 22px; }
.brand .wordmark { height: 25px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--mid); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: transform .15s, background .2s; box-shadow: 0 4px 14px rgba(44,75,196,.22); }
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
/* 우상단 진입 CTA 쌍 — 로그인(고스트) + 무료로 시작하기(강조) */
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 14px; font-weight: 600; color: var(--ink); transition: color .2s; }
.nav-login:hover { color: var(--accent); }

/* 햄버거 + 좌측 슬라이드 메뉴 */
.nav-left { display: flex; align-items: center; gap: 14px; }
.hamb { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: border-color .2s, background .2s; box-shadow: var(--shadow); }
.hamb:hover { border-color: var(--mid-soft); }
.hamb span { width: 16px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .hamb span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
body.menu-open .hamb span:nth-child(2) { opacity: 0; }
body.menu-open .hamb span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }
.menu-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(24,27,31,.32); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); background: var(--surface); border-right: 1px solid var(--line); padding: 26px 22px; transform: translateX(-100%); transition: transform .34s var(--ease); display: flex; flex-direction: column; gap: 26px; overflow-y: auto; }
body.menu-open .menu-panel { transform: none; }
.menu-panel .brand { margin-bottom: 6px; }
.menu-group .menu-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mid-soft); margin-bottom: 8px; }
.menu-link { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 10px; font-size: 15.5px; font-weight: 600; color: var(--ink); transition: background .18s, color .18s; }
.menu-link span { font-size: 12px; color: var(--mid-soft); font-weight: 500; }
.menu-link:hover { background: var(--bg); }
.menu-link.prime { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(44,75,196,.24); }
.menu-link.prime span { color: rgba(255,255,255,.75); }
.menu-link.prime:hover { background: var(--accent-deep); }
.menu-link.sub { font-size: 14px; font-weight: 500; color: var(--mid); padding: 8px 12px; }

/* ── 버튼 ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: transform .15s var(--ease), background .2s, box-shadow .2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(44,75,196,.18), 0 8px 22px rgba(44,75,196,.22); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(44,75,196,.20), 0 22px 48px rgba(44,75,196,.26); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--mid-soft); transform: translateY(-2px); }
.btn-lg { font-size: 16px; padding: 15px 30px; }

/* ── 히어로 ──────────────────────────────────────────── */
.hero { padding: 168px 0 96px; text-align: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mid); background: var(--surface); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 28px; box-shadow: var(--shadow); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(44,75,196,.16); }
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(170deg, var(--ink) 30%, var(--accent) 145%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--mid); max-width: 620px; margin: 0 auto 36px; line-height: 1.6; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .trust { margin-top: 22px; font-size: 13px; color: var(--mid-soft); }

/* 히어로 미니 플로우 미리보기 */
/* 기본은 항상 보이게(opacity:1) + 입장 애니메이션은 fill 없이 — 애니메이션이 멈춰도 절대 숨지 않음 */
.hero-flow { margin: 56px auto 0; max-width: 900px; display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; opacity: 1; animation: heroFlowIn .7s var(--ease); }
@keyframes heroFlowIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hf-step { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.hf-node { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }
.hf-cap { font-size: 11px; color: var(--mid-soft); font-weight: 500; white-space: nowrap; }
.hf-arrow { color: var(--mid-soft); margin: 0 12px; font-size: 13px; margin-top: 14px; flex: none; }
.hf-arrow b { color: var(--accent); font-weight: 700; }

/* 스크롤 안내 큐 */
.scroll-cue { margin-top: 48px; display: inline-flex; flex-direction: column; align-items: center; gap: 7px; color: var(--mid-soft); font-size: 13px; font-weight: 500; }
.scroll-cue svg { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* 스크롤리텔링 히어로 — 점등 엣지 위로 흐르는 흰색 셔머(입자) */
@keyframes codocFlowDash { to { stroke-dashoffset: -240; } }

/* 눈송이 반짝이 — 길(엣지) 주변에 흩날리며 깜빡이는 글레어 */
[data-sparkles] { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
[data-sparkles] .spk {
  position: absolute; width: calc(var(--s, 4px) * 2.4); height: calc(var(--s, 4px) * 2.4);
  background: radial-gradient(circle, rgba(255,255,255,.98) 0%, rgba(200,208,238,.85) 45%, rgba(200,208,238,.2) 100%);
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%); /* 4갈래 별(눈송이) */
  filter: drop-shadow(0 0 2px rgba(255,255,255,.7));
  opacity: 0; will-change: transform, opacity;
  animation: spkSnow 5.5s ease-in-out infinite;
}
@keyframes spkSnow {
  0%   { opacity: 0; transform: translate(-6px,14px) scale(.25) rotate(0deg); }
  45%  { opacity: 1; transform: translate(2px,0) scale(1) rotate(120deg); }
  100% { opacity: 0; transform: translate(8px,-22px) scale(.45) rotate(240deg); }
}

/* 히어로(개요) → 상세 설명 구분 밴드 — 몰입형 3D 씬과 평면 상세 콘텐츠의 경계 */
.detail-intro { text-align: center; padding: 104px 24px 52px; } /* 풀폭 다크 밴드 — 콘텐츠는 아래 자식에서 폭 제한 */
/* 히어로를 나가는 제스처가 피날레 마커로 되끌리지 않고 다크 밴드에 착지 */
@media (pointer: fine) { .detail-intro { scroll-snap-align: start; } }
/* 상세 펼침 = 읽기 모드 — 페이지 스냅 전체 OFF(자유 스크롤). 포인트만 없애면 브라우저가
   '사라진 스냅 위치'를 히어로 마커로 재스냅해 CTA로 튀므로, 스크롤러(html)의 snap-type을 끈다. */
html.detail-open { scroll-snap-type: none; }
.detail-intro .di-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 6px 14px; }
.detail-intro h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 16px auto 12px; max-width: 640px; line-height: 1.15; }
.detail-intro p { font-size: 16px; color: var(--body); line-height: 1.6; margin: 0 auto; max-width: 520px; }
.detail-intro .di-toggle { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--accent-deep); background: var(--surface); border: 1px solid var(--accent-line); border-radius: 999px; padding: 11px 20px; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.detail-intro .di-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
.detail-intro .di-toggle:active { transform: translateY(1px); }
.detail-intro .di-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.detail-intro .di-chev { transition: transform .3s var(--ease); }
.detail-intro .di-toggle[aria-expanded="true"] .di-chev { transform: rotate(180deg); }

/* 상세 콘텐츠 — 기본 접힘, 펼치면 페이드인 */
.detail-content[hidden] { display: none; }
/* 상세 안내 밴드 + 콘텐츠 = 앱 드로잉모드 다크(울트라마린 청사진). 토큰 스코프 오버라이드 + 청사진 도트 배경(seam 없게 플랫). --accent·--r 공통 유지 */
.detail-intro, .detail-content {
  --bg: #0B1030; --surface: #161C42; --line: #28306A; --line-soft: #20284E;
  --mid: #8E97C0; --mid-soft: #6C76A0; --body: #C2CAE8; --ink: #E9ECFB; --ink-soft: #C8D0EC;
  --spine-dim: #2E3A6A; --spine-lit: #8FB4FF;
  --accent-deep: #8FB4FF; --accent-soft: #1A2050; --accent-line: #2E3A6A;
  --shadow: 0 1px 2px rgba(3,6,20,.4), 0 10px 30px rgba(3,6,20,.5);
  --shadow-lg: 0 6px 18px rgba(3,6,20,.5), 0 28px 64px rgba(3,6,20,.6);
  color: var(--body);
  background: radial-gradient(circle, rgba(143,180,255,.07) 1px, transparent 1.5px) -6px -6px / 26px 26px, #0B1030;
}
.detail-content { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); } /* 펼치면 부드럽게 페이드+슬라이드 인 */
.detail-content.in { opacity: 1; transform: translateY(0); }
.detail-content:focus { outline: none; } /* 프로그램적 포커스 대상 — 링 숨김 */
/* 다크 스코프 하드코딩 보정 */
.detail-content .step .num { background: var(--accent); }            /* 라이트의 var(--ink) 배경은 다크선 흰텍스트가 안 보임 */
.detail-content h2, .detail-content h3, .detail-content .persona .role { color: var(--ink); } /* 제목은 밝게(--body 상속 방지) */
.detail-content .kicker { color: var(--accent-deep); }               /* 킥커: 다크에선 밝은 파랑(대비 확보) */
.detail-content .card .ic { background: var(--accent-soft); border-color: var(--accent-line); }
.detail-content .vibe-card.off { background: #10152E; }
@media (prefers-reduced-motion: reduce) { .detail-content { transition: none; transform: none; } }

/* ── 플로우차트 스파인(스크롤로 그려지는 선) ──────────── */
.flow-section { position: relative; padding: 40px 0 80px; }
#spine-svg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--maxw); height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
#spine-bg { fill: none; stroke: var(--spine-dim); stroke-width: 2.5; stroke-linejoin: round; }
#spine-fg { fill: none; stroke: var(--spine-lit); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* 노드(섹션 카드) */
/* 좌측 레일 타임라인 — 스파인/도트는 왼쪽 고정, 콘텐츠는 그 오른쪽(어떤 해상도에서도 안 겹침) */
.node { position: relative; z-index: 1; max-width: 940px; margin: 80px 0; padding-left: 72px; opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.node.in { opacity: 1; transform: none; }
.node.left, .node.right, .node.center { margin-left: 0; margin-right: 0; max-width: 940px; text-align: left; }

.node-dot { position: absolute; top: 32px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--spine-dim); left: 30px; transform: translateX(-50%); z-index: 2; transition: border-color .4s, background .4s, box-shadow .4s; }
.node-dot.lit { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(44,75,196,.14); }

.kicker { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.node h2 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.18; font-weight: 800; letter-spacing: -0.028em; margin-bottom: 16px; }
.node .lead { font-size: 17px; color: var(--body); line-height: 1.7; }

/* 카드(불편/강점/기능 그리드) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.02em; }
.card p { font-size: 14.5px; color: var(--body); line-height: 1.62; }
.card .metric { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 10px; border-radius: 8px; }
.grid { display: grid; gap: 16px; width: 100%; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }

/* 바이브 코딩 대비 비주얼 */
.vibe-split { display: flex; align-items: stretch; gap: 16px; width: 100%; margin-top: 30px; text-align: left; }
.vibe-card { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.vibe-card.off { background: #FAFAFB; }
.vibe-card.on { border-color: var(--accent); box-shadow: 0 4px 14px rgba(44,75,196,.10), 0 18px 44px rgba(44,75,196,.10); }
.vibe-label { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 16px; }
.vibe-card.off .vibe-label { color: var(--mid); background: var(--bg); border: 1px solid var(--line); }
.vibe-card.on .vibe-label { color: #fff; background: var(--accent); }
.vibe-ais { display: flex; flex-direction: column; gap: 8px; }
.vibe-ais.center { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.vibe-ai { font-size: 14px; font-weight: 600; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; display: inline-block; }
.vibe-card.off .vibe-ai { color: var(--mid); }
.vibe-one { font-size: 14px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 9px; padding: 7px 13px; }
.vibe-cap { margin-top: 16px; font-size: 13.5px; color: var(--mid); }
.vibe-card.on .vibe-cap { color: var(--accent-deep); font-weight: 600; }
.vibe-mid { align-self: center; font-size: 22px; color: var(--mid-soft); font-weight: 700; flex: none; }

/* 작동원리 스텝 */
.steps { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.step .num { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--body); line-height: 1.55; }

/* 타겟(페르소나) */
.persona { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.persona:last-child { border-bottom: none; }
.persona .role { flex: none; width: 130px; font-weight: 700; font-size: 15px; }
.persona .pbody { font-size: 14.5px; color: var(--body); line-height: 1.6; }
.persona .pbody b { color: var(--ink-soft); font-weight: 600; }

/* 가격 */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; margin-top: 8px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tier.feat { border-color: var(--accent); box-shadow: 0 4px 12px rgba(44,75,196,.10), 0 24px 56px rgba(44,75,196,.14); position: relative; }
.tier.feat::before { content: "추천"; position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tier h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.tier .tag { font-size: 13px; color: var(--mid); margin-bottom: 16px; }
.tier .price { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.tier .price small { font-size: 14px; font-weight: 500; color: var(--mid); }
.tier ul { list-style: none; margin-bottom: 22px; flex: 1; }
.tier li { font-size: 14px; color: var(--ink-soft); padding: 7px 0; padding-left: 24px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.tier .btn { width: 100%; justify-content: center; }

/* ── 최종 CTA ────────────────────────────────────────── */
.final-cta { margin: 40px 0 0; background: var(--ink); border-radius: 28px; padding: 72px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.final-cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.final-cta p { color: #B7BCC4; font-size: 18px; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 26px rgba(44,75,196,.4); }
.final-cta .btn-primary:hover { background: #3A5AD8; }
.final-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.final-cta .btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.final-cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 푸터 ────────────────────────────────────────────── */
footer.wrap { padding: 44px 24px 40px; border-top: 1px solid var(--line); margin-top: 40px; } /* footer.wrap = .wrap 오버라이드(간격 살림) */
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.foot-brand { max-width: 280px; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { font-size: 13px; color: var(--mid); }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mid-soft); margin-bottom: 12px; font-weight: 700; }
.foot-col a { display: block; font-size: 14px; color: var(--mid); padding: 4px 0; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mid-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── 법무 문서(약관/개인정보) ────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 140px 24px 100px; }
.doc h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.doc .meta { color: var(--mid-soft); font-size: 14px; margin-bottom: 12px; }
.doc .notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--mid); border-radius: 10px; padding: 14px 18px; font-size: 14px; color: var(--mid); margin-bottom: 36px; }
.doc h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.02em; }
.doc p, .doc li { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.doc ul { margin: 8px 0 8px 20px; }
.doc li { padding: 3px 0; }
.doc .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mid); margin-bottom: 28px; font-weight: 500; }
.doc .back:hover { color: var(--ink); }

/* ── 반응형 ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  /* 모바일은 좌측 레일 + 엘보 — 선이 각 카드로 직각으로 꺾여 들어가 '흐름선'으로 읽힘(스크롤바 오해 제거). 레일 20px·도트 42px·콘텐츠 60px */
  .node, .node.left, .node.right, .node.center { margin-left: 0; margin-right: 0; max-width: 100%; text-align: left; padding-left: 60px; }
  .node-dot { left: 42px; width: 18px; height: 18px; border-width: 3px; }
  .node-dot.lit { box-shadow: 0 0 0 7px rgba(44,75,196,.14); }
  .pricing, .grid.g3 { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 70px; }
  /* 스크롤리텔링 히어로 — 좁은 화면에선 스텝 레일 숨김(카드와 겹침/라벨 넘침 방지), 구분 밴드 패딩 축소 */
  .scrolly [data-rail] { display: none; }
  .detail-intro { padding-top: 72px; }
}
@media (max-width: 560px) {
  .grid.g2 { grid-template-columns: 1fr; }
  .vibe-split { flex-direction: column; }
  .vibe-mid { transform: rotate(90deg); }
  .persona { flex-direction: column; gap: 4px; }
  .persona .role { width: auto; }
  .final-cta { padding: 52px 24px; border-radius: 20px; }
}

/* 한글 제목 — 단어 중간 줄바꿈 방지(설계도 → 설/계도 같은 어절 분리) */
.scrolly [data-headline] h1, .scrolly [data-endcta] h2, .scrolly .ntext > div:nth-child(2) { word-break: keep-all; }

/* ── 3D 히어로 모바일(≤680) — 노드 [화면|설명] 세로 스택, 타이포 축소.
   노드 내부는 인라인 스타일이라 !important 오버라이드(훅 클래스: nrow/ncanvas/ntext/ndiv) ── */
@media (max-width: 680px) {
  .scrolly [data-node] { width: min(88vw, 430px) !important; }
  .scrolly .nrow { flex-direction: column !important; gap: 16px !important; align-items: stretch !important; }
  .scrolly .ncanvas { flex: 0 0 auto !important; width: 100% !important; }
  .scrolly .ntext { text-align: left !important; }
  .scrolly .ntext > div:nth-child(1) { flex-direction: row !important; }   /* 눈썹(row-reverse 컬럼 포함) 정방향 */
  .scrolly .ntext > div:nth-child(2) { font-size: 19px !important; }       /* 제목 27/25px → 19px */
  .scrolly .ntext > div:nth-child(3) { font-size: 13.5px !important; }     /* 본문 15.5px → 13.5px */
  .scrolly .ndiv { width: 100% !important; height: 1px !important; }       /* 노드5 구분선 세로→가로 */
}

/* 모션 최소화 선호 */
@media (prefers-reduced-motion: reduce) {
  .node, .hero-flow { opacity: 1 !important; transform: none !important; transition: none; animation: none !important; }
  .scroll-cue svg { animation: none; }
  [data-sparkles] .spk { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
}
