/* Proptics 첫 화면(회사 소개와 제품 안내. index.html 한국어, en.html 영문)의 스타일. 앱 화면(desk.html)은 css/desk.css, 기존 화면(classic.html)은 css/app.css를 쓴다.
   디자인: 아이보리 앤 잉크(2026-10-10 확정). 밝은 종이색 바탕에 짙은 남색 글자, 굵고 큰 글자, 흰 면과 또렷한 선. 금색은 짧은 선과 작은 표시에만 쓴다.
   읽기 쉬움을 먼저 둔다: 본문은 15px 이상, 제목 굵기 650, 본문 글자색은 바탕과의 대비가 큰 --txt와 --dim을 쓰고 옅은 글자색(--mut)은 날짜와 단위 같은 덧붙임에만 쓴다.
   가는 글자(굵기 400 미만), 색이 번지는 글자(금박), 빛 번짐, 유리 질감을 쓰지 않는다. 표와 목록의 윗변에는 굵은 선을 긋는다(보고서의 표처럼).
   라이트가 기본이다. 저장한 테마가 다크일 때만(:root[data-theme="dark"]) 다크 토큰을 쓴다. 기기의 라이트·다크 설정은 따르지 않는다(처음 보는 사람이 어느 기기에서나 같은 화면을 본다).
   토큰은 두 가지다. 앱 화면과 이름이 같은 토큰(글자색, 선, 골드, 판정색, 차트 색, 서체)은 css/desk.css와 같은 값을 쓴다(tests/site.test.mjs가 확인한다).
   이 화면만 쓰는 토큰(바탕 --page와 --band, 단추 --cta-*, 면 --card와 --panel, 꼬리 --foot-* 등)은 css/desk.css에 없는 이름으로 둔다.
   시각 요소는 글자, 선, 도형이다. 그림 파일을 쓰지 않는다(1.3.0의 배경 문장과 필름 입자는 뺐다). 아이콘 글리프와 사진도 쓰지 않는다. */

