/* 오리진 홍보 페이지 — 토큰 + 레이아웃 + 컴포넌트 (promo-site §5-1).
   ⚠️ 인라인 스타일 금지(D-5) — 응답 CSP 가 'unsafe-inline' 을 열지 않는다. 동적 값은 JS 가 el.style 로만 건다. */

@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap;
  src: url("/site/fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap;
  src: url("/site/fonts/Pretendard-Bold.subset.woff2") format("woff2"); }

:root {
  --color-bg: #F4F4F1;
  --color-surface: #FFFFFF;
  --color-ink: #161616;
  --color-ink-2: #3D3D3A;
  --color-mute: #5C5C58;
  --color-line: #DDDDD8;
  --color-line-2: #EDEDE9;
  --color-dot: #C4C4BE;
  --color-accent: #2350E0;
  --color-accent-dark: #1A3DB0;
  --color-ok: #0F766E;
  --color-warn: #C2410C;
  --color-on-dark: #C9C9C4;
  --color-on-dark-2: #A9A9A3;

  --font-sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-h3: 1.625rem;
  --text-h2: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  --text-h1: clamp(2.125rem, 1.2rem + 2.4vw, 2.75rem);

  --space-1: 0.375rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-section: clamp(4rem, 3rem + 3vw, 6rem);
  --space-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 18px;
  --shadow: 0 12px 40px rgba(22, 22, 22, 0.08);
  --shadow-hover: 0 14px 32px rgba(22, 22, 22, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── 기본 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-ink); font-family: var(--font-sans);
  font-size: var(--text-base); line-height: 1.6; }
h1, h2, h3, p { margin: 0; word-break: keep-all; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-gutter); }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }
.section { padding-block: var(--space-section); }
.section-sm { padding-block: calc(var(--space-section) * 0.85); }
.section-head { display: flex; flex-direction: column; gap: var(--space-2); }
.section-head p { font-size: var(--text-md); color: var(--color-ink-2); }
.band-white { background: var(--color-surface); border-block: 1px solid var(--color-line); }
.band-white > .wrap { padding-block: var(--space-section); }
.band-dark { background-color: var(--color-ink); color: #FFFFFF;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.13) 1.2px, transparent 1.6px);
  background-size: 24px 24px; }
.band-dark .section-head p { color: var(--color-on-dark); }
.note { font-size: var(--text-sm); color: var(--color-mute); }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: var(--space-3); }
.grid-feature { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1.25rem; }

/* ── 버튼 ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0.7rem 1.25rem; border-radius: var(--radius-sm); border: 0; font-weight: 700; font-size: 0.9375rem;
  text-decoration: none; cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 22, 22, 0.18); }
.btn:active { transform: none; box-shadow: none; }
.btn-lg { padding: 1rem 1.6rem; font-size: var(--text-md); border-radius: 12px; }
.btn-primary, .btn-primary:hover { background: var(--color-accent); color: #FFFFFF; }
.btn-white, .btn-white:hover { background: #FFFFFF; color: var(--color-ink); }
.btn-outline, .btn-outline:hover { background: #FFFFFF; color: var(--color-ink); border: 1px solid var(--color-ink); }
.btn-ghost { min-height: 44px; padding: 0.5rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--color-line);
  background: #FFFFFF; color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; cursor: pointer;
  transition: background-color 0.15s; }
.btn-ghost:hover { background: var(--color-bg); }

/* ── 머리 · 히어로 ─────────────────────────────────── */
.hero-bg { position: relative; overflow: hidden;
  background-image: linear-gradient(180deg, rgba(244, 244, 241, 0) 0%, rgba(244, 244, 241, 0.2) 55%, var(--color-bg) 100%),
    radial-gradient(circle, var(--color-dot) 1.2px, transparent 1.6px);
  background-size: 100% 100%, 24px 24px; }
