/* GeroDocument 소개 · 사용 가이드 · 정책 페이지 전용 스타일
   base.css 의 토큰과 컴포넌트(.btn, .badge, .card, .brand …) 위에 얹는다.
   여기서 새로 만드는 변수는 모두 --site-* 접두사를 쓴다. */

:root {
  --site-gutter: clamp(16px, 4.2vw, 40px);
  --site-nav-h: 64px;
  --site-section-y: clamp(72px, 9vw, 128px);
  --site-radius-xl: clamp(20px, 2.4vw, 28px);
  --site-stage-bg: url("/assets/img/site/hero-bg-1600.webp");
  --site-ink: #0f172a;
  --site-mock-canvas: #eef2f7;
  --site-mock-page: #ffffff;
  --site-surface-2: #f8fafc;
  --site-hwp-band: linear-gradient(160deg, #effaf9 0%, #eef4ff 60%, #f3f1ff 100%);
  --site-illu-frame: #f8fbfe;
}
:root[data-theme="dark"] {
  --site-stage-bg: url("/assets/img/site/hero-bg-dark-1600.webp");
  --site-mock-canvas: #0b1220;
  --site-mock-page: #162238;
  --site-surface-2: #111a2b;
  --site-hwp-band: linear-gradient(160deg, #0c1b24 0%, #0e1730 60%, #141433 100%);
  --site-illu-frame: #0d1424;
}
@media (max-width: 760px) {
  :root { --site-stage-bg: url("/assets/img/site/hero-bg-960.webp"); }
  :root[data-theme="dark"] { --site-stage-bg: url("/assets/img/site/hero-bg-dark-960.webp"); }
}
@media (min-width: 1500px), (min-width: 1000px) and (min-resolution: 2dppx) {
  :root { --site-stage-bg: url("/assets/img/site/hero-bg-2400.webp"); }
  :root[data-theme="dark"] { --site-stage-bg: url("/assets/img/site/hero-bg-dark-2400.webp"); }
}

html { scroll-padding-top: calc(var(--site-nav-h) + 20px); }
body.site { font-size: 16px; overflow-x: clip; background: var(--bg); }
body.site main { display: block; }

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--site-gutter));
  margin-inline: auto;
  padding-left: max(var(--site-gutter), var(--safe-left));
  padding-right: max(var(--site-gutter), var(--safe-right));
}
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.btn .i { width: 18px; height: 18px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: var(--r-sm); background: var(--fg); color: var(--bg); font-weight: 700; transition: top var(--dur) var(--ease); }
.skip-link:focus { top: calc(10px + var(--safe-top)); }

/* 공통 버튼 보강 */
.btn-outline { --btn-bg: var(--bg-elev); --btn-bd: var(--border-strong); }
.btn-outline:hover { background: var(--bg-hover); border-color: var(--fg-4); }
.btn-lg { min-height: 52px; }
.btn-arrow .i { transition: transform var(--dur) var(--ease); }
.btn-arrow:hover .i { transform: translateX(3px); }

/* ───────── 상단 내비게이션 ───────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .35); }
.nav-inner { height: var(--site-nav-h); display: flex; align-items: center; gap: 28px; }
.nav-inner .brand { flex: none; min-height: 40px; }
.nav-links { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  border-radius: var(--r-sm); font-size: 15px; font-weight: 600; color: var(--fg-2); white-space: nowrap;
  transition: color var(--dur), background var(--dur);
}
.nav-links a:hover { color: var(--fg); background: var(--bg-hover); }
.nav-links a.is-active, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a.is-active::after, .nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand-gradient);
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-actions .btn-dark { padding: 0 18px; }
.nav-burger { display: none; }
.theme-toggle .i { width: 20px; height: 20px; }

.nav-drawer {
  position: fixed; left: 0; right: 0; top: calc(var(--site-nav-h) + var(--safe-top)); z-index: 99;
  max-height: calc(100dvh - var(--site-nav-h) - var(--safe-top));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 8px max(var(--site-gutter), var(--safe-left)) calc(20px + var(--safe-bottom)) max(var(--site-gutter), var(--safe-right));
  animation: drawer-in .2s var(--ease);
}
.nav-drawer a.nav-drawer-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px;
  border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 650; color: var(--fg);
}
.nav-drawer a.nav-drawer-link .i { color: var(--fg-4); width: 18px; height: 18px; }
.nav-drawer a.nav-drawer-link[aria-current="page"] { color: var(--accent); }
.nav-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; }
.nav-drawer-actions .btn { height: 48px; }
.nav-scrim { position: fixed; inset: 0; z-index: 98; background: var(--bg-overlay); animation: fade-in .16s ease; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.nav-open { overflow: hidden; }

@media (max-width: 1180px) {
  .nav-inner { gap: 16px; }
  .nav-links a { padding: 0 9px; font-size: 14.5px; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 420px) {
  .nav-actions .nav-login { display: none; }
  .nav-inner .brand { font-size: 18px; }
}

/* ───────── 섹션 공통 ───────── */
.section { padding-block: var(--site-section-y); position: relative; }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: var(--bg-app); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 14px; font-weight: 750; letter-spacing: .02em; color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand-gradient); }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand-gradient); }
.h2 {
  margin: 0; font-size: clamp(28px, 3.9vw, 46px); line-height: 1.22; letter-spacing: -.035em; font-weight: 820; color: var(--fg);
  text-wrap: balance;
}
.lead { margin: 16px 0 0; font-size: clamp(16px, 1.45vw, 18.5px); line-height: 1.7; color: var(--fg-2); text-wrap: pretty; }
.h3 { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -.02em; font-weight: 760; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--k, var(--accent)) 14%, transparent);
}
.check-list li::after {
  content: ""; position: absolute; left: 6.5px; top: 6.5px; width: 7px; height: 4px;
  border-left: 2px solid var(--k, var(--accent)); border-bottom: 2px solid var(--k, var(--accent)); transform: rotate(-45deg);
}

/* 스크롤 등장 효과 (site.js 가 html.reveal-on 을 붙였을 때만 — 스크립트가 없으면 그대로 보인다) */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}

/* ───────── 히어로 ───────── */
.hero { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700;
}
.hero-badge .pill-dot { color: var(--brand-mid); width: 8px; height: 8px; }
.hero-title {
  margin: 22px 0 0; font-weight: 860; letter-spacing: -.045em; line-height: 1.13;
  font-size: clamp(34px, 9.4vw, 92px); color: var(--fg);
}
.hero-title span { display: block; }
.hero-title .text-gradient { padding-bottom: .06em; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.hero-lead { margin: 0; max-width: 600px; font-size: clamp(16.5px, 1.6vw, 20px); line-height: 1.75; color: var(--fg-2); text-wrap: pretty; }
.hero-lead strong { color: var(--fg); font-weight: 700; }
.hero-cta { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: min(100%, 470px); }
.hero-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta-buttons .btn { flex: 1 1 auto; }
.hero-cta-buttons .btn-brand { flex-grow: 1.4; }
.hero-callout {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--accent-2-soft); color: var(--fg-2); font-size: 14.5px; line-height: 1.5;
  transition: background var(--dur), transform var(--dur) var(--ease);
}
.hero-callout:hover { background: color-mix(in srgb, var(--accent-2) 15%, transparent); }
.hero-callout img { width: 28px; height: 28px; flex: none; }
.hero-callout b { color: var(--fg); font-weight: 700; }
.hero-callout .i { margin-left: auto; color: var(--fg-3); width: 18px; height: 18px; }
.hero-guide-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  font-size: 15px; font-weight: 650; color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--border-strong);
  text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.hero-guide-link:hover { color: var(--fg); text-decoration-color: currentColor; }
