/* 오토리 홈페이지 v2 — 전체 다크 (2026-11-23 대표 결정)
   블랙 + 살구 하나, 로고는 흰색. 남색은 쓰지 않습니다 (--navy-* 이름은 남겨 두기만 함).
   흰 바탕은 제품 화면(실제 캡처)에만 남깁니다.
   글꼴: 나중에 직접 올린 파일(@font-face)로 바꿀 때는 아래 한 줄만 교체합니다. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  /* 디자인 기준 원래 색 */
  --navy-950: #0C1C2F; --navy-900: #10233A; --navy-800: #152D44; --navy-700: #1C3A57; --navy-line: #28486A;
  --ink: #13263D; --ink-secondary: #2B3E55; --ink-mute: #5C6D80; --ink-mute-2: #8494A5;
  --on-dark: #FAF2EA; --on-dark-mute: #AFBDCC;
  --canvas: #FFFFFF; --canvas-soft: #F6F8FB; --hairline: #E3E8EE; --hairline-input: #B9C7D6;
  --apricot: #FEB17B; --apricot-hover: #FFC49A; --apricot-deep: #C9692F;

  /* 다크 화면용 이름 — 2026-11-23 대표 결정: 남색 대신 블랙 + 살구 (로고는 흰색) */
  --black-950: #0B0B0C; --black-900: #121314; --black-800: #1A1B1D; --black-700: #232528; --black-line: #34373B;
  --bg: var(--black-950); --bg-2: var(--black-900);
  --surface: var(--black-800); --surface-2: var(--black-700);
  --line: var(--black-line); --line-soft: rgba(255, 255, 255, .08);
  --text: #F7F4EF; --text-2: #B8B3AC; --text-3: #8A857E;
  --on-accent: #111111;
  --accent: var(--apricot); --accent-soft: rgba(254, 177, 123, .12); --accent-line: rgba(254, 177, 123, .45);

  /* 두께 있는 판 그림자 (hgnet의 slab) */
  --slab: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 #050505, 0 2px 0 #070707, 0 3px 0 #090909, 0 24px 36px -16px rgba(0, 0, 0, .7);
  --slab-sm: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 0 #050505, 0 2px 0 #080808, 0 12px 20px -12px rgba(0, 0, 0, .6);
  --shadow-screen: 0 24px 48px -12px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);

  --r-tag: 4px; --r-sm: 10px; --r-card: 18px; --r-lg: 24px; --r-screen: 16px; --r-pill: 9999px;
  --container: 1240px; --gutter: 20px; --section-py: 128px; --card-p: 32px; --header-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 32px); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.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: absolute; left: 20px; top: -100px; z-index: 300; padding: 12px 20px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 24px; height: 24px; flex: none; color: var(--text); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-py) 0; position: relative; }
.section--white, .section--navy { background: var(--bg); }
.section--soft, .section--cream { background: var(--bg-2); }
.center { text-align: center; }
.center .lead, .center .title, .lead.center, .title.center { margin-left: auto; margin-right: auto; }

/* ---------- 글자 ---------- */
.display-xxl { font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.22; letter-spacing: -.035em; }
.display-xl { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; line-height: 1.28; letter-spacing: -.03em; }
.display-lg { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; line-height: 1.32; letter-spacing: -.03em; }
.display-md { font-size: 24px; font-weight: 600; line-height: 1.36; letter-spacing: -.02em; }
.heading-lg { font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -.015em; }
.heading-md { font-size: 18px; font-weight: 600; line-height: 1.5; }
.body-lg { font-size: 18px; line-height: 1.75; }
.caption { font-size: 14px; line-height: 1.6; color: var(--text-3); }
.measure { max-width: 40em; }

