/* StoryPod — 소개 페이지
   색은 :root 토큰으로만 정의한다. 다크는 OS 설정(:root:not([data-theme="light"]))과
   명시적 선택(:root[data-theme="dark"]) 두 곳에 같은 값을 둔다. */

@font-face { font-family: "SP Pretendard"; font-weight: 400; font-display: swap; src: url("fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "SP Pretendard"; font-weight: 700; font-display: swap; src: url("fonts/Pretendard-Bold.woff2") format("woff2"); }
@font-face { font-family: "SP MaruBuri"; font-weight: 400; font-display: swap; src: url("fonts/MaruBuri-Regular.woff2") format("woff2"); }
@font-face { font-family: "SP MaruBuri"; font-weight: 700; font-display: swap; src: url("fonts/MaruBuri-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --bg-alt: #efebe3;
  --paper: #fbfaf7;
  --elevated: #ffffff;
  --ink: #1f1d1a;
  --text: #34322e;
  --muted: #6a665f;
  --faint: #8e8980;
  --line: #ddd7cc;
  --line-strong: #c4bcae;

  /* 브랜드: 앱 아이콘의 자줏빛 */
  --brand: #7e2350;
  --brand-hover: #66193f;
  --brand-soft: #f5e4eb;
  --brand-ink: #ffffff;

  /* 앱 화면 재현용: 앱 기본 강조색(쪽빛)과 분류 색 */
  --app-accent: #2457b8;
  --app-accent-soft: #eaedf2;
  --app-canvas: #ececea;
  --app-border: #cdd1d6;
  --app-border-subtle: #e0e3e7;
  --ins: #1f7a45; --ins-soft: #e2f2e7;
  --del: #b23a2e; --del-soft: #f7e9e6;
  --warn: #8a5a2b; --warn-soft: #f3e8da;
  --k-char: #3d5bd9; --k-char-soft: #e6ebfc;
  --k-place: #2f8a3e; --k-place-soft: #e3f2e5;
  --k-org: #0e8a90; --k-org-soft: #dbf2f2;
  --k-fore: #8a45c8; --k-fore-soft: #efe3fa;
  --k-event: #b4501a; --k-event-soft: #f8e4d6;

  --shadow: 0 1px 2px rgb(31 29 26 / .06), 0 12px 32px -12px rgb(31 29 26 / .18);
  --shadow-lg: 0 2px 4px rgb(31 29 26 / .05), 0 40px 80px -24px rgb(31 29 26 / .28);

  --font-ui: "SP Pretendard", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-serif: "SP MaruBuri", "MaruBuri", "Nanum Myeongjo", "Batang", serif;
  --font-mono: "D2Coding", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121418; --bg-alt: #171a1f; --paper: #1b1e23; --elevated: #22262c;
    --ink: #eef0f3; --text: #d3d7dd; --muted: #a0a7b2; --faint: #7f8794;
    --line: #2d333b; --line-strong: #444c58;
    --brand: #eea6c2; --brand-hover: #f6c0d5; --brand-soft: #3a1f2c; --brand-ink: #2b0c1b;
    --app-accent: #6e9fff; --app-accent-soft: #1d2941; --app-canvas: #14161a;
    --app-border: #373e48; --app-border-subtle: #2c323a;
    --ins: #7fd29c; --ins-soft: #183324; --del: #e07a6e; --del-soft: #3a211e;
    --warn: #d9a46b; --warn-soft: #33281c;
    --k-char: #8ea3ff; --k-char-soft: #222a48; --k-place: #79c987; --k-place-soft: #1c3322;
    --k-org: #5fc9cf; --k-org-soft: #173336; --k-fore: #c39af0; --k-fore-soft: #2e2240;
    --k-event: #eb9a6b; --k-event-soft: #3a2619;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 40px 80px -24px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121418; --bg-alt: #171a1f; --paper: #1b1e23; --elevated: #22262c;
  --ink: #eef0f3; --text: #d3d7dd; --muted: #a0a7b2; --faint: #7f8794;
  --line: #2d333b; --line-strong: #444c58;
  --brand: #eea6c2; --brand-hover: #f6c0d5; --brand-soft: #3a1f2c; --brand-ink: #2b0c1b;
  --app-accent: #6e9fff; --app-accent-soft: #1d2941; --app-canvas: #14161a;
  --app-border: #373e48; --app-border-subtle: #2c323a;
  --ins: #7fd29c; --ins-soft: #183324; --del: #e07a6e; --del-soft: #3a211e;
  --warn: #d9a46b; --warn-soft: #33281c;
  --k-char: #8ea3ff; --k-char-soft: #222a48; --k-place: #79c987; --k-place-soft: #1c3322;
  --k-org: #5fc9cf; --k-org-soft: #173336; --k-fore: #c39af0; --k-fore-soft: #2e2240;
  --k-event: #eb9a6b; --k-event-soft: #3a2619;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 40px 80px -24px rgb(0 0 0 / .7);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: 17px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--font-serif); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 700 16px/1 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 8px; }

/* ---------- 상단 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.theme-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-btn svg { width: 18px; height: 18px; }

/* ---------- 히어로: 화면 테마와 무관하게 늘 밤하늘 ---------- */
.hero {
  --h-bg: #0d0a18; --h-ink: #f2f0ff; --h-text: #b4b5d0; --h-faint: #7c7fa3;
  --h-lav: #f0bcd2; --h-cyan: #f7e2df; --h-line: rgb(255 255 255 / .14);
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: -64px; padding: 168px 0 220px; min-height: min(900px, 100vh);
  background:
    radial-gradient(42% 52% at 70% 42%, rgb(122 38 98 / .55), transparent 72%),
    radial-gradient(30% 40% at 88% 78%, rgb(150 60 120 / .2), transparent 70%),
    var(--h-bg);
  color: var(--h-text);
}
.hero::after { /* 아래쪽을 본문 배경으로 녹인다 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 0;
  background: linear-gradient(transparent, var(--bg));
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > * { max-width: 620px; }
.hero-tag { margin-top: 26px; font-size: 15px; color: var(--h-lav); letter-spacing: .01em; }
.hero-tag span { color: var(--h-faint); margin-left: 8px; }
.hero .eyebrow { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); color: var(--h-text); }
.hero .eyebrow b { color: var(--h-cyan); }
.hero h1 { color: var(--h-ink); margin: 14px 0 0; }
.hero h1 em { color: var(--h-lav); }
.hero .lead { margin: 22px 0 0; color: var(--h-text); }
.hero .lead strong { color: var(--h-ink); }
.hero .cta-row { justify-content: flex-start; }
.hero .btn-primary { background: #f7e2df; color: #4f1232; }
.hero .btn-primary:hover { background: #ffffff; }
.hero .btn-ghost { color: var(--h-ink); border-color: rgb(255 255 255 / .22); }
.hero .btn-ghost:hover { border-color: rgb(255 255 255 / .6); }
.hero .cta-meta { color: var(--h-faint); }
.stage-wrap { position: relative; z-index: 2; margin-top: -170px; padding-bottom: 24px; }

/* 히어로 위에 있을 때의 상단바 */
.nav.on-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.nav.on-hero .brand { color: #f2f0ff; }
.nav.on-hero .nav-links a { color: #a9abc8; }
.nav.on-hero .nav-links a:hover { color: #ffffff; }
.nav.on-hero .theme-btn { color: #a9abc8; border-color: rgb(255 255 255 / .16); }
.nav.on-hero .btn-primary { background: #f7e2df; color: #4f1232; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted); font-size: 14px; letter-spacing: .02em;
}
.eyebrow b { color: var(--brand); font-weight: 700; letter-spacing: .08em; }
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(32px, 5vw, 54px); max-width: 680px !important;
  letter-spacing: -.02em; line-height: 1.22;
}
.hero h1 em { font-style: normal; }
.hero .lead { font-size: clamp(17px, 2vw, 19px); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta-meta { margin-top: 14px; font-size: 14px; color: var(--faint); }

/* ---------- 앱 창 재현 ---------- */
.stage { position: relative; }
.window {
  position: relative; z-index: 1; text-align: left;
  background: var(--paper); border: 1px solid var(--app-border); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.55;
}
.win-bar {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px;
  background: var(--elevated); border-bottom: 1px solid var(--app-border);
  color: var(--muted); font-size: 12.5px;
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--app-border); }
.win-crumb b { color: var(--ink); font-weight: 700; }
.win-bar .spacer { flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; background: var(--app-accent-soft); color: var(--app-accent); white-space: nowrap;
}
.win-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; min-height: 520px; }

.tree { background: var(--app-canvas); border-right: 1px solid var(--app-border); padding: 16px 10px; }
.tree h6 { margin: 14px 8px 6px; font-size: 11px; letter-spacing: .08em; color: var(--faint); font-weight: 700; }
.tree h6:first-child { margin-top: 0; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree li { padding: 4px 8px; border-radius: 6px; color: var(--text); display: flex; align-items: center; gap: 7px; }
.tree li.sub { padding-left: 24px; color: var(--muted); }
.tree li.on { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--app-border-subtle); }
.tree li .dot { width: 7px; height: 7px; border-radius: 2px; flex: none; }

.doc { padding: 26px 34px 30px; min-width: 0; }
.doc-kicker { font-size: 11px; letter-spacing: .12em; color: var(--faint); font-weight: 700; }
.doc h4 { font-family: var(--font-serif); font-size: 26px; color: var(--ink); margin: 6px 0 4px; }
.doc-meta { display: flex; gap: 8px; align-items: center; color: var(--faint); font-size: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--app-border-subtle); }
.scene-card {
  margin: 16px 0; padding: 12px 14px; border-radius: 10px;
  background: var(--app-accent-soft); border: 1px solid color-mix(in srgb, var(--app-accent) 25%, transparent);
}
.scene-card b { color: var(--ink); display: block; font-size: 13.5px; }
.scene-card span { color: var(--muted); font-size: 12.5px; }
.prose { font-family: var(--font-serif); font-size: 15px; line-height: 1.95; color: var(--ink); }
.prose p + p { margin-top: 10px; }

.proposal {
  margin-top: 16px; border: 1px solid var(--app-border); border-left: 3px solid var(--app-accent);
  border-radius: 10px; background: var(--elevated); overflow: hidden;
}
.proposal-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--app-border-subtle); font-weight: 700; color: var(--ink); font-size: 12.5px; }
.proposal-head .pill { margin-left: auto; background: var(--warn-soft); color: var(--warn); }
.proposal-body { padding: 12px 14px; font-family: var(--font-serif); font-size: 14px; line-height: 1.9; color: var(--ink); }
del { background: var(--del-soft); color: var(--del); text-decoration-thickness: 1px; padding: 0 2px; border-radius: 3px; }
ins { background: var(--ins-soft); color: var(--ins); text-decoration: none; padding: 0 2px; border-radius: 3px; }
.proposal-foot { display: flex; gap: 6px; justify-content: flex-end; padding: 8px 12px; background: var(--app-canvas); border-top: 1px solid var(--app-border-subtle); }
.mini-btn { font: 700 12px/1 var(--font-ui); padding: 7px 11px; border-radius: 6px; border: 1px solid var(--app-border); background: var(--elevated); color: var(--text); }
.mini-btn.primary { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
:root[data-theme="dark"] .mini-btn.primary { color: #0e1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mini-btn.primary { color: #0e1626; } }

.info { border-left: 1px solid var(--app-border); padding: 16px 14px; background: var(--paper); }
.info h5 { margin: 0 0 10px; font-size: 13.5px; color: var(--ink); }
.info .label { font-size: 11px; color: var(--faint); margin-top: 10px; }
.info .val { color: var(--ink); font-size: 12.5px; }
.ent { margin-top: 8px; padding: 9px 11px; border: 1px solid var(--app-border-subtle); border-radius: 8px; background: var(--elevated); }
.ent b { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: 12.5px; }
.ent span { color: var(--muted); font-size: 11.5px; }
.ent .tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }

/* ---------- 섹션 공통 ---------- */
section.block { padding: 112px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; letter-spacing: .14em; font-weight: 700; color: var(--brand); }
.sec-title { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.015em; margin-top: 14px; }
.sec-lead { margin-top: 18px; color: var(--muted); max-width: 38em; font-size: 18px; }
.center { text-align: center; }
.center .sec-lead { margin-left: auto; margin-right: auto; }

/* ---------- 포지셔닝 문장 ---------- */
.manifesto { padding: 96px 0 24px; }
.manifesto blockquote {
  margin: 0 auto; max-width: 30em; text-align: center;
  font-family: var(--font-serif); font-size: clamp(22px, 3.2vw, 32px); line-height: 1.6; color: var(--ink);
}
.manifesto blockquote s { color: var(--faint); text-decoration-thickness: 2px; text-decoration-color: var(--del); }
.manifesto blockquote mark { background: linear-gradient(transparent 62%, var(--brand-soft) 62%); color: inherit; padding: 0 2px; }

/* ---------- IDE ↔ AWE ---------- */
.map { margin-top: 56px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.map-head, .map-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.15fr) minmax(0, 1.5fr); align-items: center; gap: 0 12px; padding: 0 28px; }
.map-head { height: 52px; background: var(--elevated); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.map-head .awe { color: var(--brand); }
.map-row { min-height: 76px; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.map-row:last-child { border-bottom: 0; }
.map-row:hover { background: var(--brand-soft); }
.map-row .ide { font-size: 15px; color: var(--faint); }
.map-row .arrow { color: var(--line-strong); font-size: 20px; text-align: center; transition: color .15s, transform .15s; }
.map-row:hover .arrow { color: var(--brand); transform: translateX(3px); }
.map-row .awe { font-family: var(--font-serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg); white-space: nowrap; }

/* ---------- 과정 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; counter-reset: step; }
.flow li { list-style: none; position: relative; padding: 26px 22px 24px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.flow li::before { counter-increment: step; content: "0" counter(step); font: 700 13px/1 var(--font-mono); color: var(--brand); }
.flow h3 { font-family: var(--font-serif); font-size: 22px; margin: 12px 0 8px; }
.flow p { color: var(--muted); font-size: 15px; }
.flow ol { padding: 0; margin: 0; }

/* ---------- 기능 ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .feat-copy { order: 2; }
.feat-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.feat-label code { font-family: var(--font-ui); font-size: 13px; color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.feat-label .to { color: var(--brand); font-weight: 700; letter-spacing: .04em; }
.feat-copy h3 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 32px); margin-top: 14px; letter-spacing: -.01em; }
.feat-copy > p { margin-top: 16px; color: var(--muted); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) translateY(-3px); }
.ticks b { color: var(--ink); }

.card {
  background: var(--paper); border: 1px solid var(--app-border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 20px; font-size: 13.5px; line-height: 1.6; min-width: 0;
}
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 14px; }
.card-title .pill { margin-left: auto; }

/* 회차·장면 */
.ep { border: 1px solid var(--app-border-subtle); border-radius: 10px; background: var(--elevated); }
.ep + .ep { margin-top: 10px; }
.ep-head { display: flex; gap: 10px; align-items: baseline; padding: 11px 14px; border-bottom: 1px solid var(--app-border-subtle); }
.ep-head b { color: var(--ink); font-family: var(--font-serif); font-size: 15px; }
.ep-head span { color: var(--faint); font-size: 12px; }
.ep-head .pill { margin-left: auto; }
.scenes { list-style: none; margin: 0; padding: 6px 14px 10px; }
.scenes li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 72px; gap: 8px; align-items: center; padding: 6px 0; color: var(--text); }
.scenes li + li { border-top: 1px dashed var(--app-border-subtle); }
.scenes .n { font: 700 11px/1 var(--font-mono); color: var(--faint); }
.scenes small { display: block; color: var(--faint); font-size: 11.5px; }
.tension { height: 6px; border-radius: 3px; background: var(--app-border-subtle); overflow: hidden; }
.tension i { display: block; height: 100%; background: var(--del); border-radius: 3px; }

/* 제안 비교 */
.change { border: 1px solid var(--app-border-subtle); border-radius: 10px; background: var(--elevated); overflow: hidden; }
.change + .change { margin-top: 10px; }
.change-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--app-border-subtle); }
.check { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--app-border); display: grid; place-items: center; flex: none; }
.check.on { background: var(--app-accent); border-color: var(--app-accent); }
.check.on::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; }
.cmp > div { padding: 10px 12px; font-family: var(--font-serif); font-size: 13.5px; line-height: 1.85; color: var(--ink); }
.cmp > div + div { border-left: 1px solid var(--app-border-subtle); }
.cmp small { display: block; font-family: var(--font-ui); font-size: 11px; color: var(--faint); margin-bottom: 4px; font-weight: 700; letter-spacing: .04em; }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.card-foot .note { margin-right: auto; font-size: 12px; color: var(--faint); }

/* 관계 그래프 */
.graph svg { width: 100%; height: auto; }
.graph .edge { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.graph .edge.hot { stroke: var(--del); stroke-dasharray: 5 4; }
.graph text { font-family: var(--font-ui); font-size: 12px; fill: var(--ink); }
.graph .elabel { font-size: 10.5px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.fore { margin-top: 14px; border-top: 1px solid var(--app-border-subtle); padding-top: 12px; }
.fore-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; }
.fore-row b { color: var(--ink); font-weight: 400; }
.fore-track { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--font-mono); color: var(--faint); }
.fore-track i { width: 46px; height: 2px; background: var(--k-fore); opacity: .5; }

/* 검토 */
.review-prose { font-family: var(--font-serif); font-size: 15px; line-height: 2; color: var(--ink); }
.hl { padding: 1px 2px; border-radius: 3px; border-bottom: 2px solid; }
.hl.canon { background: var(--del-soft); border-color: var(--del); }
.hl.voice { background: var(--warn-soft); border-color: var(--warn); }
.hl.tell { background: var(--k-fore-soft); border-color: var(--k-fore); }
.notes { display: grid; gap: 8px; margin-top: 16px; }
.note-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--elevated); border: 1px solid var(--app-border-subtle); }
.note-item .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; height: fit-content; white-space: nowrap; }
.note-item p { font-size: 13px; color: var(--text); }
.note-item p small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.t-canon { background: var(--del-soft); color: var(--del); }
.t-voice { background: var(--warn-soft); color: var(--warn); }
.t-tell { background: var(--k-fore-soft); color: var(--k-fore); }

