/* =========================================================
   U-CMMS — Design System v3
   "Operational Light" — 순수 화이트 베이스, 헤어라인 그리드,
   각진 지오메트리, 고대비 타이포그래피

   타이포 규칙
   - var(--mono) : 영문/숫자 메타데이터 전용 (한글 글리프 미포함 폰트이므로 한글에 사용 금지)
   - .micro      : 한글이 포함된 마이크로 레이블 (Pretendard, 작은 크기 + 자간)
   ========================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Tokens ---------- */
:root {
  /* surface */
  --bg: #FFFFFF;
  --panel: #F7F8FA;
  --panel-2: #EFF1F4;

  /* ink */
  --ink: #000000;
  --ink-2: #2B3038;
  --ink-3: #5F6670;
  --ink-4: #6B7280; /* G1: 흰색·패널 배경에서 보조 글자 대비 확보 */

  /* lines */
  --line: #E6E8EC;
  --line-2: #D5D9DF;
  --line-3: #B9BFC8;
  --line-faint: rgba(0, 0, 0, 0.055);

  /* signal */
  --accent: #1A73E8;
  --accent-2: #0B57D0;
  --ok: #0E8A43;
  --warn: #B26A00;
  --danger: #D93025;

  /* type */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", "IBM Plex Mono",
    Menlo, Consolas, monospace;

  --header-h: 68px;
  --gutter: 40px;
  --maxw: 1360px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout primitives ---------- */
.container { width: min(var(--maxw), 100% - (var(--gutter) * 2)); margin-inline: auto; }

.section { position: relative; padding: 116px 0; border-top: 1px solid var(--line); }
.section-flush { border-top: none; }
.section-panel { background: var(--panel); }
.section > .container { position: relative; z-index: 1; }

/* 섹션 배경을 가로지르는 얇은 세로 격자 (장식) */
.rule-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  opacity: 0.6;
}

/* ---------- Typographic atoms ---------- */
/* 영문/숫자 전용 */
.mono {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
/* 한글 포함 마이크로 레이블 */
.micro {
  font-family: var(--font); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); flex-shrink: 0; }
.eyebrow .idx { color: var(--accent); }

.section-title {
  font-size: clamp(26px, 3.3vw, 44px);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; color: var(--ink);
}
.section-desc { margin-top: 22px; font-size: 17px; line-height: 1.76; color: var(--ink-3); max-width: 62ch; }
.section-head { max-width: 780px; margin-bottom: 64px; }

/* 좌: 제목 / 우: 설명 — 2단 섹션 헤더 */
.split-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px; align-items: start; margin-bottom: 72px;
}
.split-head .section-desc { margin-top: 0; }
.split-head-side { padding-top: 8px; }
.split-head-side .btn { margin-top: 30px; }

a.text-link {
  color: var(--ink); border-bottom: 1px solid var(--line-3);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
a.text-link:hover { color: var(--accent); border-color: var(--accent); }

.center { text-align: center; }
.section-foot { margin-top: 56px; display: flex; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 0; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-ghost { border-color: var(--line-3); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(0, 0, 0, 0.04); }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-dark { background: #000; border-color: #000; color: #fff; }
.btn-dark:hover { background: #1b1f24; border-color: #1b1f24; }
.btn-onlight { border-color: rgba(0, 0, 0, 0.3); color: #000; }
.btn-onlight:hover { border-color: #000; background: rgba(0, 0, 0, 0.06); }

.btn .arrow { transition: transform 0.24s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 40px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.005em; color: var(--ink); }
.brand-by {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-4); border-left: 1px solid var(--line-2); padding-left: 11px;
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 10px 15px; font-size: 14px; font-weight: 500;
  color: var(--ink-3); transition: color 0.18s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease), width 0.26s var(--ease);
}
.nav-toggle span:nth-child(2) { width: 15px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { width: 22px; transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 92% 72% at 50% 32%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 92% 72% at 50% 32%, #000 18%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -34%; left: 50%; width: 1100px; height: 820px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(26, 115, 232, 0.14), transparent 62%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 72px; align-items: center; padding: 100px 0 96px;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.02);
  padding: 7px 14px 7px 8px; margin-bottom: 34px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2);
}
.hero-tag .gs {
  background: var(--accent); color: #fff; padding: 3px 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 70px);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.04em; color: var(--ink);
}
.hero h1 em { font-style: normal; color: #8A919C; }
.hero-sub { margin-top: 30px; font-size: 17.5px; line-height: 1.78; color: var(--ink-3); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }

.hero-meta { display: flex; flex-wrap: wrap; margin-top: 56px; border-top: 1px solid var(--line); }
.hero-meta li {
  flex: 1 1 0; min-width: 160px; padding: 20px 24px 0 0;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-3); line-height: 1.6;
}
.hero-meta li svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.hero-scroll {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding-bottom: 30px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-4);
}
.hero-scroll i { display: block; width: 52px; height: 1px; background: var(--line-3); position: relative; overflow: hidden; }
.hero-scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%); animation: scan 2.8s var(--ease) infinite;
}
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Console mock ---------- */
.console {
  position: relative; background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -50px rgba(15, 23, 42, 0.28);
}
.console::before, .console::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--accent); pointer-events: none;
}
.console::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.console::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.console-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--panel-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.console-bar .live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--ok); }
.console-bar .live::before {
  content: ""; width: 6px; height: 6px; background: var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.console-note { margin-top: 12px; text-align: right; letter-spacing: 0.04em; }

.console-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.console-side { border-right: 1px solid var(--line); padding: 14px 0; }
.console-side a {
  display: block; padding: 9px 16px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-4); border-left: 2px solid transparent;
}
.console-side a.active { color: var(--ink); border-left-color: var(--accent); background: rgba(26, 115, 232, 0.06); }

.console-main { padding: 18px 20px 20px; }
.console-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 16px; }
.kpi { background: var(--panel); padding: 13px 14px; }
.kpi .l { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-4); }
.kpi .v {
  margin-top: 5px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.kpi .v small { font-size: 11px; font-weight: 500; color: var(--ink-4); margin-left: 3px; }
.kpi.up .v { color: var(--ok); }

.console-table { border: 1px solid var(--line); }
.crow {
  display: flex; align-items: center; gap: 12px; padding: 10px 13px;
  border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
}
.crow:last-child { border-bottom: none; }
.crow.head { background: var(--panel-2); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-4); }
.crow .id {
  width: 80px; flex-shrink: 0; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.04em; color: var(--ink-3);
}
.crow.head .id { font-family: var(--font); font-size: 10.5px; }
.crow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; padding: 3px 8px; border: 1px solid currentColor;
}
.chip::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.chip-wo { color: var(--warn); }
.chip-pm { color: var(--accent); }
.chip-done { color: var(--ok); }
.chip-urgent { color: var(--danger); }

/* ---------- Metrics strip ---------- */
.metrics { border-top: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 46px 30px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: none; padding-left: 0; }
.metric-value {
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.045em;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
}
.metric-value .unit { font-size: 0.4em; font-weight: 500; color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.metric-label {
  margin-top: 16px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-3); line-height: 1.7;
}

/* ---------- Bordered tile grid ---------- */
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }

.tile {
  position: relative; background: var(--bg); padding: 40px 34px 44px;
  display: flex; flex-direction: column; transition: background 0.3s var(--ease);
}
.tile:hover { background: var(--panel-2); }
.tile::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.tile:hover::before { transform: scaleX(1); }

.tile-num { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-4); margin-bottom: 26px; }
.tile-icon { color: var(--accent); margin-bottom: 24px; }
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.42; }
.tile h3 .en {
  display: block; font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px;
}
.tile > p { margin-top: 14px; font-size: 15px; color: var(--ink-3); line-height: 1.74; }
.tile-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tile-list li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.tile-list li::before { content: "—"; color: var(--line-3); flex-shrink: 0; }
.tile-list.flush { margin-top: 0; padding-top: 0; border-top: none; }
.tile .spacer { flex: 1; }

/* ---------- Compare (AS-IS / TO-BE) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compare-col { background: var(--bg); padding: 46px 40px 50px; }
.compare-col.tobe { background: var(--panel-2); }
.compare-label {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 11px; border: 1px solid var(--line-2); color: var(--ink-4);
}
.tobe .compare-label { border-color: var(--accent); color: var(--accent); }
.compare-col h3 { margin-top: 22px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.compare-col.asis h3 { color: var(--ink-3); }
.compare-item { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.compare-item:first-of-type { margin-top: 30px; }
.compare-item .mark {
  flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; margin-top: 3px;
  font-size: 11px; font-weight: 700; border: 1px solid var(--line-2); color: var(--ink-4);
}
.tobe .mark { border-color: var(--accent); color: var(--accent); }
.compare-item b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.compare-item p { margin-top: 7px; font-size: 14.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------- Module rows (features) ---------- */
.module {
  display: grid; grid-template-columns: 116px minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 48px; padding: 64px 0; border-top: 1px solid var(--line); align-items: start;
}
.module:first-of-type { border-top: none; padding-top: 0; }
.module-idx { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-4); padding-top: 10px; }
.module-idx b { display: block; font-size: 40px; font-weight: 500; letter-spacing: -0.04em; color: var(--line-3); line-height: 1; margin-bottom: 10px; }
.module-copy h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.28; }
.module-copy h3 .en {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.module-copy > p { margin-top: 18px; font-size: 15.5px; color: var(--ink-3); line-height: 1.8; }
.module-points { margin-top: 26px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.module-points li {
  background: var(--bg); padding: 13px 16px; font-size: 14px; color: var(--ink-2);
  display: flex; gap: 12px; align-items: flex-start; line-height: 1.6;
}
.module-points li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.module-figure { border: 1px solid var(--line); background: var(--panel); padding: 26px; display: grid; place-items: center; min-height: 250px; }
.module-figure svg { width: 100%; height: auto; max-width: 440px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 34px 26px 38px; transition: background 0.3s var(--ease); }
.step:hover { background: var(--panel-2); }
.step-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--accent); }
.step h4 { margin-top: 24px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.step p { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); line-height: 1.72; }
.step .dur {
  display: inline-block; margin-top: 18px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--ok); border: 1px solid currentColor; padding: 3px 9px;
}