/* 두 줄 제목: 첫 줄 흐리게, 둘째 줄 밝고 굵게 */
.title { font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.title .mute { display: block; color: var(--text-3); font-weight: 600; }
.title .strong { display: block; color: var(--text); }
.lead { margin-top: 24px; font-size: 18px; line-height: 1.75; color: var(--text-2); max-width: 40em; }
.kicker { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.accent { color: var(--accent); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn--fill { background: var(--accent); color: var(--on-accent); }
.btn--fill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.btn--fill:hover { background: var(--apricot-hover); transform: translateY(-1px); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line); }
.btn--line:hover { border-color: var(--text-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.center .btn-row { justify-content: center; }
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link::after { content: "→"; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- 꼬리표 ---------- */
.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.tag--quiet { background: transparent; color: var(--text-2); border: 1px solid var(--line); }

/* ---------- 머리글: 화면 위에 떠 있는 알약 ---------- */
.site-header { position: fixed; left: 0; right: 0; top: 12px; z-index: 100; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.site-header .container.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: calc(100% - var(--gutter) * 2); max-width: var(--container); height: var(--header-h);
  padding: 0 8px 0 22px; border-radius: var(--r-pill);
  background: rgba(14, 14, 15, .7); border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; padding: 6px 0; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-drop > button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav-drop > button:hover { background: var(--line-soft); }
.nav > a[aria-current="page"], .nav-drop.is-current > button { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-drop .drop { position: absolute; top: calc(100% + 14px); left: -12px; width: 340px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--slab); }
.drop a { display: block; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; }
.drop a:hover, .drop a[aria-current="page"] { background: var(--surface-2); }
.drop strong { display: block; font-size: 15px; font-weight: 600; }
.drop span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.drop .drop-label { padding: 12px 14px 4px; font-size: 12px; font-weight: 600; color: var(--text-3); border-top: 1px solid var(--line); margin-top: 6px; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn { min-height: 46px; padding: 10px 20px; font-size: 15px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.mobile-menu { width: calc(100% - var(--gutter) * 2); margin: 8px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--slab); padding: 8px 0 20px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 22px; text-decoration: none; font-weight: 500; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .sub { padding-left: 36px; font-weight: 400; color: var(--text-2); }
.mobile-menu .group { padding: 12px 22px 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.mobile-menu .btn { margin: 12px 22px 0; display: flex; }

/* ---------- 첫 화면 ---------- */
.hero { padding: calc(var(--header-h) + 112px) 0 112px; background: var(--bg); color: var(--text); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { margin-top: 20px; }
.hero h1 .mute { display: block; color: var(--text-3); font-weight: 600; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--text-3); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags + h1 { margin-top: 20px; }

/* 물결선 첫 화면 (메인) */
.hero--threads { min-height: min(820px, 100svh); display: flex; align-items: center; }
.hero--threads .container { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* 매듭에서 뻗은 선 (페이지당 1~2번) */
.knot-line { position: relative; height: 2px; background: var(--accent); margin: 32px 0 0 6px; max-width: 160px; }
.knot-line::before { content: ""; position: absolute; left: -6px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.knot-line--deep { background: var(--accent); }

/* ---------- 제품 화면 틀 (실제 캡처는 흰 바탕 그대로) ---------- */
.screen { background: var(--canvas); border-radius: var(--r-screen); box-shadow: var(--shadow-screen); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); color: var(--ink); }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--canvas-soft); border-bottom: 1px solid var(--hairline); }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-input); }
.screen-bar i:first-child { background: var(--apricot); }
.screen-bar span { margin-left: 8px; font-size: 12px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen img { width: 100%; }
.screen--tall .screen-body { max-height: 520px; overflow: hidden; position: relative; }
.screen--tall .screen-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.screen-missing { display: flex; align-items: center; justify-content: center; min-height: 240px; margin: 16px; border: 1px dashed var(--hairline-input); border-radius: var(--r-sm); color: var(--ink-mute); font-size: 13px; text-align: center; padding: 16px; }
figcaption, .fig-cap { margin-top: 14px; font-size: 14px; color: var(--text-3); line-height: 1.6; }
.screen-link { display: block; text-decoration: none; transition: transform .3s var(--ease); }
.screen-link:hover { transform: translateY(-3px); }

/* ---------- 2단 (왼쪽 제목 고정) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.split .sticky { position: sticky; top: calc(var(--header-h) + 56px); }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

/* ---------- 고객 말 (상세 쪽의 말풍선 목록) ---------- */
.quotes { display: grid; gap: 16px; list-style: none; }
.quote { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--slab-sm); padding: 22px 26px; font-size: 17px; line-height: 1.7; }
.quote small { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.quote-turn { margin-top: 40px; font-size: 22px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }

/* ---------- 고객 말 장면 (메인: 화면이 멈추고 말풍선이 하나씩) ---------- */
.scene { position: relative; background: var(--bg); padding: var(--section-py) 0; }
.scene-pin { position: relative; }
.scene-glow { position: absolute; left: 50%; top: 55%; width: min(720px, 90vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(254, 177, 123, .13), rgba(254, 177, 123, 0)); pointer-events: none; }
.bubbles { list-style: none; position: relative; display: grid; gap: 22px; max-width: 980px; margin: 56px auto 0; }
.bubble { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: min(560px, 100%); padding: 16px 22px 16px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--slab); font-size: 17px; line-height: 1.55; }
.bubble--r { justify-self: end; }
.bubble .ico { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.bubble small { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.scene--live { height: 340vh; padding: 0; }
.scene--live .scene-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.scene--live .bubble { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.scene--live .bubble.is-on { opacity: 1; transform: none; }

/* ---------- 카드 ---------- */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--slab-sm); padding: var(--card-p); }
.card--cream { background: var(--bg-2); border-color: var(--accent-line); box-shadow: none; }
.section--soft .card--cream, .section--cream .card--cream { background: var(--bg); }
.card--navy { background: var(--surface-2); border-color: var(--accent-line); box-shadow: var(--slab); }
.card h3 { margin-bottom: 8px; }
.card p + p { margin-top: 8px; }

/* 솔루션 큰 카드 */
.sol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.sol-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; transition: border-color .2s, transform .3s var(--ease); }
.sol-card:hover { border-color: var(--line); transform: translateY(-3px); }
.sol-card .say { font-size: 15px; color: var(--accent); font-weight: 600; }
.sol-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.36; margin: 0; }
.sol-card p.desc { color: var(--text-2); }
.sol-card .text-link { margin-top: auto; }
.sol-card .thumb { border-radius: var(--r-sm); overflow: hidden; background: var(--canvas); aspect-ratio: 16 / 9; }
.sol-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* 데모 작은 카드 */
.demo-head { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.demo-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px dashed var(--line); border-radius: var(--r-card); text-decoration: none; background: transparent; }
.demo-card:hover { border-style: solid; background: var(--surface); }
.demo-card strong { font-size: 17px; font-weight: 600; }
.demo-card span.d { font-size: 14px; color: var(--text-2); }

/* ---------- 시험 숫자 띠 (hgnet의 수상·파트너 자리) ---------- */
.stat-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.stat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 40px; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 32px 32px 44px 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line-soft); }
.stat b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .45em; font-weight: 600; margin-left: 4px; color: var(--text-2); }
.stat span { display: block; margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* ---------- 솔루션 찾기 (타이핑 + 목록 + 상세) ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; margin-top: 64px; align-items: start; }
.finder-side { display: grid; gap: 16px; }
.finder-search { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--accent-line); box-shadow: 0 0 0 4px rgba(254, 177, 123, .06); font-size: 17px; font-weight: 600; }
.finder-search .icon { color: var(--text-2); width: 22px; height: 22px; }
.finder-search .typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -3px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.finder-list { list-style: none; display: grid; gap: 4px; padding: 8px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line-soft); }
.finder-list button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: var(--r-sm); background: none; border: 0; text-align: left; cursor: pointer; color: var(--text-2); font-size: 15px; }
.finder-list button:hover { background: var(--line-soft); color: var(--text); }
.finder-list button[aria-selected="true"] { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.finder-list .icon { width: 18px; height: 18px; color: var(--text-3); }
.finder-list .tag { margin-left: auto; font-size: 11px; padding: 3px 9px; }
.finder-panel { padding: 36px; }
.finder-panel .p-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.finder-panel .p-head .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.finder-panel h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.finder-panel .scene-line { margin-top: 16px; font-size: 17px; color: var(--text-2); }
.finder-panel .text-link { margin-top: 24px; }

/* 아이콘이 선으로 이어진 흐름 */
.pipe { list-style: none; position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
.pipe::before { content: ""; position: absolute; left: 10%; right: 10%; top: 26px; height: 1px; background: var(--line); }
.pipe li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.pipe .node { width: 52px; height: 52px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.pipe li:last-child .node { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pipe li > div { display: flex; flex-direction: column; gap: 2px; }
.pipe strong { font-size: 14px; font-weight: 600; margin-top: 6px; }
.pipe span { font-size: 12px; color: var(--text-3); line-height: 1.45; }

/* ---------- 실제 화면 카드 (hgnet 사례 자리) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.case { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--slab); text-decoration: none; color: inherit; transition: transform .3s var(--ease); }
a.case:hover { transform: translateY(-3px); }
.case .shot { background: var(--canvas); aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.case .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.case .body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case .situ { font-size: 15px; font-weight: 600; color: var(--accent); }
.case h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
.case p { color: var(--text-2); }
.case .meta { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- 맡기기 전에 묻는 것 (hgnet 관리 자리) ---------- */
.ask-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.ask { display: flex; flex-direction: column; gap: 10px; }
.ask .q { color: var(--text-3); font-size: 15px; }
.ask .q::before { content: "“"; } .ask .q::after { content: "”"; }
.ask h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 0; }
.ask p { color: var(--text-2); }

/* 근거 묶음 */
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.proof h3 { margin: 24px 0 8px; }
.proof ul { list-style: none; display: grid; gap: 8px; }

/* 목록 */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.dashes { list-style: none; display: grid; gap: 10px; }
.dashes li { position: relative; padding-left: 22px; color: var(--text-2); }
.dashes li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; height: 1.5px; background: var(--text-3); }

/* 원칙 목록 */
.principles { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.principles strong { font-size: 18px; font-weight: 600; }
.principles span, .principles p { color: var(--text-2); }

/* 흐름 (들어오는 것 → 하는 일 → 나오는 것) */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.3fr) 40px minmax(0, 1fr); align-items: stretch; margin-top: 56px; }
.flow-box { border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 28px; background: var(--surface); box-shadow: var(--slab-sm); }
.flow-box.mid { background: var(--surface-2); border-color: var(--accent-line); }
.flow-box h3 { font-size: 14px; font-weight: 600; color: var(--text-3); margin-bottom: 14px; }
.flow-box.mid h3 { color: var(--accent); }
.flow-box p { color: var(--text-2); }
.flow-box ol { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.flow-box ol li { counter-increment: s; display: flex; gap: 12px; }
.flow-box ol li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--accent); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 20px; }

