/* Docspert 랜딩 — 따뜻한 회색 바탕 위에 흑백 부품, 강조색은 닥스퍼트 초록 하나.
   밝은 화면이 기본이고, 머리글의 토글로 어두운 화면을 고른다(html[data-theme="dark"], site.js 가 기억한다).
   번쩍이는 꾸밈(빛 번짐 · 부품의 그라데이션 · 튀는 움직임)은 쓰지 않는다. 움직임은 스프링 하나로 통일한다.
   글꼴은 이 서버에 둔 Pretendard(OFL, /fonts/pretendard) — 외부 요청이 없다(CSP 'self'). */

:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --bg-2: #ebe8e1;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #121614;
  --text: #2a302c;
  --text-2: #5b645e;
  --muted: #8a918c;
  --line: #e2ded5;
  --line-2: #d2cdc1;
  --accent: #0e5a3d;
  --accent-hover: #0a4730;
  --on-accent: #ffffff;
  --accent-text: #0e5a3d;
  --accent-soft: #e1efe7;
  --accent-line: #b8d8c6;
  --warn-text: #8a5a0b;
  --warn-soft: #f8ecd2;
  --del-text: #9b3a2a;
  --del-soft: #f9e6e1;
  --inverse: #121614;
  --on-inverse: #f3f1ec;
  --on-inverse-2: #a9b0ab;
  --signal: #8fd3b0;
  --header-bg: rgba(243, 241, 236, 0.8);
  --shadow-sm: 0 1px 2px rgba(18, 22, 20, 0.05);
  --shadow: 0 1px 2px rgba(18, 22, 20, 0.05), 0 12px 32px -16px rgba(18, 22, 20, 0.18);
  --shadow-lg: 0 2px 4px rgba(18, 22, 20, 0.04), 0 30px 70px -30px rgba(18, 22, 20, 0.3);

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(18px, 5vw, 64px);
  --max: 1180px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  /* 스프링(감쇠비 0.82 — 넘침 1% 남짓). linear() 를 모르는 브라우저는 아래 곡선으로 대신한다. */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.024, 0.0845, 0.1671, 0.261, 0.3584, 0.4537, 0.5434, 0.6252, 0.6978, 0.761, 0.8148, 0.8599, 0.897, 0.9269, 0.9506, 0.9689, 0.9829, 0.9931, 1.0004, 1.0054, 1.0085, 1.0103, 1.011, 1.011, 1.0105, 1.0097, 1.0087, 1.0076, 1.0066, 1.0055, 1.0046, 1.0037, 1.003, 1.0023, 1.0018, 1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e100f;
  --bg-2: #131614;
  --surface: #181b19;
  --surface-2: #1d211e;
  --ink: #f0f2f0;
  --text: #d4d9d5;
  --text-2: #a2aaa4;
  --muted: #7b837d;
  --line: #272c29;
  --line-2: #353b37;
  --accent: #8fd3b0;
  --accent-hover: #a8e0c3;
  --on-accent: #062014;
  --accent-text: #8fd3b0;
  --accent-soft: rgba(143, 211, 176, 0.13);
  --accent-line: rgba(143, 211, 176, 0.35);
  --warn-text: #efc27a;
  --warn-soft: rgba(239, 194, 122, 0.13);
  --del-text: #f2a999;
  --del-soft: rgba(242, 169, 153, 0.12);
  --inverse: #f0f2f0;
  --on-inverse: #0e100f;
  --on-inverse-2: #5d655f;
  --signal: #0e5a3d;
  --header-bg: rgba(14, 16, 15, 0.8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 34px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 70px -28px rgba(0, 0, 0, 0.85);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; padding: 8px 12px; border-radius: 10px; background: var(--surface); color: var(--ink); }

