/* 꿈틀 사이트 — 차분한 흰 바탕, 가는 선, 브랜드 청록(45)은 포인트에만 */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f5f1;
  --surface: #ffffff;
  --line: #e3e8e2;
  --line-strong: #cfd8d0;
  --text: #13201c;
  --text-2: #56655f;
  --text-3: #8d9a94;
  /* 45 브랜드 깊은 숲(앱 기본 테마와 같은 값) — 꿀·살구는 캐릭터·축하 자리에만 */
  --brand: #12715e;
  --brand-ink: #12715e;
  --brand-soft: #dcefe9;
  --brand-deep: #0a4337;
  --brand-leaf: #8ee6a6;
  --honey: #f2b84b;
  --apricot: #f08a5d;
  --mark: #fff3bf;
  --mark-ink: #6b5200;
  --shadow: 0 1px 2px rgba(14, 40, 34, .04), 0 8px 28px rgba(14, 40, 34, .07);
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a100e; --bg-soft: #101614; --surface: #141b18; --line: #202925; --line-strong: #2e3934;
    --text: #ecf4f0; --text-2: #a0b0a9; --text-3: #6b7c75; --brand: #3cc4a2; --brand-ink: #6ee0c2;
    --brand-soft: #1a342d; --brand-leaf: #b3ee8f; --mark: #4a3d0a; --mark-ink: #ffe28a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a100e; --bg-soft: #101614; --surface: #141b18; --line: #202925; --line-strong: #2e3934;
  --text: #ecf4f0; --text-2: #a0b0a9; --text-3: #6b7c75; --brand: #3cc4a2; --brand-ink: #6ee0c2;
  --brand-soft: #1a342d; --brand-leaf: #b3ee8f; --mark: #4a3d0a; --mark-ink: #ffe28a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* 언어: html[data-lang]에 맞는 쪽만 보인다 */
html[data-lang="ko"] [data-l="en"], html[data-lang="en"] [data-l="ko"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font);
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 520px) { .wrap { padding-inline: 18px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.ph { background: var(--mark); color: var(--mark-ink); padding: 0 .3em; border-radius: 4px; font-style: normal; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, 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; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .wm { display: block; height: 24px; width: auto; margin-top: -2px; }
.brand .wm-en { height: 17px; margin-top: 2px; }
.foot .brand .wm { height: 20px; }
.foot .brand .wm-en { height: 14px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--text-2); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.tbtn { height: 34px; min-width: 34px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 9px; font: 600 13px var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.tbtn:hover { color: var(--text); border-color: var(--line-strong); }
.tbtn svg { width: 17px; height: 17px; }
.tbtn .sun { display: none; }
:root[data-theme-resolved="dark"] .tbtn .sun { display: block; }
:root[data-theme-resolved="dark"] .tbtn .moon { display: none; }
@media (max-width: 760px) { .nav { display: none; } }

/* 제목·섹션 공통 */
h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.18; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.25; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.015em; margin: 0 0 8px; }
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.soft { background: var(--bg-soft); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 700; color: var(--brand-ink); margin-bottom: 8px; }
.sec-head p { color: var(--text-2); margin: 0; font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 16px; height: 16px; border-radius: 5px; border: 1.6px solid var(--brand); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.42em + 3px); width: 5px; height: 8px; border: solid var(--brand); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }

/* 스크롤에 맞춰 살짝(자바스크립트가 있을 때만 숨겨 둔다) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* 히어로 */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; max-width: 1240px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-2); max-width: 520px; margin: 0 0 28px; }
.dl { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; }
.dl-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: not-allowed; font: 600 15px var(--font); text-align: left; }
.dl-btn svg { width: 22px; height: 22px; flex: none; color: var(--text-2); }
.dl-btn small { display: block; font-size: 11.5px; font-weight: 600; color: var(--brand-ink); line-height: 1.2; }
.dl-btn span { line-height: 1.25; }
.dl-note { margin-top: 14px; font-size: 13.5px; color: var(--text-3); }
/* 받을 수 있는 버튼(Mac·Windows). 내 컴퓨터에 맞는 것은 app.js가 is-primary + 맨 앞으로 */
.dl-btn.is-live { cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.dl-btn.is-live:hover { border-color: var(--brand); text-decoration: none; }
.dl-btn.is-live:active { transform: translateY(1px); }
.dl-btn.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.dl-btn.is-primary svg, .dl-btn.is-primary small { color: rgba(255,255,255,.88); }
.dl-btn.is-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
:root[data-theme-resolved="dark"] .dl-btn.is-primary { color: #032119; }
:root[data-theme-resolved="dark"] .dl-btn.is-primary svg, :root[data-theme-resolved="dark"] .dl-btn.is-primary small { color: rgba(3,33,25,.75); }
:root[data-theme-resolved="dark"] .dl-btn.is-primary:hover { background: var(--brand-ink); }

/* 설치 방법 */
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .install { grid-template-columns: 1fr; } }
.install-card { transition: border-color .3s, box-shadow .3s; }
.install-card.is-here { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.install-card h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 12px; }
.install-card h3 svg { width: 22px; height: 22px; color: var(--brand); }
.steps { margin: 0; padding-left: 1.3em; color: var(--text-2); font-size: 15px; }
.steps li { margin-bottom: 8px; padding-left: 2px; }
.steps b { color: var(--text); font-weight: 650; }
.install-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-3); }
.install-files { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.install-files a::before { content: "↓ "; }
@media (max-width: 980px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .dl { justify-content: center; }
}

/* 해 볼 것 */
.tries { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 0; margin: 16px 0 0; font-size: 13.5px; color: var(--text-3); }
.tries li { position: relative; padding-left: 14px; }
.tries li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .7; }