/* 알약 단계 (상세 쪽) */
.pills { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 40px; }
.pills li { display: flex; align-items: center; }
.pills li + li::before { content: ""; width: 28px; height: 1px; background: var(--line); }
.pills span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; }
.pills li:last-child span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* 들어오는 것 / 나가는 것 */
.io-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.io-grid h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin-bottom: 18px; }
.io-grid h3 .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; }
.io-grid ul { list-style: none; display: grid; gap: 12px; }
.io-grid li { position: relative; padding-left: 26px; color: var(--text-2); }
.io-grid li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text-3); }

/* 세로 타임라인 (상세 쪽 "이렇게 씁니다") */
.timeline { list-style: none; display: grid; gap: 0; margin-top: 48px; }
.timeline li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; align-items: center; padding-bottom: 36px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 1px; background: var(--line); }
.timeline .node { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--slab-sm); }
.timeline p { font-size: 17px; color: var(--text-2); }
.timeline p b { color: var(--text); }

/* 예외 4칸 */
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.ex-grid .card h3 { font-size: 19px; }
.ex-grid .card p { color: var(--text-2); }

/* 표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 32px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--text-3); padding: 12px 16px; border-bottom: 2px solid var(--text-2); white-space: nowrap; }
.table td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.table td:first-child, .table td b { color: var(--text); font-weight: 600; }
.table .us { background: var(--accent-soft); color: var(--text); }
.table .price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; color: var(--text); }
.table--compare td:first-child { white-space: nowrap; }

/* 시험 기록 */
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.fact { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--slab-sm); padding: 26px 28px; }
.fact b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: 4px; color: var(--accent); }
.fact span { color: var(--text-2); font-size: 15px; }
.facts:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.honest { margin-top: 24px; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: 500; }

