/* signalsagent.app — Signals 앱 메인 화면과 같은 톤(#121212 바탕, 흰 주요 버튼, 색은 상태 표시에만) */
:root {
  --bg: #121212;
  --bg-sunk: #0f0f0f;
  --panel: #181818;
  --line: #262626;
  --line-strong: #323232;
  --fg: #ededed;
  --muted: #a1a1a1;
  --faint: #8a8a8a;
  /* 상태 색 — 꾸밈에는 쓰지 않는다 */
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: #ffffff; }
img, svg { max-width: 100%; }
:focus-visible { outline: 1px solid var(--muted); outline-offset: 2px; }

/* ── 공통 ── */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
/* 섹션 사이에는 선을 긋지 않는다. 구분은 여백과 배경으로 */
.band-sunk { background: var(--bg-sunk); }
.muted { color: var(--muted); }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; font-weight: 700; }
h2 { font-size: 44px; line-height: 1.12; letter-spacing: -0.025em; }
/* 두 톤 제목: 앞은 진하게, 뒤는 흐리게 */
.dim { color: #7d7d7d; }
[id] { scroll-margin-top: 76px; }
/* 한국어: 단어 중간에서 줄이 끊기지 않게 */
:lang(ko) { word-break: keep-all; }

.btn { display: inline-block; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 8px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); transition: background-color .12s, border-color .12s; }
.btn:hover { background: #ffffff; border-color: #ffffff; color: var(--bg); }
.btn-quiet { font-weight: 500; background: #1f1f1f; border-color: var(--line-strong); color: var(--fg); }
.btn-quiet:hover { background: #262626; border-color: #3d3d3d; color: #ffffff; }
.btn-small { font-size: 13px; padding: 7px 14px; }
.btn-large { font-size: 16px; padding: 13px 22px; border-radius: 10px; }

/* ── 머리: 스크롤해도 위에 붙는다 ── */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(18, 18, 18, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 16px; }
.site-nav .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; margin-right: auto; }
.site-nav .link { font-size: 14px; color: var(--muted); }
.site-nav .link:hover { color: var(--fg); }

/* ── 첫 화면 ── */
.hero-band { position: relative; overflow: hidden; }
/* 히어로 배경: 아래(제품 창 쪽)로 갈수록 한 단계 밝아지는 면 위에 잔 점무늬. 위쪽은 바탕색 그대로 */
.hero-wash { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.085) 76%, rgba(255, 255, 255, 0.03) 100%);
  -webkit-mask: linear-gradient(180deg, transparent 0%, transparent 10%, #000 48%, #000 66%, transparent 82%);
  mask: linear-gradient(180deg, transparent 0%, transparent 10%, #000 48%, #000 66%, transparent 82%); }
.hero-band > .wrap { position: relative; }
.hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 96px 64px; }
.hero h1 span { display: block; }
.hero h1 { font-size: 68px; line-height: 1.04; letter-spacing: -0.035em; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 54ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .actions { margin-top: 8px; }
.fine { font-size: 14px; line-height: 1.6; color: var(--faint); max-width: 54ch; }

.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.is-ok { color: var(--ok); }
.is-warn { color: var(--warn); }
.is-danger { color: var(--danger); }
/* 앱의 심각도 점 */
.sev { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sev-danger { background: var(--danger); }
.sev-warn { background: var(--warn); }
[hidden] { display: none !important; }

/* 앱 화면을 옮긴 예시 — 값은 packages/ui의 SignalList·SignalPanel·ActionCard·ProgressBlock과 맞춘다 */
.demo { margin: 0; display: flex; flex-direction: column; gap: 14px; }
/* 무대: 바탕보다 한 단계 밝은 면 위에 창을 올린다 */
.stage { padding: 22px 22px 16px; border-radius: 20px; background: linear-gradient(180deg, #1b1b1b, #151515); border: 1px solid var(--line); }
/* 예시 화면 아래, 상자 밖에 따로 두는 설명 세 개 */
.callouts { margin: 0; padding: 40px 0 0; list-style: none; counter-reset: call; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.callouts li { counter-increment: call; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-content: start; row-gap: 6px; }
.callouts li::before { content: counter(call); grid-row: 1 / span 2; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.callouts b { font-size: 18px; font-weight: 600; line-height: 1.4; }
.callouts span { grid-column: 2; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 34ch; }
.app { display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95); }
.app-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--fg); }
.app-bar .slash { color: #4a4a4a; }
.app-list { min-width: 0; }
.app-detail, .app-agent { min-width: 0; border-left: 1px solid var(--line); }
.app-list-head { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.counts { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.counts b { font-variant-numeric: tabular-nums; }
.is-info { color: var(--info); }
.sev-info { background: var(--info); }
.sig { padding: 13px 16px 13px 13px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; display: flex; flex-direction: column; gap: 7px; }
.sig.is-active { border-left-color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.sig.is-quiet { opacity: 0.55; }
.sig-top { display: flex; align-items: baseline; gap: 8px; }
.sig-top .sev { transform: translateY(-2px); }
.sig-top .icon { align-self: center; }
.sig-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.sig-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-left: 15px; font-size: 11px; color: var(--faint); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 4px; background: #1f1f1f; }
.chip svg:not(.icon) { fill: currentColor; }
.sig-end { margin-left: auto; color: var(--muted); }
.sig-end.is-ok { color: var(--ok); }
.app-list .sig-end { flex-basis: 100%; margin-left: 0; }
.app-detail { padding: 18px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.detail-pills { display: flex; gap: 6px; }
.pill-ok { color: var(--ok); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.app-detail h3 { font-size: 18px; font-weight: 700; line-height: 1.35; margin-top: 4px; }
.detail-meta { font-size: 12px; color: var(--faint); }
.app-detail h4 { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.app-detail p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.review-badge { padding: 3px 9px; border-radius: 20px; background: #1f1f1f; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.fix-steps { margin: 2px 0 0; padding: 0; list-style: none; counter-reset: fix; display: flex; flex-direction: column; gap: 8px; }
.fix-steps li { counter-increment: fix; display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.5; }
.fix-steps li::before { content: counter(fix); flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; color: var(--muted); }
.demo-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.demo-status { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.dot-s { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.demo[data-state="ask"] .dot-s { background: var(--warn); }
.demo[data-state^="run"] .dot-s { background: var(--ok); }
.demo-body { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.msg { font-size: 14px; line-height: 1.6; }
.ask { width: 100%; max-width: 400px; padding: 13px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.demo[data-state="ask"] .ask { border-color: rgba(245, 158, 11, 0.3); }
.ask-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ask p { font-size: 13.5px; line-height: 1.5; }
.ask-actions { display: flex; gap: 8px; margin-top: 2px; }
.ask-actions button { flex: 1; padding: 8px 0; border-radius: 8px; border: 0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .12s; }
.allow { background: var(--fg); color: var(--bg); }
.allow:hover { background: #ffffff; }
.deny { background: #1f1f1f; color: var(--muted); }
.deny:hover { background: #2a2a2a; color: var(--fg); }
.progress { margin: 0; padding: 11px 13px; list-style: none; width: 100%; max-width: 400px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.progress li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.spin { color: var(--faint); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.replay { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.replay:hover { color: var(--fg); }
.demo figcaption { font-size: 13px; color: var(--faint); text-align: center; }

.works-with { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-block: 56px 56px; font-size: 14px; color: var(--faint); }
.works-with ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.works-with li { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--muted); }
.works-with svg:not(.icon) { fill: currentColor; }
.works-with .more-soon { padding: 3px 11px; border-radius: 20px; border: 1px dashed var(--line-strong); font-size: 13px; font-weight: 400; color: var(--faint); }

/* ── 섹션 공통 ── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; padding-block: 120px; }
.stack { display: flex; flex-direction: column; gap: 80px; padding-block: 120px; }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.block { display: flex; flex-direction: column; gap: 14px; }
.block-label { font-size: 14px; color: var(--muted); }
h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }

/* 줄 맞춘 표(진행 순서, 요청하는 권한). 좁은 화면에서는 칸 이름을 붙여 쌓는다 */
.rows { border-top: 1px solid var(--line-strong); }
.rows > div { display: grid; grid-template-columns: var(--cols); column-gap: 32px; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); }
.rows b { color: var(--fg); font-weight: 600; }
.rows .rows-head { padding-block: 12px; font-size: 13px; color: var(--faint); }
.rows-asks { --cols: 200px minmax(0, 1fr) minmax(0, 1fr); }
/* 상태 표시 알약(앱의 심각도 표시와 같은 모양) */
.pill { display: inline-block; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line-strong); background: #1f1f1f; color: var(--muted); font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pill-danger { color: var(--danger); background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }
.pill-warn { color: var(--warn); background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.pill-on { color: var(--fg); }

/* 문제 3가지: 위에는 실제로 열려 있는 장면, 아래에는 쉬운 말 */
.risks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.risks li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.risks h3 { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.risks h3 .sev { transform: translateY(-3px); }
.risks p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.case-no { font-size: 13px; font-weight: 600; color: var(--muted); }
.spec { width: 100%; height: 176px; display: flex; flex-direction: column; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.spec-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.spec-bar .url { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.spec-rows { display: flex; flex-direction: column; }
.spec-rows div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.spec-rows div:nth-child(n+3) { opacity: 0.55; }
.spec-rows div:nth-child(n+4) { opacity: 0.25; border-bottom: 0; }
.spec-code { margin: 0; padding: 14px 12px; flex: 1; font: inherit; line-height: 1.8; color: var(--muted); white-space: pre; overflow: hidden; }
.spec-code .ln { display: inline-block; width: 22px; color: #4a4a4a; }
.spec-code mark { padding: 2px 4px; border-radius: 4px; background: rgba(239, 68, 68, 0.14); color: var(--danger); }
.spec-foot { padding: 8px 12px; border-top: 1px solid var(--line); font-family: var(--sans); color: var(--faint); }
.spec-page { flex: 1; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); }
.spec-page b { font-size: 15px; color: var(--fg); margin-bottom: 4px; }
.spec-page i { display: block; height: 8px; border-radius: 4px; background: #232323; }
.spec-page i.short { width: 55%; }

/* 진행 순서: 위에서 아래로 한 줄기. 서비스의 경고 → 에이전트 → 세 갈래 결과 */
.flow { display: flex; flex-direction: column; }
.flow-step { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; }
.flow-label { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 4px; }
.flow-label b { font-size: 22px; font-weight: 600; line-height: 1.3; counter-increment: flow; }
.flow { counter-reset: flow; }
.flow-label b::before { content: counter(flow); display: inline-block; width: 30px; color: var(--faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.yours { margin-left: 30px; padding: 4px 11px; border-radius: 20px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--fg); }
.yours.is-none { border-style: dashed; font-weight: 400; color: var(--faint); }
/* 단계 사이를 잇는 줄기 */
.flow-main { position: relative; display: flex; flex-direction: column; gap: 18px; padding-bottom: 72px; }
.flow-step:not(:last-child) .flow-main::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 72px; border-left: 1px solid var(--line-strong); }
.flow-step:last-child .flow-main { padding-bottom: 0; }
.flow-text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.sources { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 64px; gap: 10px; }
.sources li { display: flex; align-items: center; gap: 9px; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 600; white-space: nowrap; }
.sources svg:not(.icon) { fill: currentColor; }
/* 연동 서비스가 더 늘어난다는 표시 */
.sources .more-dots { justify-content: center; border-style: dashed; border-color: var(--line-strong); background: none; color: var(--faint); letter-spacing: 0.12em; }
.sources em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 400; color: var(--warn); }
.agent-node { display: flex; gap: 14px; padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #1c1c1c, #171717); }
.agent-node .icon { margin-top: 2px; }
.agent-node b { font-size: 16px; }
.agent-node p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.outcomes { position: relative; margin: 0; padding: 28px 0 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* 줄기가 세 갈래로 갈라진다 */
/* 가로선은 첫 카드 가운데에서 마지막 카드 가운데까지(카드 사이 간격 20px 반영) */
.outcomes::before { content: ""; position: absolute; top: 0; left: calc((100% - 40px) / 6); right: calc((100% - 40px) / 6); border-top: 1px solid var(--line-strong); }
.outcomes li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.outcomes li::before { content: ""; position: absolute; left: 50%; top: -29px; height: 29px; margin-left: -0.5px; border-left: 1px solid var(--line-strong); }
.outcomes li:first-child { background: none; }
.count { display: flex; align-items: center; justify-content: space-between; }
.count b { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.outcomes li:first-child .count b { color: var(--faint); }
.sev-quiet { background: #4a4a4a; }
.outcomes h3 { font-size: 16px; margin-top: 6px; }
.outcomes p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.flow-note { font-size: 13px; color: var(--faint); }

/* 연결한 뒤: 왼쪽에 큰 브리핑, 오른쪽에 할 일과 리포트 */
.daily { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px 64px; align-items: start; }
.scene { display: flex; flex-direction: column; gap: 28px; }
.scene-brief { grid-row: 1 / span 2; }
.scene-text { display: flex; flex-direction: column; gap: 12px; }
.scene-text h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.scene-text p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.mock { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.9); }
.brief { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
/* 에이전트가 먼저 건네는 말: 앱처럼 카드 하나에 말과 버튼 */
.acard { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.acard p, .amsg p { font-size: 14.5px; line-height: 1.6; color: var(--fg); }
.abtn { padding: 6px 12px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 600; }
.amsg { display: flex; flex-direction: column; gap: 8px; padding: 10px 4px 2px; }
.amsg b { font-size: 14.5px; font-weight: 600; }
.ask-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 18px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--faint); }
.todo-head { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.todo-head .counts b { color: var(--fg); }
.sev-plain { background: var(--fg); }
.mock .sig:last-child { border-bottom: 0; }
/* 리포트는 앱에서도 흰 종이로 보인다 */
.mock-paper { padding: 14px; }
.paper { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 8px; background: #ffffff; color: #1a1a1a; font-size: 13px; }
.paper > b { font-size: 18px; font-weight: 700; }
.paper > span { color: #5f5f5f; }
.paper ul { margin: 12px 0 6px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.paper li { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: #f3f3f3; }
.paper li b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.paper li span { font-size: 12px; color: #5f5f5f; }
.paper p { font-size: 13px; line-height: 1.55; color: #333333; }

/* 믿어도 되는 이유: 강조점 둘. 왼쪽에 말, 오른쪽에 그림 */
.proof { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.proof + .proof { margin-top: 24px; }
.proof-text { display: flex; flex-direction: column; gap: 20px; }
.proof-text h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.proof-text > p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.ticks { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; }
.ticks .icon { margin-top: 3px; }
/* 격리 그림: 벽으로 나뉜 서버들 */
.iso { margin: 0; display: flex; flex-direction: column; gap: 22px; font-size: 13px; }
.iso-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.iso-mine { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 12px; border: 1px solid #5a5a5a; background: var(--panel); }
.iso-title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.iso-mine ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.iso-mine li { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 8px; background: #1f1f1f; font-size: 13px; font-weight: 500; color: var(--fg); }
.iso-mine li .icon { color: var(--muted); }
.iso-note { color: var(--faint); }
.iso-other { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px 14px; border-radius: 12px; border: 1px dashed var(--line); color: #5f5f5f; background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.018) 9px 10px); }
.iso-other em { font-style: normal; font-size: 12px; }
/* 키가 지나가는 길(큰 판): 칸마다 키의 상태를 보여 준다 */
.route-tall li { padding: 26px 22px 30px; gap: 12px; }
.route-tall .what { font-size: 16px; }
.route-tall .where { font-size: 13px; color: var(--muted); }
.route-tall .dot { background: var(--fg); border-color: var(--fg); }
.keychip { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.keychip.is-open { font-family: var(--sans); font-weight: 600; color: var(--ok); border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); }
.verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }

/* 키가 지나가는 길: 상자 하나, 칸 셋, 위에 선 하나 */
.route { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.route li { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.route li + li { border-left: 1px solid var(--line); }
.route .rail { display: flex; align-items: center; height: 10px; margin: 0 -20px 6px; }
.route .rail::before, .route .rail::after { content: ""; height: 0; border-top: 1px solid var(--line-strong); }
.route .rail::before { width: 20px; }
.route .rail::after { flex: 1; }
.route li:first-child .rail::before, .route li:last-child .rail::after { visibility: hidden; }
.route .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--faint); background: var(--panel); flex-shrink: 0; }
/* 열리는 곳은 마지막 칸 하나 */
.route .open .dot { background: var(--ok); border-color: var(--ok); }
.route .where { font-size: 12px; color: var(--faint); }
.route .what { font-size: 15px; font-weight: 600; }
.route .why { font-size: 13px; line-height: 1.6; color: var(--muted); }

.more { font-size: 15px; }
.more a, .needs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.more a:hover, .needs a:hover { text-decoration-color: var(--fg); }

/* 자주 묻는 질문 */
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 18px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.faq details:first-child summary { padding-top: 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; color: var(--faint); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: #ffffff; }
.faq p { padding-bottom: 22px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 58ch; }

/* 시작에 필요한 것: 앱의 서비스 연결 카드 모양 */
.needs { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.needs > div { padding: 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.needs > div:first-child { border-top: 0; }
.needs dt { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.needs dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 56ch; }

.founder { margin: 0 auto; padding-block: 120px; display: flex; flex-direction: column; gap: 20px; }
.founder blockquote { margin: 0; font-size: 34px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; max-width: 820px; }
.founder figcaption { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 60ch; }

/* ── 마지막: 크게 ── */
.closing { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; padding-block: 112px 120px; }
.closing h2 { font-size: 56px; line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; }
.closing h2 span { display: block; }

.site-foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 56px 64px; font-size: 14px; color: var(--faint); }
.site-foot .brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--fg); }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.site-foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-foot nav b { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.site-foot nav a { color: var(--faint); }
.site-foot nav a:hover { color: var(--fg); }

@media (max-width: 1100px) {
  .app { grid-template-columns: 250px minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-block: 56px 40px; }
  .hero h1 { font-size: 52px; }
  .stage { padding: 10px 10px 12px; border-radius: 16px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-detail, .app .sig:not(.is-active) { display: none; }
  .app-agent { border-left: 0; }
  .closing { padding-block: 80px; }
  .closing h2 { font-size: 40px; }
  .site-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .split, .stack, .founder { padding-block: 80px; }
  .stack { gap: 56px; }
  .proof + .proof { margin-top: 16px; }
  .daily { gap: 56px; }
  .route, .risks, .proof, .daily { grid-template-columns: minmax(0, 1fr); }
  .scene-brief { grid-row: auto; }
  .proof { gap: 36px; }
  .iso-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .iso-mine { grid-column: 1 / -1; }
  .iso-mine ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .flow-label { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .yours { margin-left: 0; }
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sources .more-dots { grid-column: 1 / -1; }
  .outcomes { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .outcomes::before, .outcomes li::before { display: none; }
  .callouts { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 28px; }
  .route li + li { border-left: 0; border-top: 1px solid var(--line); }
  .route .rail { margin: 0 0 2px; }
  .route .rail::before, .route .rail::after { display: none; }
}
@media (max-width: 720px) {
  .rows .rows-head { display: none; }
  .rows > div { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .rows [data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--faint); }
}
@media (max-width: 640px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  .hero .lead { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  .site-nav { gap: 16px; }
  .site-nav .in-page { display: none; }
  .hero .lead { font-size: 17px; }
  .founder blockquote { font-size: 24px; }
  /* /security 페이지(인라인 스타일)용 */
  main[style], header nav:not(.wrap), footer > div:not(.wrap) { padding-left: 16px !important; padding-right: 16px !important; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) { .btn, .ask-actions button { transition: none; } .spin { animation: none; } }
/* 한국어 제목은 줄 간격을 조금 넉넉하게(위 규칙들보다 뒤에 둬야 이긴다) */
:lang(ko) h1, :lang(ko) h2, :lang(ko) .founder blockquote { line-height: 1.25; letter-spacing: -0.02em; }