/* 실제 앱 화면 */
.proof { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; margin-top: 72px; }
#tasks .proof { margin-top: 0; }
.proof-k { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--text-3); letter-spacing: .02em; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 14px; }
.proof-h { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 800; }
.proof-shot { margin: 0; min-width: 0; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; } }

/* macOS 창 틀 — 스크린샷은 틀 없이 1600×1000(16:10), 틀은 CSS로 */
.win { --win-bar: #ececee; --win-line: rgba(0,0,0,.09); position: relative; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(16,24,20,.05), 0 22px 48px -12px rgba(16,24,20,.22); }
:root[data-theme-resolved="dark"] .win { --win-bar: #2c2c2e; --win-line: rgba(0,0,0,.5); background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 2px 6px rgba(0,0,0,.3), 0 22px 48px -12px rgba(0,0,0,.6); }
.win-bar { position: relative; height: 30px; display: flex; gap: 8px; align-items: center; padding: 0 12px; background: var(--win-bar); border-bottom: 1px solid var(--win-line); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.win-badge { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; }
.win > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .win { border-radius: 10px; } .win-bar { height: 26px; gap: 6px; padding: 0 10px; } .win-bar i { width: 9px; height: 9px; } .win-title { display: none; } }
.demo-wrap { max-width: 1080px; margin: 0 auto; }
.nojs { padding: 40px 20px; text-align: center; color: var(--text-3); margin: 0; }

/* ───────── 체험 창: 앱 색(앱 기본 테마는 파랑 강조) ───────── */
.app-win {
  --a-bg: #ffffff; --a-side: #f8f8f8; --a-line: #f0f0f1; --a-line2: #e6e6e8; --a-hover: #f5f5f5; --a-input: #f6f6f7;
  --a-text: #191919; --a-text2: #7d7d7d; --a-text3: #a3a4a7; --a-accent: #12715e; --a-accent-soft: #dcefe9;
  --a-red: #d9343a; --a-sat: #3d74e0; --a-orange: #efab3e; --a-pop: #ffffff;
  --l-gray: #9a9a9e; --l-blue: #6f8ff5; --l-purple: #a083ea; --l-orange: #f0a44b; --l-green: #46b37a;
  color: var(--a-text); font-size: 14px; line-height: 1.45; text-align: left;
}
:root[data-theme-resolved="dark"] .app-win {
  --a-bg: #1c1c1e; --a-side: #222224; --a-line: #2a2a2d; --a-line2: #353538; --a-hover: #28282b; --a-input: #262628;
  --a-text: #ececee; --a-text2: #9d9da3; --a-text3: #77777d; --a-accent: #19856b; --a-accent-soft: rgba(60,196,162,.15);
  --a-red: #f0676b; --a-sat: #7aa2ff; --a-pop: #2a2a2d;
}
.demo { position: relative; background: var(--a-bg); }
.app-win button { font: inherit; color: inherit; }
.ico { display: inline-flex; width: 14px; height: 14px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.tl::-webkit-scrollbar, .pc-msgs::-webkit-scrollbar { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.check { width: 15px; height: 15px; flex: none; border-radius: 4px; border: 1.5px solid var(--l-gray); background: transparent; padding: 0; cursor: pointer; position: relative; transition: background .15s, border-color .15s; }
.check::before { content: ""; position: absolute; inset: -9px; } /* 누르는 자리를 넉넉하게 */
.check.pr3 { border-color: #c53c31; } .check.pr2 { border-color: var(--a-orange); } .check.pr1 { border-color: var(--a-accent); }
.check[aria-checked="true"], .is-done .check { background: var(--a-text3); border-color: var(--a-text3); }
.check[aria-checked="true"]::after, .is-done .check::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.app-toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 28px); background: #2b2d30; color: #fff; font-size: 13px; padding: 8px 12px 8px 14px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.app-toast span { overflow: hidden; text-overflow: ellipsis; }
.app-toast button { flex: none; border: 0; background: none; color: #9fb6ff; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.app-toast.in { animation: toastIn .22s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.xp-pop { position: absolute; z-index: 8; pointer-events: none; font-weight: 800; font-size: 13px; color: var(--brand-ink); transform: translate(-50%, 0); animation: xpUp 1.1s ease-out forwards; white-space: nowrap; text-shadow: 0 1px 0 var(--a-bg); }
.xp-pop.heart { color: #e8798f; font-size: 20px; }
@keyframes xpUp { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, -6px) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -38px) scale(1); } }
.hop { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 30% { transform: translateY(-7px) scale(1.06); } 60% { transform: translateY(0) scale(.97, 1.03); } }

/* ── 1. 빠른 추가 ── */
.demo-hero { display: grid; grid-template-columns: 172px minmax(0, 1fr); height: 470px; }
.app-side { background: var(--a-side); border-right: 1px solid var(--a-line); display: flex; flex-direction: column; padding: 10px 8px; min-width: 0; }
.side-lists { flex: 1; }
.si { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 7px; font-size: 13px; color: var(--a-text); }
.si small { color: var(--a-text3); font-size: 11.5px; }
.si.on { background: var(--a-line2); font-weight: 600; }
:root[data-theme-resolved="dark"] .si.on { background: var(--a-hover); }
.si-h { font-size: 11px; color: var(--a-text3); padding: 12px 10px 4px; font-weight: 600; }
.side-me { display: flex; align-items: center; gap: 8px; padding: 8px 6px 4px; border-top: 1px solid var(--a-line); }
.side-char { width: 34px; height: 34px; flex: none; }
.side-me-t { min-width: 0; flex: 1; display: grid; }
.side-me-t b { font-size: 12px; } .side-me-t small { font-size: 10.5px; color: var(--a-text3); }
.xpbar { display: block; height: 4px; border-radius: 4px; background: var(--a-line2); overflow: hidden; margin-top: 3px; }
.xpbar i { display: block; height: 100%; background: var(--a-accent); border-radius: inherit; transition: width .4s ease; }
.app-main { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 18px 0; overflow: hidden; }
.app-head h3 { font-size: 18px; margin: 0 0 10px; letter-spacing: -.01em; }
.addbar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 9px; background: var(--a-input); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.addbar:focus-within { border-color: var(--a-accent); background: var(--a-bg); }
.add-plus { color: var(--a-text3); }
.add-field { position: relative; flex: 1; min-width: 0; height: 100%; }
.add-input, .add-hl { font: 400 14.5px/40px var(--font); letter-spacing: 0; }
.add-input { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: var(--a-text); }
.add-input::placeholder { color: var(--a-text3); }
.add-hl { position: absolute; inset: 0; overflow: hidden; white-space: pre; color: transparent; pointer-events: none; }
.add-hl > span { display: block; }
.add-hl mark { color: transparent; background: color-mix(in srgb, var(--a-accent) 24%, transparent); border-radius: 3px; }
.add-send { flex: none; width: 30px; height: 30px; border-radius: 7px; border: 0; background: var(--a-accent); color: #fff !important; display: grid; place-items: center; cursor: pointer; }
.add-send .ico, .add-send svg { width: 16px; height: 16px; }
.recog { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; padding: 7px 2px 0; font-size: 12px; }
.recog-l { color: var(--a-text3); margin-right: 2px; }
.rc { display: inline-flex; align-items: center; gap: 4px; color: var(--a-accent); background: var(--a-accent-soft); border-radius: 6px; padding: 2px 7px; font-weight: 600; animation: chipIn .2s ease-out; }
.rc .ico { width: 12px; height: 12px; }
.rc.muted { color: var(--a-text2); background: var(--a-hover); font-weight: 500; }
.rc.pr3 { color: #c53c31; background: color-mix(in srgb, #c53c31 12%, transparent); }
.rc.pr2 { color: #b9790f; background: color-mix(in srgb, var(--a-orange) 18%, transparent); }
.recog-enter { margin-left: auto; color: var(--a-text3); font-size: 11.5px; }
@keyframes chipIn { from { opacity: 0; transform: translateY(3px) scale(.96); } }
.ex-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0 6px; border-bottom: 1px solid var(--a-line); }
.ex-l { font-size: 11.5px; color: var(--a-text3); margin-right: 2px; }
.ex { border: 1px dashed var(--a-line2); background: var(--a-bg); border-radius: 999px; padding: 3px 10px; font-size: 12px !important; color: var(--a-text2) !important; cursor: pointer; transition: border-color .15s, color .15s; }
.ex:hover { border-color: var(--a-accent); color: var(--a-accent) !important; }
.tl { flex: 1; overflow-x: hidden; overflow-y: auto; padding: 4px 0 64px; scrollbar-width: none; }
.grp-h { display: flex; gap: 6px; align-items: baseline; font-size: 12px; font-weight: 700; padding: 10px 2px 4px; }
.grp-h small { color: var(--a-text3); font-weight: 500; }
.grp.done .r-title { color: var(--a-text3); }
.row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px; margin: 0 -8px; border-radius: 7px; border-bottom: 1px solid var(--a-line); }
.row:hover { background: var(--a-hover); }
.r-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; transition: color .2s; }
.row.is-done .r-title { color: var(--a-text3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--a-text3) 60%, transparent); }
.meta { display: flex; align-items: center; gap: 6px; flex: none; font-size: 11.5px; color: var(--a-text2); }
.chip { display: inline-flex; align-items: center; gap: 3px; background: var(--a-hover); border: 1px solid var(--a-line2); color: var(--a-text2); border-radius: 5px; padding: 0 6px; line-height: 18px; font-size: 11px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.red { background: color-mix(in srgb, var(--a-red) 14%, transparent); border-color: transparent; color: var(--a-red); }
.chip.proj { background: color-mix(in srgb, var(--l-purple) 16%, transparent); border-color: transparent; color: color-mix(in srgb, var(--l-purple) 70%, var(--a-text)); }
.chip.ai { animation: aiIn .5s cubic-bezier(.3,1.5,.5,1); }
.chip .ico { width: 10px; height: 10px; color: var(--l-purple); }
@keyframes aiIn { from { opacity: 0; transform: scale(.6); } }
.sorting { display: inline-flex; align-items: center; gap: 4px; color: var(--l-purple); font-weight: 600; animation: pulse 1s ease-in-out infinite; }
.sorting .ico { width: 11px; height: 11px; }
@keyframes pulse { 50% { opacity: .45; } }
.m-list { white-space: nowrap; }
.m-list.pop { animation: aiIn .45s cubic-bezier(.3,1.5,.5,1); }
.m-date { color: var(--a-accent); white-space: nowrap; }
.m-date.late { color: var(--a-red); }
.m-rep { color: var(--a-text3); display: inline-flex; }
.m-rep .ico { width: 12px; height: 12px; }
.row.is-new { animation: rowIn .35s ease-out; }
.row.is-new, .row.ai-flash { background: var(--a-accent-soft); transition: background 1.6s ease .3s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 760px) {
  .demo-hero { grid-template-columns: 1fr; height: 520px; }
  .app-side { order: 2; flex-direction: row; border-right: 0; border-top: 1px solid var(--a-line); padding: 6px 12px; }
  .side-lists { display: none; }
  .side-me { border: 0; padding: 2px 0; width: 100%; }
  .side-me-t { grid-template-columns: auto auto 1fr; align-items: center; column-gap: 8px; }
  .side-me-t .xpbar { margin: 0; }
  .app-main { padding: 12px 12px 0; }
  .meta .chip:not(.ai):not(.proj), .meta .m-rep { display: none; }
  .meta .chip { max-width: 92px; }
  .recog-enter { display: none; }
}
@media (max-width: 440px) { .meta .chip.proj:not(.ai) { display: none; } .meta .m-list { display: none; } }

/* ── 2. 성장 ── */
.demo-growth { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; }
.gl { padding: 18px; border-right: 1px solid var(--a-line); min-width: 0; }
.gscene { position: relative; height: 330px; border-radius: 14px; overflow: hidden; background: #dff1fb; }
:root[data-theme-resolved="dark"] .gscene { background: #1d2b36; }
.gsky, .gsky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gsky .sun { fill: #ffe9a6; } .gsky .hill2 { fill: #cfe8b9; } .gsky .hill1 { fill: #b6dc9c; }
:root[data-theme-resolved="dark"] .gsky .sun { fill: #f2e3b0; opacity: .5; }
:root[data-theme-resolved="dark"] .gsky .hill2 { fill: #2c4a35; }
:root[data-theme-resolved="dark"] .gsky .hill1 { fill: #345a3e; }
.gscene.flash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 62%, rgba(255,255,255,.75), transparent 60%); animation: fade 1s ease-out forwards; pointer-events: none; }
@keyframes fade { to { opacity: 0; } }
.gcard { position: absolute; left: 14px; top: 14px; z-index: 2; width: min(250px, calc(100% - 28px)); background: color-mix(in srgb, var(--a-bg) 94%, transparent); border-radius: 12px; padding: 12px 14px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.gcard.lvup { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
.gcard-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.gcard-top > div { display: grid; min-width: 0; }
.lvwrap { position: relative; width: 40px; height: 40px; flex: none; }
.lvring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.lvring circle { fill: none; stroke-width: 3.5; }
.lvring .trk { stroke: var(--a-line2); }
.lvring .val { stroke: var(--a-accent); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .5s ease; }
.lvnum { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; }
.gname { font-size: 15px; } .gsub { font-size: 11.5px; color: var(--a-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbar { display: block; height: 6px; border-radius: 6px; background: var(--a-line2); overflow: hidden; }
.gbar i { display: block; height: 100%; width: 0; background: var(--a-accent); border-radius: inherit; transition: width .5s ease; }
.gbar-t { display: block; margin-top: 4px; font-size: 11px; color: var(--a-text2); }
.ghint { position: absolute; right: 14px; top: 18px; z-index: 2; font-size: 12px; font-weight: 600; color: #2d5a3f; background: rgba(255,255,255,.8); padding: 4px 10px; border-radius: 999px; animation: nudge 1.6s ease-in-out infinite; }
:root[data-theme-resolved="dark"] .ghint { color: #cfe8d8; background: rgba(0,0,0,.35); }
@keyframes nudge { 50% { transform: translateX(4px); } }
.gshadow { position: absolute; left: 50%; bottom: 30px; width: 120px; height: 18px; margin-left: -60px; border-radius: 50%; background: rgba(0,0,0,.08); }
.gchar { position: absolute; left: 50%; bottom: 26px; width: 180px; height: 180px; margin-left: -90px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; z-index: 1; }
.gchar img { width: 100%; height: 100%; transition: transform .2s; }
.gchar:hover img { transform: translateY(-3px); }
.gchar.is-egg img { animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 84% { transform: rotate(5deg); } 92% { transform: rotate(-3deg); } }
.gchar.pet { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
.gchar.evolve { animation: evolve .9s cubic-bezier(.3,1.4,.5,1); }
@keyframes evolve { 0% { transform: scale(.6); filter: brightness(2.2) saturate(0); } 45% { transform: scale(1.14); filter: brightness(1.3); } 100% { transform: none; filter: none; } }
.gbanner { position: absolute; left: 50%; top: 42%; z-index: 3; transform: translate(-50%, -50%); background: var(--a-bg); color: var(--a-text); font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.14); opacity: 0; pointer-events: none; white-space: nowrap; }
.gbanner.show { animation: banner 2s ease forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.9); } 12%, 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%); } }
.burst { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
.confetti { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; animation: conf 1.2s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes conf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(var(--rot)); opacity: 0; } }
.gtrack { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 14px 0 0; padding: 12px 6px; border: 1px solid var(--a-line); border-radius: 12px; position: relative; }
.gtrack li { display: grid; justify-items: center; text-align: center; gap: 1px; position: relative; }
.gtrack li + li::before { content: ""; position: absolute; top: 20px; right: calc(50% + 26px); width: calc(100% - 48px); height: 2px; background: var(--a-line2); border-radius: 2px; }
.gtrack li.got + li.got::before { background: var(--a-accent); }
.gtrack img { width: 40px; height: 40px; border-radius: 50%; background: var(--a-hover); filter: grayscale(1) opacity(.45); transition: filter .4s; }
.gtrack li.got img { filter: none; }
.gtrack li.now img { box-shadow: 0 0 0 2px var(--a-accent); }
.gtrack b { font-size: 12px; } .gtrack small { font-size: 10.5px; color: var(--a-text3); }
.gtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gtabs button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--a-line2); background: var(--a-bg); border-radius: 999px; padding: 3px 12px 3px 4px; font-size: 12.5px !important; cursor: pointer; color: var(--a-text2) !important; }
.gtabs button img { width: 24px; height: 24px; }
.gtabs button.on { border-color: var(--a-accent); background: var(--a-accent-soft); color: var(--a-accent) !important; font-weight: 700; }
.gdesc { margin: 8px 2px 0; font-size: 12.5px; color: var(--a-text2); }
.gr { position: relative; padding: 18px 18px 14px; min-width: 0; display: flex; flex-direction: column; }
.gr-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.gr-title { font-size: 15px; }
.linkbtn { border: 0; background: none; color: var(--a-text2) !important; font-size: 12.5px !important; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.linkbtn:hover { background: var(--a-hover); color: var(--a-text) !important; }
.glist-h { font-size: 12px; font-weight: 700; color: var(--a-text2); padding: 12px 0 4px; }
.grow { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px; margin: 0 -8px; border-radius: 7px; border-bottom: 1px solid var(--a-line); cursor: pointer; }
.grow:hover { background: var(--a-hover); }
.grow.is-done .r-title { color: var(--a-text3); text-decoration: line-through; }
.gxp { font-size: 12px; font-weight: 700; color: var(--a-text3); }
.grow:not(.is-done) .gxp { color: var(--brand-ink); }
.gnote { margin: auto 0 0; padding-top: 14px; font-size: 11.5px; color: var(--a-text3); }
@media (max-width: 860px) {
  .demo-growth { grid-template-columns: 1fr; }
  .gl { border-right: 0; border-bottom: 1px solid var(--a-line); padding: 12px; }
  .gscene { height: 290px; }
  .gchar { width: 150px; height: 150px; margin-left: -75px; }
  .gr { padding: 12px 14px 14px; }
  .ghint { top: auto; bottom: 10px; right: 10px; }
}
@media (max-width: 440px) { .gtrack b { font-size: 11px; } .gtrack img { width: 34px; height: 34px; } .gtrack li + li::before { top: 17px; right: calc(50% + 21px); width: calc(100% - 40px); } }

/* ── 3. 작업 지도 ── */
.demo-map { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 460px; }
.mb { padding: 18px 20px 16px; min-width: 0; }
.mb-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mb-head b { font-size: 17px; }
.mb-head .due { font-size: 12px; color: var(--a-text2); animation: chipIn .25s ease-out; }
.mb-prog { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--a-text2); margin: 4px 0 16px; }
.pbar { flex: 1; max-width: 280px; height: 4px; border-radius: 4px; background: var(--a-line2); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--a-accent); transition: width .4s ease; }
.mb-area { position: relative; }
.mb-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--a-text3); }
.mb-arrows path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.mb-arrows path.done { color: var(--a-accent); stroke: var(--a-accent); }
.mb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 30px 30px; position: relative; }
.mc { position: relative; z-index: 1; min-height: 104px; background: var(--a-bg); border: 1px solid var(--a-line2); border-radius: 11px; padding: 9px 10px 10px; cursor: grab; user-select: none; -webkit-user-select: none; display: flex; flex-direction: column; gap: 5px; transition: box-shadow .15s, border-color .15s; }
.mc:hover { border-color: color-mix(in srgb, var(--a-accent) 45%, var(--a-line2)); }
.mc.cur { border: 1.6px solid var(--a-accent); box-shadow: 0 0 0 3px var(--a-accent-soft); }
.mc.done .mc-t { color: var(--a-text3); text-decoration: line-through; }
.mc.dragging { z-index: 5; cursor: grabbing; box-shadow: 0 14px 30px rgba(0,0,0,.18); transition: none; }
.mc.settle { transition: transform .2s ease; }
.mc.grabbed { outline: 2px dashed var(--a-accent); outline-offset: 3px; }
.mc.is-new { animation: stepIn .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.mc-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--a-text2); }
.mc-check { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--a-text3); background: none; padding: 0; cursor: pointer; position: relative; flex: none; }
.mc-check::before { content: ""; position: absolute; inset: -8px; }
.mc-check[aria-checked="true"] { background: var(--a-accent); border-color: var(--a-accent); }
.mc-check[aria-checked="true"]::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.mc-now { color: var(--a-accent); font-weight: 700; }
.mc-now::before { content: "· "; }
.mc-grip { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; color: var(--a-text3); border-radius: 5px; touch-action: none; }
.mc-grip svg { width: 14px; height: 14px; }
.mc:hover .mc-grip { color: var(--a-text2); }
.mc-t { font-size: 13.5px; font-weight: 600; line-height: 1.35; flex: 1; }
.mc-d { font-size: 11.5px; color: var(--a-text3); }
.mc-d.has { color: var(--a-accent); }
.mb-tips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.mb-tips span { font-size: 11px; color: var(--a-text2); background: var(--a-hover); padding: 2px 8px; border-radius: 5px; }
.pc { display: flex; flex-direction: column; border-left: 1px solid var(--a-line); background: var(--a-bg); min-width: 0; max-height: 560px; }
.pc-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--a-line); }
.pc-head div { display: grid; } .pc-head b { font-size: 13.5px; } .pc-head small { font-size: 11px; color: var(--a-text3); }
.pc-msgs { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 8px; overflow-x: hidden; scrollbar-width: none; min-height: 220px; }
.msg { display: flex; gap: 6px; align-items: flex-end; animation: chipIn .25s ease-out; }
.msg img { width: 26px; height: 26px; flex: none; }
.msg .bubble { max-width: 86%; font-size: 13px; padding: 7px 11px; border-radius: 14px; background: var(--a-hover); border: 1px solid var(--a-line); }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { background: var(--a-accent-soft); border-color: transparent; }
.msg.typing .bubble { display: inline-flex; gap: 3px; padding: 10px 12px; }
.msg.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--a-text3); animation: pulse 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 14px; min-height: 52px; border-top: 1px solid var(--a-line); align-content: flex-start; }
.pchip { border: 1px solid color-mix(in srgb, var(--a-accent) 40%, transparent); background: var(--a-accent-soft); color: var(--a-accent) !important; border-radius: 999px; padding: 4px 11px; font-size: 12.5px !important; font-weight: 600; cursor: pointer; animation: chipIn .2s ease-out; }
.pchip:hover { background: color-mix(in srgb, var(--a-accent) 20%, transparent); }
.pchip.skip { background: none; border-color: var(--a-line2); color: var(--a-text2) !important; font-weight: 500; }
@media (max-width: 860px) {
  .demo-map { grid-template-columns: 1fr; }
  .pc { border-left: 0; border-top: 1px solid var(--a-line); max-height: none; }
  .pc-msgs { max-height: 260px; min-height: 160px; }
  .mb { padding: 14px; }
  .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 26px; }
}

