/* 가닥 배포 사이트. 표기는 가닥 창(shared/ui/tokens.css)과 같아요:
   검은 머리띠 아래 흰 종이, 굵은 선과 점, 빨강은 ‘지금’에만, 모서리 4px, 그림자 없이 1px 선.
   배치: 쪽 전체를 꿰는 세로 노선이 왼쪽에 있고(구간마다 역 하나 · 지금 보는 구간이 빨간 점), 글은 그 오른쪽에 놓여요. */
:root {
  --bg: #FFFFFF; --fg: #111111; --fg2: #3A3A3A; --muted: #5F5F5F; --faint: #767676;
  --line: #E5E5E5; --soft: #F5F5F5; --paper: #FFFFFF;
  --band: #111111; --band-fg: #FFFFFF; --band-sub: #BDBDBD; --band-line: #111111;
  --accent: #C8401A; --halo: #F6DDD4; --spur: #A7A9AC; --track: #111111; --upcoming: #D6D6D6;
  --r1: #0039A6; --r2: #FF6319; --r3: #00933C; --r4: #FCCC0A; --r5: #B933AD;
  --btn: #111111; --btn-fg: #FFFFFF;
  --display: 'Helvetica Neue', Helvetica, Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --body: 'Helvetica Neue', Helvetica, Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --tr-title: -0.08em; --tr-body: -0.05em; --tr-small: -0.03em;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 4px; --gut: clamp(16px, 4vw, 40px); --wide: 1240px; --bandh: 60px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121212; --fg: #F2F2F2; --fg2: #D4D4D4; --muted: #A6A6A6; --faint: #8F8F8F;
  --line: #2E2E2E; --soft: #1A1A1A; --paper: #FFFFFF;
  --band: #000000; --band-fg: #FFFFFF; --band-sub: #A6A6A6; --band-line: #2E2E2E;
  --accent: #F0704A; --halo: #4A2A20; --spur: #77797C; --track: #F2F2F2; --upcoming: #3C3C3C;
  --r1: #4A7BE8; --r2: #FF7A3D; --r3: #2DB35F; --r4: #FCCC0A; --r5: #C766C1;
  --btn: #F2F2F2; --btn-fg: #121212; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #121212; --fg: #F2F2F2; --fg2: #D4D4D4; --muted: #A6A6A6; --faint: #8F8F8F;
  --line: #2E2E2E; --soft: #1A1A1A; --paper: #FFFFFF;
  --band: #000000; --band-fg: #FFFFFF; --band-sub: #A6A6A6; --band-line: #2E2E2E;
  --accent: #F0704A; --halo: #4A2A20; --spur: #77797C; --track: #F2F2F2; --upcoming: #3C3C3C;
  --r1: #4A7BE8; --r2: #FF7A3D; --r3: #2DB35F; --r4: #FCCC0A; --r5: #C766C1;
  --btn: #F2F2F2; --btn-fg: #121212; color-scheme: dark }
:root:lang(en) { --tr-title: -0.045em; --tr-body: -0.015em; --tr-small: -0.005em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bandh) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.62;
  letter-spacing: var(--tr-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; word-break: keep-all; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.3vw, 72px); line-height: 1.04; letter-spacing: var(--tr-title); }
h2 { font-size: clamp(29px, 3.7vw, 50px); line-height: 1.1; letter-spacing: var(--tr-title); }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: var(--tr-body); }
code { font-family: var(--mono); font-size: .88em; letter-spacing: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; overflow-wrap: anywhere; }
b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--btn); color: var(--btn-fg); padding: 10px 14px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.fine { font-size: 14px; letter-spacing: var(--tr-small); color: var(--muted); }
html.theming, html.theming *, html.theming *::before, html.theming *::after {
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), fill .45s var(--ease), stroke .45s var(--ease) !important; }