/* ---------- Case cards ---------- */
.case { background: var(--bg); display: flex; flex-direction: column; transition: background 0.3s var(--ease); }
.case:hover { background: var(--panel-2); }
.case-visual {
  aspect-ratio: 16 / 9; display: grid; place-items: center; border-bottom: 1px solid var(--line);
  color: var(--ink-3); overflow: hidden;
  background:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--panel);
}
.case:hover .case-visual { color: var(--accent); }
.case-visual svg { width: 46px; height: 46px; stroke-width: 1.2; transition: color 0.3s var(--ease), transform 0.5s var(--ease); }
.case:hover .case-visual svg { transform: scale(1.07); }
.case-body { padding: 30px 28px 34px; display: flex; flex-direction: column; flex: 1; }
.case-ind { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.case-body h3 { margin-top: 16px; font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink); letter-spacing: -0.015em; }
.case-body > p { margin-top: 12px; font-size: 14px; color: var(--ink-3); line-height: 1.74; flex: 1; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.case-metrics li {
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-3);
  border: 1px solid var(--line-2); padding: 4px 10px;
}

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plan { position: relative; background: var(--bg); padding: 44px 34px 40px; display: flex; flex-direction: column; }
.plan.featured { background: var(--panel-2); }
.plan.featured::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }
.plan-flag {
  position: absolute; top: 0; right: 0; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 11px;
}
.plan h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.plan-for { margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-4); }
.plan-price {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em;
}
.plan-price small { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.plan-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.plan .tile-list { flex: 1; }
.plan .btn { margin-top: 32px; }

/* ---------- Spec table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.spec { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.spec th, .spec td { padding: 17px 22px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.spec thead th {
  border-top: none; background: var(--panel-2); color: var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.spec tbody th { width: 200px; background: var(--panel); color: var(--ink-2); font-weight: 500; }
.spec td { color: var(--ink-3); }
.spec td .yes { color: var(--accent); font-weight: 600; }
.spec tbody tr:hover th, .spec tbody tr:hover td { background: var(--panel-2); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 20px;
  padding: 26px 4px; font-size: 17px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em; transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary .q-mark {
  flex-shrink: 0; min-width: 26px; padding-top: 5px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-4);
}
.faq-q { flex: 1; line-height: 1.55; }
.faq-item summary .chev { flex-shrink: 0; margin-top: 5px; color: var(--ink-4); transition: transform 0.3s var(--ease), color 0.2s var(--ease); }
.faq-item[open] summary .chev { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 4px 30px 46px; max-width: 80ch; font-size: 15px; line-height: 1.86; color: var(--ink-3); }
.faq-a p + p { margin-top: 14px; }
.faq-group { margin-bottom: 76px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }

/* ---------- Forms ---------- */
.form-panel { border: 1px solid var(--line); background: var(--panel); padding: 44px 40px 46px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 10px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-3); }
.form-field label .req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 0;
  padding: 14px 16px; font-size: 15px; color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-4); }
.form-field textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.form-field select {
  appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 21px) 23px, calc(100% - 16px) 23px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--panel-2);
}
.form-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.form-consent input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--accent); flex-shrink: 0; }
.form-consent a { color: var(--ink); border-bottom: 1px solid var(--line-3); }
.form-msg { display: none; margin-bottom: 18px; padding: 15px 18px; font-size: 14.5px; border: 1px solid; }
.form-msg.show { display: block; }
.form-msg.ok { border-color: var(--ok); color: var(--ok); background: rgba(14, 138, 67, 0.06); }
.form-msg.error { border-color: var(--danger); color: var(--danger); background: rgba(217, 48, 37, 0.06); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.info-panel { border: 1px solid var(--line); padding: 30px 28px 32px; }
.info-panel + .info-panel { margin-top: 24px; }
.info-panel h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.info-panel li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); }
.info-panel li:first-child { border-top: none; padding-top: 0; }
.info-panel li svg { width: 16px; height: 16px; color: var(--ink-4); flex-shrink: 0; margin-top: 4px; }
.info-panel li a { color: var(--ink); }
.info-panel li a:hover { color: var(--accent); }
.info-panel .k { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-4); }
.info-panel .tile-list li { padding: 0; border-top: none; }

/* ---------- Page hero (sub) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 88px 0 76px; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.page-hero > .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px; margin-bottom: 30px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-4);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .cur { color: var(--accent); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; color: var(--ink); }
.page-hero .lead { margin-top: 26px; font-size: 17px; line-height: 1.78; color: var(--ink-3); max-width: 64ch; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: #fff; color: #000; padding: 84px 0; border-top: 1px solid var(--line); }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
  background-size: 92px 92px;
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
.cta .eyebrow { color: rgba(0, 0, 0, 0.5); }
.cta .eyebrow::before { background: #000; }
.cta h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; line-height: 1.16; letter-spacing: -0.035em; color: #000; }
.cta p { margin-top: 20px; font-size: 16.5px; line-height: 1.72; color: rgba(0, 0, 0, 0.62); max-width: 54ch; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 72px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; color: var(--ink-3); line-height: 1.8; }
.footer-col h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 20px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--ink-3); transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact svg { width: 15px; height: 15px; color: var(--ink-4); flex-shrink: 0; margin-top: 4px; }
.footer-contact a { color: var(--ink-2); }
.footer-contact a:hover { color: var(--accent); }

.footer-wordmark {
  border-top: 1px solid var(--line); padding: 42px 0 30px; overflow: hidden;
  font-size: clamp(54px, 13.2vw, 196px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.86;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; user-select: none;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding: 22px 0 30px;
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink-4);
}
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom.flush { border-top: none; }
.footer-legal { display: flex; gap: 24px; }

/* ---------- 404 ---------- */
.error-page { min-height: calc(100vh - var(--header-h) - 140px); display: grid; place-items: center; text-align: center; padding: 100px 0; }
.error-code {
  font-family: var(--mono); font-size: clamp(76px, 16vw, 190px); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-3);
}
.error-page h1 { margin-top: 26px; font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.error-page p { margin-top: 16px; color: var(--ink-3); }
.error-page .btns { display: flex; gap: 12px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal .updated {
  padding-bottom: 30px; margin-bottom: 44px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-4);
}
.legal h2 { margin: 52px 0 16px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.86; color: var(--ink-3); }
.legal ul { margin: 14px 0; display: grid; gap: 10px; }
.legal ul li { display: flex; gap: 12px; }
.legal ul li::before { content: "—"; color: var(--line-3); flex-shrink: 0; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line-3); }
.legal a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Reveal ---------- */
/* G6: 자바스크립트가 활성화된 페이지에서만 등장 전 상태를 숨김 */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll i::after, .console-bar .live::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 28px; }
  .hero-inner { gap: 48px; }
  .module { grid-template-columns: 96px minmax(0, 1fr); gap: 32px; }
  .module-figure { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .hero-inner { grid-template-columns: 1fr; padding: 76px 0 80px; }
  .hero-visual { max-width: 640px; }
  .split-head { grid-template-columns: 1fr; gap: 26px; margin-bottom: 52px; }
  .tiles-3, .tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 34px 24px; border-top: 1px solid var(--line); }
  .metric:nth-child(-n + 2) { border-top: none; }
  .metric:nth-child(odd) { border-left: none; padding-left: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 60px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 190; display: none;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--line); padding-bottom: 40px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 22px var(--gutter); font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  body.nav-open { overflow: hidden; }

  .hero-meta li { flex: 1 1 100%; padding-right: 0; }
  .tiles-2, .tiles-3, .tiles-4 { grid-template-columns: 1fr; }
  .tile { padding: 32px 24px 36px; }
  .compare-col { padding: 34px 24px 38px; }
  .steps { grid-template-columns: 1fr; }
  .module { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .module-idx { display: flex; align-items: baseline; gap: 12px; padding-top: 0; }
  .module-idx b { font-size: 26px; margin-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 30px 22px 34px; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 0; }
  .console-side a { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; padding: 12px 14px; }
  .console-side a.active { border-left-color: transparent; border-bottom-color: var(--accent); }
  .console-kpis { grid-template-columns: 1fr; }
  .cta { padding: 60px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-a { padding-left: 4px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { padding: 28px 0; border-left: none; }
  .metric:first-child { border-top: none; }
}

/* =========================================================
   v3.1 — 콘텐츠·검색(AEO/GEO) 컴포넌트
   ========================================================= */

/* ---------- Page meta (작성·갱신일) ---------- */
.page-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-4); }
.page-meta time { color: var(--ink-3); }

/* ---------- Answer box (핵심 요약) ---------- */
.answer {
  border: 1px solid var(--line-2); border-left: 2px solid var(--accent);
  background: var(--panel); padding: 30px 32px 32px; max-width: 920px;
}
.answer .answer-label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); }
.answer p { font-size: 17px; line-height: 1.8; color: var(--ink); }
.answer ul { margin-top: 18px; display: grid; gap: 10px; }
.answer li { display: flex; gap: 12px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.answer li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 10px; background: var(--accent); }

/* ---------- Prose (가이드 본문) ---------- */
.prose { max-width: 860px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 72px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 40px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.prose p, .prose li { font-size: 16px; line-height: 1.86; color: var(--ink-3); }
.prose strong { color: var(--ink-2); font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { display: flex; gap: 12px; }
.prose ul li::before { content: "—"; color: var(--line-3); flex-shrink: 0; }
.prose ol { counter-reset: n; }
.prose ol li { display: flex; gap: 14px; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); flex-shrink: 0; font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-3); }
.prose a:hover { color: var(--accent); border-color: var(--accent); }
.prose .table-wrap { margin-top: 26px; }
.prose .note { font-size: 13.5px; color: var(--ink-4); }

/* ---------- Table of contents ---------- */
.toc { border: 1px solid var(--line); padding: 22px 26px; max-width: 860px; margin-bottom: 64px; }
.toc b { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-4); }
.toc ol { display: grid; gap: 8px; }
.toc li { font-size: 14.5px; color: var(--ink-3); }
.toc a:hover { color: var(--accent); }

/* ---------- Sources (출처·기준일) ---------- */
.sources { max-width: 860px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-4); margin-bottom: 16px; }
.sources li { font-size: 13.5px; line-height: 1.7; color: var(--ink-4); padding: 4px 0; }
.sources a { color: var(--ink-3); border-bottom: 1px solid var(--line-2); word-break: break-all; }
.sources a:hover { color: var(--accent); }