/* ── 4. 캘린더 ── */
.demo-cal { padding: 12px 14px 14px; user-select: none; -webkit-user-select: none; }
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-head h3 { font-size: 18px; margin: 0 auto 0 4px; }
.seg { display: inline-flex; background: var(--a-hover); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: none; padding: 4px 11px; border-radius: 6px; font-size: 12.5px !important; color: var(--a-text2) !important; cursor: pointer; }
.seg button.on { background: var(--a-bg); color: var(--a-text) !important; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cal-nav { display: inline-flex; border: 1px solid var(--a-line2); border-radius: 8px; overflow: hidden; }
.nb { border: 0; background: var(--a-bg); height: 28px; min-width: 28px; display: grid; place-items: center; cursor: pointer; color: var(--a-text2) !important; padding: 0 6px; }
.nb + .nb { border-left: 1px solid var(--a-line2); }
.nb svg { width: 15px; height: 15px; }
.nb.txt { font-size: 12.5px !important; padding: 0 10px; }
.nb:hover { background: var(--a-hover); }
.cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 11.5px; color: var(--a-text2); text-align: center; padding: 4px 0; }
.cal-wd .sun { color: var(--a-red); } .cal-wd .sat { color: var(--a-sat); }
.cal-grid { border-top: 1px solid var(--a-line); border-left: 1px solid var(--a-line); }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cell { min-height: 92px; border-right: 1px solid var(--a-line); border-bottom: 1px solid var(--a-line); padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: background .12s; }
.cell.other { background: color-mix(in srgb, var(--a-hover) 55%, transparent); }
.cell.other .dn { color: var(--a-text3); }
.ch { display: flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 2px; }
.dn { font-size: 12.5px; font-weight: 600; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.cell.red .dn { color: var(--a-red); } .cell.blue .dn { color: var(--a-sat); }
.cell.other.red .dn, .cell.other.blue .dn { opacity: .55; }
.cell.today .dn { background: var(--a-accent); color: #fff !important; opacity: 1; }
.hol { margin-left: auto; font-size: 10.5px; color: var(--a-red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cell.drop { background: var(--a-accent-soft); box-shadow: inset 0 0 0 1.5px var(--a-accent); }
.bar { --lc: var(--l-gray); position: relative; display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 5px; border-radius: 4px; font-size: 11.5px; background: color-mix(in srgb, var(--lc) 30%, var(--a-bg)); color: var(--a-text); cursor: grab; touch-action: none; min-width: 0; }
.bar.event { background: color-mix(in srgb, var(--lc) 62%, var(--a-bg)); }
:root[data-theme-resolved="dark"] .bar { background: color-mix(in srgb, var(--lc) 34%, var(--a-bg)); }
:root[data-theme-resolved="dark"] .bar.event { background: color-mix(in srgb, var(--lc) 55%, var(--a-bg)); }
.bar.c-blue { --lc: var(--l-blue); } .bar.c-purple { --lc: var(--l-purple); } .bar.c-orange { --lc: var(--l-orange); } .bar.c-green { --lc: var(--l-green); }
.bar:hover { filter: brightness(.97); }
.bar.done { opacity: .5; } .bar.done .bt { text-decoration: line-through; }
.bar.lifted { opacity: .3; }
.bar.flash { animation: barIn .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes barIn { from { transform: scale(.85); opacity: .4; } }
.bar.ghost { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.2); opacity: .95; }
.bcheck { width: 11px; height: 11px; flex: none; border-radius: 3px; border: 1.3px solid color-mix(in srgb, var(--lc) 80%, var(--a-text)); background: color-mix(in srgb, var(--a-bg) 60%, transparent); cursor: pointer; position: relative; }
.bcheck::before { content: ""; position: absolute; inset: -5px; }
.bar.done .bcheck { background: color-mix(in srgb, var(--lc) 80%, var(--a-text)); }
.bt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btime { flex: none; font-size: 10.5px; color: color-mix(in srgb, var(--a-text) 60%, transparent); }
.more { font-size: 11px; color: var(--a-text2); padding-left: 4px; }
.demo-cal.is-dragging, .demo-cal.is-dragging * { cursor: grabbing !important; }
@media (max-width: 860px) { .btime { display: none; } }
@media (max-width: 640px) {
  .demo-cal { padding: 10px 8px 10px; }
  .cal-head h3 { font-size: 16px; width: 100%; margin: 0 0 2px 2px; }
  .cell { min-height: 74px; padding: 2px 2px 4px; }
  .hol { display: none; }
  .bar { height: 18px; font-size: 10px; padding: 0 3px; gap: 2px; border-radius: 3px; }
  .bcheck { display: none; }
  .dn { font-size: 11.5px; width: 20px; height: 20px; }
}

/* 더 있어요 */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card svg.ic { width: 26px; height: 26px; color: var(--brand); margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 4px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* 개인정보 약속 */
.promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .promise { grid-template-columns: 1fr; } }
.promise .card { display: flex; gap: 16px; }
.promise .card svg.ic { flex: none; margin: 2px 0 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border: solid var(--text-3); border-width: 0 1.8px 1.8px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--text-2); }
.faq .a p { margin: 0 0 8px; }

/* 꼬리 */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--text-3); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { color: var(--text-2); }
.foot .brand { font-size: 16px; margin-bottom: 6px; }
.foot .brand img { width: 24px; height: 24px; }

/* 문서(법률·지원) */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 24px 88px; }
@media (max-width: 520px) { .doc { padding-inline: 18px; } }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.draft { border: 1px solid var(--line-strong); background: var(--bg-soft); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; color: var(--text-2); margin-bottom: 28px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 20px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; padding-top: 4px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc blockquote { margin: 18px 0; padding: 10px 16px; border-left: 3px solid var(--brand); background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--text-2); }
.doc blockquote p { margin: 4px 0; color: inherit; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); padding: 1px 5px; border-radius: 5px; }
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.table table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 520px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-soft); font-weight: 650; }
.table tr:last-child td { border-bottom: 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.doc-links a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--text-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border-radius: 10px; padding: 10px 18px; font-weight: 650; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.more-link { text-align: center; margin-top: 28px; }
.doc.nf { text-align: center; padding-top: 96px; }
.doc.nf img { margin: 0 auto 12px; }
:root[data-theme-resolved="dark"] .btn { color: #032119; }