.hero-guide-link .i { width: 18px; height: 18px; }
.signup-closed-note { font-size: 13.5px; color: var(--fg-3); margin: -4px 0 0; }

@media (max-width: 900px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-cta { width: 100%; max-width: 560px; }
}
@media (max-width: 480px) {
  .hero-cta-buttons .btn-brand { flex-basis: 100%; }
  .hero-cta-buttons .btn { height: 50px; padding: 0 16px; }
}

/* 히어로 무대 (앱 화면 모형) */
.hero-stage {
  position: relative; margin: clamp(36px, 5vw, 64px) 0 0;
  border-radius: var(--site-radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--site-stage-bg) center / cover no-repeat, var(--bg-app);
  padding: clamp(48px, 6vw, 84px) clamp(16px, 4vw, 56px) clamp(56px, 6vw, 84px);
  isolation: isolate;
}
.hero-stage::after { /* 아래쪽 은은한 그림자 */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg-app) 60%, transparent), transparent);
}
.stage-inner { position: relative; max-width: 1080px; margin-inline: auto; }

.mock-win {
  background: var(--bg-elev); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .4) inset;
  overflow: hidden; color: var(--fg); font-size: 12px; line-height: 1.4; text-align: left;
}
:root[data-theme="dark"] .mock-win { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .04) inset; }

/* 편집기 창 */
.mock-editor { position: relative; width: min(100%, 820px); margin-left: auto; z-index: 1; }
.mw-titlebar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.mw-dots { display: flex; gap: 6px; flex: none; }
.mw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #fda4a4; }
.mw-dots i:nth-child(2) { background: #fcd38a; }
.mw-dots i:nth-child(3) { background: #86e0a8; }
.mw-doc { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: 6px; }
.mw-doc img { width: 20px; height: 20px; flex: none; }
.mw-doc b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-saved { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.mw-saved .i { width: 13px; height: 13px; stroke-width: 2.4; }
.mw-spacer { flex: 1; }
.avatars { display: flex; flex: none; }
.avatars i {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-left: -7px;
  background: var(--c, #64748b); color: #fff; font-style: normal; font-size: 11px; font-weight: 700;
  border: 2px solid var(--bg-elev);
}
.avatars i:first-child { margin-left: 0; }
.mw-share { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 7px; background: var(--primary); color: #fff; font-weight: 650; font-size: 12px; flex: none; }
.mw-share .i { width: 14px; height: 14px; }
.mw-tabs { display: flex; gap: 2px; padding: 0 10px; height: 34px; align-items: stretch; border-bottom: 1px solid var(--border); background: var(--bg-elev); overflow: hidden; }
.mw-tabs span { display: flex; align-items: center; padding: 0 11px; font-size: 12.5px; color: var(--fg-3); font-weight: 550; white-space: nowrap; position: relative; }
.mw-tabs span.on { color: var(--primary); font-weight: 700; }
.mw-tabs span.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary); }
.mw-ribbon { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--site-surface-2); overflow: hidden; }
.rb-group { display: flex; align-items: center; gap: 2px; flex: none; }
.rb-sep { width: 1px; height: 28px; background: var(--border); margin: 0 6px; flex: none; }
.rb-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--fg-2); }
.rb-btn .i { width: 16px; height: 16px; stroke-width: 2; }
.rb-btn.on { background: var(--primary-soft); color: var(--primary); }
.rb-select { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-elev); font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.rb-select .i { width: 12px; height: 12px; color: var(--fg-4); }
.rb-color { display: grid; place-items: center; width: 28px; height: 28px; font-weight: 800; font-size: 14px; color: var(--fg-2); position: relative; }
.rb-color::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 5px; height: 3px; border-radius: 2px; background: #e5484d; }
.rb-styles { display: flex; gap: 6px; }
.rb-style { display: flex; flex-direction: column; justify-content: center; width: 64px; height: 38px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-elev); font-size: 11px; color: var(--fg-3); }
.rb-style b { font-size: 12.5px; color: var(--fg); font-weight: 600; }
.rb-style.h b { font-weight: 800; color: var(--primary); }
.rb-style.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }

.mw-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; background: var(--site-mock-canvas); }
.mw-canvas { padding: 22px 0 0 28px; min-width: 0; overflow: hidden; height: 300px; }
.mw-page {
  background: var(--site-mock-page); border-radius: 4px 4px 0 0; box-shadow: 0 1px 3px rgba(15, 23, 42, .1), 0 10px 30px -18px rgba(15, 23, 42, .35);
  padding: 30px 34px 0; height: 100%; color: var(--fg); font-family: var(--font-sans);
}
.pg-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 2px; }
.pg-meta { font-size: 11px; color: var(--fg-3); margin: 0 0 14px; }
.pg-h { font-size: 13px; font-weight: 750; margin: 0 0 6px; color: var(--fg); }
.pg-p { font-size: 11.5px; line-height: 1.75; color: var(--fg-2); margin: 0 0 12px; }
.pg-p mark { background: color-mix(in srgb, #f5a524 30%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.pg-ins { color: #0f7a5a; text-decoration: underline; text-decoration-color: #16a34a; text-underline-offset: 2px; }
.pg-del { color: #c2410c; text-decoration: line-through; }
.caret { position: relative; display: inline-block; width: 2px; height: 1.25em; vertical-align: text-bottom; background: var(--c); margin: 0 1px; }
.caret b {
  position: absolute; left: -1px; bottom: 100%; transform: translateY(-1px); white-space: nowrap;
  padding: 1px 6px; border-radius: 4px 4px 4px 0; background: var(--c); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.5;
}
.pg-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 2px; }
.pg-table th, .pg-table td { border: 1px solid var(--border); padding: 5px 8px; text-align: left; white-space: nowrap; }
.pg-table th { background: color-mix(in srgb, var(--kind-word) 9%, transparent); font-weight: 700; color: var(--fg); }
.pg-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.mw-side { border-left: 1px solid var(--border); background: var(--bg-elev); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mw-side-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--fg); }
.mw-side-h small { font-weight: 600; color: var(--fg-3); font-size: 11px; }
.cmt { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--bg-elev); }
.cmt.active { border-color: color-mix(in srgb, #f5a524 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, #f5a524 14%, transparent); }
.cmt-who { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-weight: 700; font-size: 11.5px; }
.cmt-who i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 10px; }
.cmt-who small { font-weight: 500; color: var(--fg-4); margin-left: auto; font-size: 10.5px; }
.cmt p { margin: 0; font-size: 11.5px; color: var(--fg-2); line-height: 1.55; }
.cmt p em { font-style: normal; color: var(--primary); font-weight: 650; }
.cmt-reply { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fg-3); }
.cmt-reply .i { width: 13px; height: 13px; }
.mw-status { display: flex; gap: 16px; align-items: center; height: 26px; padding: 0 14px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--fg-3); background: var(--bg-elev); white-space: nowrap; overflow: hidden; }
.mw-status .grow { flex: 1; }

/* 파일 목록 창 */
.mock-files { position: absolute; left: 0; top: 56px; width: 300px; z-index: 2; }
.mf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px; }
.mf-head b { font-size: 14px; font-weight: 750; }
.mf-new { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--brand-gradient); color: #fff; font-weight: 650; font-size: 11.5px; white-space: nowrap; }
.mf-new .i { width: 13px; height: 13px; stroke-width: 2.4; }
.mf-search { display: flex; align-items: center; gap: 6px; margin: 0 14px 8px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--bg-sunken); color: var(--fg-4); font-size: 12px; }
.mf-search .i { width: 14px; height: 14px; }
.mf-list { list-style: none; margin: 0; padding: 4px 8px 8px; }
.mf-list li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; }
.mf-list li.on { background: var(--primary-soft); }
.mf-list img { width: 28px; height: 28px; flex: none; }
.mf-list span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mf-list span b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-list span small { font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-list .i { width: 15px; height: 15px; color: var(--fg-4); }
.mf-list .i.starred { color: var(--brand-amber); fill: var(--brand-amber); }
.mf-quota { padding: 10px 14px 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--fg-3); }
.mf-quota-bar { height: 6px; border-radius: 99px; background: var(--bg-sunken); margin: 6px 0 0; overflow: hidden; }
.mf-quota-bar i { display: block; height: 100%; width: 24%; border-radius: inherit; background: var(--brand-gradient); }