/* 단계 */
.steps { list-style: none; counter-reset: st; display: grid; gap: 0; margin-top: 40px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(st); width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--text-2); }

/* 못 하는 것 / 권하지 않는 분 */
.two-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.two-box .card h3 { margin-bottom: 16px; }

/* 경고·안내 상자 (잘 보이게) */
.notice { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-card); padding: 26px 30px; }
.notice strong { display: block; margin-bottom: 6px; font-size: 17px; color: var(--accent); }
.notice p, .notice li { color: var(--text); }

/* 요금 */
.price-card { padding: 40px; }
.price-card .amount { font-size: 44px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 8px 0 4px; }
.price-card .amount small { font-size: 17px; font-weight: 500; margin-left: 4px; }
.price-card .checks { margin-top: 24px; }
.price-card hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.price-card .muted { color: var(--text-2); font-size: 14px; }

/* 갤러리 (가로 넘김) */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; margin-top: 32px; scroll-snap-type: x mandatory; }
.gallery a { scroll-snap-align: start; display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.gallery img { width: 100%; height: auto; }

/* 자주 묻는 질문 */
.faq { border-top: 1px solid var(--line); margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 68px; padding: 18px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 400; color: var(--text-2); }
.faq details[open] summary::after { content: "−"; color: var(--accent); border-color: var(--accent-line); }
.faq .a { padding: 0 0 26px; color: var(--text-2); max-width: 44em; }
.faq .a p + p { margin-top: 8px; }

/* 마지막 행동 */
.cta { text-align: center; padding: 144px 0; background: var(--bg); border-top: 1px solid var(--line-soft); }
.cta .title, .cta .lead { margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }
.cta .sub-links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; font-size: 15px; }
.cta .sub-links a { color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.cta .sub-links a:hover { color: var(--text); }

/* 보조 링크 묶음 (마지막 구간 밖에서도) */
.sub-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.center .sub-links { justify-content: center; }

/* 연락 방법 카드 (문의) */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.contact-grid .card { display: flex; flex-direction: column; gap: 12px; }
.contact-grid .card p { color: var(--text-2); }
.contact-grid .card .btn, .contact-grid .card .text-link { margin-top: auto; align-self: flex-start; }

/* 첫 구간이 머리글 아래로 숨지 않게 (첫 화면이 없는 쪽) */
main > .section:first-child { padding-top: calc(var(--header-h) + 120px); }

/* ---------- 바닥글: 어두운 바탕 + 흰 로고 ---------- */
.site-footer { background: var(--bg-2); color: var(--text-2); padding: 80px 0 40px; font-size: 14px; border-top: 1px solid var(--line-soft); }
.site-footer a { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 22em; }
.site-footer h2 { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 2px; }
.site-footer ul a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--text-3); font-size: 13px; }
.footer-bottom .biz { flex-basis: 100%; color: var(--text-2); line-height: 1.7; }

