/* ============================================================
   독립지능 영업 랜딩 — 디자인 시스템
   포인트 컬러: 인디고-퍼플 #3E50B3 (로고 통일) — accent=brand 단일 계열
   ============================================================ */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #eceff7;
  --ink: #151a2b;
  --ink-soft: #333a52;
  --muted: #5c6479;
  --line: #e0e4ef;
  --line-strong: #cdd3e2;
  --accent: #3E50B3;
  --accent-ink: #33429a;
  --accent-soft: #eaecf9;
  --brand: #3E50B3;
  --brand-soft: #e9eaf6;
  --good: #2f7d54;
  --bad: #b3423a;
  --shadow: 0 1px 2px rgba(20,26,43,.06), 0 8px 28px -12px rgba(20,26,43,.18);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Menlo", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1120; --surface: #151b2c; --surface-2: #1c2437;
    --ink: #eef1f8; --ink-soft: #c6ccdd; --muted: #98a1b8;
    --line: #29314a; --line-strong: #3a4363;
    --accent: #5a67d8; --accent-ink: #a7b0f2; --accent-soft: #23264a;
    --brand: #5a67d8; --brand-soft: #20233c;
    --good: #5cc088; --bad: #e08279;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 34px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme="light"] {
  --bg: #f5f6fb; --surface: #ffffff; --surface-2: #eceff7;
  --ink: #151a2b; --ink-soft: #333a52; --muted: #5c6479;
  --line: #e0e4ef; --line-strong: #cdd3e2;
  --accent: #3E50B3; --accent-ink: #33429a; --accent-soft: #eaecf9;
  --brand: #3E50B3; --brand-soft: #e9eaf6; --good: #2f7d54; --bad: #b3423a;
  --shadow: 0 1px 2px rgba(20,26,43,.06), 0 8px 28px -12px rgba(20,26,43,.18);
}
:root[data-theme="dark"] {
  --bg: #0d1120; --surface: #151b2c; --surface-2: #1c2437;
  --ink: #eef1f8; --ink-soft: #c6ccdd; --muted: #98a1b8;
  --line: #29314a; --line-strong: #3a4363;
  --accent: #5a67d8; --accent-ink: #a7b0f2; --accent-soft: #23264a;
  --brand: #5a67d8; --brand-soft: #20233c; --good: #5cc088; --bad: #e08279;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 34px -14px rgba(0,0,0,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  line-height: 1.65; -webkit-font-smoothing: antialiased; letter-spacing: -0.006em;
}
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 78px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1, h2, h3 { text-wrap: balance; line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }
h2.sec-title { font-size: clamp(26px, 3.6vw, 38px); margin-top: 10px; }
p { margin: 0; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- 모노톤 라인 아이콘 ---------- */
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon.sm { width: 15px; height: 15px; stroke-width: 2; }
.btn .icon { width: 16px; height: 16px; stroke-width: 2; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.lead { color: var(--muted); font-size: 17.5px; max-width: 62ch; margin-top: 14px; }
.sec-head { margin-bottom: 40px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; font-family: var(--font);
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s, opacity .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- 헤더 ---------- */
header.bar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; padding-bottom: 13px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 17px; text-decoration: none; }
.brand .mark {
  width: 27px; height: 27px; flex: none; border-radius: 8px;
  object-fit: contain; display: inline-block;
}
.brand small { font-weight: 600; color: var(--muted); font-size: 11.5px; margin-left: 2px; letter-spacing: .06em; }
.bar nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); font-weight: 500; }
.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.bar .actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 900px) { .bar nav { display: none; } }
@media (max-width: 560px) { .bar .actions .btn-ghost { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #eef1f8;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(224,163,56,.16), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(90,95,190,.28), transparent 60%),
    linear-gradient(180deg, #10152a, #0b0f20);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
}
.hero .wrap { position: relative; padding: 92px 24px 84px; }
.hero .kick {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; padding: 7px 14px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; color: #f0e2c4; background: rgba(255,255,255,.04);
}
.hero .kick .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin: 24px 0 0; max-width: 17ch; }
.hero h1 .amber { color: #8b96ee; }
.hero .sub { margin-top: 22px; font-size: clamp(16px, 2vw, 20px); color: #c7cde0; max-width: 56ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .cta-row .btn-ghost { border-color: rgba(255,255,255,.28); color: #eef1f8; }
.hero .cta-row .btn-ghost:hover { border-color: #8b96ee; color: #8b96ee; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; overflow: hidden;
}
.stat { background: rgba(12,16,32,.55); padding: 20px 22px; }
.stat .v { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.stat .v small { font-size: 14px; font-weight: 700; color: #8b96ee; }
.stat .k { font-size: 12.5px; color: #aab2ca; margin-top: 4px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { padding: 64px 24px 60px; }
}

/* ---------- 카드 그리드 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.card .ico .icon { width: 21px; height: 21px; }
.card.brand-ico .ico { background: var(--brand-soft); color: var(--brand); }
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tagline { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }

/* ---------- 기능 그리드 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
}
.feat b { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 5px; }
.feat b .icon { width: 17px; height: 17px; color: var(--accent-ink); }
.feat span { color: var(--muted); font-size: 13.5px; }

/* ---------- 모델 레일 ----------
   교체 가능한 것(모델)을 경계선 위에 늘어놓고, 불변인 것(폐쇄망 경계)을 그 아래
   점선으로 긋는다. 선택지는 바뀌어도 데이터는 선을 넘지 않는다는 주장 자체가 구조다. */
.model-rail {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 26px;
}
.rail-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.rail-label {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink);
}
.rail-note { color: var(--muted); font-size: 13.5px; }
.rail-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .rail-track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rail-track { grid-template-columns: 1fr; } }
.mchip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 15px;
}
/* 유일하게 비용이 붙는 선택지 — 색이 아니라 강조 테두리로 구분한다 */
.mchip.is-licensed { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.mchip b { display: block; font-size: 15px; margin-bottom: 5px; }
.mchip.is-licensed b { color: var(--accent-ink); }
.mchip span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.rail-boundary {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 18px; padding-top: 15px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted); font-size: 13.5px; line-height: 1.6;
}
.rail-boundary .icon { width: 17px; height: 17px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.rail-boundary b { color: var(--ink-soft); font-weight: 700; }

/* ---------- 엔지니어 도입 컨설팅 ----------
   데이터 분석 → 통합 → 학습 → 최적화 모델은 실제 순서라 번호(01~04)가 정보를 담는다. */
.consult { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.consult-head {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 24px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.consult-head h3 { font-size: 20px; margin: 8px 0 8px; }
.consult-head p { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 68ch; }
.consult-head .btn { flex: none; }
.consult-flow {
  list-style: none; margin: 0; padding: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--surface);
}
.consult-flow li {
  position: relative; padding: 18px 16px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
/* 단계 사이 화살표 — 흐름을 시각화 (마지막·모바일 열에서는 숨김) */
.consult-flow li::after {
  content: "→"; position: absolute; top: 50%; right: -12px; transform: translateY(-50%);
  color: var(--line-strong); font-weight: 700; z-index: 1;
}
.consult-flow li:last-child::after { display: none; }
.step-no {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: var(--accent-ink);
}
.step-ico {
  width: 34px; height: 34px; border-radius: 9px; margin: 8px 0 10px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink);
}
.step-ico .icon { width: 18px; height: 18px; }
.consult-flow b { display: block; font-size: 15px; margin-bottom: 6px; }
.consult-flow span { color: var(--muted); font-size: 13px; line-height: 1.55; }
@media (max-width: 860px) {
  .consult-head { flex-direction: column; align-items: flex-start; }
  .consult-flow { grid-template-columns: 1fr 1fr; }
  .consult-flow li:nth-child(2n)::after { display: none; }
}
@media (max-width: 520px) {
  .consult-flow { grid-template-columns: 1fr; }
  .consult-flow li::after { display: none; }
}

/* ---------- 견적 위젯 ---------- */
.quote-widget {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .quote-widget { grid-template-columns: 1fr; } }
.qw-in { padding: 30px; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .qw-in { border-right: 0; border-bottom: 1px solid var(--line); } }
.qw-out { padding: 30px; background: var(--surface-2); display: flex; flex-direction: column; }
.qw-field { margin-bottom: 22px; }
.qw-field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 9px; }
.qw-field > label .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.qw-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.seat-readout { font-size: 15px; font-weight: 800; color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: all .13s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="datetime-local"], textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 14.5px;
}
select:focus, input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.toggle-row { display: flex; gap: 10px; }
.toggle-row .chip { flex: 1; text-align: center; }

.qw-config-name { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent-ink); text-transform: uppercase; }
.qw-price { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.qw-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.qw-monthly { margin-top: 4px; color: var(--ink-soft); font-size: 14.5px; }
.qw-monthly b { color: var(--accent-ink); }
.qw-summary { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qw-badge {
  font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid transparent;
}
.qw-items { flex: 1; border-top: 1px dashed var(--line-strong); padding-top: 14px; font-size: 13.5px; }
.qw-items .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-soft); gap: 12px; }
.qw-items .row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.qw-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.qw-cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 가격 카드 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; position: relative;
}
.price-card.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card .flag {
  position: absolute; top: -11px; left: 20px; background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 3px 11px; border-radius: 999px;
}
.price-card .tier { font-weight: 800; font-size: 15px; }
.price-card .amount { font-size: 25px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -0.02em; }
.price-card .amount small { font-size: 13px; font-weight: 600; color: var(--muted); }
.price-card .per { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.price-card ul { list-style: none; margin: 0 0 18px; font-size: 13.5px; color: var(--ink-soft); }
.price-card li { padding: 5px 0 5px 20px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.price-card .btn { margin-top: auto; }
.unbundle {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px;
}
@media (max-width: 760px) { .unbundle { grid-template-columns: 1fr; } }
.unbundle .u {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.unbundle .u b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.unbundle .u span { font-size: 13px; color: var(--muted); }

/* ---------- 비교표 ---------- */
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
table.cmp th { background: var(--surface-2); font-size: 13px; }
table.cmp td:first-child, table.cmp th:first-child { text-align: left; font-weight: 600; }
table.cmp .us { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); font-weight: 700; }
table.cmp .ok { color: var(--good); font-weight: 800; }
table.cmp .no { color: var(--bad); font-weight: 700; }
table.cmp .so { color: var(--muted); }
table.cmp tr:last-child td { border-bottom: 0; }

/* ---------- 도입 절차 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 1020px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  counter-increment: step; position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero); font-family: var(--mono);
  font-size: 12px; font-weight: 700; color: var(--accent-ink);
  display: inline-block; margin-bottom: 10px; background: var(--accent-soft);
  padding: 3px 9px; border-radius: 6px;
}
.step b { display: block; font-size: 15px; margin-bottom: 5px; }
.step span { font-size: 13px; color: var(--muted); }

/* ---------- 신뢰/컴플라이언스 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
@media (max-width: 1020px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
}
.trust b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 5px; }
.trust b .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.trust span { font-size: 13px; color: var(--muted); }
.industries { display: flex; flex-wrap: wrap; gap: 8px; }
.industries .chip { cursor: default; }
.archi {
  background: #10152a; color: #c7cde0; border-radius: var(--radius); padding: 24px 26px;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.7; overflow-x: auto;
  border: 1px solid #29314a; margin-top: 26px; white-space: pre;
}
.archi .hl { color: #8b96ee; font-weight: 700; }
.archi .dim { color: #6a7390; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); flex: none; transition: transform .18s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; max-width: 75ch; }

/* 주장의 한계를 밝히는 단서 문구(예: TruthAnchor의 보장 범위). 본문(--muted)보다 한 단계 더
   물러나되 읽히긴 해야 한다 — 규제 고객에게 범위를 숨기지 않는 것이 신뢰의 근거다.
   .archi .dim은 아키텍처 다이어그램 전용이라 여기서는 쓸 수 없다. */
.caveat { display: inline-block; margin-top: 8px; font-size: 13px; opacity: .8; border-left: 2px solid var(--line-strong); padding-left: 9px; }

/* ---------- 문의/예약 폼 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.form-field label .req { color: var(--bad); }
.form-field { margin-bottom: 2px; }
.form-full { margin-bottom: 14px; }
.form-full label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
textarea { min-height: 96px; resize: vertical; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 14px 0 18px; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.form-msg { font-size: 13.5px; font-weight: 600; margin-top: 12px; display: none; }
.form-msg.ok { display: block; color: var(--good); }
.form-msg.err { display: block; color: var(--bad); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.book-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* 접수 후 진행 순서 */
.flow-list { list-style: none; margin-top: 12px; counter-reset: flow; }
.flow-list li {
  counter-increment: flow; position: relative; padding: 7px 0 7px 34px;
  font-size: 14px; color: var(--ink-soft);
}
.flow-list li::before {
  content: counter(flow); position: absolute; left: 0; top: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--accent-ink); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 800; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 최종 CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, #10152a, #1a1f3d); color: #eef1f8;
  border-radius: 20px; padding: 54px 40px; text-align: center; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 100% at 50% 0%, rgba(224,163,56,.14), transparent 60%);
}
.final-cta h2 { font-size: clamp(24px, 3.4vw, 34px); position: relative; }
.final-cta p { color: #aab2ca; margin-top: 12px; position: relative; }
.final-cta .cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; position: relative; }