/* ---------- 서체 (동봉본, 외부 요청 없음) ---------- */
@font-face {
  font-family: "Pretendard Variable"; font-style: normal; font-weight: 45 920; font-display: swap;
  src: url("../vendor/fonts/PretendardVariable.woff2") format("woff2-variations"), url("../vendor/fonts/PretendardVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/fonts/jost-latin-wght-normal.woff2") format("woff2-variations"), url("../vendor/fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../vendor/fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../vendor/fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

/* ---------- 토큰: 라이트(기본) ---------- */
:root {
  /* 앱 화면의 라이트와 같은 값 */
  --bar-bg: rgba(251, 250, 245, .92);
  --pop-bg: #FDFCF9;
  --txt: #101B31;
  --dim: #3A4356;
  --mut: #5A5F6C;
  --line: rgba(16, 27, 49, .11);
  --line2: rgba(16, 27, 49, .20);
  --line3: rgba(16, 27, 49, .42);
  --wash: rgba(16, 27, 49, .035);
  --wash2: rgba(16, 27, 49, .07);
  --gold: #A98F5D;
  --gold-txt: #6F5628;
  --cta-fg: #F2E2BC;
  --pos: #1F6A47;
  --neg: #A8352D;
  --c-senior: #2C4188;
  --c-common: #3A3528;
  --c-cost: #6F7482;
  --c-cost-bg: rgba(111, 116, 130, .14);
  --focus: #101B31;
  --shadow: 0 12px 32px rgba(16, 27, 49, .14);
  --font-ko: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "Jost", "Pretendard Variable", sans-serif;
  --font-num: "IBM Plex Mono", "Pretendard Variable", Pretendard, ui-monospace, "SFMono-Regular", Consolas, monospace;
  /* 이 화면만 쓰는 값 */
  --page: #FBFAF7;
  --band: #F3F0E9;
  --tint: #FAF4E3;
  --cta-bg: #101B31;
  --cta-hi: #1D2D4E;
  --cta-ink: #FBFAF7;
  --cta-shadow: 0 1px 2px rgba(16, 27, 49, .18), 0 8px 20px rgba(16, 27, 49, .14);
  --btn-line: rgba(16, 27, 49, .38);
  --btn-line-hi: #101B31;
  --hair: rgba(169, 143, 93, .7);
  --card: #FFFFFF;
  --card-line: rgba(16, 27, 49, .16);
  --lift: 0 10px 28px rgba(16, 27, 49, .09);
  --panel: #FFFFFF;
  --panel-shadow: 0 1px 2px rgba(16, 27, 49, .06), 0 20px 50px rgba(16, 27, 49, .11);
  --rim: rgba(16, 27, 49, .2);
  --knob: #101B31;
  --knob-ring: rgba(16, 27, 49, .14);
  --grid: rgba(16, 27, 49, .045);
  --foot-bg: #101B31;
  --foot-txt: #EDEAE0;
  --foot-dim: #B8BCC7;
  --foot-line: rgba(237, 234, 224, .16);
  --head-h: 76px;
  color-scheme: light;
}
/* ---------- 토큰: 다크(사용자가 고른 경우) ---------- */
:root[data-theme="dark"] {
  /* 앱 화면의 다크와 같은 값 */
  --bar-bg: rgba(7, 12, 23, .78);
  --pop-bg: #101B31;
  --txt: #EDEAE0;
  --dim: #C2BEB2;
  --mut: #9D998E;
  --line: rgba(237, 234, 224, .10);
  --line2: rgba(237, 234, 224, .18);
  --line3: rgba(237, 234, 224, .36);
  --wash: rgba(237, 234, 224, .045);
  --wash2: rgba(237, 234, 224, .085);
  --gold: #B99C64;
  --gold-txt: #D9C08E;
  --cta-fg: #070C17;
  --pos: #7FC4A0;
  --neg: #EE958D;
  --c-senior: #617CC8;
  --c-common: #E6DDC8;
  --c-cost: #7C879F;
  --c-cost-bg: rgba(124, 135, 159, .16);
  --focus: #F2E2BC;
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  /* 이 화면만 쓰는 값 */
  --page: #0A111F;
  --band: #0E1729;
  --tint: rgba(217, 192, 142, .09);
  --cta-bg: #E3CD9B;
  --cta-hi: #F0DDB0;
  --cta-ink: #0A111F;
  --cta-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --btn-line: rgba(237, 234, 224, .4);
  --btn-line-hi: #EDEAE0;
  --hair: rgba(185, 156, 100, .6);
  --card: #111B30;
  --card-line: rgba(237, 234, 224, .14);
  --lift: 0 14px 34px rgba(0, 0, 0, .4);
  --panel: #121D34;
  --panel-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --rim: rgba(237, 234, 224, .2);
  --knob: #E3CD9B;
  --knob-ring: rgba(227, 205, 155, .2);
  --grid: rgba(237, 234, 224, .035);
  --foot-bg: #060A13;
  --foot-txt: #EDEAE0;
  --foot-dim: #A9A69B;
  --foot-line: rgba(237, 234, 224, .14);
  color-scheme: dark;
}

/* ---------- 바탕 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 20px); }
body {
  min-height: 100vh; font-family: var(--font-ko); font-size: 16.5px; font-weight: 400; line-height: 1.75; color: var(--txt); background: var(--page);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.025em; line-height: 1.4; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--cta-fg); }
.defs { position: absolute; }
.pat-bg { fill: var(--c-cost-bg); }
.pat-ln { stroke: var(--c-cost); stroke-width: 1.6; }
.mono, .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 95; padding: 8px 12px; background: var(--pop-bg); border: 1px solid var(--gold); border-radius: 3px; color: var(--txt); font-size: 14px; text-decoration: none; }
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 강조: 글자색은 그대로 두고 금색 밑줄을 긋는다(글자를 옅게 만들지 않는다) */
.hl { font-style: normal; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: .085em; text-underline-offset: .2em; text-decoration-skip-ink: none; }

/* ---------- 로고 (css/desk.css, css/app.css와 같은 규칙) ---------- */
.logo { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-en); font-size: 22px; letter-spacing: .01em; line-height: 1; color: var(--txt); white-space: nowrap; text-decoration: none; }
.logo-mark { width: 1.3em; height: 1.3em; flex: none; overflow: visible; }
.lm-frame { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }
.lm-ray { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.lm-dot { fill: var(--gold); }
.logo-word { display: inline-flex; align-items: baseline; }
.logo-a { font-weight: 600; }
.logo-b { font-weight: 300; }
.logo-xl { font-size: clamp(44px, 6vw, 68px); letter-spacing: 0; }
.logo-xl .lm-frame { stroke-width: 2; }
.logo-xl .lm-ray { stroke-width: 1.7; }

/* ---------- 단추: 주 단추는 한 가지 색으로 채운다 ---------- */
.b {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 30px; border: 1px solid var(--btn-line); border-radius: 3px;
  background: transparent; color: var(--txt); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.b:hover { border-color: var(--btn-line-hi); background: var(--wash); }
.b:active { transform: translateY(1px); }
.b-primary { border-color: var(--cta-bg); background: var(--cta-bg); color: var(--cta-ink); box-shadow: var(--cta-shadow); }
.b-primary:hover { border-color: var(--cta-hi); background: var(--cta-hi); }
.b-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.b-primary.b-sm { box-shadow: none; }
.tlink { padding: 6px 0; border: 0; background: none; color: var(--txt); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 4px; cursor: pointer; }
.tlink:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ---------- 머리 ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--bar-bg); border-bottom: 1px solid var(--line2); -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px); }
.top-in { display: flex; align-items: center; gap: 36px; height: var(--head-h); }
.nav { display: flex; flex: 1; gap: 30px; }
.nav a { position: relative; padding: 10px 0; color: var(--dim); font-size: 15.5px; font-weight: 500; text-decoration: none; transition: color .16s ease; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--txt); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* 언어 단추: 지금 보는 언어에 표시를 건다 */
.lang { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--btn-line); border-radius: 3px; overflow: hidden; font-family: var(--font-en); font-size: 13.5px; font-weight: 600; letter-spacing: .08em; }
.lang a { display: inline-flex; align-items: center; padding: 0 11px; color: var(--mut); text-decoration: none; transition: color .16s ease, background-color .16s ease; }
.lang a + a { border-left: 1px solid var(--btn-line); }
.lang a:hover { color: var(--txt); background: var(--wash); }
.lang a[aria-current="true"] { color: var(--txt); background: var(--wash2); }
.lang a:focus-visible { outline-offset: -3px; }
.nav-toggle { display: none; }

/* ---------- 구획 공통 ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-txt); }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.sec { padding: 112px 0; }
/* 번갈아 놓는 구획: 종이색 면과 위아래의 가는 선 */
.sec-alt { background: var(--band); border-block: 1px solid var(--line); }
.sec-head { max-width: 800px; margin-bottom: 60px; }
.sec-head h2 { font-size: clamp(29px, 3.1vw, 42px); font-weight: 650; line-height: 1.34; letter-spacing: -.035em; text-wrap: balance; }
.sec-lead { margin-top: 18px; font-size: 18px; font-weight: 450; line-height: 1.85; color: var(--dim); text-wrap: pretty; }
/* 카드: 흰 면과 또렷한 테두리, 윗변의 짧은 금색 선 */
.card { position: relative; padding: 34px 30px 32px; border: 1px solid var(--card-line); border-radius: 6px; background: var(--card); transition: border-color .2s ease, box-shadow .2s ease; }
.card::before { content: ""; position: absolute; left: 30px; top: -1px; width: 40px; height: 3px; background: var(--gold); }
.card:hover { border-color: var(--line3); box-shadow: var(--lift); }
.card h3 { margin-bottom: 12px; font-size: 20px; line-height: 1.45; }
.card p { font-size: 16px; line-height: 1.8; color: var(--dim); }