/* ---------- 검은 머리띠 ---------- */
.band { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--band); color: var(--band-fg); border-bottom: 1px solid var(--band-line); }
.band-in { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut); min-height: var(--bandh); display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: none; }
.brand .mark { width: 54px; height: 30px; flex: none; }
.brand .word { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.07em; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: clamp(4px, 2vw, 28px); min-width: 0; }
.nav a { color: var(--band-sub); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: var(--tr-small); white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--band-fg); border-bottom-color: var(--band-fg); }
.band-tools { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); flex: none; }
.lang { color: var(--band-sub); font-size: 14px; font-weight: 600; letter-spacing: var(--tr-small); text-decoration: none; white-space: nowrap; }
.lang:hover { color: var(--band-fg); text-decoration: underline; }
.gswitch { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 2px; border: 0; background: none; color: inherit; font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: var(--tr-small); cursor: pointer; }
.gswitch .sd { opacity: .5; transition: opacity .45s var(--ease); }
.gswitch[aria-checked="false"] .off, .gswitch[aria-checked="true"] .on { opacity: 1; }
.gswitch .trk { position: relative; flex: none; width: 34px; height: 18px; border: 1px solid currentColor; border-radius: 9px; opacity: .85; }
.gswitch .trk::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: currentColor; transition: transform .45s var(--ease); }
.gswitch[aria-checked="true"] .trk::after { transform: translateX(16px); }
.gswitch:focus-visible { outline-color: currentColor; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--fg); border-radius: var(--radius);
  background: transparent; color: var(--fg); font-family: var(--body); font-size: 16px; font-weight: 700; letter-spacing: var(--tr-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn-band { min-height: 36px; padding: 0 16px; font-size: 14px; background: var(--band-fg); color: var(--band); border-color: var(--band-fg); }
.btn-band:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn .dl { width: 16px; height: 16px; flex: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.more { font-weight: 700; text-decoration: underline; }
.more:hover { color: var(--accent); }

/* ---------- 첫 화면 ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { max-width: var(--wide); margin: 0 auto; padding: clamp(40px, 7vw, 92px) var(--gut) clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: var(--tr-small); color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 6px; background: var(--track); flex: none; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--fg2); max-width: 31em; }
.kept { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; }
.kept-k { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: var(--tr-small); }
.kept-v { font-weight: 700; display: inline-flex; align-items: center; gap: 10px; min-height: 1.6em; }
.kept-v i { width: 16px; height: 16px; flex: none; display: inline-block; }
.kept-v.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-map { position: relative; min-width: 0; }
.hero-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-right: 7em; font-size: 13px; letter-spacing: var(--tr-small); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; transition: color .3s var(--ease); }
.legend span.on { color: var(--fg); font-weight: 700; }
.legend i { width: 18px; height: 14px; flex: none; display: inline-block; }
.replay { position: absolute; right: 0; bottom: -7px; border: 0; background: none; color: var(--faint); font: inherit; font-size: 13px; letter-spacing: var(--tr-small); cursor: pointer; padding: 6px 0; text-decoration: underline; }
.replay:hover { color: var(--fg); }

/* 노선도 그림의 공통 표기 (첫 화면 · 문제 · 앞길) */
.rt-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rt-spur { fill: none; stroke: var(--spur); stroke-linecap: round; stroke-linejoin: round; }
.rt-link { stroke: var(--track); stroke-linecap: round; }
.rt-dot { fill: var(--track); }
.rt-dot-in { fill: var(--bg); }
.rt-big { fill: var(--track); stroke: var(--bg); }
.rt-now { fill: var(--accent); }
.rt-halo { fill: var(--halo); }
.rt-ring { fill: var(--bg); stroke: var(--accent); }
.rt-end { fill: var(--bg); stroke: var(--spur); }
.rt-file { fill: var(--track); }
.rt-train { stroke: var(--bg); stroke-width: 2; }
.rt-name { font-family: var(--display); font-size: 14px; letter-spacing: -0.03em; fill: var(--fg); }
.rt-name.bold { font-weight: 700; }
.rt-name.dim { fill: var(--muted); }
.rt-name.red { fill: var(--accent); font-weight: 700; }
.rt-title { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.06em; fill: var(--fg); }
.rt-num { font-family: var(--display); font-size: 10px; font-weight: 700; fill: #FFFFFF; text-anchor: middle; }
.rt-dash { fill: none; stroke: var(--track); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; }
.hero-map .g-dim { opacity: .28; transition: opacity .5s var(--ease); }
.hero-map .g-lit { opacity: 1; transition: opacity .5s var(--ease); }

/* ---------- 세로 노선(레일)과 구간 ---------- */
.track { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); }
.rail { position: sticky; top: calc(var(--bandh) + env(safe-area-inset-top, 0px)); align-self: start; height: calc(100vh - var(--bandh)); padding: 44px 0 44px; }
.rail ol { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.rail ol::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 6px; background: var(--upcoming); }
.rail ol::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: calc((100% - 16px) * var(--done, 0)); background: var(--track); transition: height .5s var(--ease); }
.rail li { position: relative; z-index: 1; }
.rail a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: var(--tr-small); color: var(--faint); min-height: 20px; transition: color .3s var(--ease); }
.rail a::before { content: ""; width: 12px; height: 12px; margin-left: 2px; border-radius: 50%; flex: none; background: var(--bg); border: 3px solid var(--upcoming); box-sizing: content-box; margin-left: 1px; transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.rail li.past a { color: var(--fg2); }
.rail li.past a::before { background: var(--track); border-color: var(--track); }
.rail li.now a { color: var(--fg); font-weight: 700; }
.rail li.now a::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--halo); }
.rail a:hover { color: var(--fg); }
.sections { min-width: 0; }
.sec { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 44em; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-lead { font-size: 18px; color: var(--fg2); max-width: 36em; }

/* ---------- 문제: 채팅과 노선도 ---------- */
.versus { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); border-radius: var(--radius); }
.versus > div { padding: clamp(18px, 2.6vw, 32px); min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.versus > div + div { border-left: 1px solid var(--line); }
.versus h3 { font-size: 15px; letter-spacing: var(--tr-small); color: var(--muted); }
.versus p { font-size: 15px; color: var(--muted); letter-spacing: var(--tr-small); margin-top: auto; }
.bubbles { display: flex; flex-direction: column; gap: 9px; }
.bubbles li { align-self: flex-end; max-width: 92%; background: var(--soft); border-left: 4px solid var(--track); padding: 8px 12px; font-size: 14.5px; line-height: 1.45; letter-spacing: var(--tr-small); }
.bubbles li.a { align-self: flex-start; width: 72%; height: 24px; padding: 0; border: 0;
  background: linear-gradient(var(--line), var(--line)) 0 4px / 100% 5px no-repeat, linear-gradient(var(--line), var(--line)) 0 15px / 62% 5px no-repeat; }
.versus svg { display: block; width: 100%; height: auto; overflow: visible; margin: auto 0; }
.versus .rt-name { font-size: 15px; }

/* ---------- 기능: 접었다 펴는 목록 + 그림 ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.feat-list { border-top: 1px solid var(--fg); }
.feat-item { border-bottom: 1px solid var(--line); }
.feat-item h3 { font-size: inherit; }
.feat-item button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 0; cursor: pointer; font-family: var(--display); font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; letter-spacing: var(--tr-body); line-height: 1.3; }
.feat-item button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feat-item .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--c, var(--track)); }
.feat-item .tag { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0; border: 1px solid var(--line); border-radius: 3px; padding: 2px 7px; color: var(--muted); flex: none; }
.pm { position: relative; width: 16px; height: 16px; margin-left: auto; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.pm::after { transform: rotate(90deg); }
.is-open > h3 .pm::after, details[open] > summary .pm::after { transform: rotate(0deg); opacity: 0; }
.feat-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.feat-body > div { overflow: hidden; min-height: 0; }
.is-open > .feat-body { grid-template-rows: 1fr; }
.feat-body p { padding: 0 0 24px 30px; color: var(--fg2); max-width: 30em; }
.feat-fig-inline { display: none; padding: 0 0 24px; }
.feat-media { position: sticky; top: calc(var(--bandh) + 28px); }
.feat-media figure { display: none; }
.feat-media figure.on { display: block; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.shot { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.shot img { width: 100%; }
.shot.pad { padding: clamp(12px, 2vw, 24px); }
/* 옆 그림은 한 화면에 다 들어오게: 구간 제목 아래에 남는 높이에 맞춰 줄여요 (긴 그림도 스크롤 없이 한눈에).
   너비 = 높이 한도 × 그림의 비율(--ratio · build.py가 그림마다 적어 줘요). 그림이 뜨기 전에도 자리가 잡혀요 */
.feat-media { --maxh: clamp(300px, calc(100vh - var(--bandh) - 330px), 560px); }
.feat-media .shot { width: fit-content; max-width: 100%; }
.feat-media .shot img { width: calc(var(--maxh) * var(--ratio, 1.5)); max-width: 100%; height: auto; }
.feat-media .shot.pad img { width: calc((var(--maxh) - 48px) * var(--ratio, 1.5)); }
.shot.narrow { max-width: 440px; }
.drawn { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 28px); }
.drawn svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- 안전과 통제: 카드 둘 ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
.card { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card + .card { border-left: 1px solid var(--line); }
.card h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 1.8vw, 24px); }
.card h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--track); flex: none; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--track); margin: 0 5px; }
.card p { color: var(--fg2); }

