/* FP다움 가이드
   - 색·글꼴: FP 화면 토큰(apps/web/src/styles/tokens.css)과 같은 값
   - 글자 크기·굵기·간격: 그리팅 가이드와 같은 체계(본문 17/27, 제목 48·30, 목차 14/32) */
@font-face {
  font-family: Pretendard;
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("PretendardVariable.woff2") format("woff2-variations"), url("PretendardVariable.woff2") format("woff2"); /* 회사 사이트와 같은 파일을 빌드 때 함께 싣는다(외부 CDN 요청 없음) */
}

:root {
  --blue: #1f6fe5;
  --blue-strong: #155fcf;
  --blue-tint: rgba(64, 139, 255, 0.1);
  --blue-soft: rgba(64, 139, 255, 0.05);
  --mint-strong: #087a61;
  --mint-tint: rgba(36, 206, 167, 0.1);
  --orange-strong: #c2410c;
  --orange-tint: rgba(255, 144, 54, 0.1);
  --red: #dc2626;
  --ink: #031832;
  --ink-70: rgba(3, 24, 50, 0.7);
  --ink-60: rgba(3, 24, 50, 0.6);
  --ink-40: rgba(3, 24, 50, 0.4);
  --ink-28: rgba(3, 24, 50, 0.28);
  --line: rgba(3, 24, 50, 0.08);
  --hover: rgba(3, 24, 50, 0.05);
  --surface: #f4f6f9;
  --white: #fff;
  --focus-ring: rgba(45, 128, 255, 0.35);
  --font: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 글자 체계 */
  --fs-h1: 48px;   --lh-h1: 64px;
  --fs-h2: 24px;   --lh-h2: 34px;
  --fs-h3: 19px;   --lh-h3: 28px;
  --fs-body: 17px; --lh-body: 27px;
  --fs-lead: 16px; --lh-lead: 24px;
  --fs-ui: 14px;   --lh-ui: 20px;
  --fs-small: 13px;

  --top-h: 60px;
  --content-w: 700px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--fs-body)/var(--lh-body) var(--font); letter-spacing: -0.1px; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 상단 ───────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 8px;
  padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
  background: var(--white); border-bottom: 1px solid var(--line);
}
.top__menu { display: none; width: 32px; height: 32px; margin-left: -6px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.top__menu svg { width: 22px; height: 22px; }
.top__menu:hover { background: var(--hover); }
/* 로고는 글자 높이(16px 글자의 대문자 높이 ≈ 12px)보다 조금 크게, 글자 가운데에 맞춘다 */
.top__brand { display: flex; align-items: center; gap: 8px; height: 32px; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: -0.1px; min-width: 0; }
.top__brand:hover { text-decoration: none; }
.top__brand img { flex: none; width: 22px; height: 16px; }
.top__brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__cta { margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--blue); color: var(--white); font-size: var(--fs-small); line-height: 1; font-weight: 600; letter-spacing: 0; }
.top__cta:hover { background: var(--blue-strong); text-decoration: none; }

/* ── 3단 배치 ───────────────────── */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 232px; max-width: 1400px; margin: 0 auto; }
.layout--no-toc { grid-template-columns: 280px minmax(0, 1fr); }

/* ── 왼쪽 목차 ─────────────────────
   그리팅처럼 한 줄 32px·14px. ›는 제자리에서 열고 닫고(이동 안 함), 묶음 이름은 카테고리 페이지로 간다.
   하위 글은 16px 들여 ›가 있던 자리까지 비워 글자를 맞춘다. */