/* ---------- 첫 구획 ---------- */
/* 위 여백은 화면 높이를 따라 줄인다(낮은 화면에서 올리는 자리의 다섯 자리가 첫 화면 안에 들어오게) */
.hero { position: relative; padding: clamp(44px, 7.6vh, 76px) 0 96px; overflow: hidden; }
/* 도면의 격자: 오른쪽 위에서 흐려진다 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(90% 80% at 78% 18%, #000 0, transparent 72%); mask-image: radial-gradient(90% 80% at 78% 18%, #000 0, transparent 72%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 68px; align-items: start; }
.hero h1 { font-size: clamp(34px, 3.4vw, 49px); font-weight: 660; line-height: 1.34; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 .logo-a { font-weight: 700; }
.hero h1 .logo-b { font-weight: 400; }
.wm { font-family: var(--font-en); letter-spacing: -.005em; }
.lead { margin-top: 22px; max-width: 540px; font-size: 18.5px; font-weight: 450; line-height: 1.85; color: var(--dim); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-notes { margin-top: 30px; display: grid; gap: 6px; font-size: 14.5px; color: var(--dim); }
.hero-notes li { position: relative; padding-left: 18px; }
.hero-notes li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 2px; background: var(--gold); }

/* ---------- 기초 자료 올리기 (SPEC 18절, 19절): 흰 면과 점선 테두리 안에 종류별 다섯 자리를 둔다 ---------- */
.intake { position: relative; max-width: 600px; margin-top: 24px; padding: 20px 28px 18px; border: 1.5px dashed var(--line3); border-radius: 8px; background: var(--card); transition: border-color .16s ease, box-shadow .2s ease; }
.intake::before { content: ""; position: absolute; left: 28px; top: -2px; width: 40px; height: 3px; background: var(--gold); }
.intake:hover, .intake:focus-within { border-color: var(--btn-line-hi); box-shadow: var(--lift); }
.intake-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.intake-t { font-size: 20px; font-weight: 650; letter-spacing: -.025em; line-height: 1.45; }
.intake-d { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--dim); text-wrap: pretty; }
/* 읽는 형식의 이름표: 글자로만 적는다(그림과 아이콘을 쓰지 않는다) */
.intake-kinds { display: flex; gap: 6px; font-family: var(--font-num); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--dim); }
.intake-kinds li { padding: 3px 8px; border: 1px solid var(--line2); border-radius: 2px; background: var(--wash); }
/* 종류별 다섯 자리와 [읽기 시작]: 세 칸씩 두 줄. 자리를 누르면 파일을 고르고, 파일을 놓으면 그 종류로 담는다 */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.slot { position: relative; min-width: 0; }
.slot-b {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 8px; width: 100%; min-height: 58px; padding: 8px 12px 7px;
  border: 1px solid var(--card-line); border-radius: 6px; background: var(--page); color: var(--txt); text-align: left; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.slot-b:hover { border-color: var(--btn-line-hi); background: var(--wash); }
.slot-b:disabled { cursor: progress; }
.slot-n { font-family: var(--font-num); font-size: 12.5px; font-weight: 500; color: var(--gold-txt); }
.slot-t { font-size: 15px; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }
.slot-f { grid-column: 1 / -1; overflow: hidden; font-size: 13px; color: var(--mut); text-overflow: ellipsis; white-space: nowrap; }
/* 파일을 담은 자리: 테두리를 짙게 하고 담은 것을 굵게 적는다 */
.slot.has-files .slot-b { border-color: var(--btn-line-hi); background: var(--card); box-shadow: inset 3px 0 0 var(--gold); }
.slot.has-files .slot-f { padding-right: 38px; font-weight: 600; color: var(--txt); }
.slot.is-over .slot-b { border-color: var(--btn-line-hi); background: var(--tint); }
.slot-x { position: absolute; right: 8px; bottom: 7px; padding: 2px 2px; border: 0; background: none; color: var(--dim); font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 3px; cursor: pointer; }
.slot-x:hover { color: var(--txt); text-decoration-color: var(--gold); }
.slot-go { display: flex; min-width: 0; }
.slot-go .b { width: 100%; height: auto; min-height: 58px; padding: 0 12px; }
.slot-go .b:disabled { border-color: var(--line2); background: var(--wash); color: var(--mut); box-shadow: none; cursor: default; }
.intake-staged { margin-top: 10px; font-size: 14.5px; color: var(--dim); }
.intake-staged .tlink { margin-left: 6px; padding: 0; }
.intake-narrow { display: none; margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--dim); }
.intake-safe { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line2); font-size: 14.5px; line-height: 1.7; color: var(--dim); text-wrap: pretty; }
.intake-safe a { color: var(--txt); font-weight: 500; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 4px; }
.intake-safe a:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.intake-status { margin-top: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.65; color: var(--txt); overflow-wrap: anywhere; }
.intake-status:empty { display: none; }
.intake-alt { display: inline-block; margin-top: 2px; }
/* 넘기는 동안: 테두리를 실선으로 바꾼다 */
.intake[data-state="busy"] { border-style: solid; border-color: var(--btn-line-hi); }
.intake[data-state="busy"] .b { cursor: progress; }
/* 올리는 자리가 주 동작이므로 그 아래의 단추 줄은 테두리 단추다(좁은 화면에서는 첫 단추가 주 단추가 된다) */
.intake + .cta-row { margin-top: 20px; }
/* 파일을 끌어 창 위로 가져온 동안 화면을 덮는 판. 판의 바탕은 포인터를 받지 않고(자리 밖에 놓은 파일은 아래 화면이 받는다) 종류의 자리만 받는다 */
.dropveil { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: var(--bar-bg); pointer-events: none; }
.dropveil-in { display: grid; gap: 18px; justify-items: center; width: min(1040px, 100%); padding: 40px 32px 34px; border: 2px dashed var(--btn-line-hi); border-radius: 10px; background: var(--card); text-align: center; box-shadow: var(--panel-shadow); }
.dropveil-t { font-size: clamp(22px, 2.4vw, 29px); font-weight: 650; letter-spacing: -.03em; line-height: 1.4; }
.vslots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: 100%; }
.vslot { display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 124px; padding: 14px 10px; border: 1.5px solid var(--card-line); border-radius: 8px; background: var(--page); pointer-events: auto; transition: border-color .12s ease, background-color .12s ease; }
.vslot .slot-n { font-size: 13px; }
.vslot .slot-t { font-size: 17px; }
.vslot.is-over { border-color: var(--btn-line-hi); background: var(--tint); box-shadow: inset 0 3px 0 var(--gold); }
.dropveil-d { font-size: 15.5px; color: var(--dim); }