/* 떠 있는 카드 */
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); font-size: 12.5px; line-height: 1.4; white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}
.float-card .fc-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--accent-soft); color: var(--accent); }
.float-card .fc-ico img { width: 26px; height: 26px; }
.float-card .fc-ico .i { width: 18px; height: 18px; }
.float-card b { display: block; font-weight: 700; color: var(--fg); font-size: 13px; }
.float-card small { color: var(--fg-3); font-size: 11.5px; }
.fc-collab { top: -50px; right: -18px; }
.fc-hwp { bottom: -26px; left: 30%; animation-delay: -2.5s; }
.fc-push { top: -30px; left: -6px; animation-delay: -4.5s; }
.fc-push .fc-ico { background: var(--accent-2-soft); color: var(--accent-2); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 5px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); vertical-align: 1px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

@media (max-width: 1100px) {
  .mock-editor { width: calc(100% - 150px); }
  .mock-files { width: 270px; }
  .mw-body { grid-template-columns: minmax(0, 1fr) 190px; }
  .rb-styles .rb-style:nth-child(3) { display: none; }
  .fc-push { display: none; }
}
@media (max-width: 900px) {
  .mock-editor { width: 100%; margin-inline: auto; }
  .mock-files { position: relative; top: auto; left: auto; width: min(320px, 78%); margin: -110px 0 0 -6px; }
  .fc-hwp { bottom: 22px; left: auto; right: 0; }
  .fc-collab { right: 12px; }
  .mw-body { grid-template-columns: minmax(0, 1fr) 180px; }
  .rb-styles { display: none; }
}
@media (max-width: 640px) {
  .hero-stage { padding: 44px 12px 20px; }
  .mw-titlebar { height: 40px; padding: 0 10px; gap: 8px; }
  .mw-saved, .mw-dots { display: none; }
  .mw-doc { margin-left: 0; }
  .mw-body { grid-template-columns: minmax(0, 1fr); }
  .mw-side { display: none; }
  .mw-canvas { height: 230px; padding: 14px 0 0 14px; }
  .mw-page { padding: 20px 20px 0; }
  .mw-tabs span:nth-child(n+6) { display: none; }
  .rb-hide-sm { display: none; }
  .hero-stage { padding-top: 60px; }
  .mw-canvas { height: 250px; }
  .mock-files { width: 86%; margin-top: -56px; }
  .mf-list li:nth-child(n+4) { display: none; }
  .fc-collab { top: -46px; right: 2px; }
  .fc-hwp { right: -2px; bottom: 34px; }
  .mw-status span:nth-child(n+3) { display: none; }
}
@media (max-width: 400px) {
  .fc-hwp { display: none; }
  .mock-files { width: 92%; }
  .avatars i:nth-child(3) { display: none; }
}