/* ---------- Level ladder (DX→AX 단계) ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.ladder-step { position: relative; padding: 30px 26px 34px; border-left: 1px solid var(--line); }
.ladder-step:first-child { border-left: none; }
.ladder-step .lv { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-4); }
.ladder-step h3 { margin: 14px 0 10px; font-size: 19px; font-weight: 600; color: var(--ink); }
.ladder-step p { font-size: 14.5px; line-height: 1.75; color: var(--ink-3); }
.ladder-step .tag { display: inline-block; margin-top: 16px; padding: 4px 10px; border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); }
.ladder-step.is-ax { background: var(--panel); }
.ladder-step.is-ax .lv, .ladder-step.is-ax .tag { color: var(--accent); border-color: var(--accent); }

/* ---------- Glossary ---------- */
.glossary { border-top: 1px solid var(--line); max-width: 980px; }
.term { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.term-head h2, .term-head h3 { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.term-head .en { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.term-body p { font-size: 15.5px; line-height: 1.85; color: var(--ink-3); }
.term-body p + p { margin-top: 10px; }
.term-body .rel { margin-top: 14px; font-size: 13.5px; color: var(--ink-4); }
.term-body .rel a { color: var(--ink-2); border-bottom: 1px solid var(--line-3); }
.term-body .rel a:hover { color: var(--accent); }

/* ---------- Self assessment (AX 자가진단) ---------- */
.quiz { max-width: 920px; }
.quiz-q { border: 1px solid var(--line); padding: 28px 28px 30px; }
.quiz-q + .quiz-q { border-top: none; }
.quiz-q legend { float: left; width: 100%; margin-bottom: 18px; font-size: 17px; font-weight: 600; color: var(--ink); }
.quiz-q legend .n { margin-right: 10px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.quiz-opts { clear: both; display: grid; gap: 8px; }
.quiz-opts label {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; cursor: pointer;
  border: 1px solid var(--line-2); font-size: 15px; line-height: 1.6; color: var(--ink-3);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.quiz-opts label:hover { border-color: var(--line-3); color: var(--ink-2); }
.quiz-opts input { margin-top: 5px; accent-color: var(--accent); }
.quiz-opts label:has(input:checked) { border-color: var(--accent); color: var(--ink); background: var(--panel-2); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.quiz-progress { font-size: 13px; color: var(--ink-4); }
.quiz-result { display: none; margin-top: 40px; border: 1px solid var(--accent); background: var(--panel); padding: 34px 32px 36px; }
.quiz-result.show { display: block; }
.quiz-result .lv { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.quiz-result h2 { margin: 12px 0 14px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; color: var(--ink); }
.quiz-result p, .quiz-result li { font-size: 15.5px; line-height: 1.8; color: var(--ink-3); }
.quiz-result ul { margin: 16px 0 26px; display: grid; gap: 8px; }
.quiz-result li { display: flex; gap: 12px; }
.quiz-result li::before { content: "→"; color: var(--accent); flex-shrink: 0; }

/* ---------- 메뉴 항목 증가: 1180px 이하에서 토글 메뉴 ---------- */
@media (max-width: 1180px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 190; display: none;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--line); padding-bottom: 40px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 22px var(--gutter); font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1024px) {
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder-step:nth-child(3) { border-left: none; }
  .ladder-step:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .ladder { grid-template-columns: 1fr; }
  .ladder-step { border-left: none; border-top: 1px solid var(--line); }
  .ladder-step:first-child { border-top: none; }
  .term { grid-template-columns: 1fr; gap: 12px; }
  .answer { padding: 24px 22px 26px; }
  .quiz-q { padding: 22px 20px 24px; }
}

.section-foot { flex-wrap: wrap; gap: 12px; }
.answer h2.answer-label { font-size: 12px; }

/* ---------- 읽기 폭 블록 중앙 정렬 (넓은 화면 좌측 쏠림 방지) ---------- */
:root { --read: 1180px; }
.prose, .answer, .toc, .sources, .quiz, .glossary, .legal {
  max-width: var(--read);
  margin-left: auto;
  margin-right: auto;
}
/* 본문이 읽기 폭 칼럼인 페이지는 상단 제목도 같은 칼럼에 맞춤 */
body:has(main .prose, main .glossary, main .quiz, main .legal) .page-hero .container > * {
  max-width: var(--read);
  margin-left: auto;
  margin-right: auto;
}
body:has(main .prose, main .glossary, main .quiz, main .legal) main .split-head {
  max-width: var(--read);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 생성 이미지 (figure.media) ---------- */
.media { margin: 56px auto 0; max-width: var(--read); border: 1px solid var(--line); background: var(--panel); }
.media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.media figcaption { padding: 13px 18px 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.media .media-note { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-4); }
.media--wide { max-width: none; margin: 0 0 56px; }
.media--wide img { aspect-ratio: 21 / 9; }
.module + .media, .media + .module { margin-top: 0; }
.media + .module { border-top: none; }
@media (max-width: 760px) {
  .media { margin-top: 40px; }
  .media--wide img { aspect-ratio: 16 / 9; }
}

/* =========================================================
   v3.2 — 도식 컴포넌트 (figure.diagram)
   글자는 모두 HTML로 두어 검색·번역·확대에 대응하고, 760px 이하에서는 세로로 재배치
   ========================================================= */
.diagram { margin: 40px auto 0; max-width: var(--read); border: 1px solid var(--line); background: var(--panel); padding: 30px 28px 24px; }
.diagram--wide { max-width: none; }
.section .diagram:first-child { margin-top: 0; }
.diagram figcaption { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--ink-4); }
.diagram figcaption b { color: var(--ink-2); font-weight: 600; }
.d-k { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.d-title { display: block; margin-top: 6px; font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.d-desc { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }

/* 흐름: 노드 → 노드 */
.d-flow { display: flex; align-items: stretch; }
.d-node { flex: 1 1 0; min-width: 0; padding: 16px 16px 18px; border: 1px solid var(--line-2); background: var(--bg); }
.d-node.is-key { border-color: var(--accent); }
.d-arrow { flex: 0 0 30px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; }
.d-arrow::before { content: "→"; }
.d-arrow.is-both::before { content: "⇄"; }
.d-return { margin-top: 12px; padding: 11px 14px; border: 1px dashed var(--accent); text-align: center; font-size: 13.5px; color: var(--accent-2); }
.d-return::before { content: "↺  "; }

/* 계단: 높이가 올라가는 단계 */
.d-stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.d-stair { display: flex; flex-direction: column; justify-content: flex-start; min-height: calc(110px + var(--lv, 1) * 46px); padding: 16px; border: 1px solid var(--line-2); border-top: 3px solid var(--line-3); background: var(--bg); }
.d-stair.is-ax { border-top-color: var(--accent); background: var(--panel-2); }
.d-band { display: flex; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.d-band span { flex: 1; padding: 7px 10px; border: 1px solid var(--line-2); color: var(--ink-3); text-align: center; }
.d-band span + span { border-left: none; color: var(--accent); border-color: var(--accent); }

/* 구간 막대 (ISO 20816 등) */
.d-scale { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.d-seg { padding: 14px 12px 16px; border-top: 6px solid var(--c, var(--line-3)); background: var(--bg); border-right: 1px solid var(--line); }
.d-seg:last-child { border-right: none; }
.d-seg .d-title { margin-top: 0; font-size: 14.5px; }

/* 3열 비교 (MES | 공통 | CMMS 등) */
.d-venn { display: grid; grid-template-columns: 1fr 0.9fr 1fr; gap: 0; }
.d-venn > div { padding: 18px 18px 20px; border: 1px solid var(--line-2); background: var(--bg); }
.d-venn > div + div { border-left: none; }
.d-venn > .is-mid { background: var(--panel-2); border-color: var(--accent); border-left: 1px solid var(--accent); }
.d-venn > .is-mid + div { border-left: none; }
.d-list { margin-top: 10px; display: grid; gap: 6px; }
.d-list li { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); padding-left: 14px; position: relative; }
.d-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--line-3); }
.is-mid .d-list li::before, .is-key .d-list li::before { background: var(--accent); }

/* 수식 상자 */
.d-formula { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.d-formula .d-node { flex: 1 1 140px; text-align: center; }
.d-op { flex: 0 0 auto; display: flex; align-items: center; padding: 0 4px; font-size: 22px; color: var(--accent); }

/* 시간 막대 (MTBF/MTTR) */
.d-timeline { display: flex; height: 42px; border: 1px solid var(--line-2); }
.d-timeline span { flex: var(--w, 1) 1 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.d-timeline .run { background: rgba(14, 138, 67, 0.16); color: var(--ok); }
.d-timeline .down { background: rgba(217, 48, 37, 0.22); color: var(--danger); }
.d-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.d-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; }

/* 허브 (중심 + 주변 노드) */
.d-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-hub .d-node.is-center { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: center; text-align: center; border-color: var(--accent); background: var(--panel-2); }

/* 매트릭스 (센서 × 고장 유형) */
.d-matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.d-matrix th, .d-matrix td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: center; color: var(--ink-3); }
.d-matrix thead th { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.d-matrix tbody th { text-align: left; color: var(--ink); font-weight: 600; white-space: nowrap; }
.d-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--accent); }
.d-dot.is-full { background: var(--accent); }
.d-dot.is-none { border-color: var(--line-3); }

/* 게이지 */
.d-gauge { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 28px; align-items: center; }
.d-gauge svg { width: 100%; height: auto; }
.d-gauge .lv-list { display: grid; gap: 8px; }
.d-gauge .lv-list li { display: flex; gap: 12px; font-size: 14px; color: var(--ink-3); }
.d-gauge .lv-list b { flex: 0 0 34px; font-family: var(--mono); color: var(--accent); }

/* 사례 → 데이터 → AX 맵 */
.d-map { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: stretch; }
.d-map .d-arrow { flex: none; }

@media (max-width: 760px) {
  .diagram { padding: 22px 16px 18px; }
  .d-flow { flex-direction: column; }
  .d-arrow { flex: 0 0 28px; }
  .d-arrow::before { content: "↓"; }
  .d-arrow.is-both::before { content: "⇅"; }
  .d-stairs { grid-template-columns: 1fr; }
  .d-stair { min-height: 0; border-top-width: 1px; border-left: 3px solid var(--line-3); }
  .d-stair.is-ax { border-left-color: var(--accent); }
  .d-scale { grid-template-columns: 1fr; }
  .d-seg { border-top: none; border-left: 6px solid var(--c, var(--line-3)); border-right: none; border-bottom: 1px solid var(--line); }
  .d-venn { grid-template-columns: 1fr; }
  .d-venn > div + div, .d-venn > .is-mid + div { border-left: 1px solid var(--line-2); border-top: none; }
  .d-venn > .is-mid { border-left: 1px solid var(--accent); }
  .d-hub { grid-template-columns: 1fr 1fr; }
  .d-hub .d-node.is-center { grid-column: 1 / -1; grid-row: 1; }
  .d-gauge { grid-template-columns: 1fr; }
  .d-map { grid-template-columns: 1fr; }
  .d-map .d-arrow::before { content: "↓"; }
  .d-matrix { font-size: 12px; }
  .d-matrix th, .d-matrix td { padding: 9px 4px; }
}
/* 막대 통계 · 3열 단계 그리드 */
.d-bars { display: grid; gap: 16px; }
.d-bar-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 70px; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-2); }
.d-bar-track { height: 14px; background: var(--bg); border: 1px solid var(--line-2); }
.d-bar-fill { display: block; height: 100%; width: var(--v); min-width: 3px; background: var(--accent); }
.d-bar-row b { font-family: var(--mono); font-size: 15px; color: var(--ink); text-align: right; }
.d-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 760px) {
  .d-bar-row { grid-template-columns: 1fr 64px; }
  .d-bar-row .d-bar-track { grid-column: 1 / -1; grid-row: 2; }
  .d-grid3 { grid-template-columns: 1fr; }
}
/* 핵심 요약 섹션 다음 본문 섹션의 이중 여백 줄이기 */
.section:has(> .container > .answer) + .section:not(.section-panel) { padding-top: 0; border-top: none; }
/* 좁은 화면에서 히어로 열이 내용 폭만큼 늘어나 잘리는 문제 방지 */
.hero-inner > * { min-width: 0; }
.hero h1, .page-hero h1, .section-title { word-break: keep-all; overflow-wrap: break-word; }
.console-body > *, .console-main, .console-table { min-width: 0; }

/* =========================================================
   v3.3 — 출처·근거 표기 (docs/citation-style.md)
   ========================================================= */
sup.ref { font-size: 0.68em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.ref a { display: inline-block; min-width: 1.5em; padding: 1px 3px; border: none !important; border-radius: 3px; background: rgba(26, 115, 232, 0.14); color: var(--accent-2) !important; font-family: var(--mono); font-weight: 600; text-align: center; }
sup.ref a:hover { background: var(--accent); color: #000 !important; }
.refs { max-width: var(--read); margin: 72px auto 0; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.refs h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: 14px; }
.refs ol { display: grid; gap: 8px; counter-reset: r; }
.refs li { position: relative; padding-left: 34px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); counter-increment: r; scroll-margin-top: calc(var(--header-h) + 24px); }
.refs li::before { content: counter(r); position: absolute; left: 0; top: 2px; min-width: 22px; padding: 0 4px; border-radius: 3px; background: var(--panel-2); font-family: var(--mono); font-size: 11.5px; line-height: 20px; color: var(--accent-2); text-align: center; }
.refs li:target { color: var(--ink); }
.refs li:target::before { background: var(--accent); color: #000; }
.refs a { color: var(--ink-2); border-bottom: 1px solid var(--line-3); }
.refs a:hover { color: var(--accent); border-color: var(--accent); }
.refs .refs-meta { margin-top: 14px; font-size: 12.5px; color: var(--ink-4); }
.notice { max-width: var(--read); margin: 28px auto 0; padding: 14px 18px 14px 44px; position: relative; border: 1px solid rgba(178, 106, 0, 0.35); background: rgba(178, 106, 0, 0.06); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.notice::before { content: "!"; position: absolute; left: 16px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.notice a { color: var(--ink); border-bottom: 1px solid var(--line-3); }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line-3); border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); vertical-align: 1px; white-space: nowrap; }
.badge.is-own { border-color: rgba(26, 115, 232, 0.5); color: var(--accent-2); }
/* 근거 표지(도식용): 제공 중 / 연동 / 확인 중 / 로드맵 */
.d-grade { display: inline-block; margin-top: 10px; padding: 2px 8px; border: 1px solid var(--line-3); border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.6; color: var(--ink-3); white-space: nowrap; }
.d-grade.is-live { border-color: var(--ok); color: var(--ok); }
.d-grade.is-link { border-color: var(--accent); color: var(--accent-2); }
.d-grade.is-check { border-color: var(--warn); color: var(--warn); background: rgba(178, 106, 0, 0.06); }
.d-grade.is-road { border-style: dashed; }
.d-legend .d-grade { margin-top: 0; margin-right: 6px; }
.media .media-note { display: none; }
/* 목록 안 각주(sup)가 flex 항목으로 분리되지 않도록 목록 기호를 절대 위치로 */
.prose ul li, .prose ol li, .answer li, .legal ul li { display: block; position: relative; }
.prose ul li { padding-left: 26px; }
.prose ul li::before { position: absolute; left: 0; top: 0; }
.prose ol li { padding-left: 34px; }
.prose ol li::before { position: absolute; left: 0; top: 3px; }
.answer li { padding-left: 18px; }
.answer li::before { position: absolute; left: 0; top: 0.72em; margin-top: 0; }
.legal ul li { padding-left: 24px; }
.legal ul li::before { position: absolute; left: 0; }
/* 읽기 칼럼 페이지의 FAQ 목록도 같은 폭으로 */
body:has(main .prose) .faq-list { max-width: var(--read); margin-left: auto; margin-right: auto; }
.glossary-note { max-width: var(--read); margin: 40px auto 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-4); }
.d-grid3.d-grid4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .d-grid3.d-grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .d-grid3.d-grid4 { grid-template-columns: 1fr; } }

/* =========================================================
   v3.4 — 디자인 리뷰 반영 (docs/design-review.md G1–G9)
   G1은 :root 보조 글자 토큰, G6은 위 등장 효과와 각 페이지 head에 반영
   ========================================================= */

/* G7: 제목 끝에 짧은 한 줄만 남지 않도록 줄 길이 균형 조정 */
.hero h1, .page-hero h1, .section-title, .prose h2 { text-wrap: balance; }

/* G8: 미선택 라디오는 테두리만, 선택 시 액센트 점과 키보드 초점 표시 */
.quiz-opts input[type=radio] {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--ink-3); border-radius: 50%; background: transparent;
}
.quiz-opts input[type=radio]:checked {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px);
}
.quiz-opts input[type=radio]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* G9: 핵심 요약 문단과 강조의 밝기 위계 분리 */
.answer p { color: var(--ink-2); }
.answer strong { color: var(--ink); }