/* ---------- 예시 계산: 흰 면, 또렷한 테두리, 윗변의 금색 띠 ---------- */
.demo { position: relative; padding: 32px 32px 24px; border: 1px solid var(--rim); border-radius: 8px; background: var(--panel); box-shadow: var(--panel-shadow); }
.demo::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; border-radius: 8px 8px 0 0; background: var(--gold); }
.demo-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 16px; }
.demo-tag { font-size: 13px; font-weight: 600; color: var(--gold-txt); }
.demo-title { margin-top: 2px; font-size: 19px; letter-spacing: -.02em; }
.demo-live { display: inline-flex; align-items: center; gap: 8px; flex: none; padding-top: 3px; font-size: 13px; color: var(--dim); }
.demo-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line3); }
.demo.is-live .demo-live::before { background: var(--pos); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-block: 1px solid var(--line2); }
.kpi { padding: 18px 0 16px 20px; border-left: 1px solid var(--line); }
.kpi:first-child { padding-left: 0; border-left: 0; }
.kpi dt { font-size: 13.5px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.kpi-v { width: fit-content; margin-top: 2px; font-family: var(--font-en); font-size: clamp(32px, 3.1vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.kpi-s { min-height: 20px; font-family: var(--font-num); font-size: 12.5px; line-height: 20px; color: var(--mut); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-s.up { color: var(--pos); }
.kpi-s.down { color: var(--neg); }
.demo-fig { margin-top: 18px; }
.demo-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; font-size: 13px; color: var(--dim); }
.demo-cap-t { font-weight: 600; color: var(--txt); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 11px; height: 11px; border-radius: 1px; }
.sw-lender { background: var(--c-senior); }
.sw-costs { background: repeating-linear-gradient(45deg, var(--c-cost) 0 1.5px, var(--c-cost-bg) 1.5px 4px); }
.sw-equity { background: var(--c-common); }
.sw-short { border: 1px dashed var(--neg); }
.demo-svg { display: block; width: 100%; margin-top: 8px; overflow: visible; }
.s-lender { fill: var(--c-senior); }
.s-costs { fill: url(#hatch-cost); }
.s-equity { fill: var(--c-common); }
.s-short { fill: none; stroke: var(--neg); stroke-width: 1; stroke-dasharray: 3 2; }
.s-base { stroke: var(--line3); stroke-width: 1; }
.t-yr { fill: var(--dim); font-family: var(--font-ko); font-size: 12.5px; text-anchor: middle; }
.t-dscr { fill: var(--txt); font-family: var(--font-num); font-size: 12.5px; font-weight: 500; text-anchor: middle; }
.demo-exit { margin-top: 6px; min-height: 22px; font-size: 13.5px; color: var(--dim); }
.demo-exit b { font-family: var(--font-num); font-weight: 500; color: var(--txt); }
.ctrls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line2); }
.ctrl { display: block; cursor: pointer; }
.ctrl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; }
.ctrl-val { font-family: var(--font-num); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rng { display: block; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.rng:disabled { cursor: default; opacity: .5; }
.rng::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--knob) var(--p, 50%), var(--line2) var(--p, 50%)); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border: 2px solid var(--panel); border-radius: 50%; background: var(--knob); box-shadow: 0 0 0 3px var(--knob-ring); transition: transform .12s ease; }
.rng:hover::-webkit-slider-thumb, .rng:active::-webkit-slider-thumb { transform: scale(1.14); }
.rng::-moz-range-track { height: 3px; background: var(--line2); }
.rng::-moz-range-progress { height: 3px; background: var(--knob); }
.rng::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--panel); border-radius: 50%; background: var(--knob); }
.rng:focus-visible { outline-offset: 0; }
.demo-status { min-height: 24px; margin-top: 10px; font-size: 14px; line-height: 24px; }
.demo-status .ok { font-weight: 600; color: var(--pos); }
.demo-status .bad { font-weight: 600; color: var(--neg); }
.demo-foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line2); }
.demo-note { font-size: 13px; line-height: 1.65; color: var(--dim); }
.demo-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 20px; margin-top: 4px; }
/* 계산 과정: 접어 두는 표. 위의 지표가 어떤 현금흐름에서 나왔는지 엔진의 연도별 값으로 보인다 */
.trace { margin-top: 10px; border-top: 1px solid var(--line2); }
.trace summary { width: fit-content; padding: 10px 0 8px; font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 4px; cursor: pointer; list-style: none; }
.trace summary::-webkit-details-marker { display: none; }
.trace summary:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.trace-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.trace-t caption { padding-bottom: 6px; text-align: left; font-size: 12.5px; color: var(--mut); }
.trace-t th, .trace-t td { padding: 6px 0 6px 10px; text-align: right; font-weight: 400; border-top: 1px solid var(--line); }
.trace-t th:first-child { padding-left: 0; text-align: left; }
.trace-t thead th { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--dim); border-top: 0; border-bottom: 1px solid var(--line2); vertical-align: bottom; }
.trace-t tbody th { color: var(--dim); white-space: nowrap; }
.trace-t tbody td { font-family: var(--font-num); color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trace-t tbody td:last-child { font-weight: 500; color: var(--txt); }
.trace-note { margin: 8px 0 4px; font-size: 13px; line-height: 1.65; color: var(--dim); }

/* ---------- 한눈에 보는 수치: 가는 선 사이의 큰 숫자 ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line2); }
.facts-grid li { position: relative; display: grid; align-content: start; gap: 2px; padding: 40px 30px 38px; }
.facts-grid li:first-child { padding-left: 0; }
.facts-grid li + li::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line2); }
.fact-n { width: fit-content; font-family: var(--font-en); font-size: clamp(40px, 4.2vw, 58px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.fact-t { margin-top: 10px; font-size: 16.5px; font-weight: 650; }
.fact-d { font-size: 14.5px; color: var(--dim); }

/* ---------- 제품 ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; margin-bottom: 76px; }
.flow-i { position: relative; padding-top: 28px; border-top: 1px solid var(--line2); }
.flow-i::before { content: ""; position: absolute; left: 0; top: -2px; width: 56px; height: 3px; background: var(--gold); }
.flow-n { display: block; width: fit-content; margin-bottom: 14px; font-family: var(--font-en); font-size: 30px; font-weight: 500; line-height: 1; color: var(--gold-txt); }
.flow-i h3 { margin: 0 0 10px; font-size: 21px; }
.flow-i p { font-size: 16px; line-height: 1.8; color: var(--dim); }
.flow-i p span { font-family: var(--font-num); font-weight: 500; color: var(--txt); }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cover { margin-top: 88px; }
.cover-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 16px 48px; align-items: end; margin-bottom: 26px; }
.cover-head h3 { font-size: 25px; letter-spacing: -.03em; }
.cover-head p { font-size: 16px; color: var(--dim); }
/* 자산군 표: 윗변의 굵은 선과 칸 사이의 가는 선 */
.assets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--txt); border-left: 1px solid var(--line2); background: var(--card); }
.asset { display: flex; flex-direction: column; padding: 26px 24px 20px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); transition: background-color .2s ease; }
.asset:hover { background: var(--wash); }
.asset-en { font-family: var(--font-en); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: var(--gold-txt); }
.asset h4 { margin-top: 8px; font-size: 20px; }
.asset-d { flex: 1; margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--dim); }
.asset-l { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.asset-l a { padding: 4px 0; text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 4px; }
.asset-l a:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.asset-own { background: var(--band); }
/* 쓰는 장면: 자리 넷을 한 줄에 놓는다 */
.roles { margin-top: 88px; }
.role-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--txt); }
.role-list li { padding: 28px 24px 26px; border-left: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.role-list li:first-child { padding-left: 0; border-left: 0; }
.role-who { font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: var(--gold-txt); }
.role-list h4 { margin-top: 10px; font-size: 19px; line-height: 1.5; text-wrap: balance; }
.role-d { margin-top: 10px; font-size: 15.5px; line-height: 1.8; color: var(--dim); }

/* ---------- 문제와 대안 비교 ---------- */
.pain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cmp { margin-top: 80px; }
.cmp h3 { margin-bottom: 22px; font-size: 25px; letter-spacing: -.03em; }
.cmp-t { width: 100%; border-collapse: collapse; background: var(--card); border-top: 2px solid var(--txt); border-bottom: 1px solid var(--line2); font-size: 15.5px; line-height: 1.7; }
.cmp-t th, .cmp-t td { padding: 16px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-t thead th { padding-block: 14px; font-size: 14.5px; font-weight: 700; background: var(--band); border-bottom: 1px solid var(--line2); }
.cmp-t tbody th { width: 17%; font-weight: 650; }
.cmp-t td { width: 27.6%; color: var(--dim); }
.cmp-t tbody tr:last-child th, .cmp-t tbody tr:last-child td { border-bottom: 0; }
/* 이 제품의 열: 옅은 금색 면과 양옆의 금색 실선 */
.cmp-t .cmp-us { font-weight: 600; color: var(--txt); background: var(--tint); box-shadow: inset 1px 0 0 var(--hair), inset -1px 0 0 var(--hair); }
/* 칸마다 넣어 둔 열 이름: 넓은 화면에서는 머리 줄이 있으므로 가리고, 좁은 화면에서 줄을 쌓을 때만 보인다 */
.cmp-k { display: none; }
.cmp-note { margin-top: 16px; max-width: 800px; font-size: 14.5px; line-height: 1.75; color: var(--dim); }

/* ---------- AI와 계산: 다섯 단계와 지금 상태 ---------- */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pipe-i { position: relative; display: flex; flex-direction: column; padding: 30px 20px 26px; border-top: 2px solid var(--txt); border-left: 1px solid var(--line2); }
.pipe-i:first-child { padding-left: 0; border-left: 0; }
/* 단계의 마디: 윗선 위의 금색 점 */
.pipe-i::before { content: ""; position: absolute; left: 20px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--page); }
.pipe-i:first-child::before { left: 0; }
/* 계산 단계: 옅은 금색 면으로 가운데임을 보인다 */
.pipe-core { background: var(--tint); }
.pipe-n { font-family: var(--font-en); font-size: 13.5px; font-weight: 600; letter-spacing: .16em; color: var(--mut); }
.pipe-i h3 { margin-top: 8px; font-size: 20px; }
.pipe-who { margin-top: 4px; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--gold-txt); }
.pipe-d { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--dim); }
.pipe-s { margin-top: auto; padding-top: 16px; }
/* 상태 표시: 글자와 테두리로만 나눈다(실선은 지금 있는 것, 점선은 아직 없는 것) */
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line3); border-radius: 3px; font-size: 13px; font-style: normal; font-weight: 600; line-height: 1; color: var(--dim); white-space: nowrap; }
.chip-now { border-color: var(--pos); color: var(--pos); }
.chip-dev { border-style: dashed; border-color: var(--gold); color: var(--gold-txt); }
.chip-plan { border-style: dashed; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; margin-top: 68px; }
.rules li { position: relative; padding-top: 26px; border-top: 1px solid var(--line2); }
.rules li::before { content: ""; position: absolute; left: 0; top: -2px; width: 56px; height: 3px; background: var(--gold); }
.rules h3 { font-size: 20px; line-height: 1.5; }
.rules p { margin-top: 10px; font-size: 16px; line-height: 1.8; color: var(--dim); }