/* ---------- 푸터 ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 13px; }
footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ============================================================
   AI 챗 위젯
   ============================================================ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #23264f); color: #fff;
  box-shadow: 0 6px 24px rgba(20,26,43,.35); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .icon { width: 24px; height: 24px; }
.chat-fab .pulse {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
}
.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 91;
  width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 130px));
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 18px 60px -12px rgba(20,26,43,.45);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  padding: 15px 18px; background: linear-gradient(135deg, #10152a, #1c2244); color: #eef1f8;
  display: flex; align-items: center; gap: 11px;
}
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #5cc088; box-shadow: 0 0 8px #5cc088; flex: none; }
.chat-head b { font-size: 14.5px; }
.chat-head small { display: block; font-size: 11.5px; color: #aab2ca; font-weight: 500; }
.chat-head .close { margin-left: auto; background: none; border: none; color: #aab2ca; font-size: 20px; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 13.8px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.bot .src { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; }
.chat-chips button {
  border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand);
  font-family: var(--font); font-size: 12.5px; font-weight: 700; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; transition: all .12s;
}
.chat-chips button:hover { background: var(--brand); color: #fff; }
.chat-input { display: flex; gap: 9px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input { flex: 1; border-radius: 999px; padding: 10px 16px; font-size: 13.8px; }
.chat-input button {
  border: none; background: var(--accent); color: #fff; font-weight: 800; font-family: var(--font);
  border-radius: 999px; padding: 0 18px; cursor: pointer; font-size: 13.5px;
}
.chat-foot { font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 12px 9px; background: var(--surface); }

/* ---------- 스크롤 리빌 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 모달 (개인정보처리방침) ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,13,26,.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 16px; max-width: 560px; width: 100%;
  max-height: 80vh; overflow-y: auto; padding: 30px; position: relative;
}
.modal h3 { margin-bottom: 14px; }
.modal p, .modal li { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.modal ul { padding-left: 18px; }
.modal .close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; }
