/* 모아 공개 사이트 공용 스타일. 외부 폰트·스크립트 없이 시스템 글꼴만 쓴다. */
:root {
  --primary: #FF7A70;
  --primary-strong: #e8505f;
  --grad: linear-gradient(135deg, #FF9A6B, #FF5C7A);
  --bg: #fff6f3;
  --surface: #ffffff;
  --wash: #fff1ee;
  --ink: #191f28;
  --body: #333d4b;
  --muted: #6b7684;
  --line: #f0e4e0;
  --shadow: 0 12px 40px rgba(255, 92, 122, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171c;
    --surface: #202028;
    --wash: #2b2226;
    --ink: #f4f4f6;
    --body: #d5d7dc;
    --muted: #9ba1ab;
    --line: #33333d;
    --primary-strong: #ff8a80;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--primary-strong); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* 머리글 */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.header-link { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* 버튼 */
.btn { display: inline-block; border-radius: 14px; padding: 14px 22px; font-size: 16px; font-weight: 700; text-decoration: none; text-align: center; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(255, 92, 122, .28); }
.btn-ghost { background: var(--wash); color: var(--primary-strong); }

/* 랜딩 */
.hero { padding: 56px 0 40px; text-align: center; }
.hero-icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 14px 30px rgba(255, 92, 122, .3); }
.hero h1 { color: var(--ink); font-size: clamp(28px, 6vw, 40px); line-height: 1.3; letter-spacing: -.5px; margin: 24px 0 12px; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.hero .note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding: 12px 0 40px; }
.feature { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.feature .emoji { font-size: 26px; line-height: 1; }
.feature h2 { color: var(--ink); font-size: 17px; margin: 12px 0 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
.band { background: var(--surface); border-radius: 24px; padding: 28px; margin-bottom: 40px; box-shadow: var(--shadow); }
.band h2 { color: var(--ink); font-size: 20px; margin: 0 0 10px; }
.band ul { margin: 0; padding-left: 20px; }
.band li { margin: 4px 0; }

/* 문서 페이지 */
.doc { background: var(--surface); border-radius: 24px; padding: 32px 28px; margin: 28px 0 40px; box-shadow: var(--shadow); }
.doc h1 { color: var(--ink); font-size: 26px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -.3px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.doc h2 { color: var(--ink); font-size: 19px; margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h3 { color: var(--ink); font-size: 16px; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .callout { background: var(--wash); border-radius: 16px; padding: 16px 18px; margin: 16px 0; }
.doc .callout p { margin: 0; }
.doc .callout p + p { margin-top: 6px; }
.toc { background: var(--wash); border-radius: 16px; padding: 14px 18px 14px 40px; font-size: 15px; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--wash); color: var(--ink); font-weight: 700; }
th:first-child, td:first-child { min-width: 7.5em; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 12px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cards .card { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.cards .card h3 { margin-top: 0; }

/* 바닥글 */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.site-footer nav a { color: var(--body); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 4px 0; }

@media (max-width: 520px) {
  .doc { padding: 24px 18px; border-radius: 18px; margin: 16px 0 28px; }
  .hero { padding-top: 40px; }
  .hero .actions .btn { width: 100%; }
  .band { padding: 22px 18px; }
}