/* ---------- 원칙 ---------- */
.prin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.prin li { display: grid; grid-template-columns: 62px minmax(0, 1fr); padding: 36px 0; border-top: 1px solid var(--line2); }
.prin-n { width: fit-content; height: fit-content; padding-top: 3px; font-family: var(--font-en); font-size: 28px; font-weight: 500; line-height: 1; color: var(--gold-txt); }
.prin h3 { margin-bottom: 10px; font-size: 22px; }
.prin p { font-size: 16px; line-height: 1.85; color: var(--dim); }

/* ---------- 검증 ---------- */
.ver { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 60px; align-items: start; }
.ver .sec-head { margin-bottom: 0; }
.limits { display: grid; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line2); font-size: 15px; line-height: 1.75; color: var(--dim); }
.limits li { position: relative; padding-left: 18px; }
.limits li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 2px; background: var(--gold); }
.limits span { font-family: var(--font-num); font-weight: 500; color: var(--txt); }
.ver-body { border: 1px solid var(--card-line); border-top: 2px solid var(--txt); border-radius: 0 0 6px 6px; background: var(--card); box-shadow: var(--lift); }
.ver-nums > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2px 20px; padding: 26px 30px; border-bottom: 1px solid var(--line2); }
.ver-nums dt { grid-row: span 2; padding-top: 14px; font-size: 15.5px; font-weight: 700; }
.ver-nums dd { font-size: 15px; color: var(--dim); }
.ver-nums .num { margin-right: 6px; font-family: var(--font-en); font-size: 44px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--txt); }
.ver-d { font-size: 14.5px; line-height: 1.7; color: var(--dim); }
.levels { padding: 26px 30px 28px; }
.levels h3 { margin-bottom: 14px; font-size: 15.5px; font-weight: 700; }
.lv { display: grid; gap: 10px; }
.lv li { display: grid; grid-template-columns: minmax(0, 1fr) 30px 210px; align-items: center; gap: 12px; font-size: 14.5px; color: var(--dim); }
.lv-bar { display: block; height: 10px; background: var(--wash2); border-radius: 1px; overflow: hidden; }
.lv-fill { display: block; width: 0; height: 100%; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.lv-external { background: var(--gold); }
.lv-reference { background: var(--c-senior); }
.lv-unit { background: repeating-linear-gradient(45deg, var(--c-cost) 0 1.5px, var(--c-cost-bg) 1.5px 4px); }
.lv-n { font-family: var(--font-num); font-size: 16px; font-weight: 500; color: var(--txt); text-align: right; font-variant-numeric: tabular-nums; }
/* 조합별 표: 자산군(줄)과 거래유형(열). 칸 앞의 네모는 위 막대와 같은 색이다 */
.vx { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 14px; }
.vx th, .vx td { padding: 9px 10px 9px 0; text-align: left; font-weight: 400; border-top: 1px solid var(--line); vertical-align: top; }
.vx thead th { font-size: 13px; font-weight: 600; color: var(--dim); border-top: 0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.vx tbody tr:first-child th, .vx tbody tr:first-child td { border-top: 0; }
.vx tbody th { font-weight: 600; white-space: nowrap; }
/* 칸의 글은 좁으면 접힌다. 네모 표시는 칸 왼쪽, 첫 줄의 가운데 높이에 둔다(줄 높이의 절반에서 네모의 절반을 뺀 자리) */
.vx td { position: relative; padding-left: 17px; color: var(--dim); }
.vx td::before { content: ""; position: absolute; left: 0; top: calc(9px + .875em - 4.5px); width: 9px; height: 9px; border-radius: 1px; }
.vx td[data-level="external"]::before { background: var(--gold); }
.vx td[data-level="reference"]::before { background: var(--c-senior); }
.vx td[data-level="unit"]::before { background: repeating-linear-gradient(45deg, var(--c-cost) 0 1.5px, var(--c-cost-bg) 1.5px 4px); }
.vx td[data-level="external"], .vx td[data-level="reference"] { font-weight: 600; color: var(--txt); }
.vx-note { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--dim); }

/* ---------- 보안과 도입 ---------- */
.sx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
/* 올린 자료를 다루는 방식: 카드 아래의 한 문단. 왼쪽의 금색 선으로 구분한다 */
.sx-files { margin-top: 30px; max-width: 880px; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-size: 16px; line-height: 1.8; color: var(--dim); }
.sx-files strong { font-weight: 650; color: var(--txt); }
.sx-note { margin-top: 26px; max-width: 840px; font-size: 14.5px; line-height: 1.75; color: var(--dim); }

/* ---------- 회사 ---------- */
.co { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 68px; align-items: start; }
.co-name { line-height: 1; }
.co-tag { margin-top: 24px; max-width: 440px; font-size: 15.5px; line-height: 1.8; color: var(--dim); }
.co-facts { margin-top: 30px; border-top: 2px solid var(--txt); }
.co-facts > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line2); font-size: 15.5px; }
.co-facts dt { color: var(--dim); }
.co-facts dd { font-weight: 600; }
.co-facts .mono { margin-left: 6px; font-size: 13.5px; font-weight: 400; color: var(--dim); }
.co-body h3 { margin: 34px 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--gold-txt); }
.co-body h3:first-child { margin-top: 0; }
.co-body p { font-size: 17px; font-weight: 450; line-height: 1.9; text-wrap: pretty; }
/* 지금까지: 판마다 한 줄(날짜, 판, 한 일) */
.log { display: grid; border-top: 2px solid var(--txt); }
.log li { display: grid; grid-template-columns: 98px 50px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line2); font-size: 15.5px; }
.log .mono { font-size: 13.5px; color: var(--dim); }
.log strong { font-family: var(--font-num); font-size: 14.5px; font-weight: 500; }
.log-d { color: var(--dim); }
.log-d span { font-family: var(--font-num); font-weight: 500; color: var(--txt); }
/* 준비하고 있는 것: 이름, 설명, 상태 표시 */
.road { display: grid; gap: 0; border-top: 2px solid var(--txt); }
.road li { display: grid; grid-template-columns: 156px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line2); font-size: 15.5px; }
.road strong { font-weight: 650; }
.road-d { color: var(--dim); }