/* 배경 빛 번짐 — 흐림 필터 대신 방사형 그라데이션(그리는 비용이 거의 없다) */
.hero-bg::before, .band-dark::before { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.hero-bg::before { width: 720px; height: 720px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(35, 80, 224, 0.16), rgba(35, 80, 224, 0)); }
.band-dark::before { width: 900px; height: 900px; left: -300px; top: -260px;
  background: radial-gradient(closest-side, rgba(35, 80, 224, 0.28), rgba(35, 80, 224, 0)); }
.band-dark { position: relative; overflow: hidden; }
.hero, .band-dark > .wrap { position: relative; }

/* 상단 바 — 따라오고, 내려가면 테두리가 생긴다. 진행 막대는 읽은 만큼 찬다(지원 브라우저만 — 장식이다) */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(244, 244, 241, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.topbar.is-stuck { border-bottom-color: var(--color-line); box-shadow: 0 6px 24px rgba(22, 22, 22, 0.06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  padding-block: 0.875rem; }
.nav a[aria-current="true"] { color: var(--color-ink); font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--color-accent);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
section[id] { scroll-margin-top: 84px; }
.brand { font-weight: 700; font-size: 1.375rem; letter-spacing: 0.08em; color: var(--color-ink); text-decoration: none; }
.brand:hover { color: var(--color-ink); }
/* 심볼 마크(파비콘과 같은 A 안, U-28) — 글자 앞. 크기는 글자 높이를 따른다 */
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 0.55em; }
.brand-mark { width: 1.3em; height: 1.3em; flex: none; }
.footer-brand .brand-mark { width: 0.9em; height: 0.9em; }
.nav { display: flex; gap: 1.75rem; flex-wrap: wrap; font-size: 0.9375rem; }
.nav a { color: var(--color-ink-2); text-decoration: none; }
.nav a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6);
  padding-block: var(--space-6) calc(var(--space-section) * 1.2); }
.hero-copy { flex: 1.3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.hero h1 { font-size: var(--text-h1); line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: var(--text-lg); line-height: 1.65; color: var(--color-ink-2); }
.lead-sm { font-size: var(--text-md); line-height: 1.7; color: var(--color-ink-2); }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.link-down { color: var(--color-ink); font-weight: 700; text-decoration: none; padding: 0.75rem 0.25rem;
  border-bottom: 2px solid var(--color-ink); }
.link-down:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ── 예시 틀 (.mock) ─────────────────────────────────── */
.mock { margin: 0; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: var(--space-4); display: flex; flex-direction: column; gap: 0.875rem; }
.mock-hero { flex: 1 1 420px; min-width: 0; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  min-height: 44px; }
.mock-label { background: var(--color-ink); color: #FFFFFF; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.625rem; border-radius: 999px; }
.mock-caption { font-size: var(--text-xs); color: var(--color-mute); }

/* ── AI 대화 (.chat) ─────────────────────────────────── */
.chat { display: flex; flex-direction: column; gap: 0.875rem; }
.chat > * { margin: 0; animation: pop 0.28s var(--ease) both; }
.chat-user { align-self: flex-end; max-width: 80%; background: var(--color-ink); color: #FFFFFF;
  padding: 0.75rem 1rem; border-radius: 16px 16px 4px 16px; font-size: 0.9375rem; }
.chat-tool { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--color-mute); }
.chat-ai { max-width: 92%; background: var(--color-bg); padding: 0.875rem 1rem; border-radius: 16px 16px 16px 4px;
  font-size: 0.9375rem; line-height: 1.65; white-space: pre-line; }
.chat-typing { align-self: flex-start; display: flex; gap: 5px; background: var(--color-bg); padding: 0.875rem 1rem;
  border-radius: 16px 16px 16px 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-mute); animation: dot 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
.spin { flex: none; width: 10px; height: 10px; border: 2px solid var(--color-on-dark-2); border-top-color: var(--color-ink);
  border-radius: 50%; animation: spin 0.8s linear infinite; }
.caret { animation: blink 1s steps(1) infinite; margin-left: 1px; }

/* 히어로 입력창 — 질문이 여기 타이핑된 뒤 전송된다(장식 — 실제 입력은 받지 않는다) */
.mock-hero { justify-content: space-between; }
.composer { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; border: 1px solid var(--color-line);
  border-radius: 14px; padding: 0.5rem 0.5rem 0.5rem 1rem; background: var(--color-surface);
  box-shadow: 0 4px 16px rgba(35, 80, 224, 0.06); }
.composer-text { font-size: 0.9375rem; white-space: nowrap; overflow: hidden; }
.composer-text:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px;
  vertical-align: -0.15em; background: var(--color-accent); animation: blink 1s steps(1) infinite; }