/* 이력 */
.history { list-style: none; margin: 0; padding: 0; position: relative; }
.history::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--app-border-subtle); }
.history li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.history .knot { width: 16px; height: 16px; border-radius: 50%; background: var(--elevated); border: 2px solid var(--app-border); z-index: 1; }
.history li.on .knot { border-color: var(--app-accent); background: var(--app-accent); box-shadow: 0 0 0 4px var(--app-accent-soft); }
.history b { color: var(--ink); font-size: 13.5px; }
.history small { display: block; color: var(--faint); font-size: 12px; }
.history li.on { background: linear-gradient(90deg, transparent 0 24px, var(--app-accent-soft) 24px); border-radius: 8px; padding-right: 10px; }
.peek { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--app-border); font-family: var(--font-serif); font-size: 13.5px; line-height: 1.85; color: var(--ink); background: var(--elevated); }
.peek small { display: block; font-family: var(--font-ui); color: var(--faint); font-size: 11.5px; margin-bottom: 4px; font-weight: 700; }

/* 에이전트 */
.chat { display: grid; gap: 12px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; }
.msg.me { justify-self: end; background: var(--app-accent); color: #fff; border-bottom-right-radius: 4px; }
:root[data-theme="dark"] .msg.me { color: #0e1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg.me { color: #0e1626; } }
.msg.bot { background: var(--elevated); border: 1px solid var(--app-border-subtle); border-bottom-left-radius: 4px; color: var(--text); }
.msg.bot .who { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); font-size: 12.5px; margin-bottom: 4px; }
.avatar { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); }
:root[data-theme="dark"] .avatar { color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { color: var(--brand-ink); } }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tools span { font: 11.5px/1.4 var(--font-mono); padding: 2px 8px; border-radius: 6px; background: var(--app-canvas); color: var(--muted); }
.specialists { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.specialists span { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--app-border); color: var(--text); }
.proposal-mini { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--app-border); background: var(--paper); }
.proposal-mini b { font-size: 12.5px; color: var(--ink); }
.proposal-mini ul { margin: 6px 0 10px; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.conn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--app-border-subtle); align-items: center; font-size: 12px; color: var(--faint); }
.conn span { padding: 3px 10px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--app-border-subtle); color: var(--text); }