/* ---------- 질문: 접어 두는 답 ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 68px; align-items: start; }
.faq .sec-head { margin-bottom: 0; }
.faq-list { border-top: 2px solid var(--txt); }
.qa { border-bottom: 1px solid var(--line2); }
.qa summary { position: relative; display: block; padding: 22px 48px 22px 0; font-size: 19px; font-weight: 650; line-height: 1.5; cursor: pointer; list-style: none; transition: color .16s ease; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold-txt); }
/* 펼침 표시: 가로선과 세로선. 펼치면 세로선이 누워 가로선 하나가 된다 */
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--txt); transition: transform .2s ease; }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa p { padding: 0 48px 26px 0; font-size: 16.5px; line-height: 1.85; color: var(--dim); }

/* ---------- 마지막 안내 ---------- */
.last { padding: 120px 0; text-align: center; }
.last-in { position: relative; }
.last h2 { font-size: clamp(29px, 3.2vw, 44px); letter-spacing: -.035em; text-wrap: balance; }
.last p { margin-top: 16px; font-size: 18px; font-weight: 450; color: var(--dim); }
.last .cta-row { justify-content: center; margin-top: 36px; }

/* ---------- 꼬리: 남색 면에 밝은 글자(라이트에서도 남색이다) ---------- */
.foot { background: var(--foot-bg); color: var(--foot-txt); }
.foot :focus-visible { outline-color: var(--foot-txt); }
.foot-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .6fr) minmax(0, 1.2fr); gap: 40px; padding: 60px 0 56px; }
.foot .logo { color: var(--foot-txt); }
.foot-tag { margin-top: 12px; font-size: 14.5px; color: var(--foot-dim); }
.foot-nav { display: grid; grid-template-columns: repeat(2, max-content); align-content: start; gap: 8px 32px; font-size: 15px; }
.foot-nav a { width: fit-content; color: var(--foot-dim); text-decoration: none; }
.foot-nav a:hover { color: var(--foot-txt); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.foot-legal { font-size: 13.5px; line-height: 1.75; color: var(--foot-dim); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--foot-line); }
.foot-meta .mono { font-size: 12.5px; }