/* 형식 띠 */
.format-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 10px; margin: 0; padding: 0; list-style: none; }
.format-strip-label { width: 100%; text-align: center; margin: 0 0 18px; font-size: 14.5px; color: var(--fg-3); font-weight: 600; }
.fmt {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-full);
  font-size: 13.5px; font-weight: 750; letter-spacing: .02em; font-family: var(--font-sans);
  color: var(--k); background: color-mix(in srgb, var(--k) 10%, transparent); border: 1px solid color-mix(in srgb, var(--k) 18%, transparent);
}
:root[data-theme="dark"] .fmt { color: color-mix(in srgb, var(--k) 70%, #fff); }
.k-word { --k: var(--kind-word); } .k-cell { --k: var(--kind-cell); } .k-slide { --k: var(--kind-slide); }
.k-hwp { --k: var(--kind-hwp); } .k-pdf { --k: var(--kind-pdf); } .k-brand { --k: var(--brand-mid); }

/* ───────── 앱 카드 ───────── */
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 18px 18px 24px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--k) 30%, var(--border)); }
.app-card-head { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.app-card-head img { width: 44px; height: 44px; flex: none; }
.app-card-head .h3 { font-size: 19px; }
.app-formats { margin: 2px 0 0; font-size: 12.5px; font-weight: 650; color: var(--k); letter-spacing: .02em; }
:root[data-theme="dark"] .app-formats { color: color-mix(in srgb, var(--k) 70%, #fff); }
.app-card > p { margin: 0; padding: 0 4px; font-size: 15px; color: var(--fg-2); line-height: 1.65; }
.app-card .check-list { padding: 0 4px; }
.app-card .check-list li { font-size: 14.5px; }
.app-vis {
  height: 150px; border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, color-mix(in srgb, var(--k) 12%, var(--bg-elev)), color-mix(in srgb, var(--k) 4%, var(--bg-elev)));
  border: 1px solid color-mix(in srgb, var(--k) 12%, var(--border));
}
.app-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 36px; align-items: center; padding: 18px 28px 18px 18px; }
.app-card.wide .app-vis { height: 100%; min-height: 220px; grid-row: 1 / span 3; }
.app-card.wide .check-list { grid-template-columns: 1fr 1fr; column-gap: 20px; }
@media (max-width: 1180px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .app-card.wide { grid-template-columns: minmax(0, 1fr); padding: 18px 18px 24px; }
  .app-card.wide .app-vis { grid-row: auto; min-height: 150px; height: 150px; }
}
@media (max-width: 620px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-card.wide .check-list { grid-template-columns: minmax(0, 1fr); }
}

/* 앱 카드 미니 일러스트 (CSS) */
.v-page { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 62%; height: 150px; background: var(--site-mock-page); border-radius: 6px; box-shadow: var(--shadow-md); padding: 14px 14px; }
.v-line { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 12%, transparent); margin-bottom: 7px; }
.v-line.t { height: 9px; width: 55%; background: var(--k); opacity: .85; margin-bottom: 11px; }
.v-line.w80 { width: 80%; } .v-line.w60 { width: 60%; } .v-line.w90 { width: 90%; } .v-line.w45 { width: 45%; }
.v-line.ins { background: color-mix(in srgb, #16a34a 55%, transparent); width: 50%; }
.v-line.del { background: color-mix(in srgb, #ea580c 40%, transparent); width: 40%; position: relative; }
.v-line.del::after { content: ""; position: absolute; left: -2px; right: -2px; top: 2.5px; height: 1.5px; background: #c2410c; }
.v-flag { position: absolute; right: -10px; top: 46px; display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; background: #f5a524; color: #3b2600; font-size: 10px; font-weight: 750; box-shadow: var(--shadow-sm); }
.v-sheet { position: absolute; left: 16px; right: 16px; top: 18px; bottom: -6px; background: var(--site-mock-page); border-radius: 6px 6px 0 0; box-shadow: var(--shadow-md); overflow: hidden; }
.v-fx { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-bottom: 1px solid var(--border); font: 600 10px/1 var(--font-mono); color: var(--fg-3); }
.v-fx b { color: var(--k); font-style: italic; font-family: serif; }
.v-grid { display: grid; grid-template-columns: 16px repeat(4, 1fr); }
.v-grid i { height: 17px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font: 600 9px/17px var(--font-sans); font-style: normal; color: var(--fg-3); text-align: right; padding-right: 4px; overflow: hidden; white-space: nowrap; }
.v-grid i.hd { background: var(--bg-sunken); text-align: center; padding: 0; }
.v-grid i.sel { outline: 2px solid var(--k); outline-offset: -2px; background: color-mix(in srgb, var(--k) 10%, transparent); color: var(--fg); }
.v-bars { position: absolute; right: 26px; bottom: 16px; display: flex; align-items: flex-end; gap: 5px; height: 54px; padding: 8px 10px; background: var(--bg-elev); border-radius: 8px; box-shadow: var(--shadow-md); }
.v-bars i { width: 9px; border-radius: 3px 3px 0 0; background: var(--k); }
.v-bars i:nth-child(2n) { background: color-mix(in srgb, var(--k) 45%, transparent); }
.v-slides { position: absolute; left: 14px; top: 16px; bottom: 16px; width: 54px; display: flex; flex-direction: column; gap: 6px; }
.v-slides i { flex: 1; border-radius: 4px; background: var(--site-mock-page); box-shadow: var(--shadow-xs); border: 1.5px solid transparent; }
.v-slides i.on { border-color: var(--k); }
.v-slide { position: absolute; left: 82px; right: 16px; top: 16px; bottom: 16px; background: var(--site-mock-page); border-radius: 6px; box-shadow: var(--shadow-md); padding: 14px; overflow: hidden; }
.v-slide .v-line.t { width: 64%; }
.v-shape { position: absolute; right: 14px; bottom: 12px; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--k) 80%, #fff); opacity: .9; }
.v-shape.sq { right: 52px; bottom: 18px; width: 40px; height: 30px; border-radius: 6px; background: color-mix(in srgb, var(--kind-word) 70%, #fff); opacity: .75; }
.v-motion { position: absolute; right: 70px; bottom: 44px; width: 40px; height: 22px; border-top: 2px dashed var(--k); border-radius: 50% 50% 0 0; opacity: .7; }
.v-hwp-tag { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 5px; z-index: 1; }
.v-hwp-tag span { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--bg-elev); box-shadow: var(--shadow-sm); font-size: 10.5px; font-weight: 700; color: var(--fg-2); white-space: nowrap; }
.v-hwp-tag span b { color: var(--k); margin-right: 4px; }
.app-card .v-page.hwp { left: auto; right: 14px; transform: none; width: 50%; }
.v-pdf { display: flex; gap: 18px; align-items: center; justify-content: center; height: 100%; padding: 20px; }
.v-pdf .v-page { position: relative; left: auto; top: auto; transform: none; width: 46%; max-width: 220px; height: auto; min-height: 170px; }
.v-hl { background: color-mix(in srgb, #fde047 55%, transparent) !important; }
.v-field { height: 20px; border: 1.5px solid color-mix(in srgb, var(--k) 50%, transparent); border-radius: 4px; margin: 8px 0; background: color-mix(in srgb, var(--k) 5%, transparent); }
.v-sign { height: 26px; margin-top: 10px; border-bottom: 1.5px solid var(--fg-4); position: relative; }
.v-sign::after { content: ""; position: absolute; left: 8px; bottom: 4px; width: 60px; height: 16px; border: 2px solid var(--kind-word); border-color: var(--kind-word) transparent transparent transparent; border-radius: 50% 50% 0 0; transform: rotate(-8deg); }
.v-note { position: absolute; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: #fef3c7; color: #713f12; font-size: 10.5px; font-weight: 650; box-shadow: var(--shadow-md); white-space: nowrap; }
.v-pdf .v-note { right: 8%; top: 22%; }

/* ───────── 문서 관리 ───────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 22px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--border);
}
.feature-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature-ico .i { width: 22px; height: 22px; }
.feature:nth-child(4n+2) .feature-ico { background: var(--primary-soft); color: var(--primary); }
.feature:nth-child(4n+3) .feature-ico { background: var(--accent-2-soft); color: var(--accent-2); }
.feature:nth-child(4n+4) .feature-ico { background: var(--warning-soft); color: var(--warning); }
.feature h3 { margin: 0 0 6px; font-size: 17px; font-weight: 750; letter-spacing: -.015em; }
.feature p { margin: 0; font-size: 14.5px; color: var(--fg-3); line-height: 1.6; }
@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } .feature { padding: 18px; display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; } .feature-ico { margin: 0; grid-row: span 2; } }

.templates { margin-top: 28px; padding: 22px; border-radius: var(--r-xl); border: 1px dashed var(--border-strong); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.templates-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--fg); margin-right: 6px; }
.templates-label .i { color: var(--accent); }
.tpl-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tpl-list li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--fg-2); }
.tpl-list li i { width: 18px; height: 22px; border-radius: 3px; background: var(--bg-sunken); position: relative; flex: none; border: 1px solid var(--border); }
.tpl-list li i::before { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 2px; border-radius: 1px; background: var(--k, var(--accent)); box-shadow: 0 4px 0 color-mix(in srgb, var(--fg) 18%, transparent), 0 8px 0 color-mix(in srgb, var(--fg) 18%, transparent); }

/* ───────── 호환 형식 표 ───────── */
.compat-wrap { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: var(--bg-elev); box-shadow: var(--shadow-xs); }
.compat { width: 100%; border-collapse: collapse; font-size: 15px; }
.compat caption { text-align: left; }
.compat th, .compat td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.compat thead th { background: var(--bg-app); font-size: 13.5px; font-weight: 700; color: var(--fg-3); white-space: nowrap; }
.compat tbody tr:last-child > * { border-bottom: 0; }
.compat tbody th { font-weight: 700; color: var(--fg); }
.compat thead th:first-child { width: 27%; }
.compat .fmt-cell { display: flex; align-items: center; gap: 12px; }
.compat .fmt-cell img { width: 32px; height: 32px; flex: none; }
.compat .fmt-cell small { display: block; font-weight: 600; font-size: 12.5px; color: var(--fg-3); letter-spacing: .01em; }
.compat .note { font-size: 13.5px; color: var(--fg-3); line-height: 1.55; min-width: 220px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.st::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.st-yes { color: var(--success); } .st-yes::before { background: var(--success); }
.st-conv { color: var(--primary); } .st-conv::before { background: transparent; border: 2.5px solid var(--primary); width: 9px; height: 9px; }
.st-part { color: var(--warning); } .st-part::before { width: 9px; height: 9px; border: 2.5px solid var(--warning); background: linear-gradient(90deg, var(--warning) 50%, transparent 50%); }
.st-no { color: var(--fg-3); } .st-no::before { background: var(--border-strong); }
.compat-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 4px 0; font-size: 14px; color: var(--fg-3); }
.compat-legend .st { font-weight: 600; }
.compat-foot { margin: 14px 4px 0; font-size: 14px; color: var(--fg-3); line-height: 1.7; }
.compat-foot strong { color: var(--fg-2); }
@media (max-width: 860px) {
  .compat thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compat, .compat tbody, .compat tr, .compat th, .compat td { display: block; width: 100%; }
  .compat tr { padding: 16px 18px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
  .compat tbody tr:last-child { border-bottom: 0; }
  .compat th, .compat td { padding: 0; border: 0; }
  .compat tbody th { grid-column: 1 / -1; padding-bottom: 4px; }
  .compat td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--fg-4); margin-bottom: 3px; }
  .compat td.note { grid-column: 1 / -1; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-app); }
  .compat td.note::before { display: none !important; }
}
@media (max-width: 380px) {
  .compat tr { grid-template-columns: 1fr 1fr; }
}

/* ───────── 협업 ───────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split.reverse > :first-child { order: 0; } }
.point-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 20px; }
.point-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.point-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.point-ico .i { width: 22px; height: 22px; }
.point-list li:nth-child(2n) .point-ico { background: var(--primary-soft); color: var(--primary); }
.point-list h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 750; letter-spacing: -.015em; }
.point-list p { margin: 0; font-size: 15px; color: var(--fg-3); line-height: 1.6; }

.collab-stage { position: relative; padding: clamp(20px, 3vw, 36px); border-radius: var(--site-radius-xl); background: var(--brand-gradient-soft), var(--bg-app); border: 1px solid var(--border); display: grid; gap: 16px; }
.mock-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); padding: 18px; font-size: 13.5px; }
.mock-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mock-card-h b { font-size: 15px; font-weight: 750; }
.mock-card-h small { color: var(--fg-3); font-size: 12.5px; }
.share-input { display: flex; gap: 8px; margin-bottom: 14px; }
.share-input span { flex: 1; min-width: 0; display: flex; align-items: center; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--fg-4); font-size: 13px; white-space: nowrap; overflow: hidden; }
.share-input em { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 9px; background: var(--primary); color: #fff; font-style: normal; font-weight: 650; font-size: 13px; flex: none; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.people li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.people .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.people .who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.people .who b { font-size: 13.5px; font-weight: 650; }
.people .who small { font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--fg-2); white-space: nowrap; flex: none; }
.role .i { width: 13px; height: 13px; color: var(--fg-4); }
.role.owner { border-color: transparent; color: var(--fg-3); }
.link-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.link-row .lr-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.link-row .lr-ico .i { width: 16px; height: 16px; }
.link-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-row .who b { font-size: 13.5px; font-weight: 650; }
.link-row .who small { font-size: 12px; color: var(--fg-3); }
.mini-switch { width: 36px; height: 22px; border-radius: 99px; background: var(--primary); position: relative; flex: none; }
.mini-switch::after { content: ""; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.collab-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.versions { list-style: none; margin: 0; padding: 0; position: relative; }
.versions li { position: relative; display: flex; gap: 10px; padding: 0 0 12px 20px; }
.versions li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.versions li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 1px; background: var(--border); }
.versions li:last-child { padding-bottom: 0; }
.versions li:last-child::after { display: none; }
.versions li.cur::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.versions .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.versions b { font-size: 13px; font-weight: 650; }
.versions small { font-size: 11.5px; color: var(--fg-3); }
.versions em { font-style: normal; align-self: center; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--border); font-size: 11.5px; font-weight: 650; color: var(--fg-2); white-space: nowrap; }
.versions em .i { width: 12px; height: 12px; }
.notif { display: flex; gap: 10px; align-items: flex-start; }
.notif + .notif { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.notif .n-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-2-soft); color: var(--accent-2); flex: none; }
.notif .n-ico .i { width: 16px; height: 16px; }
.notif p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--fg-2); }
.notif p b { color: var(--fg); }
.notif small { display: block; font-size: 11px; color: var(--fg-4); margin-top: 2px; }
@media (max-width: 560px) { .collab-row { grid-template-columns: minmax(0, 1fr); } }

/* ───────── 한글 ───────── */
.hwp-band { background: var(--site-hwp-band); border-block: 1px solid var(--border); overflow: hidden; }
.hwp-flow { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
.hwp-flow li { position: relative; padding: 18px 18px 20px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--bg-elev) 88%, transparent); border: 1px solid var(--border); counter-increment: flow; }
.hwp-flow li::before { content: counter(flow, decimal-leading-zero); display: block; font-size: 13px; font-weight: 800; color: var(--kind-hwp); letter-spacing: .04em; margin-bottom: 8px; }
.hwp-flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; z-index: 1;
  border-top: 2px solid var(--fg-4); border-right: 2px solid var(--fg-4); transform: translateY(-50%) rotate(45deg);
}
.hwp-flow b { display: block; font-size: 16.5px; font-weight: 750; margin-bottom: 4px; }
.hwp-flow p { margin: 0; font-size: 14px; color: var(--fg-3); line-height: 1.6; }
@media (max-width: 640px) {
  .hwp-flow { grid-template-columns: minmax(0, 1fr); }
  .hwp-flow li:not(:last-child)::after { right: auto; left: 32px; top: auto; bottom: -11px; transform: rotate(135deg); }
}
.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--warning-soft); color: var(--fg-2); font-size: 14.5px; line-height: 1.65;
}
.notice .i { color: var(--warning); margin-top: 2px; }
.notice b { color: var(--fg); }
.notice.info { background: var(--info-soft); }
.notice.info .i { color: var(--info); }

.hwp-doc { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.hwp-sheet {
  position: relative; background: var(--site-mock-page); border-radius: 8px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); aspect-ratio: 210 / 297; overflow: hidden;
  /* 한글 기본 여백(위 20·머리말 15 / 좌우 30 / 아래 15·꼬리말 15 mm)을 비율로 표현 */
  padding: 17.5% 16.8% 14.3%;
  font-family: var(--font-sans); /* 새 한글 문서 기본 글꼴(프리텐다드) */
}
.hwp-sheet::before {
  content: ""; position: absolute; top: 6.7%; bottom: 5.05%; left: 14.3%; right: 14.3%;
  border: 1px dashed color-mix(in srgb, var(--kind-hwp) 50%, transparent); border-radius: 2px; pointer-events: none;
}
.hwp-a4 { position: absolute; top: 1.6%; right: 3.2%; font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; color: var(--kind-hwp); letter-spacing: .02em; }
.hwp-sheet h3 { position: relative; margin: 0 0 7%; font-size: clamp(14px, 1.6vw, 17px); text-align: center; font-weight: 800; letter-spacing: .02em; color: var(--fg); }
.hwp-sheet p { position: relative; margin: 0 0 5%; font-size: clamp(9.5px, 1vw, 11.5px); line-height: 1.6; color: var(--fg-2); }
.hwp-sheet .hwp-end { text-align: right; margin-top: 7%; }
.hwp-table { position: relative; width: 100%; border-collapse: collapse; margin: 0 0 5%; font-size: clamp(9px, .95vw, 11px); color: var(--fg-2); }
.hwp-table th, .hwp-table td { border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); padding: 3px 6px; text-align: center; }
.hwp-table th { background: color-mix(in srgb, var(--kind-hwp) 10%, transparent); color: var(--fg); font-weight: 700; }
.hwp-spec { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: 13px; white-space: nowrap; }
.hwp-spec small { display: block; color: var(--fg-3); font-size: 11.5px; line-height: 1.3; }
.hwp-spec b { font-size: 14px; font-weight: 750; line-height: 1.3; }
.hwp-spec .sw { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--kind-hwp) 14%, transparent); color: var(--kind-hwp); font-weight: 800; font-size: 13px; flex: none; }
.hwp-spec.s1 { left: -16%; top: 16%; }
.hwp-spec.s2 { right: -16%; top: 42%; }
.hwp-spec.s3 { left: -14%; bottom: 22%; }
.hwp-save { position: absolute; right: -6%; bottom: -16px; display: flex; gap: 6px; z-index: 1; }
.hwp-save span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; color: #fff; font-weight: 750; font-size: 13px; box-shadow: var(--shadow-md); background: var(--kind-hwp); white-space: nowrap; }
.hwp-save span + span { background: #0b7f99; }
@media (max-width: 1100px) {
  .hwp-spec.s1 { left: -6%; } .hwp-spec.s2 { right: -6%; } .hwp-spec.s3 { left: -4%; }
}
@media (max-width: 560px) {
  .hwp-doc { max-width: 320px; }
  .hwp-spec { padding: 7px 10px 7px 8px; gap: 8px; }
  .hwp-spec b { font-size: 13px; } .hwp-spec small { font-size: 11px; }
  .hwp-spec .sw { width: 26px; height: 26px; font-size: 12px; }
  .hwp-spec.s1 { left: -4%; } .hwp-spec.s2 { right: -4%; } .hwp-spec.s3 { left: -3%; }
  .hwp-save { right: -2%; }
  .hwp-save span { height: 32px; padding: 0 11px; font-size: 12px; }
}

/* ───────── 어디서나 ───────── */
.illu { position: relative; border-radius: var(--site-radius-xl); background: var(--site-illu-frame); border: 1px solid var(--border); overflow: hidden; }
.illu img { width: 100%; height: auto; }
.illu .dark-only { display: none; }
:root[data-theme="dark"] .illu .light-only { display: none; }
:root[data-theme="dark"] .illu .dark-only { display: block; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.platform { padding: 22px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.platform-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-sunken); color: var(--fg-2); }
.platform-ico .i { width: 22px; height: 22px; }
.platform h3 { margin: 4px 0 0; font-size: 17.5px; font-weight: 760; }
.platform p { margin: 0; font-size: 14.5px; color: var(--fg-3); line-height: 1.6; }
.platform .check-list li { font-size: 14px; }
@media (max-width: 1080px) { .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .platform-grid { grid-template-columns: minmax(0, 1fr); } }
.anywhere-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .anywhere-top { grid-template-columns: minmax(0, 1fr); } }

.openwith { margin-top: 20px; padding: clamp(20px, 3vw, 32px); border-radius: var(--site-radius-xl); background: var(--bg-elev); border: 1px solid var(--border); }
.openwith-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.openwith-head h3 { margin: 0; font-size: 20px; font-weight: 780; letter-spacing: -.02em; }
.openwith-head p { margin: 0; font-size: 14.5px; color: var(--fg-3); }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.steps-row li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); background: var(--bg-app); counter-increment: st; }
.steps-row li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-gradient); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.steps-row b { display: block; font-size: 15.5px; font-weight: 720; margin-bottom: 3px; }
.steps-row p { margin: 0; font-size: 14px; color: var(--fg-3); line-height: 1.6; }
@media (max-width: 860px) { .steps-row { grid-template-columns: minmax(0, 1fr); } }