/* 로고는 둘을 두고 화면 색에 맞는 하나만 보인다 */
.logo { display: block; height: 34px; width: auto; }
.logo--dark { display: none; }
[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark { display: block; }

/* ── 머리글 ─────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled, .site-header.is-open {
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-header nav a:not(.btn) {
  position: relative; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600;
  transition: color 0.2s var(--ease);
}
.site-header nav a:not(.btn):hover { color: var(--ink); }
.header__tools { display: flex; align-items: center; gap: 10px; }
.page-doc .header__tools { margin-left: auto; }
.nav-toggle { display: none; }

/* 밝게 · 어둡게 — 손잡이의 앞쪽 끝이 먼저 가고 뒤쪽 끝이 따라온다(site.js 가 두 스프링으로 --kl · --kw 를 준다) */
.theme-toggle {
  position: relative; flex: none; width: 54px; height: 30px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
}
.theme-toggle__knob {
  position: absolute; top: 3px; left: var(--kl, 3px); width: var(--kw, 22px); height: 22px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--ink); color: var(--surface);
}
[data-theme="dark"] .theme-toggle__knob { left: var(--kl, 27px); }
.theme-toggle svg { grid-area: 1 / 1; width: 14px; height: 14px; transition: opacity 0.2s var(--ease), filter 0.2s var(--ease); }
.theme-toggle__moon { opacity: 0; filter: blur(2px); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; filter: blur(2px); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; filter: none; }