@media (max-width: 760px) {
  /* G2: 표의 첫 열을 고정하고 오른쪽 가장자리에 가로 스크롤 단서 제공 */
  .table-wrap:has(> table.spec) {
    /* 끝까지 스크롤하면 local 배경이 가장자리 단서를 덮음 */
    background:
      linear-gradient(to left, var(--bg) 40%, transparent) right / 48px 100% no-repeat local,
      linear-gradient(to left, rgba(26, 115, 232, 0.32), transparent) right / 28px 100% no-repeat scroll;
    background-color: var(--bg);
  }
  table.spec { table-layout: fixed; }
  table.spec tr > :first-child {
    width: 104px; padding-inline: 12px;
    position: sticky; left: 0; z-index: 1; background: var(--panel);
  }
  table.spec thead tr > :first-child { z-index: 2; background: var(--panel-2); }

  /* G3: 솔루션·자료는 두 열, 브랜드·문의는 전체 폭 */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-grid > .footer-brand, .footer-grid > .footer-col:has(.footer-contact) { grid-column: 1 / -1; }

  /* G4: 주요 CTA 묶음의 버튼 폭과 세로 간격 통일 */
  .cta .btns, .hero-ctas, .section-foot {
    width: 100%; flex-direction: column; align-items: stretch; gap: 12px;
  }
  .cta .btns .btn, .hero-ctas .btn, .section-foot .btn { width: 100%; }

  /* G5: 세로 도식의 반복 여백 축소, 노드 안 작은 레이블의 가독성 유지 */
  .d-arrow { flex-basis: 18px; height: 18px; line-height: 1; }
  .d-node, .d-stair { padding: 12px; }
  .d-node .d-k, .d-stair .d-k { font-size: 13px; }
}

/* =========================================================
   v3.5 — 가이드 페이지 (docs/design-review.md P1–P6)
   ========================================================= */

/* P1: 읽기 칼럼의 와이드 도식도 본문과 같은 폭으로 중앙 정렬 */
body:has(main .prose) main .diagram.diagram--wide {
  max-width: var(--read);
  margin-inline: auto;
}
/* P1: 좁아진 흐름 노드의 긴 영문·코드는 줄바꿈 허용 */
body:has(main .prose) main .diagram--wide .d-flow > .d-node {
  overflow-wrap: anywhere;
}
/* P1: 흐름 노드의 작은 단계 레이블도 13px 이상 유지 */
body:has(main .prose) main .diagram--wide .d-flow .d-k { font-size: 13px; }

/* P2: 도입 순서 카드와 바로 아래 설명을 읽기 칼럼에 정렬 */
body:has(main .prose) main .steps--roadmap,
body:has(main .prose) main .steps--roadmap + .micro {
  max-width: var(--read);
  margin-inline: auto;
}
@media (min-width: 1025px) {
  /* P2: 데스크톱은 실제 단계 수에 맞는 네 열, 기존 모바일 배치는 유지 */
  body:has(main .prose) main .steps--roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 761px) {
  /* P4: 다섯 실수 카드의 마지막 두 장을 가운데 배치 */
  body:has(main .prose) main .d-grid3--centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* P4: 세 장이 들어가는 카드 폭과 기존 10px 간격 유지 */
  body:has(main .prose) main .d-grid3--centered > .d-node { flex: 0 1 calc((100% - 20px) / 3); }
}