.sidebar {
  position: sticky; top: var(--top-h); align-self: start;
  height: calc(100vh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: 32px 12px 20px 20px; border-right: 1px solid var(--line);
}
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree__row { display: flex; align-items: center; min-height: 32px; padding-left: 6px; border-radius: 6px; }
.tree__row:hover, .tree__item:hover { background: var(--hover); }
.tree__row.is-active, .tree__item.is-active { background: var(--blue-tint); }
.tree__row.is-active a, .tree__item.is-active { color: var(--blue); }
.tree__toggle { flex: none; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-40); cursor: pointer; }
.tree__toggle:hover { background: var(--hover); color: var(--ink); }
.tree__toggle svg { width: 14px; height: 14px; stroke-width: 2; transition: transform .15s ease; }
.tree__group.is-open > .tree__row .tree__toggle svg { transform: rotate(90deg); }
.tree__row a { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 6px; padding: 6px 6px 6px 4px; color: var(--ink); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 400; letter-spacing: 0; }
.tree__row a:hover, .tree__item:hover { text-decoration: none; }
.tree__icon { flex: none; width: 18px; text-align: center; }
.tree__items { display: none; }
.tree__group.is-open > .tree__items { display: block; }
.tree__item { display: block; min-height: 32px; padding: 6px 6px 6px 54px; border-radius: 6px; color: var(--ink); font-size: var(--fs-ui); line-height: var(--lh-ui); letter-spacing: 0; }
.sidebar__foot { margin: auto 0 0; padding: 24px 12px 0; color: var(--ink-40); font-size: 12px; line-height: 16px; }

/* ── 본문 ───────────────────────── */
.content { min-width: 0; padding: 48px clamp(24px, 4vw, 56px) 96px; }
.content > * { max-width: var(--content-w); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 20px; color: var(--ink-40); font-size: var(--fs-ui); line-height: var(--lh-ui); letter-spacing: 0; }
.crumbs a { color: var(--ink-40); }
.crumbs a:hover { color: var(--ink-70); text-decoration: none; }
.crumbs > span:last-child { color: var(--ink-60); }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; letter-spacing: 0; }
h1 { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -1px; text-wrap: balance; }
.lead { margin: 4px 0 0; color: var(--ink-70); font-size: var(--fs-lead); line-height: var(--lh-lead); }
hr { margin: 28px 0 24px; border: 0; border-top: 1px solid var(--line); }

.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 44px 0 10px; font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -0.3px; text-wrap: balance; }
.prose h3 { margin: 32px 0 8px; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; letter-spacing: -0.3px; }
.prose p { margin: 4px 0 12px; }
.prose strong { font-weight: 700; }
.prose ul { margin: 4px 0 16px; padding-left: 26px; }
.prose ul li { margin: 0 0 4px; }
.prose ul li::marker { color: var(--ink-40); }
.ui { display: inline-block; padding: 0 6px; margin: 0 1px 0 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 0.88em; font-weight: 600; line-height: 1.55; letter-spacing: 0; white-space: nowrap; }

.steps { list-style: none; counter-reset: step; margin: 8px 0 20px; padding: 0; }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 0 0 12px 40px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); font-size: var(--fs-small); font-weight: 700; line-height: 1; letter-spacing: 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 31px; bottom: 4px; width: 1px; background: var(--line); }