/* ── 단추 ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.45s var(--spring);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--small { padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ── 첫 화면 ─────────────────────────────────────────── */
.hero { position: relative; padding: clamp(112px, 15vh, 160px) var(--gutter) 0; }
.hero__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 13px 6px 11px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 14px; font-weight: 600;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin: 0; color: var(--ink);
  font-size: clamp(38px, 5.1vw, 74px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800;
}
.h1__line { display: inline-block; }
.h1__accent { color: var(--accent-text); }
.lead { margin: 24px 0 0; max-width: 34em; color: var(--text-2); font-size: clamp(17px, 1.45vw, 20px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 14px; }
.note { margin: 0; color: var(--muted); font-size: 15px; }

/* 시연 — 도형 하나가 끊기지 않고 모양을 바꾼다(장식, aria-hidden). 모양 · 카메라 · 커서는 site.js 가 시간만으로 계산한다.
   자바스크립트가 없거나 움직임을 줄였으면 '근거 답변' 장면 하나를 멈춘 채로 보인다. */
.demo {
  position: relative; overflow: hidden; aspect-ratio: 1.08 / 1;
  border-radius: 28px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.demo__camera { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.morph {
  position: absolute; left: 0; top: 0; width: 340px; height: 206px; translate: -50% -50%;
  border-radius: 20px; overflow: hidden;
  background: var(--surface);
  background: color-mix(in srgb, color-mix(in srgb, var(--surface), #f7f5f0 calc(var(--pap, 0) * 100%)), var(--inverse) calc(var(--inv, 0) * 100%));
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, color-mix(in srgb, var(--line), var(--accent) calc(var(--focus, 0) * 100%)), var(--inverse) calc(var(--inv, 0) * 100%));
  box-shadow: var(--shadow);
}
.layer { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; }
.layer--answer { opacity: 1; }
.layer p { margin: 0; }

.layer--ask { width: 340px; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px; }
.ask__icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.ask__field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; font-size: 15px; white-space: nowrap; overflow: hidden; }
.ask__placeholder { color: var(--muted); }
.ask__typed { color: var(--ink); }
.ask__caret { width: 2px; height: 18px; margin-left: 1px; border-radius: 1px; background: var(--accent); opacity: 0; }
.ask__send {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--line); color: var(--muted); transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ask__send.is-ready { background: var(--accent); color: var(--on-accent); }
.ask__send svg { width: 18px; height: 18px; }

.layer--load { width: 56px; height: 56px; display: grid; place-items: center; }
.spinner { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 34 60; }

.layer--answer { width: 340px; height: 206px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.answer__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; }
.answer__brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.answer__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.answer__meta { color: var(--muted); font-weight: 600; }
.answer__q { color: var(--text-2); font-size: 13.5px; }
.answer__text { color: var(--ink); font-size: 15px; line-height: 1.55; }
.layer .answer__cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip, .cite {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.chip::before, .cite::before { content: "§"; opacity: 0.6; }

.layer--source { width: 330px; height: 250px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.source__head { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 15px; }
.source__tag { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.layer .source__article { margin-bottom: 2px; color: var(--accent-text); font-size: 14.5px; font-weight: 700; }
.source__line { position: relative; padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.source__line--hl { color: var(--ink); font-weight: 600; }
.source__line--hl > span:last-child { position: relative; }
.source__mark {
  position: absolute; inset: 0; border-radius: 8px; transform-origin: left center;
  background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent);
}

.layer--island { width: 280px; height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 18px; white-space: nowrap; }
.island__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.island__text { color: var(--on-inverse); font-size: 14px; font-weight: 700; }
.island__sub { margin-left: auto; color: var(--on-inverse-2); font-size: 13px; font-weight: 600; }

.layer--diff { width: 350px; height: 220px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.diff__head { color: var(--muted); font-size: 13px; font-weight: 700; }
.diff__line { padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.diff__line--old { color: var(--del-text); background: var(--del-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.diff__line--new { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.diff__action {
  align-self: flex-end; margin-top: auto; padding: 7px 14px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700;
}

/* 초안은 어두운 화면에서도 종이처럼 밝다 — 색을 화면 색과 따로 둔다 */
.layer--draft { width: 230px; height: 300px; padding: 30px 22px 22px; color: #1b201d; }
.draft__type { position: absolute; top: 12px; left: 14px; padding: 1px 7px; border-radius: 6px; background: #e1efe7; color: #0e5a3d; font-size: 11px; font-weight: 800; }
.layer .draft__title { margin: 6px 0 14px; font-size: 14px; font-weight: 800; }
.layer--draft i { display: block; height: 7px; margin: 11px 0; border-radius: 4px; background: #dcd8cf; transform-origin: left center; }
.layer--draft i:nth-of-type(3) { width: 86%; }
.layer--draft i:nth-of-type(5) { width: 62%; }
.draft__stamp {
  position: absolute; right: 16px; bottom: 26px; rotate: -8deg;
  padding: 4px 10px; border-radius: 8px; border: 2px solid #2e6b52;
  background: #e1efe7; color: #0e5a3d; font-size: 12px; font-weight: 800;
}

.layer--toast { width: 330px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; color: var(--on-inverse); font-size: 14px; font-weight: 700; }
.toast__check { flex: none; width: 18px; height: 18px; color: var(--signal); stroke-width: 2.4; }

.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; opacity: 0; transform-origin: 5px 3px; pointer-events: none; }
.cursor path { fill: var(--ink); stroke: var(--surface); stroke-width: 1.4; stroke-linejoin: round; }

.pillars {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: min(300px, 82%);
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pillars > span:not(.pillars__ind) { position: relative; z-index: 1; padding: 5px 0; text-align: center; color: var(--text-2); font-size: 13px; font-weight: 700; transition: color 0.25s var(--ease); }
.pillars > span.is-on { color: var(--surface); }
.pillars__ind {
  position: absolute; top: 4px; bottom: 4px;
  left: calc(4px + (100% - 8px) * var(--l, 0) / 100);
  right: calc(4px + (100% - 8px) * (100 - var(--r, 33.333)) / 100);
  border-radius: 999px; background: var(--ink);
}
.demo__tag { position: absolute; top: 14px; right: 18px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }

/* 규정 이름 띠 */
.marquee {
  margin: clamp(56px, 9vh, 96px) calc(var(--gutter) * -1) 0; padding: 16px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 50s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 40px; color: var(--text-2); font-size: 15px; font-weight: 600; white-space: nowrap; }
.marquee__track span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ── 구역 공통 ───────────────────────────────────────── */
.section { position: relative; padding: clamp(80px, 11vw, 140px) var(--gutter); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--tint { background: var(--bg-2); }
section[id] { scroll-margin-top: 72px; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { margin: 0 0 12px; color: var(--accent-text); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4.2vw, 52px); line-height: 1.16; letter-spacing: -0.03em; font-weight: 800; }
h3 { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 750; }

/* ── 묻다 · 챙기다 · 쓰다 ───────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile, .who__card {
  position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tile:hover, .who__card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.tile--ask { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tile--watch, .tile--write { grid-column: span 3; display: flex; flex-direction: column; }
.tile--watch .mini, .tile--write .mini { margin-top: auto; margin-bottom: auto; padding-top: 22px; }
.tile--formats { grid-column: span 6; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tile__no { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; }
.tile h3 { font-size: clamp(24px, 2.4vw, 32px); }
.tile__text p { margin: 12px 0 0; color: var(--text-2); }
.tile__label { margin: 0; color: var(--accent-text); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.tile__note { margin: 0; color: var(--muted); }
.formats { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.formats li { padding: 9px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-weight: 800; letter-spacing: 0.04em; }

.mini { position: relative; margin-top: 22px; }
.mini::after { content: "예시"; position: absolute; top: -18px; right: 2px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.tile--watch .mini::after, .tile--write .mini::after { top: 2px; }
.tile--ask .mini { margin-top: 0; }
.mini__q, .mini__a { margin: 0 0 10px; padding: 10px 14px; font-size: 14.5px; line-height: 1.55; }
.mini__q { margin-left: auto; width: fit-content; max-width: 90%; border-radius: 14px 14px 4px 14px; background: var(--bg); color: var(--ink); }
.mini__a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.mini__a--none { background: var(--warn-soft); border-color: transparent; }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--warn-text); color: var(--surface); font-size: 12.5px; font-weight: 800; }
.js .tile--ask .mini > * { opacity: 0; translate: 0 8px; }
.js .tile--ask.is-in .mini > * { animation: rise 0.6s var(--spring) forwards; }
.js .tile--ask.is-in .mini > :nth-child(2) { animation-delay: 0.3s; }
.js .tile--ask.is-in .mini > :nth-child(3) { animation-delay: 0.8s; }
.js .tile--ask.is-in .mini > :nth-child(4) { animation-delay: 1.1s; }

.diff__alert { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--warn-text); font-size: 13px; font-weight: 700; }
.diff__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warn-text); animation: blink 1.6s ease-in-out infinite; }
.diff__row { margin: 0 0 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.diff__row--old { color: var(--del-text); background: var(--del-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.diff__row--new { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.js .tile--watch .diff__row { opacity: 0; translate: -10px 0; }
.js .tile--watch.is-in .diff__row { animation: rise-x 0.6s var(--spring) forwards; }
.js .tile--watch.is-in .diff__row--new { animation-delay: 0.4s; }

.paper {
  position: relative; margin: 10px auto 0; width: min(58%, 180px); aspect-ratio: 1 / 1.3;
  padding: 22px 18px; border-radius: 10px; background: #fbfaf7; border: 1px solid #e6e2d9; box-shadow: var(--shadow); rotate: -3deg;
}
.paper i { display: block; height: 7px; margin: 10px 0; border-radius: 4px; background: #dcd8cf; transform-origin: left center; }
.paper i:nth-child(4) { width: 82%; }
.paper__type { position: absolute; top: -10px; left: 14px; padding: 2px 8px; border-radius: 6px; background: #e1efe7; color: #0e5a3d; font-size: 11px; font-weight: 800; }
.paper__stamp {
  position: absolute; right: -10px; bottom: 16px; rotate: -8deg;
  padding: 5px 10px; border-radius: 8px; border: 2px solid #2e6b52; background: #e1efe7; color: #0e5a3d; font-size: 12px; font-weight: 800;
}
.js .tile--write .paper i { scale: 0 1; }
.js .tile--write.is-in .paper i { animation: write 0.5s var(--ease) forwards; }
.js .tile--write.is-in .paper i:nth-of-type(2) { animation-delay: 0.12s; }
.js .tile--write.is-in .paper i:nth-of-type(3) { animation-delay: 0.24s; }
.js .tile--write.is-in .paper i:nth-of-type(4) { animation-delay: 0.36s; }
.js .tile--write.is-in .paper i:nth-of-type(5) { animation-delay: 0.48s; }
.js .tile--write .paper__stamp { opacity: 0; scale: 1.25; }
.js .tile--write.is-in .paper__stamp { animation: stamp 0.55s var(--spring) 1s forwards; }

/* ── 규정 건강검진 ────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.split__head { position: sticky; top: 110px; }
.disclaimer { margin: 22px 0 26px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.steps { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 16px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line-2); }
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.steps li {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.steps li::before {
  content: ""; position: absolute; left: -29px; top: 28px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--line-2); transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.steps li.is-lit::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.steps__no { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; }
.steps b { color: var(--ink); font-size: 19px; }
.steps span:last-child { color: var(--text-2); }

/* ── 대상 ─────────────────────────────────────────────── */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.who__tag { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 800; }
.who__card h3 { font-size: clamp(26px, 2.6vw, 34px); }
.who__card > p:not(.who__tag) { margin: 12px 0 18px; color: var(--text-2); }
.who__card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.who__card li { position: relative; padding-left: 28px; }
.who__card li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; }

/* ── 베타 조건 ────────────────────────────────────────── */
.beta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.beta__card { border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); background: var(--surface); border: 1px solid var(--line); }
.beta__card--main { border: 1.5px solid var(--accent); }
.beta__card h3 { margin-bottom: 12px; font-size: clamp(24px, 2.4vw, 30px); }
.beta__card p { margin: 0; color: var(--text-2); }
.beta__card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.beta__card li { position: relative; padding-left: 22px; }
.beta__card li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
#beta .note { margin-top: 22px; }

/* ── 운영 원칙 ─────────────────────────────────────────── */
.trust { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust li {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.trust .icon { width: 28px; height: 28px; margin-bottom: 8px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust b { color: var(--ink); font-size: 18px; }
.trust span { color: var(--text-2); font-size: 15.5px; }

/* ── 자주 묻는 질문 ───────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s var(--ease); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { position: relative; padding: 20px 56px 20px 24px; list-style: none; cursor: pointer; color: var(--ink); font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); rotate: 45deg; transition: rotate 0.45s var(--spring), margin-top 0.45s var(--spring);
}
.faq details[open] summary::after { rotate: 225deg; margin-top: -2px; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--text-2); animation: rise 0.45s var(--spring); }

/* ── 베타 신청 ───────────────────────────────────────── */
.section--apply { background: var(--bg-2); }
.apply-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.apply-intro { position: sticky; top: 110px; }
.apply-intro .lead { margin-top: 18px; }
.perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.perks li { position: relative; padding-left: 30px; color: var(--text); font-weight: 600; }
.perks li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.apply-card { border-radius: 26px; padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.apply { display: flex; flex-direction: column; gap: 16px; }
.apply__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.apply label { display: flex; flex-direction: column; gap: 7px; color: var(--text); font-size: 14.5px; font-weight: 600; }
.apply input:not([type="checkbox"]), .apply select, .apply textarea {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 16px; font-weight: 400;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.apply select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.apply select option { background: var(--surface); color: var(--ink); }
.apply input:not([type="checkbox"]):hover, .apply select:hover, .apply textarea:hover { border-color: var(--muted); }
.apply input:not([type="checkbox"]):focus, .apply select:focus, .apply textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.apply textarea { min-height: 110px; resize: vertical; }
.req { color: var(--accent-text); font-size: 13px; font-weight: 600; }
.apply .check, .apply .consent { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 14.5px; font-weight: 400; line-height: 1.6; }
.apply .check { color: var(--text); font-weight: 600; }
.apply input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.consent b { color: var(--ink); }
.privacy { margin: 0; color: var(--muted); font-size: 14px; }
.status { margin: 0; min-height: 1.4em; color: var(--text-2); }
.status[data-state="error"] { color: var(--del-text); font-weight: 600; }
.done { padding: 30px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.done p { margin: 10px 0 0; color: var(--text-2); }
.nojs { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-text); }

/* ── 바닥글 ─────────────────────────────────────────── */
.site-footer {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px;
  padding: 56px var(--gutter) 64px; border-top: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 14px;
}
.footer__brand .logo { height: 30px; }
.footer__brand p { margin: 12px 0 0; color: var(--text-2); }
.footer__info p { margin: 0 0 6px; }
.site-footer a { color: var(--text-2); }
.site-footer b { color: var(--text); }

/* ── 스크롤하면 떠오른다(자바스크립트가 있을 때만 숨겨 둔다) ── */
.js [data-reveal] {
  opacity: 0; translate: 0 18px; filter: blur(4px);
  transition: opacity 0.6s var(--ease) var(--d, 0ms), translate 0.8s var(--spring) var(--d, 0ms), filter 0.5s var(--ease) var(--d, 0ms),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; translate: none; filter: none; }
.js .hero__copy > * { animation: rise 0.8s var(--spring) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.js .hero__copy > :nth-child(3) { animation-delay: 0.14s; }
.js .hero__copy > :nth-child(4) { animation-delay: 0.22s; }
.js .hero__copy > :nth-child(5) { animation-delay: 0.3s; }
.js .demo { animation: rise 0.9s var(--spring) 0.15s both; }
.js .cursor { opacity: 1; }

@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }
@keyframes rise-x { from { opacity: 0; translate: -10px 0; } to { opacity: 1; translate: none; } }
@keyframes write { to { scale: 1 1; } }
@keyframes stamp { to { opacity: 1; scale: 1; } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 화면 폭 ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .demo { width: 100%; max-width: 620px; margin: 8px auto 0; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split, .apply-layout { grid-template-columns: 1fr; }
  .split__head, .apply-intro { position: static; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 42px; height: 42px; padding: 0 11px; border-radius: 12px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line-2);
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.4s var(--spring); }
  .site-header.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header__tools { margin-left: auto; }
  .site-header nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px var(--gutter) 22px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; translate: 0 -8px;
    transition: opacity 0.25s var(--ease), translate 0.4s var(--spring), visibility 0.25s;
  }
  .site-header.is-open nav { visibility: visible; opacity: 1; translate: none; }
  .site-header nav a:not(.btn) { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-header nav .btn { margin-top: 12px; }
  .bento { grid-template-columns: 1fr; }
  .tile--ask, .tile--watch, .tile--write, .tile--formats { grid-column: auto; }
  .tile--ask { grid-template-columns: 1fr; }
  .who, .beta { grid-template-columns: 1fr; }
  .apply__grid { grid-template-columns: 1fr; }
  .demo { aspect-ratio: 1 / 1.08; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .trust { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .logo { height: 30px; }
}

/* ── 움직임을 줄이도록 설정한 사람 ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; translate: none; filter: none; }
}

/* ── 인쇄 ─────────────────────────────────────────────── */
@media print {
  .js [data-reveal] { opacity: 1; translate: none; filter: none; }
  .demo, .marquee, .site-header nav, .header__tools { display: none; }
}

/* ── 처리방침(문서) ─────────────────────────────────────── */
.page-doc .site-header { position: sticky; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.page-doc main section { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.page-doc h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: -0.03em; }
.page-doc h2 { margin: 40px 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.page-doc .site-footer { display: block; }
.page-doc .site-footer p { max-width: 820px; margin: 0 auto 6px; }