/* ───────── 보안 ───────── */
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.sec-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--border); }
.sec-item .point-ico { width: 40px; height: 40px; border-radius: 11px; }
.sec-item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 740; }
.sec-item p { margin: 0; font-size: 14px; color: var(--fg-3); line-height: 1.6; }
.security-illu { max-width: 520px; margin-inline: auto; width: 100%; }
@media (max-width: 560px) { .security-grid { grid-template-columns: minmax(0, 1fr); } }

/* ───────── 다운로드 ───────── */
.dl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dl-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px; border-radius: var(--r-xl);
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-xs); min-width: 0;
}
.dl-card.is-mine { border-color: transparent; box-shadow: 0 0 0 2px var(--brand-mid), var(--shadow-md); }
.dl-mine-badge { position: absolute; top: -12px; left: 18px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--brand-gradient); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-head .platform-ico { width: 44px; height: 44px; }
.dl-head h3 { margin: 0; font-size: 17px; font-weight: 760; }
.dl-head small { display: block; font-size: 12.5px; color: var(--fg-3); }
.dl-desc { margin: 0; font-size: 14px; color: var(--fg-3); line-height: 1.6; min-height: calc(1.6em * 3); }
@media (max-width: 540px) { .dl-desc { min-height: 0; } }
.dl-files { display: grid; gap: 8px; }
.dl-file .btn { width: 100%; height: 44px; }
.dl-file .btn small { font-weight: 600; opacity: .8; font-size: 12px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; color: var(--fg-3); }
.dl-sha { margin-top: 4px; font-size: 12px; }
.dl-sha summary { cursor: pointer; color: var(--fg-3); list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }
.dl-sha summary::-webkit-details-marker { display: none; }
.dl-sha summary .i { width: 14px; height: 14px; transition: transform var(--dur); }
.dl-sha[open] summary .i { transform: rotate(180deg); }
.dl-sha code { display: block; margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--bg-sunken); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; word-break: break-all; color: var(--fg-2); }
.dl-sha button { margin-top: 6px; }
.dl-pending { margin: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: var(--bg-sunken); color: var(--fg-3); font-size: 14px; font-weight: 600; }
.dl-pending .i { width: 16px; height: 16px; }
.dl-help { margin: 8px 0 0; font-size: 13px; color: var(--fg-3); line-height: 1.6; }
.dl-help[hidden] { display: none; }
.pwa-help { margin-top: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-app); font-size: 13.5px; color: var(--fg-2); line-height: 1.6; }
.pwa-help ol { margin: 6px 0 0; padding-left: 20px; }
.pwa-help p { margin: 0 0 6px; }
.pwa-help-foot { margin: 8px 0 0 !important; color: var(--fg-3); }
.pwa-help .i { width: 15px; height: 15px; vertical-align: -2px; }
.dl-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.dl-notes .notice { margin: 0; }
@media (max-width: 1240px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dl-notes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } .dl-card.is-mine { order: -1; margin-top: 6px; } }