@media (max-width: 760px) {
  /* P3: 구간 띠가 있는 계단에만 단계별 DX 태그 표시 */
  body:has(main .prose) main .d-stairs:has(+ .d-band) > .d-stair::before {
    content: "DX";
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 2px 7px;
    border: 1px solid var(--line-3);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.08em;
  }
  /* P3: AX 단계는 기존 액센트 토큰으로 구분 */
  body:has(main .prose) main .d-stairs:has(+ .d-band) > .d-stair.is-ax::before {
    content: "AX";
    border-color: var(--accent);
    color: var(--accent);
  }
  /* P3: 단계별 태그가 구간을 나타내므로 하단 구간 띠는 숨김 */
  body:has(main .prose) main .d-stairs + .d-band { display: none; }

  /* P5: 짧은 날짜 네 개로 구성된 일정만 두 행·두 열로 배치 */
  body:has(main .prose) main .d-flow--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  /* P5: 일정 격자에서는 노드 사이 화살표를 숨김 */
  body:has(main .prose) main .d-flow--compact > .d-arrow { display: none; }

  /* P6: 센서 매트릭스에도 G2와 같은 오른쪽 스크롤 단서 적용 */
  body:has(main .prose) main .table-wrap:has(> .d-matrix) {
    overflow-x: auto;
    background:
      linear-gradient(to left, var(--bg) 40%, transparent) right / 48px 100% no-repeat local,
      linear-gradient(to left, rgba(26, 115, 232, 0.32), transparent) right / 28px 100% no-repeat scroll;
    background-color: var(--bg);
  }
  /* P6: 여섯 열의 최소 폭을 확보하고 래퍼 안에서 가로 스크롤 */
  body:has(main .prose) main .d-matrix { min-width: 560px; }
  /* P6: G2와 같은 104px 첫 열을 스크롤 중에도 고정 */
  body:has(main .prose) main .d-matrix tr > :first-child {
    width: 104px;
    padding-inline: 12px;
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--panel);
  }
  /* P6: 고정된 머리글은 본문 첫 열보다 위에 표시 */
  body:has(main .prose) main .d-matrix thead tr > :first-child { z-index: 2; background: var(--panel-2); }
}

/* =========================================================
   v3.6 — 나머지 페이지 (docs/design-review.md R1–R11)
   ========================================================= */

/* R2: 용어 행 끝의 두 도식이 제목·설명 두 열 전체를 사용 */
.page-glossary .glossary .term > figure.diagram {
  grid-column: 1 / -1;
  width: 100%;
}

/* R4: FAQ 그룹과 목록을 안내 상자와 같은 읽기 폭에 정렬 */
.page-faq main .faq-group,
.page-faq main .faq-list {
  max-width: var(--read);
  margin-inline: auto;
}

/* R5: 사례 안내와 대표 이미지를 사례 카드의 컨테이너 폭에 정렬 */
.page-cases main .answer,
.page-cases main figure.media { max-width: none; }

/* R6: 자가진단 단계 카드와 FAQ를 질문지와 같은 읽기 폭에 정렬 */
.page-assessment #levels .ladder,
.page-assessment main .faq-list {
  max-width: var(--read);
  margin-inline: auto;
}

/* R11: 푸터의 도입 문의를 액센트 색과 굵기로 강조 */
.site-footer .footer-contact li a[href="/contact/"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
}
/* R11: 기존 링크 문구를 보존하고 진행 방향만 장식으로 표시 */
.site-footer .footer-contact li a[href="/contact/"]::after { content: " →"; }
/* R11: 문의 행동의 마우스·키보드 초점에도 액센트 위계 유지 */
.site-footer .footer-contact li a[href="/contact/"]:is(:hover, :focus-visible) { color: var(--accent-2); }

@media (max-width: 760px) {
  /* R1: OEE 카드를 세로로 쌓고 연산자를 독립된 행에 배치 */
  .page-glossary #oee .d-formula { flex-direction: column; flex-wrap: nowrap; }
  /* R1: 세로 배치에서 카드의 기존 가로 기준 크기를 해제 */
  .page-glossary #oee .d-formula > .d-node { flex: none; }
  /* R1: 카드 사이 연산자를 각 행의 가운데에 정렬 */
  .page-glossary #oee .d-formula > .d-op { justify-content: center; }

  /* R3: 빠른 찾기 항목을 칩 단위로 줄바꿈 */
  .page-glossary .toc li { display: flex; flex-wrap: wrap; gap: 6px; }
  /* R3: 기존 분류 레이블은 칩 위의 한 행으로 유지 */
  .page-glossary .toc .toc-label { flex-basis: 100%; }
  /* R3: 칩으로 구분되는 모바일에서는 기존 구분자만 숨김 */
  .page-glossary .toc .toc-separator { display: none; }
  /* R3: 용어 내부 줄바꿈을 막고 기존 토큰으로 칩 테두리 표시 */
  .page-glossary .toc a { white-space: nowrap; padding: 3px 8px; border: 1px solid var(--line-2); }

  /* R7: 홈 핵심 수치 네 개를 동일한 두 열로 배치 */
  .page-home .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* R7: 네 칸의 안쪽 여백과 구분선 기준 통일 */
  .page-home .metrics-grid > .metric {
    padding: 28px 16px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  /* R7: 첫 열은 외곽선 없이 두 열 사이 구분선만 유지 */
  .page-home .metrics-grid > .metric:nth-child(odd) { border-left: none; }
  /* R7: 첫 행은 상위 수치 영역의 경계선을 사용 */
  .page-home .metrics-grid > .metric:nth-child(-n + 2) { border-top: none; }

  /* R8: 홈·스마트공장 개념 이미지의 모바일 설비 식별성 확보 */
  .page-home main figure.media img,
  .page-smart-factory main figure.media img { aspect-ratio: 4 / 3; object-fit: cover; }

  /* R9: 응답 진행도를 버튼 위의 전체 행에 배치하고 글자 크기 상향 */
  .page-assessment .quiz-actions > .quiz-progress {
    order: -1;
    flex-basis: 100%;
    font-size: 14px;
    color: var(--ink-3);
  }

  /* R10: 첫 조항의 시작 위치를 보존하고 이후 조항 위 여백 축소 */
  .page-privacy .legal h2:not(:first-of-type) { margin-top: 36px; }
  /* R10: 짧은 조항의 제목·본문 간격 축소 */
  .page-privacy .legal h2 { margin-bottom: 12px; }
  /* R10: 짧은 목록 항목 사이와 목록 바깥 여백 축소 */
  .page-privacy .legal ul { margin-block: 12px; gap: 6px; }
}

/* =========================================================
   v3.7 — 재검증 후속 (docs/design-review.md G4·G7 보완)
   ========================================================= */

@media (max-width: 760px) {
  /* G7 보완: <br>가 있는 모바일 제목의 마지막 줄에 짧은 한 단어만 남지 않도록 조정 */
  .hero h1, .page-hero h1, .section-title, .prose h2, .cta h2 { text-wrap: pretty; }

  /* G4 보완: 버튼은 전체 너비로 쌓고 12px 간격 유지, 진행도는 기존 전체 행과 order: -1 유지 */
  .quiz-actions { gap: 12px; }
  .quiz-actions > .btn { width: 100%; }
}

/* =========================================================
   v3.8 — 대비 자동 점검 후속 (WCAG AA)
   ========================================================= */

/* 흰색 CTA 배경의 작은 글자 대비를 5:1 이상으로 확보하고 장식선은 유지 */
.cta .eyebrow { color: #5F6670; }

/* 흰색 배경의 모듈 번호 대비를 확보하며 데스크톱·모바일 글자 크기는 유지 */
.module-idx b { color: var(--ink-4); }

/* SEO 제목 단계 정리: 단계 카드 h4→h3, 문의 정보 패널 h3→h2로 바꿔도 모양은 같게 */
.step h3 { margin-top: 24px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.info-panel h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }

/* =========================================================
   v3.9 — 기능 페이지: 클릭형 모듈 허브 + 예시 화면(mock)
   ========================================================= */
.hub-btn { font: inherit; text-align: left; cursor: pointer; position: relative; transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.hub-btn.is-center { text-align: center; }
.hub-btn:hover { border-color: var(--ink); }
.hub-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--bg); }
.hub-more { display: block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--ink-4); }
.hub-btn:hover .hub-more, .hub-btn[aria-expanded="true"] .hub-more { color: var(--accent); }
.hub-btn[aria-expanded="true"] .hub-more { visibility: hidden; }
.hub-detail { margin-top: 14px; }
.hub-hint { display: none; padding: 14px 16px; border: 1px dashed var(--line-3); font-size: 13.5px; color: var(--ink-4); text-align: center; }
.hub-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 26px 28px; border: 1px solid var(--accent); background: var(--bg); }
.hub-panel + .hub-panel { margin-top: 10px; }
.hub-panel h3 { margin-top: 6px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.hub-panel p { margin: 12px 0 16px; font-size: 14.5px; line-height: 1.75; color: var(--ink-3); }
.hub-panel .text-link { font-size: 14px; font-weight: 600; }
.hub-panel .module-points { margin-top: 0; align-self: start; }
.js .hub-hint { display: block; }
.js .hub-panel { display: none; }
.js .hub-panel.is-open { display: grid; animation: hubIn 0.22s var(--ease); }
.js .hub-detail.has-open .hub-hint { display: none; }
@keyframes hubIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .hub-panel { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px; } }