/* 두 열 구획(검증, 회사, 질문)의 왼쪽 글은 오른쪽이 길 때 화면에 머문다 */
@media (min-width: 1041px) {
  .ver .sec-head, .faq .sec-head, .co-brand { position: sticky; top: calc(var(--head-h) + 40px); }
}

/* ---------- 영문 화면(en.html): 글자 길이에 맞춘 조정. 틀과 색은 한국어 화면과 같다 ---------- */
:lang(en) .hero h1 { font-size: clamp(32px, 3.3vw, 47px); line-height: 1.24; letter-spacing: -.03em; }
:lang(en) .sec-head h2, :lang(en) .last h2 { letter-spacing: -.03em; line-height: 1.24; }
:lang(en) .ver-nums > div { grid-template-columns: 196px minmax(0, 1fr); }
:lang(en) .lv li { grid-template-columns: minmax(0, 1fr) 30px 300px; }
:lang(en) .road li { grid-template-columns: 196px minmax(0, 1fr) auto; }
:lang(en) .cmp-t tbody th { width: 16%; }
:lang(en) .co-facts > div { grid-template-columns: 96px minmax(0, 1fr); }
/* 영문의 [Remove]는 [빼기]보다 길다: 담은 파일 이름이 그 아래로 들어가지 않게 자리를 더 비운다 */
:lang(en) .slot.has-files .slot-f { padding-right: 60px; }
/* 영문 화면에만 있는 안내(앱과 산출물은 한국어) */
.last .note-lang { margin-top: 10px; font-size: 14.5px; }