.callout { display: flex; gap: 12px; margin: 16px 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--blue-soft); }
.callout__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 800; line-height: 1; }
.callout p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-70); }
.callout .callout__title { color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.callout--tip { background: var(--mint-tint); }
.callout--tip .callout__icon { background: var(--mint-strong); }
.callout--warn { background: var(--orange-tint); }
.callout--warn .callout__icon { background: var(--orange-strong); }

.shot { margin: 16px 0 24px; }
.shot__frame, .shot__img { display: block; width: 100%; border-radius: 12px; background: var(--surface); }
.shot__img { padding: 0; overflow: hidden; }
.shot__img img { display: block; width: 100%; height: auto; }
.shot__img--link { position: relative; color: inherit; text-decoration: none; }
.shot__img--link img { transition: transform .2s ease; }
.shot__img--link:hover img { transform: scale(1.01); }
.shot__img--link:focus-visible { outline: 2px solid var(--blue, #3182f6); outline-offset: 3px; }
.shot__open { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #031832; box-shadow: 0 2px 8px rgba(3, 24, 50, .25); font-size: 13px; font-weight: 600; line-height: 1.2; }
.shot__open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .shot__img--link img { transition: none; } }
.shot__frame { height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-28); font-size: var(--fs-ui); font-weight: 600; border: 1px dashed rgba(3, 24, 50, 0.12); }
.shot__frame svg { width: 36px; height: 36px; stroke-width: 1.4; }
.shot figcaption { margin-top: 8px; color: var(--ink-60); font-size: var(--fs-ui); line-height: var(--lh-ui); letter-spacing: 0; }

/* 내려받기 카드(그리팅 첨부 파일 모양) */
.file { display: flex; align-items: center; gap: 12px; margin: 12px 0 24px; padding: 12px 16px 12px 12px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.file:hover { background: rgba(3, 24, 50, 0.07); text-decoration: none; }
.file__badge { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.file__name { min-width: 0; font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__size { flex: none; color: var(--ink-40); font-size: var(--fs-small); letter-spacing: 0; }
.file__icon { flex: none; width: 20px; height: 20px; margin-left: auto; color: var(--ink-40); }
.file:hover .file__icon { color: var(--blue); }

.table-wrap { margin: 12px 0 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 23px; letter-spacing: 0; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface); color: var(--ink-60); font-size: var(--fs-ui); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; min-width: 9em; }
td { min-width: 8em; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.pager a:hover { border-color: var(--blue); text-decoration: none; }
.pager small { color: var(--ink-40); font-size: var(--fs-small); font-weight: 400; }
.pager__next { grid-column: 2; text-align: right; }

/* 카테고리·첫 화면 목록(그리팅 카테고리 페이지: 제목 18/700 + 설명 14) */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cat-list a { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; margin: 0 -16px; border-radius: 10px; color: var(--ink); }
.cat-list a:hover { background: var(--hover); text-decoration: none; }
.cat-list strong { font-size: 18px; line-height: 26px; font-weight: 700; letter-spacing: -0.2px; }
.cat-list span { color: var(--ink-60); font-size: var(--fs-ui); line-height: var(--lh-ui); letter-spacing: 0; }
.cat-list small { color: var(--blue); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0; }
.home-h2 { margin: 0 0 16px; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.3px; }

/* ── 첫 화면 ─────────────────────────
   그리팅처럼 맨 위 280px 이미지 배너(가운데 제목) + 전체 카테고리(왼쪽 글, 오른쪽 275×144 썸네일).
   그림은 FP 화면 아이콘(apps/web/public/fp-design)을 카드에 얹어 만든다. */
.hero { position: relative; height: 280px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 140% at 50% 0%, #eef5ff 0%, #dceaff 55%, #cfe2ff 100%); border-bottom: 1px solid var(--line); }
.hero__text { position: relative; z-index: 1; text-align: center; padding-inline: 16px; }
.hero__text h1 { margin: 0; }
.hero__text p { margin: 8px 0 0; color: var(--ink-70); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.hero__art { position: absolute; inset: 0; width: min(1240px, 100%); margin: 0 auto; }
.hero__tile { position: absolute; display: grid; place-items: center; border-radius: 22px; background: var(--white); box-shadow: 0 10px 24px rgba(31, 111, 229, 0.14), 0 1px 2px rgba(3, 24, 50, 0.06); }
.hero__tile img { width: 52%; height: 52%; object-fit: contain; }
.hero__tile.is-blue { background: var(--blue); }
.hero__tile.is-mint { background: #24cea7; }
.hero__tile.t1 { width: 104px; height: 104px; left: 4%;  top: 44px;  transform: rotate(-10deg); border-radius: 28px; }
.hero__tile.t2 { width: 68px;  height: 68px;  left: 15%; top: 168px; transform: rotate(8deg); }
.hero__tile.t3 { width: 76px;  height: 76px;  left: 22%; top: 30px;  transform: rotate(6deg); }
.hero__tile.t4 { width: 60px;  height: 60px;  left: 0;   top: 190px; transform: rotate(-4deg); opacity: .9; }
.hero__tile.t5 { width: 108px; height: 108px; right: 5%; top: 120px; transform: rotate(9deg); border-radius: 28px; }
.hero__tile.t6 { width: 80px;  height: 80px;  right: 20%; top: 26px; transform: rotate(-7deg); }
.hero__tile.t7 { width: 64px;  height: 64px;  right: 18%; top: 186px; transform: rotate(-12deg); }
.hero__tile.t8 { width: 56px;  height: 56px;  right: 1%; top: 28px;  transform: rotate(5deg); opacity: .9; }
.hero__dot { position: absolute; border-radius: 50%; background: rgba(31, 111, 229, 0.16); }
.hero__dot.d1 { width: 14px; height: 14px; left: 31%; top: 196px; }
.hero__dot.d2 { width: 10px; height: 10px; right: 31%; top: 70px; }
.hero__dot.d3 { width: 220px; height: 220px; right: -60px; bottom: -120px; background: rgba(255, 255, 255, 0.35); }

.layout--home { display: block; max-width: none; }
.layout--home .sidebar { display: none; }
.layout--home .content { max-width: 980px; margin: 0 auto; padding-top: 48px; }
.layout--home .content > * { max-width: none; }
.cat-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cat-rows a { display: flex; align-items: center; gap: 24px; padding: 16px; margin: 0 -16px; border-radius: 12px; color: var(--ink); }
.cat-rows a:hover { background: var(--hover); text-decoration: none; }
.cat-rows__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cat-rows strong { font-size: 20px; line-height: 30px; font-weight: 700; letter-spacing: -0.3px; }
.cat-rows span { color: var(--ink-60); font-size: var(--fs-ui); line-height: var(--lh-ui); letter-spacing: 0; }
.cat-rows small { color: var(--ink-40); font-size: 12px; line-height: 16px; letter-spacing: 0; }
.thumb { flex: none; position: relative; width: 275px; height: 144px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #dceaff, #b9d4ff); }
.thumb::before, .thumb::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.thumb::before { width: 160px; height: 160px; left: -40px; bottom: -90px; }
.thumb::after { width: 90px; height: 90px; right: -20px; top: -30px; }
.thumb__tile { position: relative; z-index: 1; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 22px; background: var(--white); box-shadow: 0 10px 22px rgba(3, 24, 50, 0.12); transform: rotate(-6deg); transition: transform .2s ease; }
.cat-rows a:hover .thumb__tile { transform: rotate(0deg) scale(1.04); }
.thumb__tile img { width: 46px; height: 46px; object-fit: contain; }
.thumb--mint { background: linear-gradient(135deg, #d8f6ee, #a9ead9); }
.thumb--solid { background: linear-gradient(135deg, #4d8ff0, #1f6fe5); }
.thumb--solid .thumb__tile { background: var(--blue); box-shadow: 0 10px 22px rgba(3, 24, 50, 0.24); }
.thumb--solid .thumb__tile img { width: 30px; height: 40px; }
.thumb--amber { background: linear-gradient(135deg, #fff1d6, #ffdc9e); }
/* 카테고리 페이지 맨 위 배너(그리팅 카테고리 페이지 구도): 본문 폭 가득, 가운데 큰 아이콘 카드 */
.thumb--banner { width: 100%; height: auto; aspect-ratio: 700 / 300; margin-bottom: 20px; }
.thumb--banner::before { width: 46%; height: auto; aspect-ratio: 1; left: -12%; bottom: -58%; }
.thumb--banner::after { width: 24%; height: auto; aspect-ratio: 1; right: -5%; top: -22%; }
.thumb--banner .thumb__tile { width: 30%; max-width: 168px; height: auto; aspect-ratio: 1; border-radius: 26%; transform: rotate(-8deg); box-shadow: 0 18px 36px rgba(3, 24, 50, 0.16); }
.thumb--banner .thumb__tile img { width: 56%; height: 56%; }
.thumb--solid.thumb--banner .thumb__tile img { width: 40%; height: 52%; }

/* ── 오른쪽 이 글의 목차 ─────────── */
.toc { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 52px 24px 24px 0; font-size: var(--fs-small); line-height: 18px; letter-spacing: 0; }
.toc__label { margin: 0 0 8px; color: var(--ink); font-weight: 600; }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0; color: var(--ink-60); }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.is-current { color: var(--blue); font-weight: 600; }
.toc__l3 a { padding-left: 12px; }

.scrim { position: fixed; inset: var(--top-h) 0 0; z-index: 19; background: rgba(3, 24, 50, 0.32); }

/* ── 좁은 화면 ───────────────────── */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 264px minmax(0, 1fr); }
  .layout--home { display: block; }
  .hero__tile.t4, .hero__tile.t8 { display: none; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  :root { --fs-h1: 32px; --lh-h1: 42px; --fs-h2: 21px; --lh-h2: 30px; --fs-h3: 18px; --lh-h3: 26px; --fs-body: 16px; --lh-body: 26px; }
  .top { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .top__menu { display: grid; place-items: center; }
  .layout, .layout--no-toc { display: block; }
  .sidebar {
    position: fixed; z-index: 20; top: var(--top-h); left: 0; bottom: 0; height: auto; align-self: stretch;
    width: min(300px, 84vw); padding: 16px 12px calc(16px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: var(--white); border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform .22s ease; visibility: hidden;
  }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  /* 손가락으로 누르기 좋게 한 줄을 40px로 */
  .tree__row, .tree__item { min-height: 40px; }
  .tree__row a, .tree__item { padding-top: 10px; padding-bottom: 10px; }
  .tree__toggle { width: 28px; height: 28px; }
  .tree__item { padding-left: 62px; }
  .content { padding: 28px max(20px, env(safe-area-inset-right)) 72px max(20px, env(safe-area-inset-left)); }
  hr { margin: 20px 0; }
  .prose h2 { margin-top: 40px; }
  .pager { grid-template-columns: 1fr; }
  .pager__next { grid-column: 1; }
  .layout--home .sidebar { display: flex; }
  .hero { height: 220px; }
  .hero__text p { font-size: 15px; line-height: 22px; }
  .hero__tile { transform-origin: center; }
  .hero__tile.t1 { width: 64px; height: 64px; left: -12px; top: 18px; border-radius: 18px; }
  .hero__tile.t5 { width: 64px; height: 64px; right: -10px; top: 136px; border-radius: 18px; }
  .hero__tile.t3 { width: 44px; height: 44px; left: 18%; top: 168px; border-radius: 14px; }
  .hero__tile.t6 { width: 48px; height: 48px; right: 14%; top: 16px; border-radius: 14px; }
  .hero__tile.t2, .hero__tile.t7, .hero__dot.d1, .hero__dot.d2 { display: none; }
  .layout--home .content { padding-top: 32px; }
  .cat-rows a { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .thumb { width: 100%; height: auto; aspect-ratio: 275 / 144; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .tree__toggle svg { transition: none; }
}

/* ── 자주 묻는 질문 ─────────────────
   위에 분류 칩, 분류마다 접히는 질문 목록(Q + 한 줄 질문). 답은 결론 한 줄 + 할 일 몇 개 + 자세히 보기. */
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.faq-cats a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-70); font-size: var(--fs-ui); font-weight: 600; letter-spacing: 0; }
.faq-cats a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.prose h2.faq-group { margin: 40px 0 8px; font-size: 20px; line-height: 30px; }
.faq { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + 24px); }
.faq-group + .faq { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: flex-start; gap: 12px; padding: 16px 4px; cursor: pointer; list-style: none; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq__title { color: var(--blue); }
.faq__q { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 6px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.faq__title { flex: 1; min-width: 0; font-size: 17px; line-height: 26px; font-weight: 600; }
.faq__chev { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--ink-40); stroke-width: 2; transition: transform .15s ease; }
.faq[open] .faq__chev { transform: rotate(180deg); }
.faq[open] .faq__title { color: var(--ink); }
.faq__a { padding: 0 4px 20px 40px; color: var(--ink-70); }
.faq__a > p:first-child { margin-top: 0; color: var(--ink); }
.faq__a ul { margin-bottom: 8px; }
.faq__a ol.steps { margin-bottom: 0; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 12px 0 0 !important; }
.more > span { color: var(--ink-40); font-size: var(--fs-small); letter-spacing: 0; margin-right: 2px; }
.more a { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 8px 0 12px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; }
.more a:hover { background: var(--blue-tint); text-decoration: none; }
.more svg { width: 14px; height: 14px; stroke-width: 2; }
@media (max-width: 860px) {
  .faq summary { gap: 10px; padding: 14px 0; }
  .faq__title { font-size: 16px; line-height: 24px; }
  .faq__a { padding: 0 0 18px 34px; }
}
@media (prefers-reduced-motion: reduce) { .faq__chev { transition: none; } }

/* ── 화면 캡처(폰) ─────────────────────
   캡처는 모두 375×812. 회색 무대 위에 같은 폰 틀(모서리·테두리·그림자)로 놓아 비율과 크기를 맞춘다. */
.stage { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 28px 20px; border-radius: 12px; background: var(--surface); }
.phone { position: relative; flex: none; width: 248px; aspect-ratio: 375 / 812; border-radius: 30px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px rgba(3, 24, 50, 0.1), 0 14px 32px rgba(3, 24, 50, 0.12); }
.phone img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.stage--row { align-items: flex-start; flex-wrap: wrap; gap: 20px 16px; }
.stage__item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 196px; }
.stage__item .phone { width: 100%; border-radius: 24px; }
.stage__item > span { color: var(--ink-70); font-size: var(--fs-small); line-height: 18px; font-weight: 600; text-align: center; letter-spacing: 0; }

/* 흐름 보기: 화면이 차례로 넘어간다(약 2.8초). 단계를 누르면 그 화면으로 가고, 마우스를 올리면 멈춘다. */
.stage--flow { justify-content: center; gap: 32px; padding: 28px 28px; }
.flow__screens img { opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .45s ease, transform .45s ease; }
.flow__screens img.is-on { opacity: 1; transform: none; }
.flow__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 232px; }
.flow__steps button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-60); font: inherit; font-size: 15px; line-height: 22px; text-align: left; letter-spacing: 0; cursor: pointer; overflow: hidden; }
.flow__steps button:hover { background: rgba(3, 24, 50, 0.04); color: var(--ink); }
.flow__steps b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(3, 24, 50, 0.08); color: var(--ink-60); font-size: 12px; font-weight: 700; }
.flow__steps button[aria-current] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(3, 24, 50, 0.08); }
.flow__steps button[aria-current] b { background: var(--blue); color: var(--white); }
/* 다음 화면까지 남은 시간 */
.flow__steps i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); opacity: .5; }
.shot--flow.is-playing .flow__steps button[aria-current] i { animation: flow-progress var(--flow-ms, 2800ms) linear forwards; }
@keyframes flow-progress { to { width: 100%; } }

@media (max-width: 860px) {
  .stage { padding: 20px 12px; }
  .phone { width: min(220px, 62vw); border-radius: 26px; }
  .stage--flow { flex-direction: column; gap: 16px; }
  .flow__steps { width: 100%; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .flow__steps li { flex: none; }
  .flow__steps button { width: auto; padding: 8px 12px 8px 8px; font-size: 14px; white-space: nowrap; }
  .stage__item { width: calc(50% - 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .flow__screens img { transition: none; transform: none; }
  .shot--flow.is-playing .flow__steps button[aria-current] i { animation: none; }
}