/* ---------- 데모 ---------- */
.window { border: 1px solid var(--fg); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.window-bar { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--fg); font-size: 13px; letter-spacing: var(--tr-small); color: var(--muted); }
.window-bar::before { content: ""; width: 44px; height: 10px; flex: none; background: radial-gradient(circle 5px at 5px 5px, var(--upcoming) 98%, transparent) 0 0 / 17px 10px repeat-x; }
.window-bar a { margin-left: auto; font-weight: 700; color: var(--fg); white-space: nowrap; }
.window-bar a:hover { color: var(--accent); }
.window-body { position: relative; height: 0; overflow: hidden; background: #FFFFFF; }
.window-body iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.demo-still { display: none; }
.demo-note { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

/* ---------- 시작하기: 세 정거장 ---------- */
.stops { --gap: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.stops li { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stops li:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 14px; width: calc(100% + var(--gap)); height: 8px; background: var(--track); }
.stops li > * { position: relative; }
.stops .n { width: 36px; height: 36px; border-radius: 50%; background: var(--track); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0; box-shadow: 0 0 0 4px var(--bg); margin-bottom: 10px; }
.stops li:last-child .n { background: var(--accent); color: #FFFFFF; box-shadow: 0 0 0 4px var(--bg), 0 0 0 9px var(--halo); }
.stops p { color: var(--fg2); font-size: 16px; max-width: 24em; }

/* ---------- 토큰과 비용 ---------- */
.share { margin-bottom: clamp(24px, 3.4vw, 40px); }
.share-bar { display: flex; height: 14px; }
.share-bar .mine { flex: 100; background: var(--track); }
.share-bar .more { flex: 2.5; background: var(--accent); }      /* 2~3%를 실제 비율대로 */
.share-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 10px; font-size: 14px; letter-spacing: var(--tr-small); color: var(--muted); }
.share-key b { color: var(--accent); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: clamp(24px, 3.4vw, 40px); }
.fig { padding: clamp(18px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fig + .fig { border-left: 1px solid var(--line); }
.fig b { font-family: var(--display); font-size: clamp(32px, 3.6vw, 48px); letter-spacing: var(--tr-title); line-height: 1.08; font-variant-numeric: tabular-nums; }
.fig span { font-weight: 700; }
.fig small { font-size: 14px; color: var(--muted); letter-spacing: var(--tr-small); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 15.5px; }
.tbl-cap { font-size: 16px; letter-spacing: var(--tr-body); margin-bottom: 12px; }
.tbl thead th, .tbl thead td { border-bottom: 1px solid var(--fg); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { font-size: 15.5px; }
.tbl thead small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: var(--tr-small); }
.tbl tbody th { font-weight: 600; color: var(--fg2); white-space: nowrap; width: 9.5em; }
.tbl td { font-variant-numeric: tabular-nums; }
.notes { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(20px, 3vw, 32px); max-width: 50em; }
.notes li { position: relative; padding-left: 26px; color: var(--fg2); font-size: 16px; }
.notes li::before { content: ""; position: absolute; left: 4px; top: .58em; width: 9px; height: 9px; border-radius: 50%; background: var(--track); }

/* ---------- 받기 ---------- */
.get { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.get-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.get-text h2 { font-size: clamp(28px, 3.2vw, 44px); }

/* ---------- 자주 묻는 것 ---------- */
.qa-list { border-top: 1px solid var(--fg); max-width: 54em; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 0; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: clamp(18px, 1.6vw, 21px); }
.qa summary:hover h3 { color: var(--accent); }
.qa p { padding: 0 44px 24px 0; color: var(--fg2); max-width: 44em; }

/* ---------- 발치 ---------- */
.foot { background: var(--band); color: var(--band-fg); border-top: 1px solid var(--band-line); }
.foot-in { max-width: var(--wide); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gut); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); }
.foot .brand { margin-bottom: 14px; }
.foot .foot-tag { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: var(--tr-title); line-height: 1.15; margin-bottom: 18px; color: var(--band-fg); }
.foot p { font-size: 14px; letter-spacing: var(--tr-small); color: var(--band-sub); max-width: 46em; }
.foot p + p { margin-top: 6px; }
.foot h2 { font-size: 13px; letter-spacing: var(--tr-small); color: var(--band-sub); font-weight: 600; margin-bottom: 12px; }
.foot ul { display: flex; flex-direction: column; gap: 10px; }
.foot ul a { font-size: 16px; font-weight: 700; text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }

/* ---------- 받기 쪽 ---------- */
.dl-top { max-width: var(--wide); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.dl-top h1 { font-size: clamp(40px, 5.4vw, 72px); }
/* 이 쪽의 파일이 어느 판인지(한국어판 · 영어판)와 다른 판으로 가는 길 */
.edition { max-width: 46em; font-size: 15px; letter-spacing: var(--tr-small); color: var(--fg2); border-left: 4px solid var(--fg); padding-left: 14px; }
.edition .more { white-space: nowrap; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jump a { font-size: 14px; font-weight: 700; letter-spacing: var(--tr-small); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px; }
.jump a:hover { border-color: var(--fg); }
.dl-main { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut) clamp(48px, 7vw, 96px); display: flex; flex-direction: column; }
.os { padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--fg); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.os.mine { order: -1; }
.os-head { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.os-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.badge { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: var(--tr-small); background: var(--accent); color: #FFFFFF; border-radius: 3px; padding: 3px 9px; line-height: 1.5; }
.files { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 18px; }
.file + .file { border-top: 1px solid var(--line); }
.file.mine { background: var(--soft); }
.file h3 { font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file p { font-size: 14px; letter-spacing: var(--tr-small); color: var(--muted); }
.file .name { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; color: var(--faint); overflow-wrap: anywhere; }
.file .btn { grid-row: 1 / span 3; grid-column: 2; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; font-size: 15px; color: var(--fg2); }
.steps-wrap { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.steps-wrap h3 { font-size: 15px; letter-spacing: var(--tr-small); color: var(--muted); }
.steps { counter-reset: step; position: relative; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 50px; color: var(--fg2); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 15px; width: 6px; height: calc(100% + 18px); background: var(--track); }
.steps li::before { z-index: 1; content: counter(step); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--track); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0; box-shadow: 0 0 0 3px var(--bg); }
.steps li:last-child::before { background: var(--accent); color: #FFFFFF; }
.tip { font-size: 15px; color: var(--muted); letter-spacing: var(--tr-small); padding-left: 50px; }
.missing { font-size: 15px; color: var(--muted); letter-spacing: var(--tr-small); }
.missing b { color: var(--fg2); }
.missing ul { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.missing li { padding-left: 18px; position: relative; }
.missing li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; background: var(--spur); }
.block { padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.block-head { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.block-head h2 { font-size: clamp(24px, 2.4vw, 32px); }
.block-head h2 small { display: block; font-size: 15px; font-weight: 600; letter-spacing: var(--tr-small); color: var(--muted); margin-top: 6px; }
.block-head p { color: var(--fg2); font-size: 16px; }
.block-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sums { border: 1px solid var(--line); border-radius: var(--radius); }
.sum { padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.sum + .sum { border-top: 1px solid var(--line); }
.sum b { font-size: 15px; }
.sum .hash { grid-column: 1; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; color: var(--fg2); overflow-wrap: anywhere; line-height: 1.5; }
.sum button { grid-row: 1 / span 2; grid-column: 2; }
.copy { all: unset; box-sizing: border-box; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: var(--tr-small); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; white-space: nowrap; }
.copy:hover { border-color: var(--fg); }
.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.how { display: grid; gap: 8px; }
.how div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 14px; letter-spacing: var(--tr-small); color: var(--muted); }
.how code { font-size: 12.5px; }

/* ---------- 데모 쪽 ---------- */
.page-demo { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
/* 데모 쪽의 머리띠는 얇고 밝게: 바로 아래에 가닥 창의 검은 머리띠가 또 있어서요 */
.page-demo .band { --band: var(--bg); --band-fg: var(--fg); --band-sub: var(--muted); --band-line: var(--line); --bandh: 46px; position: static; }
.page-demo .brand .mark { width: 40px; height: 22px; }
.page-demo .brand .word { font-size: 18px; }
.page-demo main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.demo-tabs { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); margin-left: clamp(4px, 2vw, 24px); }
.demo-tabs button { all: unset; cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: var(--tr-small); white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; color: var(--band-sub); }
.demo-tabs button[aria-selected="true"] { color: var(--band-fg); border-bottom-color: var(--band-fg); }
.demo-tabs button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.demo-full { flex: 1; min-height: 0; position: relative; background: #FFFFFF; }
.demo-full iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-full iframe[hidden] { display: none; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1080px) {
  .track { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-in, .feat, .get, .foot-in, .os, .block { grid-template-columns: minmax(0, 1fr); }
  .hero-map { order: 2; }
  .feat-media { display: none; }
  .feat-fig-inline { display: block; }
  .feat-body p { padding-left: 30px; }
  .get-shot { order: 2; }
  .window-live { display: none; }
  .demo-still { display: block; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .versus, .cards, .stops, .figs { grid-template-columns: minmax(0, 1fr); }
  .versus > div + div, .card + .card, .fig + .fig { border-left: 0; border-top: 1px solid var(--line); }
  .stops li:not(:last-child)::before { left: 14px; top: 18px; width: 8px; height: calc(100% + var(--gap)); }
  .stops li { padding-left: 54px; }
  .stops .n { position: absolute; left: 0; top: 0; margin: 0; }
  /* 좁은 화면의 지도: 작은 역 이름은 빼고, 남는 글자는 키워요 */
  .hero-map .rt-name.dim, .hero-map .now-rest { display: none; }
  .hero-map .rt-name { font-size: 21px; }
  .hero-map .rt-title { font-size: 24px; }
  .brand .word { font-size: 20px; }
  .brand .mark { width: 44px; height: 24px; }
  .lang { font-size: 13px; }
  .gswitch .sd { display: none; }
  .file { grid-template-columns: minmax(0, 1fr); }
  .file .btn { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 6px; }
  .how div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .qa p { padding-right: 0; }
}
@media (max-width: 420px) {
  .btn-band { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