/* ───────── FAQ ───────── */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--site-nav-h) + 32px); }
.faq-aside .btn { margin-top: 24px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-aside { position: static; } }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 4px; font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -.01em;
  border-radius: var(--r-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .i { width: 20px; height: 20px; color: var(--fg-3); transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq-body { padding: 0 4px 22px; font-size: 15.5px; line-height: 1.75; color: var(--fg-2); }
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.faq-body ul { margin: 0 0 10px; padding-left: 20px; }

/* ───────── CTA 띠 ───────── */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--site-radius-xl); color: #fff; isolation: isolate;
  /* 흰 글자 대비 4.5:1 이상이 되도록 브랜드 그라디언트를 한 단계 진하게 */
  background: linear-gradient(135deg, #0a7a76 0%, #2163d6 62%, #3450e8 100%); padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .22), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(5, 30, 80, .28), transparent 60%);
}
.cta-band h2 { margin: 0; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.25; letter-spacing: -.035em; font-weight: 820; text-wrap: balance; }
.cta-band p { margin: 12px 0 0; font-size: clamp(15.5px, 1.4vw, 18px); color: rgba(255, 255, 255, .94); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-white { --btn-bg: #fff; --btn-fg: #0f172a; --btn-bd: transparent; box-shadow: 0 10px 24px -10px rgba(5, 20, 60, .5); }
.btn-white:hover { background: #f1f5f9; }
.btn-glass { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .4); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.cta-pages { position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; z-index: -1; opacity: .18; }
.cta-pages img { width: 100%; height: 100%; }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-pages { width: 170px; height: 170px; right: -40px; bottom: -50px; opacity: .12; }
  .cta-band-actions .btn { flex: 1 1 auto; }
}

/* ───────── 푸터 ───────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-app); padding: 56px 0 calc(32px + var(--safe-bottom)); font-size: 14.5px; color: var(--fg-3); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-about p { margin: 14px 0 0; line-height: 1.7; max-width: 360px; }
.footer-col h2 { margin: 0 0 12px; font-size: 14px; font-weight: 750; color: var(--fg); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fg-3); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; line-height: 1.7; }
.footer-bottom a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.footer-bottom a:hover { color: var(--fg); }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 359px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ───────── 사용 가이드 ───────── */
.guide-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--border); background: radial-gradient(900px 340px at 85% -10%, color-mix(in srgb, var(--brand-mid) 10%, transparent), transparent 70%), radial-gradient(700px 300px at 0% 0%, color-mix(in srgb, var(--brand-teal) 10%, transparent), transparent 70%); }
.guide-hero h1 .text-gradient { white-space: nowrap; }
.guide-hero h1 { margin: 18px 0 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.18; letter-spacing: -.04em; font-weight: 850; }
.guide-hero .lead { max-width: 720px; }
.quick { margin-top: clamp(24px, 4vw, 40px); }
.quick-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 780; letter-spacing: -.02em; }
.quick-head .i { color: var(--accent); }
.quick-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: q; }
.quick-steps li { counter-increment: q; }
.quick-steps a {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 20px; border-radius: var(--r-lg);
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.quick-steps a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand-mid) 35%, var(--border)); }
.quick-steps a::before { content: counter(q); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-gradient); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.quick-steps b { font-size: 16px; font-weight: 750; color: var(--fg); }
.quick-steps span { font-size: 14px; color: var(--fg-3); line-height: 1.55; }
.quick-steps .go { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 650; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.quick-steps .go .i { width: 15px; height: 15px; }
@media (max-width: 1100px) { .quick-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .quick-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 다섯째 카드는 한 줄을 다 쓴다 */
}
@media (max-width: 480px) {
  .quick-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .quick-steps a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 14px; padding: 14px 16px; }
  .quick-steps a::before { grid-row: span 3; margin: 0; }
  .quick-steps .go { padding-top: 4px; }
}