/* ---------- 스크롤 등장 (움직임 줄이기 설정이면 끔) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .finder-search .typed::after { animation: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .split, .split--even, .finder { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split .sticky { position: static; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flow-arrow { transform: rotate(90deg); height: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid, .ask-grid { grid-template-columns: minmax(0, 1fr); }
  .threads { opacity: .55; }
}
@media (max-width: 767px) {
  :root { --section-py: 80px; --card-p: 24px; --header-h: 56px; }
  .site-header { top: 8px; }
  .site-header .container.bar { padding: 0 6px 0 16px; }
  .brand img { height: 28px; }
  .hero { padding: calc(var(--header-h) + 72px) 0 72px; }
  .hero--threads { min-height: 0; }
  main > .section:first-child { padding-top: calc(var(--header-h) + 72px); }
  .sol-grid, .demo-grid, .proof-grid, .two-box, .facts, .case-grid, .io-grid, .ex-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line-soft); }
  .principles li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .quote, .bubble { font-size: 16px; }
  .bubble--r { justify-self: start; }
  .finder-panel { padding: 26px 22px; }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pipe::before { left: 26px; right: auto; top: 26px; bottom: 26px; width: 1px; height: auto; }
  .pipe li { flex-direction: row; text-align: left; align-items: center; gap: 14px; }
  .pipe strong { margin-top: 0; }
  .pills li + li::before { width: 14px; }
  .pills { row-gap: 10px; }
  .price-card { padding: 28px 24px; }
  .price-card .amount { font-size: 36px; }
  .cta { padding: 96px 0; }
  .btn-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .case .body { padding: 22px; }
}

/* 데모 페이지 (도구/demo_pages.py, 2026-11-23) */
.shot-list { display: grid; gap: 56px; margin-top: 40px; }
.shot { max-width: min(100%, var(--w, 960px)); }
.ask-word { margin-top: 20px; font-size: 15px; color: var(--text-2); }
.ask-word b { color: var(--accent); }
.mail-draft { padding: 20px 24px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.mail-draft p { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.mail-draft p span { flex: none; width: 72px; color: var(--ink-mute); }
.mail-body { margin-top: 14px; white-space: pre-line; }