.composer-placeholder { flex: 1 1 auto; font-size: 0.9375rem; color: var(--color-on-dark-2); }
.composer-text:not(:empty) + .composer-placeholder { visibility: hidden; }
.composer-send { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center; }
.composer-send svg { width: 18px; height: 18px; fill: none; stroke: #FFFFFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.composer.is-sent .composer-send { animation: press 0.25s var(--ease); }
.hero-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hchip { min-height: 44px; padding: 0.375rem 0.875rem; border-radius: 999px; border: 1px solid var(--color-line);
  background: #FFFFFF; color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s; }
.hchip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.hchip[aria-pressed="true"] { border-color: var(--color-accent); background: rgba(35, 80, 224, 0.08); color: var(--color-accent); font-weight: 700; }

/* ── 고민 카드 · 기능 카드 ─────────────────────────────── */
.lift { transition: translate 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.lift:hover { translate: 0 -4px; box-shadow: var(--shadow-hover); border-color: var(--color-ink); }
.pain { border: 1px solid var(--color-line); border-radius: var(--radius); padding: 1.75rem; display: flex;
  flex-direction: column; gap: 1.125rem; background: var(--color-surface); }
.pain-q { font-size: 1.375rem; font-weight: 700; line-height: 1.45; }
.pain-answer { color: var(--color-ink-2); }
.features { margin-top: var(--space-4); gap: var(--space-4); }
.feature { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--color-bg); display: flex;
  align-items: center; justify-content: center; }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--color-accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.feature-name { font-size: 1.1875rem; font-weight: 700; }
.feature-say { font-size: 0.9375rem; }
.feature-what { font-size: var(--text-sm); color: var(--color-mute); }

/* ── 대시보드 예시 ─────────────────────────────────── */
.mock-stats { padding: 1.75rem; gap: var(--space-4); }
.stats-title { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; font-weight: 700; }
.seg { display: flex; border: 1px solid var(--color-ink); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { min-height: 44px; padding: 0.5rem 1rem; border: 0; background: #FFFFFF; color: var(--color-ink);
  font-size: var(--text-sm); font-weight: 700; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.seg button[aria-pressed="true"] { background: var(--color-ink); color: #FFFFFF; }
.kpi { background: var(--color-bg); border-radius: 12px; padding: 1.125rem; display: flex; flex-direction: column; gap: 0.25rem; }
.kpi-name { font-size: var(--text-xs); color: var(--color-mute); }
.kpi-value { font-size: 1.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart { position: relative; height: 230px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 230px; display: block; }
.grid-line { stroke: var(--color-line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grid-line.base { stroke: var(--color-line); }
.line { fill: none; stroke: var(--color-accent); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; }
.chart-end { position: absolute; left: 98%; top: 81px; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--color-accent); pointer-events: none; }
.chart-axis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  font-size: var(--text-xs); color: var(--color-mute); }
.chart-hits { position: absolute; left: 0; right: 0; top: 0; height: 200px; display: flex; cursor: crosshair; }
.chart-hits span { flex: 1 1 0; }
.chart-guide { position: absolute; top: 0; bottom: 30px; width: 0; border-left: 1px dashed var(--color-on-dark-2);
  pointer-events: none; }
.chart-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #FFFFFF; border: 3px solid var(--color-ink); pointer-events: none; }
.chart-tip { position: absolute; background: var(--color-ink); color: #FFFFFF; font-size: var(--text-xs); font-weight: 700;
  padding: 0.375rem 0.625rem; border-radius: 8px; white-space: nowrap; pointer-events: none; }

/* ── 어드민 화면 다시 그림 (.screen) — 예시 대화(.mock)와 다른 틀: 창 모양 ─────── */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--space-5);
  align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: var(--space-2); }
.split-copy h3 { font-size: 1.5rem; }
.split-copy p { color: var(--color-ink-2); }
.screen { margin: 0; display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.screen-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem; background: #EFEFEC;
  border: 1px solid var(--color-line); border-bottom: 0; border-radius: 14px 14px 0 0; }
.screen-dots { display: flex; gap: 6px; }
.screen-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D3D3CE; }
.screen-title { flex: 1 1 auto; font-size: var(--text-xs); color: var(--color-mute); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.screen-label { flex: none; font-size: 0.6875rem; font-weight: 700; color: var(--color-accent); border: 1px solid var(--color-accent);
  padding: 0.125rem 0.5rem; border-radius: 999px; }
.screen-body { background: var(--color-surface); border: 1px solid var(--color-line); border-top: 0; border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 36px rgba(22, 22, 22, 0.08); padding: 1rem 1.125rem 0.5rem; }
.screen-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.screen-head span, .screen-stats { font-size: var(--text-xs); color: var(--color-mute); }
.screen-stats { margin-bottom: 0.5rem; }
.screen-stats b { color: var(--color-ink); }
.screen-caption { font-size: var(--text-xs); color: var(--color-mute); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.tbl th { text-align: left; font-weight: 700; color: var(--color-mute); padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--color-line); white-space: nowrap; }
.tbl td { padding: 0.625rem 0.5rem; border-bottom: 1px solid var(--color-line-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl code { font-family: var(--font-mono); font-size: 0.75rem; background: var(--color-bg); padding: 0.125rem 0.375rem; border-radius: 6px; }
.tag-new { margin-left: 0.5rem; font-size: 0.6875rem; font-weight: 700; color: var(--color-accent); }
.st-done { font-size: 0.6875rem; font-weight: 700; color: var(--color-ok); background: rgba(15, 118, 110, 0.10);
  padding: 0.125rem 0.375rem; border-radius: 6px; }
.st-run { font-size: 0.6875rem; font-weight: 700; color: var(--color-warn); background: rgba(194, 65, 12, 0.10);
  padding: 0.125rem 0.375rem; border-radius: 6px; }
/* 새로 발견된 행 — 표가 화면에 들어오고 잠시 뒤에 나타나 반짝인다. 승인 데모가 넣는 행도 같은 반짝임 */
.js #screen-catalog .is-new { opacity: 0; transition: opacity 0.4s ease 1.1s; }
.js #screen-catalog.in .is-new { opacity: 1; }
.js #screen-catalog.in .is-new td, .tbl tr.is-flash td { animation: flash 2.4s ease 1.1s both; }
.tbl tr.is-flash td { animation-delay: 0s; }

/* ── 물어보기 ─────────────────────────────────────── */
.ask { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.ask-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ask-picker { display: flex; flex-direction: column; gap: var(--space-2); }
.ask-hint { font-size: var(--text-sm); color: var(--color-on-dark); }
.chip { text-align: left; min-height: 44px; padding: 1rem 1.25rem; border-radius: 14px; cursor: pointer;
  font-size: var(--text-md); font-weight: 700; color: #FFFFFF; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s var(--ease); }
.chip:hover { border-color: #FFFFFF; transform: translateX(4px); }
.chip[aria-pressed="true"] { background: #FFFFFF; color: var(--color-ink); border-color: #FFFFFF; }
.ask-note { font-size: var(--text-xs); line-height: 1.6; color: var(--color-on-dark-2); }
.mock-ask { flex: 2 1 460px; min-width: 0; color: var(--color-ink); box-shadow: none; }
.ask-thread { display: flex; flex-direction: column; gap: 0.875rem; }
.ask-thread + .ask-thread { border-top: 1px solid var(--color-line-2); padding-top: var(--space-4); }
.ask-q { font-size: var(--text-sm); color: var(--color-mute); font-weight: 700; }
.js .ask-q { display: none; }
.js .ask-thread + .ask-thread { border-top: 0; padding-top: 0; }

/* ── 안전 · 승인 데모 ───────────────────────────────── */
.safety { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-start; }
.safety-copy { flex: 1 1 380px; min-width: 0; gap: 1.25rem; }
.screen-wide { flex: 1 1 540px; }
.dots-list { margin: 0; padding-left: 1.1rem; line-height: 2; }
.mock-approve { box-shadow: 0 10px 32px rgba(22, 22, 22, 0.06); }
.appr-state { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-xs); font-weight: 700; color: var(--color-mute); }
.appr-state.is-run { color: var(--color-warn); }
.appr-state.is-done { color: var(--color-ok); }
.appr-title { font-weight: 700; line-height: 1.5; }
.appr-tools { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-mute); }
.appr-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.appr-rejected { color: var(--color-ink-2); }
.appr-log { border-top: 1px solid var(--color-line-2); padding-top: var(--space-2); display: flex; flex-direction: column; gap: 0.5rem; }
.appr-log-title { font-size: 0.75rem; font-weight: 700; color: var(--color-mute); }
.appr-row { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); animation: pop 0.28s var(--ease) both; }
.appr-row .when { width: 2.5rem; color: var(--color-mute); }
.appr-row .who { width: 4.25rem; }
.appr-row .tool { flex: 1 1 auto; font-family: var(--font-mono); }
.appr-row .st { font-weight: 700; color: var(--color-warn); }
.appr-row .st.ok { color: var(--color-ok); }
.mock-approve .btn-ghost { align-self: flex-start; }

/* ── 다음 단계 · 다른 점 · 도입 ────────────────────────── */
.next { position: relative; overflow: hidden; }
.next > .wrap { position: relative; }
.next-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.35; }
.next-path path { fill: none; stroke: var(--color-accent); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; }
.next-path circle { fill: none; stroke: var(--color-accent); stroke-width: 2.5; }
.next-path circle.fill { fill: var(--color-accent); stroke: none; }
.next-head { display: flex; gap: 0.875rem; align-items: center; flex-wrap: wrap; }
.next-head h2 { font-size: 1.875rem; }
.pill { border: 1px solid var(--color-ink); font-size: var(--text-xs); font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; }
.step-card { background: var(--color-bg); border-radius: 14px; padding: 1.375rem; display: flex; flex-direction: column; gap: 0.5rem; }
.step-card.dashed { background: transparent; border: 2px dashed var(--color-on-dark-2); }
.step-when { font-size: var(--text-xs); font-weight: 700; color: var(--color-mute); }
.step-flow { font-size: 1.125rem; font-weight: 700; }
.step-sub { font-size: 0.9375rem; color: var(--color-ink-2); }
.why { display: flex; flex-direction: column; gap: 0.625rem; }
.why-no { font-size: 2.5rem; font-weight: 700; color: var(--color-accent); line-height: 1; }
.why-title { font-size: 1.1875rem; font-weight: 700; }
.why-body { font-size: 0.9375rem; line-height: 1.7; color: var(--color-ink-2); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding-top: var(--space-3); display: flex; flex-direction: column; gap: 0.5rem; }
/* 도입 단계 선 — 등장할 때 왼쪽부터 차오른다(앞 단계가 먼저) */
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-ink);
  transform-origin: 0 50%; }
.js .steps li.rv::before { transform: scaleX(0); background: var(--color-accent);
  transition: transform 0.7s var(--ease) calc(var(--i, 0) * 160ms + 150ms), background-color 0.4s 1.4s; }
.js .steps li.rv.in::before { transform: none; background: var(--color-ink); }
.step-no { font-size: var(--text-sm); font-weight: 700; color: var(--color-mute); }
.step-title { font-size: 1.125rem; font-weight: 700; }
.step-body { font-size: 0.9375rem; color: var(--color-ink-2); }

/* 맞춤 제작 — 「도입 절차」 아래 짙은 카드(보조 CTA, U-30) */
.custom { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--space-5); align-items: center; margin-top: var(--space-3); padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-radius: 24px; background: var(--color-ink); color: #FFFFFF; }
.custom::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(35, 80, 224, 0.45), rgba(35, 80, 224, 0)); }
.custom > * { position: relative; }
.custom-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.custom-eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; color: #9DB5FF; }
.custom-copy h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.3; }
.custom-copy p { color: var(--color-on-dark); line-height: 1.7; }
.custom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.custom-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.125rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.10); }
.custom-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: #9DB5FF; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; }
.custom-list span { display: flex; flex-direction: column; gap: 0.125rem; font-size: var(--text-sm); color: var(--color-on-dark); }
.custom-list b { font-size: 1rem; color: #FFFFFF; }

/* ── 문의 · 바닥 ───────────────────────────────────── */
.contact-wrap { padding-block: var(--space-6); }
.contact { position: relative; overflow: hidden; background: var(--color-accent); color: #FFFFFF; border-radius: 24px;
  padding: 4rem 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.contact > * { position: relative; }
.contact h2 { font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.5rem); }
.contact-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.28; }
.contact-lines polyline { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.contact-lines polyline.dash { stroke-width: 1.5; stroke-dasharray: 6 8; }
.contact-note { font-size: var(--text-sm); color: #E6ECFF; }
/* 바닥 드러내기 — 본문(main)이 위로 걷히면서 밑에 깔린 바닥이 드러난다 */
main { position: relative; z-index: 1; display: block; background: var(--color-bg);
  box-shadow: 0 24px 48px rgba(22, 22, 22, 0.10); }
.footer { position: sticky; bottom: 0; z-index: 0; background: var(--color-ink); color: var(--color-on-dark); }
.footer-inner { padding-block: 3rem 2rem; display: flex; flex-direction: column; gap: var(--space-5); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.footer-brand { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); font-weight: 700; letter-spacing: 0.06em; line-height: 1;
  color: #FFFFFF; text-decoration: none; }
.footer-brand:hover { color: #FFFFFF; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: var(--text-sm); }
.footer-nav a { color: var(--color-on-dark); text-decoration: none; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { font-size: var(--text-xs); color: var(--color-on-dark-2); }

/* ── 움직임 ─────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes press { 50% { transform: scale(0.86); } }
@keyframes flash { 0%, 30% { background-color: rgba(35, 80, 224, 0.12); } 100% { background-color: transparent; } }

/* 등장 — 화면에 들어오면 한 번, 탄성 있게 떠오른다. 같은 묶음 안에서는 --i(순번)만큼 늦게(차례로 등장).
   JS 가 있을 때만 숨긴다(.js) — JS 가 없으면 처음부터 다 보인다.
   ⚠️ 카드의 호버 들림은 transform 이 아니라 translate 속성을 쓴다 — 등장(transform)과 서로 덮어쓰지 않게. */
.js .rv { --d: calc(var(--i, 0) * 80ms); opacity: 0; transform: translateY(26px);
  transition: opacity 0.5s var(--ease) var(--d), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d),
    translate 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .steps li.rv::before { transform: none; }
  .progress { display: none; }
  .lift:hover, .btn:hover, .chip:hover { translate: none; transform: none; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding-block: var(--space-4) var(--space-section); }
  .chat-user, .chat-ai { max-width: 100%; }
  .contact { padding: 3rem 1.25rem; }
}