.guide-layout { display: grid; grid-template-columns: min(var(--guide-toc-w, 252px), 35%) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding-top: 40px; padding-bottom: 96px; align-items: start; }
.guide-aside { position: sticky; top: calc(var(--site-nav-h) + 24px); max-height: calc(100dvh - var(--site-nav-h) - 48px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
.guide-toc-title { margin: 0 0 10px 12px; font-size: 13px; font-weight: 750; color: var(--fg-3); letter-spacing: .02em; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide-toc a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 550; color: var(--fg-2); line-height: 1.4; transition: background var(--dur), color var(--dur);
}
.guide-toc a:hover { background: var(--bg-hover); color: var(--fg); }
.guide-toc a .n { font-size: 12px; font-weight: 750; color: var(--fg-3); min-width: 20px; font-variant-numeric: tabular-nums; }
.guide-toc a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.guide-toc a[aria-current="true"] .n { color: var(--accent); }
.guide-toc hr { border: 0; border-top: 1px solid var(--border); margin: 8px 12px; }
.guide-tocbar { display: none; }
.guide-content { min-width: 0; max-width: 820px; }

.chapter { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--border); }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; }
.chapter-no { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .03em; }
.chapter h2 { margin: 12px 0 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; letter-spacing: -.03em; font-weight: 820; }
.chapter > p { margin: 12px 0 0; font-size: 16.5px; color: var(--fg-2); line-height: 1.75; }
.chapter h3 { margin: 32px 0 12px; font-size: 18.5px; font-weight: 760; letter-spacing: -.02em; }

.video-fig { margin: 24px 0 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #0b1220; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #0b1220; }
.video-fig figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--fg-3); }
.video-fig figcaption .i { width: 16px; height: 16px; }
.video-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
  background: radial-gradient(420px 220px at 20% 10%, color-mix(in srgb, var(--brand-teal) 22%, transparent), transparent 70%),
              radial-gradient(420px 240px at 90% 100%, color-mix(in srgb, var(--brand-blue) 24%, transparent), transparent 70%), var(--bg-app);
  color: var(--fg-2);
}
.video-ph .ph-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-elev); box-shadow: var(--shadow-md); color: var(--fg-3); }
.video-ph .ph-ico .i { width: 22px; height: 22px; }
.video-ph b { font-size: 17px; font-weight: 750; color: var(--fg); }
.video-ph span { font-size: 14px; color: var(--fg-3); max-width: 420px; }
.video-frame.is-missing { background: var(--bg-app); box-shadow: none; }
@media (max-width: 480px) { .video-ph .ph-ico { width: 44px; height: 44px; } .video-ph b { font-size: 15.5px; } .video-ph span { font-size: 13px; } }

.steps { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.steps > li { position: relative; counter-increment: s; padding: 0 0 18px 48px; font-size: 16px; line-height: 1.7; color: var(--fg-2); }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-elev); border: 1.5px solid var(--border-strong); font-weight: 800; font-size: 14px; color: var(--fg); }
.steps > li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 1.5px; background: var(--border); }
.steps > li:last-child::after { display: none; }
.steps > li b { color: var(--fg); }
.steps ul { margin: 6px 0 0; padding-left: 18px; }
.steps ul li { margin: 2px 0; }
.ui { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; background: var(--bg-sunken); border: 1px solid var(--border); font-size: .9em; font-weight: 650; color: var(--fg); white-space: nowrap; line-height: 1.6; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--bg-elev);
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; color: var(--fg); white-space: nowrap; line-height: 1;
}
.tip { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--accent-soft); font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.tip .i { color: var(--accent); margin-top: 3px; }
.tip.warn { background: var(--warning-soft); }
.tip.warn .i { color: var(--warning); }
.tip b { color: var(--fg); }

.shortcut-table-wrap { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.shortcut-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.shortcut-table th:first-child { width: 40%; }
.shortcut-table caption { text-align: left; padding: 14px 16px; font-weight: 750; font-size: 15.5px; background: var(--bg-app); border-bottom: 1px solid var(--border); color: var(--fg); }
.shortcut-table th, .shortcut-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.shortcut-table thead th { font-size: 13px; color: var(--fg-3); font-weight: 700; background: var(--bg-elev); }
.shortcut-table tbody tr:last-child > * { border-bottom: 0; }
.shortcut-table td:not(:first-child) { white-space: nowrap; }
.shortcut-table td .plus { color: var(--fg-3); margin: 0 3px; font-size: 12px; }
.shortcut-group + .shortcut-group { margin-top: 18px; }
@media (max-width: 560px) {
  .shortcut-table thead { display: none; }
  .shortcut-table, .shortcut-table tbody { display: block; }
  .shortcut-table caption { display: block; }
  .shortcut-table tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 6px 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .shortcut-table tbody tr:last-child { border-bottom: 0; }
  .shortcut-table td { padding: 0; border: 0; white-space: normal !important; }
  .shortcut-table td:first-child { grid-column: 1 / -1; font-weight: 650; color: var(--fg); }
  .shortcut-table td:nth-child(2), .shortcut-table td:nth-child(3) { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; }
  .shortcut-table td:nth-child(2)::before, .shortcut-table td:nth-child(3)::before { position: absolute; margin-left: -52px; width: 44px; font-size: 11.5px; color: var(--fg-4); font-weight: 700; }
  .shortcut-table td:nth-child(2)::before { content: "Win"; }
  .shortcut-table td:nth-child(3)::before { content: "Mac"; }
}

@media (max-width: 1023px) {
  .guide-layout { display: block; padding-top: 0; }
  .guide-aside { position: static; max-height: none; overflow: visible; padding: 0; }
  .guide-tocbar {
    display: block; position: sticky; top: calc(var(--site-nav-h) + var(--safe-top)); z-index: 90;
    margin: 0 calc(-1 * max(var(--site-gutter), var(--safe-left))) 24px calc(-1 * max(var(--site-gutter), var(--safe-right)));
    padding: 8px max(var(--site-gutter), var(--safe-right)) 8px max(var(--site-gutter), var(--safe-left));
    background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .guide-tocbar button {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-md);
    border: 1px solid var(--border-strong); background: var(--bg-elev); font-size: 15px; font-weight: 650; text-align: left;
  }
  .guide-tocbar button .lbl { color: var(--fg-3); font-weight: 600; flex: none; }
  .guide-tocbar button .cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .guide-tocbar button .i { width: 18px; height: 18px; color: var(--fg-3); transition: transform var(--dur); }
  .guide-tocbar button[aria-expanded="true"] .i { transform: rotate(180deg); }
  .guide-toc-title { display: none; }
  .guide-toc {
    display: none; position: fixed; z-index: 95; left: max(var(--site-gutter), var(--safe-left)); right: max(var(--site-gutter), var(--safe-right));
    top: calc(var(--site-nav-h) + var(--safe-top) + 64px); max-height: min(70dvh, 560px); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .guide-toc.is-open { display: block; animation: pop-in .16s var(--ease); }
  .guide-toc a { min-height: 44px; }
}

/* ───────── 정책 문서 ───────── */
.doc-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--border); background: var(--bg-app); }
.doc-hero h1 { margin: 14px 0 0; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.04em; line-height: 1.2; font-weight: 840; }
.doc-hero p { margin: 12px 0 0; color: var(--fg-3); font-size: 15.5px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-top: 40px; padding-bottom: 96px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--site-nav-h) + 24px); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: d; }
.doc-toc a { display: flex; min-height: 40px; align-items: center; padding: 4px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--fg-3); line-height: 1.4; }
.doc-toc a:hover { background: var(--bg-hover); color: var(--fg); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); padding-top: 24px; } .doc-toc { position: static; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-lg); } .doc-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .doc-toc ol { grid-template-columns: minmax(0, 1fr); } }
.prose { min-width: 0; max-width: 760px; font-size: 16px; line-height: 1.8; color: var(--fg-2); }
.prose h2 { margin: 44px 0 12px; font-size: 21px; font-weight: 780; letter-spacing: -.02em; color: var(--fg); line-height: 1.4; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--fg-4); }
.prose strong { color: var(--fg); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 120px; }
.prose th { background: var(--bg-app); color: var(--fg); font-weight: 700; }
.prose .meta { padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-app); font-size: 14.5px; }