/* 예시 화면 */
.module-figure--mock { display: block; padding: 22px; min-height: 0; }
.mock { background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35); font-size: 12px; line-height: 1.5; color: var(--ink-2); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 11px; color: var(--ink-3); }
.mock-dots { display: inline-flex; gap: 4px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.mock-path { font-weight: 600; letter-spacing: 0.01em; }
.mock-bar .chip { margin-left: auto; }
.mock-note { margin-top: 10px; font-size: 11.5px; color: var(--ink-4); text-align: right; }
.mock-sub { font-size: 11px; font-weight: 600; color: var(--ink-4); margin: 10px 0 6px; }
.mock-pad { padding: 0 12px; }
.chip { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 10.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.chip.ok { background: rgba(14, 138, 67, 0.1); color: var(--ok); }
.chip.info { background: rgba(26, 115, 232, 0.1); color: var(--accent); }
.chip.warn { background: rgba(178, 106, 0, 0.12); color: var(--warn); }
.chip.bad { background: rgba(217, 48, 37, 0.1); color: var(--danger); }
.chip.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: pulse 1.8s ease-in-out infinite; }
.module-figure .mock svg, .module-figure .mock-pair svg { max-width: none; }

.mock-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mock-table td, .mock-table th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.mock-table tr:last-child td { border-bottom: none; }
.mock-table th { font-size: 10.5px; font-weight: 600; color: var(--ink-4); background: var(--panel); }
.mock-table .num { color: var(--ink-3); }
.mock-grid td:first-child { font-weight: 600; color: var(--ink); }

/* 01 자산 */
.mock-split { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.mock-tree { padding: 10px 0; border-right: 1px solid var(--line); background: var(--panel); }
.mock-tree li { padding: 4px 10px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.mock-tree li::before { content: "\25B8\00a0"; color: var(--ink-4); font-size: 9px; }
.mock-tree .l2 { padding-left: 20px; }
.mock-tree .l3 { padding-left: 32px; }
.mock-tree .l3::before { content: none; }
.mock-tree .on { background: rgba(26, 115, 232, 0.1); color: var(--accent); font-weight: 700; box-shadow: inset 2px 0 0 var(--accent); }
.mock-pane { padding: 12px 14px; min-width: 0; }
.mock-head { display: flex; align-items: center; gap: 8px; }
.mock-head b { font-size: 15px; color: var(--ink); }
.mock-qr { width: 34px; height: 34px; margin-left: auto; color: var(--ink); }
.mock-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 10px; }
.mock-dl dt { color: var(--ink-4); }
.mock-dl dd { color: var(--ink); font-weight: 500; }
.mock-pane .mock-table td { padding: 5px 0; }
.mock-pane .mock-table td.num { width: 48px; }

/* 02 예방보전 */
.mock-alert { padding: 7px 12px; background: rgba(178, 106, 0, 0.08); border-bottom: 1px solid var(--line); color: var(--warn); font-weight: 600; font-size: 11.5px; }
.mock-checklist { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.mock-checklist ul, .mock-checklist-m { display: grid; gap: 4px; }
.mock-checklist li, .mock-checklist-m li { position: relative; padding-left: 20px; color: var(--ink-2); }
.mock-checklist li::before, .mock-checklist-m li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border: 1.5px solid var(--line-3); border-radius: 2px; box-sizing: border-box; }
.mock-checklist li.done::before, .mock-checklist-m li.done::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22%3E%3Cpath d=%22m3 6 2 2 4-4%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.8%22/%3E%3C/svg%3E") center / 100% no-repeat; border-color: var(--accent); }

/* 03 작업지시 */
.mock-steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 12px 10px; counter-reset: st; }
.mock-steps li { position: relative; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-4); padding-top: 24px; counter-increment: st; }
.mock-steps li::before { content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); background: var(--bg); font-size: 10px; line-height: 15px; z-index: 1; box-sizing: border-box; }
.mock-steps li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 1.5px; background: var(--line-2); }
.mock-steps li:first-child::after { display: none; }
.mock-steps li.done, .mock-steps li.on { color: var(--ink); }
.mock-steps li.done::before { content: "\2713"; background: var(--accent); border-color: var(--accent); color: #fff; }
.mock-steps li.done::after, .mock-steps li.on::after { background: var(--accent); }
.mock-steps li.on::before { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15); }
.mock-dl--wide { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); gap: 6px 16px; }
.code { display: inline-block; padding: 0 5px; margin-right: 4px; border: 1px solid var(--line-2); border-radius: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); background: var(--panel); }
.mock-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.mock-foot-note { margin-right: auto; font-size: 11px; color: var(--ink-4); }
.mock-btn { display: inline-block; padding: 5px 12px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.mock-btn.ghost { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line-3); padding: 4px 11px; }
.mock-btn.block { display: block; text-align: center; margin-top: 10px; }

/* 04 예지보전 */
.mock-chart-wrap { padding: 2px 12px 4px; }
.mock-chart-wrap .mock-sub { display: flex; justify-content: space-between; }
.th-label { color: var(--danger); }
.mock-chart { display: block; width: 100%; height: auto; }
.mock-chart .g { stroke: var(--line); stroke-width: 1; }
.mock-chart text { font-size: 8px; fill: var(--ink-4); font-family: var(--mono); }
.mock-chart .th { stroke: var(--danger); stroke-width: 1; stroke-dasharray: 4 3; }
.mock-chart .zone { fill: rgba(217, 48, 37, 0.06); }
.mock-chart .ln { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.mock-chart .pt { fill: var(--danger); stroke: var(--bg); stroke-width: 1.5; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mock-kpis > div { padding: 8px 12px; border-left: 1px solid var(--line); }
.mock-kpis > div:first-child { border-left: none; }
.mock-kpis span { display: block; font-size: 10.5px; color: var(--ink-4); font-weight: 600; }
.mock-kpis b { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mock-kpis b.bad { color: var(--danger); }
.mock-kpis small { margin-left: 2px; font-size: 10px; font-weight: 500; color: var(--ink-4); }
.mock-event { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 11.5px; color: var(--ink-2); }

/* 05 예비품 */
.stock { position: relative; display: block; width: 90px; height: 6px; background: var(--line); }
.stock i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.stock i.low { background: var(--danger); }
.stock em { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink); }

/* 06 모바일·지표 */
.mock-pair { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.mock-phone { padding: 12px 10px 14px; border: 1px solid var(--line-3); border-radius: 18px; background: var(--bg); box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45); font-size: 11.5px; line-height: 1.5; }
.mock-phone::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--line-2); }
.mock-phone-top { font-weight: 700; color: var(--ink); font-size: 12px; }
.mock-phone-scan { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 8px; background: var(--panel); border: 1px solid var(--line); }
.mock-phone-scan .mock-qr { width: 28px; height: 28px; margin: 0; }
.mock-phone-scan span { font-size: 11px; font-weight: 600; color: var(--ok); }
.mock-pair .mock-kpis { border-top: none; }
.mock-pareto { display: grid; gap: 5px; padding: 0 12px 12px; }
.mock-pareto li { display: grid; grid-template-columns: 56px minmax(0, 1fr) 16px; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); }
.mock-pareto i { height: 8px; background: var(--accent); }
.mock-pareto li:first-child i { background: var(--danger); }
.mock-pareto b { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .module-figure--mock { padding: 12px; }
  .mock-split { grid-template-columns: 1fr; }
  .mock-tree { display: none; }
  .mock-pair { grid-template-columns: 1fr; }
  .mock-phone { max-width: 220px; }
  .mock-grid th:nth-child(3), .mock-grid td:nth-child(3) { display: none; }
}
.module-figure--mock > .mock, .module-figure--mock > .mock-pair { width: 100%; }
.module-figure .mock-qr { width: 34px; height: 34px; flex-shrink: 0; }
.module-figure .mock-phone-scan .mock-qr { width: 28px; height: 28px; }
.module-figure .mock-chart { width: 100%; height: auto; }

/* 기능 페이지: 모바일 현장 점검 예시 화면 (기존 개념 사진 대체) */
.media--mock .mobile-flow { display: flex; align-items: stretch; justify-content: center; gap: 18px; padding: 34px 28px 30px; }
.mobile-step { flex: 0 1 200px; min-width: 0; display: flex; flex-direction: column; }
.mobile-step-k { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--accent); text-align: center; }
.mobile-step .mock-phone { flex: 1; min-height: 268px; display: flex; flex-direction: column; }
.mobile-step .mock-btn.block { margin-top: auto; }
.mobile-arrow { flex-shrink: 0; align-self: center; color: var(--line-3); font-size: 18px; padding-top: 24px; }
.mobile-scan { display: grid; place-items: center; margin: 12px 0; padding: 18px 0; background: var(--panel-2); }
.mobile-scan-frame { position: relative; padding: 10px; border: 2px solid var(--accent); background: var(--bg); }
.media--mock .mobile-scan .mock-qr { width: 56px; height: 56px; margin: 0; color: var(--ink); }
.mobile-found { margin-bottom: 12px; }
.mobile-found b { display: block; font-size: 14px; color: var(--ink); }
.mobile-found span { font-size: 11px; color: var(--ink-4); }
.mobile-list { margin-top: 12px; gap: 7px; }
.mobile-input { margin-left: 4px; padding: 0 6px; border: 1px solid var(--accent); font-style: normal; color: var(--ink); }
.mobile-progress { height: 4px; margin-top: auto; background: var(--line); }
.mobile-progress i { display: block; height: 100%; background: var(--accent); }
.mobile-meta { margin-top: 6px; font-size: 11px; color: var(--ink-4); }
.mobile-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.mobile-thumbs span { aspect-ratio: 1; background: linear-gradient(135deg, var(--line-2), var(--panel-2)); }
.mobile-thumbs .add { display: grid; place-items: center; background: var(--bg); border: 1px dashed var(--line-3); color: var(--ink-4); font-size: 16px; }
.mobile-note { margin: 10px 0 12px; padding: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 11px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 760px) {
  .media--mock .mobile-flow { flex-direction: column; align-items: stretch; padding: 22px 16px; }
  .mobile-step { flex-basis: auto; max-width: 260px; margin-inline: auto; width: 100%; }
  .mobile-arrow { transform: rotate(90deg); padding: 0; text-align: center; }
}

/* 페이지 상단 예시 화면 (기존 개념 사진 대체) */
.mock-stage { padding: 34px 32px 30px; }
.mock-stage > .mock { max-width: 680px; margin-inline: auto; }
.mock-stage > .mock--narrow { max-width: 520px; }
.media--wide .mock-stage > .mock { max-width: 860px; }
.mock-stage .mock-chart { display: block; width: 100%; height: auto; }
.mock-kpis--4 { grid-template-columns: repeat(4, 1fr); }
.mock-stage .mock-table td, .mock-stage .mock-table th { padding: 7px 12px; }
.mock-table tr.hl td { background: rgba(217, 48, 37, 0.06); color: var(--danger); font-weight: 600; }