/* ---------- 등장 효과: 스크립트가 화면 밖 요소에만 건다. 움직임을 줄이도록 설정한 기기에서는 쓰지 않는다 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rv { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 좁은 화면 ---------- */
/* 메뉴가 한 줄에 들어가지 않는 너비(글자가 긴 영문 메뉴 기준): 메뉴를 단추 뒤로 접는다 */
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--head-h); flex-direction: column; gap: 0; padding: 6px 24px 12px; background: var(--pop-bg); border-bottom: 1px solid var(--line2); box-shadow: var(--shadow); }
  .top[data-open] .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 1040px) {
  .hero { padding: 60px 0 68px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  /* 한 열 배치에서 제목과 본문은 읽기 좋은 너비로 접는다 */
  .hero h1 { max-width: 640px; }
  .lead { max-width: 640px; }
  /* 끌어오는 동안의 판: 다섯 자리를 세 칸으로 접는다 */
  .vslots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec { padding: 88px 0; }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ver, .co, .faq { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .pain { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  /* 다섯 단계를 세로로 세운다: 왼쪽 선 위에 마디를 둔다 */
  .pipe { grid-template-columns: minmax(0, 1fr); }
  .pipe-i, .pipe-i:first-child { padding: 2px 0 28px 30px; border-top: 0; border-left: 2px solid var(--txt); }
  .pipe-i::before, .pipe-i:first-child::before { left: -6px; top: 8px; }
  .pipe-i:last-child { padding-bottom: 4px; }
  /* 계산 단계의 옅은 면: 왼쪽 선이 끊기지 않게 여백을 안쪽에 둔다 */
  .pipe-core { padding-top: 14px; padding-bottom: 22px; }
  .pipe-core::before { top: 20px; }
  .pipe-core + .pipe-i { padding-top: 16px; }
  .pipe-core + .pipe-i::before { top: 22px; }
  .pipe-d { max-width: 640px; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 52px; }
  .rules li { padding: 24px 0; }
  .rules p { max-width: 640px; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-legal { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --head-h: 64px; }
  .wrap { width: calc(100% - 36px); }
  .top-in { gap: 12px; }
  .lang a { padding: 0 8px; }
  .nav { padding: 6px 18px 12px; }
  .b { height: 52px; }
  .b-sm { height: 38px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 44px; }
  .sec-lead { font-size: 17px; }
  .lead { font-size: 17.5px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid li { padding: 26px 16px; border-bottom: 1px solid var(--line2); }
  .facts-grid li:nth-child(odd) { padding-left: 0; }
  .facts-grid li:nth-last-child(-n+2) { border-bottom: 0; }
  .facts-grid li + li::before { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 52px; }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 28px 22px 26px; }
  .card::before { left: 22px; }
  .cover { margin-top: 60px; }
  .cover-head { grid-template-columns: minmax(0, 1fr); }
  .prin { grid-template-columns: minmax(0, 1fr); }
  .prin li { grid-template-columns: 50px minmax(0, 1fr); padding: 28px 0; }
  .ver-nums > div { grid-template-columns: minmax(0, 1fr); padding: 20px 20px; }
  .ver-nums dt { grid-row: auto; padding-top: 0; }
  .ver-nums .num { font-size: 38px; }
  .levels { padding: 20px 20px 22px; }
  .lv li { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; }
  .lv-bar { grid-column: 1 / -1; }
  .lv-n { text-align: left; }
  .road li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .road .chip { justify-self: start; margin-top: 8px; }
  .log li { grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; }
  .log-d { grid-column: 1 / -1; }
  .sx { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sx-files { padding-left: 16px; font-size: 15.5px; }
  /* 올리기는 넓은 화면에서 받는다(앱의 좁은 화면이 열람 전용이다). 단추 대신 안내를 보이고, 단추 줄의 첫 단추를 주 단추로 보인다.
     이 너비에서 할 수 있는 일(앱 열기, 가상 예시)이 먼저 오도록 올리는 자리를 단추 줄과 덧붙임 아래로 내린다 */
  .hero-copy { display: flex; flex-direction: column; }
  .cta-row { order: 1; }
  .hero-notes { order: 2; }
  .intake { order: 3; margin-top: 34px; padding: 22px 20px 18px; }
  .intake + .cta-row { margin-top: 34px; }
  .intake::before { left: 20px; }
  .slots, .intake-staged { display: none; }
  .intake-narrow { display: block; }
  .cta-row .b-main { border-color: var(--cta-bg); background: var(--cta-bg); color: var(--cta-ink); box-shadow: var(--cta-shadow); }
  .cta-row .b-main:hover { border-color: var(--cta-hi); background: var(--cta-hi); }
  .roles { margin-top: 60px; }
  .role-list { grid-template-columns: minmax(0, 1fr); }
  .role-list li, .role-list li:nth-child(odd) { padding: 24px 0 22px; border-left: 0; }
  .cmp { margin-top: 60px; }
  .cmp h3 { font-size: 22px; }
  /* 비교 표는 줄마다 한 덩어리로 쌓는다: 머리 줄을 가리고 칸마다 넣어 둔 열 이름을 보인다 */
  .cmp-t, .cmp-t tbody, .cmp-t tr, .cmp-t th, .cmp-t td { display: block; width: auto; }
  .cmp-t thead { display: none; }
  .cmp-t { background: none; border: 0; }
  .cmp-t tr { margin-bottom: 14px; border: 1px solid var(--card-line); border-top: 2px solid var(--txt); background: var(--card); }
  .cmp-t tbody th, :lang(en) .cmp-t tbody th { width: auto; padding: 16px 18px 6px; border-bottom: 0; font-size: 17px; }
  .cmp-t td { padding: 10px 18px; border-bottom: 0; border-top: 1px solid var(--line); }
  .cmp-t tbody tr th + td { border-top: 0; }
  .cmp-t .cmp-us { box-shadow: inset 3px 0 0 var(--gold); }
  .cmp-k { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; color: var(--mut); }
  .cmp-us .cmp-k { color: var(--gold-txt); }
  .vx { font-size: 13.5px; }
  .vx th, .vx td { padding-right: 6px; }
  .vx thead th, .vx tbody th { white-space: normal; }
  .vx td { padding-left: 14px; }
  .vx td::before { top: calc(9px + .875em - 4px); width: 8px; height: 8px; }
  .qa summary { padding: 18px 40px 18px 0; font-size: 17.5px; }
  .qa p { padding: 0 0 22px; font-size: 16px; }
  .last { padding: 88px 0; }
  .demo { padding: 26px 18px 18px; }
  .kpi { padding-left: 12px; }
  .kpi dt { font-size: 12.5px; }
  .kpi-pre { display: none; }
  :lang(en) .kpi dt { white-space: normal; min-height: 32px; line-height: 1.3; }
  :lang(en) .ver-nums > div, :lang(en) .road li { grid-template-columns: minmax(0, 1fr); }
  :lang(en) .lv li { grid-template-columns: 30px minmax(0, 1fr); }
}
/* 머리의 주 단추는 글자가 긴 영문 화면에서 한 줄에 들어가지 않는 너비부터 숨긴다(같은 단추가 첫 구획에 있다) */
@media (max-width: 600px) {
  .top-actions .b-primary { display: none; }
}
@media (max-width: 520px) {
  /* 머리를 한 줄에 담는다: 로고와 단추의 여백을 줄인다(영문 화면 360px 기준) */
  .top .logo { font-size: 20px; }
  .top-in { gap: 10px; }
  .top-actions { gap: 6px; }
  .top-actions .b-sm { padding: 0 9px; font-size: 14px; }
  .lang { font-size: 13px; }
  .hero { padding: 44px 0 56px; }
  .cta-row .b { flex: 1 1 100%; }
  .assets { grid-template-columns: minmax(0, 1fr); }
  .ctrls { grid-template-columns: minmax(0, 1fr); }
  .legend { width: 100%; }
  .trace-t { font-size: 12.5px; }
  .trace-t th, .trace-t td { padding-left: 6px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
/* 아주 좁은 화면(320px, 크게 확대해 보는 경우 포함): 단추를 숨기지 않고 여백을 더 줄여 옆으로 넘치지 않게 한다 */
@media (max-width: 350px) {
  .wrap { width: calc(100% - 28px); }
  .top .logo { font-size: 18px; }
  .top-in { gap: 8px; }
  .top-actions { gap: 4px; }
  .top-actions .b-sm { padding: 0 8px; font-size: 13.5px; }
  .lang a { padding: 0 6px; }
  .nav { padding: 6px 14px 12px; }
  .levels { padding: 18px 14px 20px; }
  .vx { font-size: 12.5px; }
}

/* ---------- 인쇄 ---------- */
@media print {
  .hero::before, .top, .skip, .ctrls, .demo-links, .last, .slots, .intake-staged, .dropveil { display: none !important; }
  body { background: #fff; color: #000; }
  .rv { opacity: 1 !important; transform: none !important; }
  .sec, .hero { padding: 28px 0; }
  .sec-alt { background: none; }
  .foot { background: none; color: #000; }
  .card, .demo, .ver-body { box-shadow: none; break-inside: avoid; }
}