/* 인쇄 */
@media print {
  .site-nav, .nav-drawer, .guide-tocbar, .guide-aside, .doc-toc, .site-footer .footer-top { display: none !important; }
  .guide-layout, .doc-layout { display: block; }
  body.site { font-size: 12pt; }
}

/* ───────── 밝은 테마 대비 보정 (작은 색 글자는 WCAG 4.5:1 이상) ───────── */
:root:not([data-theme="dark"]) .fmt,
:root:not([data-theme="dark"]) .app-formats { color: color-mix(in srgb, var(--k) 70%, #000); }
:root:not([data-theme="dark"]) .eyebrow,
:root:not([data-theme="dark"]) .hero-badge,
:root:not([data-theme="dark"]) .chapter-no,
:root:not([data-theme="dark"]) .quick-steps .go,
:root:not([data-theme="dark"]) .doc-hero .badge-accent,
:root:not([data-theme="dark"]) .guide-toc a[aria-current="true"],
:root:not([data-theme="dark"]) .guide-toc a[aria-current="true"] .n { color: color-mix(in srgb, var(--accent) 82%, #000); }
/* --fg-3(#64748b)는 --bg-app(#f4f7fb) 위에서 4.43:1 이라, 회색 바탕 영역 안에서만 한 단계 진하게 쓴다 */
:root:not([data-theme="dark"]) :is(.section-alt, .site-footer, .doc-hero, .steps-row li, .video-ph, .compat thead, .compat td.note, .dl-pending, .pwa-help, .hwp-band) { --fg-3: #5a6a80; }
:root:not([data-theme="dark"]) .hwp-flow li::before,
:root:not([data-theme="dark"]) .hwp-a4 { color: color-mix(in srgb, var(--kind-hwp) 70%, #000); }
:root:not([data-theme="dark"]) .st-yes { color: #15803d; }
:root:not([data-theme="dark"]) .st-part { color: #b45309; }
@media (max-width: 400px) { .hwp-spec.s1 { display: none; } }
@media (max-width: 1023px) { .page-guide .chapter, .page-guide #quick { scroll-margin-top: calc(var(--site-nav-h) + var(--safe-top) + 76px); } }

/* ───────── 언어 링크(한국어 ↔ English) · 영어 판 안내 ───────── */
.nav-lang { padding: 0 12px; gap: 6px; font-size: 14.5px; color: var(--fg-2); }
.nav-lang:hover { color: var(--fg); }
.nav-lang .i { width: 18px; height: 18px; color: var(--fg-3); }
@media (max-width: 520px) { .nav-lang { padding: 0 8px; } .nav-lang .i { display: none; } }
/* 로그인 버튼이 아직 보이는 좁은 폭(421~490px)과 아주 좁은 폭(359px 이하)은 자리가 모자라 머리글 링크를 숨긴다
   (메뉴 서랍과 푸터에 같은 링크가 있다) */
@media (min-width: 421px) and (max-width: 490px), (max-width: 359px) { .nav-lang { display: none; } }
/* 좁은 폭(360~380px)은 지구본 아이콘만(글자는 화면 읽기 프로그램용으로 남긴다) */
@media (min-width: 360px) and (max-width: 380px) {
  .nav-lang { width: 36px; padding: 0; }
  .nav-lang .i { display: inline-block; }
  .nav-lang span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* 영어 판 보정: 라틴 글자는 자간을 덜 좁히고, 메뉴 글자가 길어 접는 폭을 넓힌다(한국어 판은 그대로) */
html[lang="en"] .hero-title { letter-spacing: -.035em; }
html[lang="en"] .h2 { letter-spacing: -.025em; }
html[lang="en"] .rb-style { width: auto; min-width: 64px; }
html[lang="en"] .rb-style b { white-space: nowrap; }
@media (max-width: 1240px) {
  html[lang="en"] .nav-inner { gap: 16px; }
  html[lang="en"] .nav-links a { padding: 0 9px; font-size: 14.5px; }
}
@media (max-width: 1140px) {
  html[lang="en"] .nav-links { display: none; }
  html[lang="en"] .nav-burger { display: inline-flex; }
}
.nav-drawer-lang { display: inline-flex; align-items: center; gap: 10px; }
.nav-drawer a.nav-drawer-link .nav-drawer-lang .i { color: var(--fg-3); width: 20px; height: 20px; }
.footer-lang {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--fg-2);
  transition: color var(--dur), background var(--dur);
}
.footer-lang:hover { color: var(--fg); background: var(--bg-hover); }
.footer-lang .i { width: 18px; height: 18px; }
.lang-hint {
  position: fixed; z-index: 150; left: max(16px, var(--safe-left)); bottom: calc(16px + var(--safe-bottom));
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 6px 6px 6px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev); box-shadow: var(--shadow-lg);
  font-size: 14.5px; font-weight: 650; line-height: 1.3; animation: toast-in .24s var(--ease);
}
.lang-hint > .i { width: 18px; height: 18px; color: var(--accent); }
.lang-hint a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.lang-hint a:hover { text-decoration-color: currentColor; }
.lang-hint-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: var(--fg-3); cursor: pointer; }
.lang-hint-x:hover { background: var(--bg-hover); color: var(--fg); }
.lang-hint-x .i { width: 16px; height: 16px; }
body:has(.lang-hint) .site-footer { padding-bottom: calc(96px + var(--safe-bottom)); } /* 안내가 떠 있는 동안 푸터 마지막 줄을 가리지 않게 */
@media print { .lang-hint, .footer-lang, .nav-lang { display: none !important; } }
/* 영어 판 정책 문서 맨 위의 번역 안내 */
.doc-translation-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px; padding: 14px 16px; border-radius: var(--r-md); background: var(--info-soft); font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.doc-translation-note .i { color: var(--info); margin-top: 3px; }
.prose .doc-translation-note p { margin: 0; }
.prose .doc-translation-note + h2 { margin-top: 0; }
/* 영어 판 사용 가이드: 영상 내레이션 언어 안내 */
.guide-video-note { display: flex; gap: 10px; align-items: flex-start; max-width: 720px; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--info-soft); font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.guide-video-note .i { color: var(--info); margin-top: 2px; }