/* ---------- 원칙 ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.principle { padding: 30px 30px 28px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.principle .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.principle .ico svg { width: 22px; height: 22px; }
.principle h3 { font-family: var(--font-serif); font-size: 22px; margin-top: 18px; }
.principle p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.formats span { font: 700 13px/1 var(--font-mono); padding: 9px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--text); }

/* ---------- 마지막 CTA ---------- */
.final { padding: 120px 0; text-align: center; }
.final img { width: 88px; height: 88px; margin: 0 auto; }
.final h2 { font-family: var(--font-serif); font-size: clamp(30px, 4.6vw, 48px); margin-top: 26px; letter-spacing: -.015em; }
.final p { margin-top: 16px; color: var(--muted); font-size: 18px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--faint); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot .brand { font-size: 16px; }
.foot .brand img { width: 24px; height: 24px; }
.foot nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- 나타나기 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .win-body { grid-template-columns: 190px minmax(0, 1fr); }
  .info { display: none; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 56px 0; }
  .feature.flip .feat-copy { order: 0; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-head, .map-row { grid-template-columns: minmax(0, .8fr) 32px minmax(0, 1fr); padding: 0 20px; }
  .map-head .feat-h, .map-row .chips { display: none; }
}
@media (max-width: 720px) {
  .win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tree { display: none; }
  .doc { padding: 20px 18px 22px; }
  .win-crumb span { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 120px 0 190px; min-height: 0; }
  .hero-tag span { display: block; margin: 2px 0 0; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .stage-wrap { margin-top: -140px; }
  section.block { padding: 80px 0; }
  .nav-right .btn-sm span { display: none; }
  .flow, .principles { grid-template-columns: minmax(0, 1fr); }
  .map-head, .map-row { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1.2fr); padding: 0 14px; gap: 0 8px; }
  .map-row .ide { font-size: 13px; }
  .map-row .awe { font-size: 16px; }
  .cmp { grid-template-columns: minmax(0, 1fr); }
  .cmp > div + div { border-left: 0; border-top: 1px solid var(--app-border-subtle); }
  .card { padding: 16px; }
  .principle { padding: 24px 22px; }
  .btn { padding: 13px 18px; }
}