.mock-flow { display: flex; align-items: stretch; justify-content: center; gap: 14px; }
.mock-flow-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.mock-flow-step > .mock, .mock-flow-step > .paper { flex: 1; }
.mock-flow .mobile-arrow { padding-top: 24px; }
.mock-flow .mock-table td, .mock-flow .mock-table th { padding: 6px 8px; }
.paper { padding: 14px 16px; background: #FFFDF6; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35); background-image: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(0, 0, 0, 0.07) 25px 26px); font-size: 12px; line-height: 26px; color: var(--ink-3); font-style: italic; transform: rotate(-0.6deg); }
.paper p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper .paper-h { font-style: normal; font-weight: 700; color: var(--ink-2); }
.paper .paper-x { color: var(--ink-4); text-decoration: line-through; }
.mock-chat { display: grid; gap: 8px; padding: 12px; }
.mock-chat p { padding: 8px 10px; font-size: 11.5px; line-height: 1.55; }
.mock-chat .q { justify-self: end; max-width: 85%; background: var(--ink); color: #fff; }
.mock-chat .a { background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); }
.mock-chat .a span { display: block; margin-top: 6px; font-size: 10.5px; color: var(--accent); }

.mock-flow--2 .mock-flow-step { flex-basis: 0; }
.mock-link { flex-shrink: 0; align-self: center; display: grid; gap: 10px; padding-top: 24px; font-size: 11px; font-weight: 600; color: var(--accent); white-space: nowrap; text-align: center; }
.mock-link span + span { color: var(--ink-4); }

.lv-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 16px 14px; }
.lv-score { display: grid; place-items: center; width: 92px; height: 92px; border: 2px solid var(--accent); border-radius: 50%; text-align: center; }
.lv-score b { font-size: 28px; line-height: 1; font-weight: 700; color: var(--accent); }
.lv-score span { margin-top: -18px; font-size: 10.5px; color: var(--ink-4); }
.lv-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.lv-desc { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.lv-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 16px 16px; }
.lv-meter li { padding-top: 10px; border-top: 6px solid var(--line); font-size: 11px; font-weight: 600; color: var(--ink-4); text-align: center; }
.lv-meter li.done { border-color: rgba(26, 115, 232, 0.35); }
.lv-meter li.on { border-color: var(--accent); color: var(--accent); }

.mock-terms { display: grid; gap: 0; padding: 4px 12px 8px; }
.mock-terms div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mock-terms div:last-child { border-bottom: none; }
.mock-terms dt { font-weight: 700; color: var(--ink); }
.mock-terms dd { color: var(--ink-3); }

.sensor-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.sensor { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 14px 12px; border-left: 1px solid var(--line); }
.sensor:first-child { border-left: none; }
.sensor-k { font-size: 11px; font-weight: 600; color: var(--ink-4); }
.sensor b { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.sensor.is-bad b { color: var(--danger); }
.sensor small { margin-left: 2px; font-size: 11px; font-weight: 500; color: var(--ink-4); }
.spark { display: block; width: 100%; height: 36px; margin-top: 4px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.sensor.is-bad .spark polyline { stroke: var(--danger); }

.ready { display: grid; gap: 14px; padding: 18px 16px; }
.ready li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 80px; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-2); }
.ready i { position: relative; height: 8px; background: var(--line); }
.ready em { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.ready em.low { background: var(--warn); }
.ready b { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .mock-stage { padding: 20px 14px; }
  .mock-flow { flex-direction: column; }
  .mock-flow .mobile-arrow { transform: rotate(90deg); padding: 0; text-align: center; }
  .mock-link { padding: 0; grid-auto-flow: column; justify-content: center; gap: 16px; }
  .mock-kpis--4 { grid-template-columns: repeat(2, 1fr); }
  .mock-kpis--4 > div:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  .mock-kpis--4 > div:nth-child(4) { border-top: 1px solid var(--line); }
  .mock-stage { overflow-x: auto; }
  .sensor-cards { grid-template-columns: 1fr; }
  .sensor { border-left: none; border-top: 1px solid var(--line); }
  .sensor:first-child { border-top: none; }
  .ready li { grid-template-columns: 1fr 70px; }
  .ready li i { grid-column: 1 / -1; grid-row: 2; }
}
.mock-side { display: grid; grid-template-columns: minmax(0, 1fr) 150px; }
.mock-side .mock-kpis { grid-template-columns: 1fr; border-top: none; border-bottom: none; border-left: 1px solid var(--line); }
.mock-side .mock-kpis > div { border-left: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.mock-side .mock-kpis > div:first-child { border-top: none; }
@media (max-width: 760px) {
  .mock-side { grid-template-columns: 1fr; }
  .mock-side .mock-kpis { grid-template-columns: repeat(3, 1fr); border-left: none; border-top: 1px solid var(--line); }
  .mock-side .mock-kpis > div { border-top: none; border-left: 1px solid var(--line); }
  .mock-side .mock-kpis > div:first-child { border-left: none; }
}

/* =========================================================
   v4.0 — 밝은 톤 개념 이미지 배치 (compare · 사례 카드 · 본문)
   ========================================================= */
.compare-visual { position: relative; margin: -46px -40px 30px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel); }
.compare-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare-visual figcaption { position: absolute; right: 10px; bottom: 10px; line-height: 1; }
.compare-visual .badge, .case-visual .badge { margin: 0; background: rgba(255, 255, 255, 0.92); }
.case-visual { position: relative; }
.case-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.case:hover .case-visual img { transform: scale(1.04); }
.case-visual .badge { position: absolute; right: 10px; bottom: 10px; }
.prose .media { margin: 28px 0 36px; max-width: none; }
.prose .media img { aspect-ratio: 2 / 1; }
@media (max-width: 760px) {
  .compare-visual { margin: -34px -24px 24px; }
}

/* =========================================================
   v4.1 — 읽기 폭 확대 (920 → 1180). 넓은 화면에서 본문이 가운데로
   몰리지 않도록 표·도식·그림은 칼럼 전체를 쓰고, 문단만 읽기 좋은 폭으로 제한
   ========================================================= */
.prose > p, .prose > ul, .prose > ol { max-width: 1000px; }
.answer p, .answer li { max-width: 1000px; }
.mock-stage > .mock { max-width: 760px; }
.mock-stage > .mock--narrow { max-width: 560px; }
.media--wide .mock-stage > .mock { max-width: 960px; }

/* =========================================================
   v3.10 — 기능 페이지 모듈 허브 리디자인 (버스형)
   6개 모듈 → 공통 버스 → 설비 이력(허브) ← 양옆 연동. 문구·토글 JS는 그대로.
   ========================================================= */
.d-hub--bus { display: grid; grid-template-columns: 1fr; gap: 0; --hub-gap: 12px; }
.hub-modules { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--hub-gap); }
.hub-core-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.5fr) 36px minmax(0, 1fr); align-items: stretch; }
.hub-core-row .d-arrow { flex: none; font-size: 20px; }

/* 카드 공통 */
.d-hub--bus .hub-btn { position: relative; padding: 18px 46px 20px 18px; border-top: 2px solid var(--line-2); transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease); }
.d-hub--bus .hub-btn .d-title { font-size: 16px; letter-spacing: -0.01em; }
.d-hub--bus .hub-btn .d-desc { margin-top: 8px; }
.d-hub--bus .hub-btn:hover, .d-hub--bus .hub-btn:focus-visible { border-color: var(--line-3); border-top-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(15, 23, 42, 0.5); }
.d-hub--bus .hub-btn[aria-expanded="true"] { border-color: var(--accent); border-top-color: var(--accent); background: var(--bg); box-shadow: inset 0 0 0 1px var(--accent); transform: none; }
/* 모서리 + 아이콘이 "핵심 기능 보기" 글자를 대신함(글자는 스크린리더용으로 유지) */
.d-hub--bus .hub-more { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d-hub--bus .hub-btn::after { content: "+"; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-3); border-radius: 50%; font-size: 15px; font-weight: 500; line-height: 1; color: var(--ink-3); background: var(--bg); transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease); }
.d-hub--bus .hub-btn:hover::after, .d-hub--bus .hub-btn:focus-visible::after { border-color: var(--accent); color: var(--accent); }
.d-hub--bus .hub-btn[aria-expanded="true"]::after { content: "−"; background: var(--accent); border-color: var(--accent); color: #fff; }

/* 연동(외부) 카드: 점선 */
.d-hub--bus .hub-link { border-style: dashed; border-top-style: solid; border-color: var(--line-3); background: var(--panel); }
.d-hub--bus .hub-link .d-k { color: var(--ink-3); }

/* 허브(설비 이력): 검정 */
.d-hub--bus .hub-core-row .hub-core.is-center { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 26px 40px; border: 1px solid var(--ink); border-top: 2px solid var(--accent); background: var(--ink); }
.d-hub--bus .hub-core .d-k { color: #9CC2FF; letter-spacing: 0.12em; }
.d-hub--bus .hub-core .d-title { color: #fff; font-size: 20px; letter-spacing: -0.02em; }
.d-hub--bus .hub-core .d-desc { color: rgba(255, 255, 255, 0.74); }
.d-hub--bus .hub-core-row .hub-core.is-center:hover, .d-hub--bus .hub-core-row .hub-core.is-center:focus-visible { border-color: var(--accent); background: #0B0F14; }
.d-hub--bus .hub-core-row .hub-core.is-center[aria-expanded="true"] { background: var(--ink); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.d-hub--bus .hub-core::after { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.d-hub--bus .hub-core:hover::after { border-color: #9CC2FF; color: #9CC2FF; }
.d-hub--bus .hub-core[aria-expanded="true"]::after { background: var(--accent); border-color: var(--accent); }

/* 버스: 각 모듈에서 내려온 선이 가로 버스로 모여 허브로 들어감 */
.hub-bus { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--hub-gap); height: 66px; }
.hub-bus > i { position: relative; display: block; }
.hub-bus > i::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 26px; background: var(--line-3); transform: translateX(-0.5px); transition: background 0.18s var(--ease); }
.hub-bus > i::after { content: ""; position: absolute; top: 26px; left: 0; right: calc(-1 * var(--hub-gap)); height: 1px; background: var(--line-3); }
.hub-bus > i:first-child::after { left: 50%; }
.hub-bus > i:last-child::after { right: 50%; }
.hub-bus::before { content: ""; position: absolute; left: 50%; top: 26px; width: 1px; height: 40px; background: var(--accent); transform: translateX(-0.5px); }
.hub-bus::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 8px; height: 8px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: translateX(-50%) rotate(45deg); }
.d-hub--bus:has(.hub-mod:nth-child(1)[aria-expanded="true"]) .hub-bus > i:nth-child(1)::before { background: var(--accent); }
.d-hub--bus:has(.hub-mod:nth-child(2)[aria-expanded="true"]) .hub-bus > i:nth-child(2)::before { background: var(--accent); }
.d-hub--bus:has(.hub-mod:nth-child(3)[aria-expanded="true"]) .hub-bus > i:nth-child(3)::before { background: var(--accent); }
.d-hub--bus:has(.hub-mod:nth-child(4)[aria-expanded="true"]) .hub-bus > i:nth-child(4)::before { background: var(--accent); }
.d-hub--bus:has(.hub-mod:nth-child(5)[aria-expanded="true"]) .hub-bus > i:nth-child(5)::before { background: var(--accent); }
.d-hub--bus:has(.hub-mod:nth-child(6)[aria-expanded="true"]) .hub-bus > i:nth-child(6)::before { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .d-hub--bus .hub-btn:hover, .d-hub--bus .hub-btn:focus-visible { transform: none; }
}
@media (max-width: 1100px) {
  .hub-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-bus { height: 44px; }
  .hub-bus > i { display: none; }
  .hub-bus::before { top: 0; height: 44px; }
}
@media (max-width: 760px) {
  .d-hub--bus { grid-template-columns: 1fr; }
  .hub-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hub-core-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .d-hub--bus .hub-core-row .hub-core.is-center { grid-column: 1 / -1; grid-row: 1; padding: 22px 18px; }
  .hub-core-row .d-arrow { display: none; }
  .d-hub--bus .hub-btn { padding: 14px 40px 16px 14px; }
  .hub-bus { height: 30px; }
  .hub-bus::before { height: 30px; }
}

/* =========================================================
   v3.11 — 단계 트랙 (ol.d-steps): 허브와 같은 톤의 단계 도식
   트랙 위 마커 → 짧은 연결선 → 상단 2px 보더 카드. 마지막(is-key)은 액센트.
   ========================================================= */
.d-steps { --gap: 12px; position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 36px 0 0; list-style: none; counter-reset: none; }
.d-step { position: relative; padding: 18px 18px 20px; border: 1px solid var(--line-2); border-top: 2px solid var(--line-2); background: var(--bg); }
.d-step .d-title { font-size: 16px; letter-spacing: -0.01em; }
.d-step .d-desc { margin-top: 8px; }
/* 트랙: 이 단계의 중심에서 다음 단계의 중심까지 */
.d-step::before { content: ""; position: absolute; top: -25px; left: 50%; right: calc(-50% - var(--gap)); height: 1px; background: var(--line-3); }
.d-step:last-child::before { display: none; }
/* 마커에서 카드 상단까지 내려오는 짧은 선 */
.d-step::after { content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 18px; background: var(--line-3); transform: translateX(-0.5px); }
.d-step-mark { position: absolute; top: -32px; left: 50%; width: 15px; height: 15px; border: 1.5px solid var(--line-3); border-radius: 50%; background: var(--bg); transform: translateX(-50%); z-index: 1; }
/* 다음 단계 마커 왼쪽의 방향 표시 */
.d-step + .d-step .d-step-mark::before { content: ""; position: absolute; left: -16px; top: 50%; width: 6px; height: 6px; border: solid var(--line-3); border-width: 1px 1px 0 0; transform: translateY(-50%) rotate(45deg); }
/* 강조 단계 */
.d-step.is-key { border-color: var(--accent); border-top-color: var(--accent); }
.d-step.is-key::after { background: var(--accent); }
.d-step.is-key .d-step-mark { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14); }
.d-step.is-key .d-step-mark::before { border-color: var(--accent); }

@media (max-width: 760px) {
  .d-steps { grid-template-columns: 1fr; gap: 10px; padding: 0 0 0 32px; }
  .d-step::before { top: 50%; bottom: calc(-50% - 10px); left: -20px; right: auto; width: 1px; height: auto; }
  .d-step::after { top: 50%; left: -20px; width: 20px; height: 1px; transform: translateY(-0.5px); }
  .d-step-mark { top: 50%; left: -20px; transform: translate(-50%, -50%); }
  .d-step + .d-step .d-step-mark::before { left: 50%; top: -14px; transform: translateX(-50%) rotate(135deg); }
  .d-step { padding: 14px 16px 16px; }
}

/* =========================================================
   v3.12 — 기능 페이지 모듈 상세 블록 리디자인
   왼쪽 레일 위의 원형 번호 마커(단계 트랙과 같은 문법) + 상단 2px 보더 카드(본문 | 예시 화면).
   문구·목업·캡션은 그대로.
   ========================================================= */
.module-list { position: relative; padding-left: 76px; --mod-gap: 20px; }
.module-list > * { position: relative; }
/* 레일: 첫 마커 중심에서 마지막 마커 중심까지 */
.module-list > *::before { content: ""; position: absolute; left: -54px; top: 0; bottom: calc(-1 * var(--mod-gap)); width: 1px; background: var(--line-3); }
.module-list > :first-child::before { top: 22px; }
.module-list > :last-child::before { bottom: auto; height: 22px; }

/* 카드 */
.module-list .module, .module-list .module:first-of-type, .module-list .media + .module {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start;
  margin: 0 0 var(--mod-gap); padding: 34px 36px 36px;
  border: 1px solid var(--line-2); border-top: 2px solid var(--line-2); background: var(--bg);
}
.module-list > :last-child { margin-bottom: 0; }
.module-list > .media { margin: 0 0 var(--mod-gap); max-width: none; }

/* 번호 마커 */
.module-list .module-idx { position: absolute; left: -76px; top: -1px; width: 44px; height: 44px; margin: 0; padding: 0; display: grid; place-items: center; border: 1.5px solid var(--line-3); border-radius: 50%; background: var(--bg); z-index: 1; }
.module-list .module-idx b { display: block; margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--accent); }
.module-list .module-idx span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 본문 */
.module-list .module-copy h3 { font-size: clamp(22px, 2vw, 27px); }
.module-list .module-copy h3 .en { margin-bottom: 12px; }
.module-list .module-copy > p { margin-top: 14px; font-size: 15px; }
.module-list .module-points { margin-top: 22px; }
.module-list .module-figure { align-self: stretch; }

@media (max-width: 1180px) {
  .module-list .module, .module-list .module:first-of-type, .module-list .media + .module { grid-template-columns: 1fr; gap: 28px; }
  .module-list .module-figure { grid-column: auto; }
}
@media (max-width: 760px) {
  .module-list { padding-left: 40px; --mod-gap: 14px; }
  .module-list > *::before { left: -27px; }
  .module-list > :first-child::before { top: 14px; }
  .module-list > :last-child::before { height: 14px; }
  .module-list .module-idx { left: -40px; width: 28px; height: 28px; }
  .module-list .module-idx b { font-size: 11.5px; }
  .module-list .module, .module-list .module:first-of-type, .module-list .media + .module { padding: 20px 16px 22px; gap: 20px; }
}

/* =========================================================
   v3.13 — 기능 페이지 표준 메뉴 구조 (.tiles--menu)
   간격 있는 카드(상단 2px 보더) + 원형 번호 마커 + 메뉴 수 칩 + 트리 선 목록. 다른 페이지의 .tiles에는 영향 없음.
   ========================================================= */
.tiles--menu { gap: 12px; background: none; border: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles--menu .tile { padding: 20px 22px 24px; border: 1px solid var(--line-2); border-top: 2px solid var(--line-2); background: var(--bg); transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease); }
.tiles--menu .tile::before { display: none; }
.tiles--menu .tile:hover { background: var(--bg); border-top-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(15, 23, 42, 0.5); }
/* 번호 마커(왼쪽) + 메뉴 수 칩(오른쪽) */
.tiles--menu .tile-num { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; letter-spacing: 0; }
.tiles--menu .tile-num b { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--line-3); border-radius: 50%; font-size: 11.5px; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); background: var(--bg); transition: border-color 0.18s var(--ease); }
.tiles--menu .tile-num em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-4); padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 3px; }
.tiles--menu .tile:hover .tile-num b { border-color: var(--accent); }
.tiles--menu .tile h3 { font-size: 18px; line-height: 1.4; }
/* 트리 선 목록: 세로선에서 가지가 각 메뉴로 뻗음 */
.tiles--menu .tile-list { position: relative; margin-top: 16px; padding: 0 0 0 16px; border-top: none; gap: 9px; }
.tiles--menu .tile-list::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 1px; background: var(--line-3); }
.tiles--menu .tile-list li { gap: 8px; color: var(--ink-2); }
.tiles--menu .tile-list li::before { content: ""; width: 10px; height: 1px; margin-top: 11px; margin-left: -16px; background: var(--line-3); flex-shrink: 0; }

@media (max-width: 1180px) {
  .tiles--menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tiles--menu { grid-template-columns: 1fr; gap: 10px; }
  .tiles--menu .tile { padding: 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tiles--menu .tile:hover { transform: none; }
}

/* 모듈 번호 마커: 두 모듈을 함께 다루는 블록(05·06) */
.module-list .module-idx b.is-pair { font-size: 10.5px; letter-spacing: -0.06em; }
@media (max-width: 760px) { .module-list .module-idx b.is-pair { font-size: 8.5px; } }

/* 허브 패널: 설명 문단 없이 제목 다음에 바로 링크가 오는 경우 */
.hub-panel h3 + .text-link { display: inline-block; margin-top: 14px; }

/* ==========================================================================
   v3.14 — 구축 상담 폼(/consult/): 단계 묶음, 선택 칩, 진행 순서
   ========================================================================== */
.form-step { border: 0; margin: 0; padding: 0 0 34px; }
.form-step + .form-step { border-top: 1px solid var(--line); padding-top: 30px; }
.form-step legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 22px; font-size: 17px; font-weight: 700; color: var(--ink); }
.form-step legend small { font-size: 12.5px; font-weight: 500; color: var(--ink-4); }
.form-step > legend + * { clear: both; }
.form-step-num { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.form-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-3); }
.form-submit { border-top: 1px solid var(--line); padding-top: 28px; }

.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); background: var(--bg);
  font-size: 14px; color: var(--ink-3); transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.opt:hover span { border-color: var(--ink-4); color: var(--ink); }
.opt input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(26, 115, 232, 0.06); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consult-steps { counter-reset: cstep; margin-bottom: 20px; }
.info-panel .consult-steps li { counter-increment: cstep; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 3px; }
.consult-steps li::before { content: "0" counter(cstep); grid-row: 1 / span 2; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 3px; }
.consult-steps b { color: var(--ink); font-weight: 600; }
.consult-steps b em { font-style: normal; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--ok); }
.consult-steps span { grid-column: 2; font-size: 13.5px; }
@media (max-width: 760px) {
  .form-step legend { font-size: 16px; }
  .opt span { padding: 8px 12px; font-size: 13.5px; }
}
