/* 설명서 페이지(모두콜백 /guide/, 모두문자 /message/guide/). CSP 때문에 인라인 스타일을 쓰지 않는다.
   글자 크기는 13 · 14 · 16(휴대폰 15) · 18 · 20 · 섹션 제목 · 대표 제목 일곱 단계만 쓴다. */
:root {
  --a: #2e6bf0;            /* 강조색 */
  --a2: #5a3be6;
  --a-ink: #2457cf;        /* 흰 바탕 위 글씨용 */
  --a-soft: #eef3ff;
  --mint: #0c9a75;
  --mint-soft: #e7f8f2;
  --amber: #9a5b00;
  --amber-soft: #fff5e1;
  --ink: #0e1430;
  --body: #3b4366;
  --muted: #69728f;
  --line: #e3e7f4;
  --soft: #f5f7fd;
  --grad: linear-gradient(135deg, var(--a), var(--a2));
  --wrap: min(1120px, calc(100% - 40px));
  --shadow: 0 24px 56px -34px rgba(26, 40, 110, .45);
  color-scheme: light;
}
.theme-message {
  --a: #6a3df0;
  --a2: #4a2bc4;
  --a-ink: #5a2fd6;
  --a-soft: #f3efff;
  --line: #e6e1f7;
  --soft: #f7f5fe;
  --shadow: 0 24px 56px -34px rgba(74, 43, 196, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--body);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 15px; line-height: 1.7; letter-spacing: -.02em;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--a-ink); text-underline-offset: 3px; }
img { display: block; }
strong { color: var(--ink); font-weight: 700; }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand small { color: var(--muted); font-size: 14px; font-weight: 600; }
.top-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: var(--a); animation: drift 16s ease-in-out infinite alternate; }
.hero::after { width: 360px; height: 360px; left: -140px; bottom: -200px; background: #1fc99a; opacity: .28; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 50px, 0) scale(1.15); } }
.hero-in { position: relative; z-index: 1; padding: 44px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--a-ink); font-size: 13px; font-weight: 700; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #1fc99a; }
.hero h1 { margin-top: 16px; font-size: clamp(25px, 7.2vw, 34px); line-height: 1.3; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 12px; max-width: 560px; color: var(--body); font-size: 16px; }
.start { display: grid; gap: 10px; margin-top: 26px; }
.start a { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.start a:hover { transform: translateY(-3px); border-color: var(--a); }
.start b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 16px; font-weight: 800; }
.start strong { display: block; font-size: 16px; letter-spacing: -.03em; }
.start span { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* 본문 틀: 휴대폰은 위쪽 가로 목차, 넓은 화면은 왼쪽 목차 */
.toc { position: sticky; top: 60px; z-index: 15; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toc ol { display: flex; gap: 6px; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; }
.toc ol::-webkit-scrollbar { display: none; }
.toc a { display: block; padding: 7px 13px; border-radius: 999px; background: var(--soft); color: var(--body); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.toc a.on { background: var(--ink); color: #fff; }
.toc-title { display: none; }
.sections { padding: 8px 0 72px; }

section.part { padding: 44px 0 4px; }
.part-no { display: inline-block; color: var(--a-ink); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.part h2 { margin-top: 6px; font-size: clamp(21px, 6vw, 26px); line-height: 1.32; }
.part > .sum { margin-top: 10px; color: var(--body); font-size: 16px; }
.part > .sum + * { margin-top: 18px; }
.part .tbl + p, .part .steps + .dots, .part .shot + p, .part .dots + p, .part .cards + p { margin-top: 14px; }
.part h3 { margin-top: 30px; font-size: 18px; line-height: 1.4; letter-spacing: -.035em; }
.part h3 + p, .part h3 + .steps, .part h3 + ul.dots { margin-top: 10px; }
.part p + p { margin-top: 8px; }

/* 누르는 순서: 설정 › 다시 연락 */
.path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0; }
.path b { padding: 2px 9px; border-radius: 8px; background: var(--a-soft); color: var(--a-ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.path i { color: var(--muted); font-style: normal; font-size: 13px; }
.key { padding: 1px 8px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 650; white-space: nowrap; }

/* 번호 붙은 순서 */
.steps { display: grid; gap: 10px; counter-reset: s; }
.steps > li { position: relative; padding: 14px 16px 14px 56px; border-radius: 16px; border: 1px solid var(--line); background: #fff; counter-increment: s; }
.steps > li::before { content: counter(s); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--a-soft); color: var(--a-ink); font-size: 14px; font-weight: 800; }
.steps strong { display: block; font-size: 16px; letter-spacing: -.03em; }
.steps p { color: var(--body); }

/* 점 목록 */
ul.dots { display: grid; gap: 7px; }
ul.dots > li { position: relative; padding-left: 18px; }
ul.dots > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--a); }

/* 카드 묶음 */
.cards { display: grid; gap: 10px; margin-top: 14px; }
.card { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.card h4 { margin: 0 0 4px; color: var(--ink); font-size: 16px; font-weight: 750; letter-spacing: -.03em; }
.card p { font-size: 14px; line-height: 1.62; }
.card .ico { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 12px; background: var(--a-soft); font-size: 18px; }

/* 알아두기 · 주의 */
.note { display: flex; gap: 10px; margin-top: 14px; padding: 13px 15px; border-radius: 14px; background: var(--mint-soft); color: #0b5d48; font-size: 14px; line-height: 1.62; }
.note::before { content: "TIP"; flex: none; align-self: flex-start; margin-top: 2px; padding: 1px 7px; border-radius: 6px; background: var(--mint); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.note.warn { background: var(--amber-soft); color: #6b4000; }
.note.warn::before { content: "주의"; background: var(--amber); letter-spacing: 0; }
.note strong { color: inherit; }

/* 작은 화면 그림 */
.shot { margin-top: 16px; padding: 18px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.shot-cap { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
/* 실제 앱 화면(2026-11-23) */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; padding: 18px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.screens figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.screens img { display: block; width: 100%; max-width: 270px; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.screens figcaption { margin-top: 10px; max-width: 270px; color: var(--body); font-size: 14px; line-height: 1.5; text-align: center; }
.screens figcaption b { color: var(--a-ink); }
.screens.wide { grid-template-columns: 1fr; }
.screens.wide img, .screens.wide figcaption { max-width: 480px; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; max-width: 420px; margin-inline: auto; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.tabs span { display: grid; gap: 3px; justify-items: center; padding: 7px 2px; border-radius: 12px; color: var(--muted); font-size: 13px; font-weight: 650; }
.tabs span::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.tabs span.on { background: var(--a-soft); color: var(--ink); }
.tabs span.on::before { background: var(--grad); }
.chat { display: grid; gap: 8px; max-width: 420px; margin-inline: auto; }
.chat .when { justify-self: center; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; }
.chat .me { justify-self: end; max-width: 86%; padding: 11px 14px; border-radius: 18px 18px 4px 18px; background: var(--grad); color: #fff; font-size: 14px; line-height: 1.55; }
.chat .me a { color: #fff; }
.pop { max-width: 420px; margin-inline: auto; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.pop small { display: flex; justify-content: space-between; color: var(--a-ink); font-size: 13px; font-weight: 650; }
.pop small span { color: var(--muted); }
.pop strong { display: block; margin-top: 6px; font-size: 20px; letter-spacing: -.04em; }
.pop p { color: var(--muted); font-size: 14px; }
.pop .tag { display: inline-block; margin-top: 8px; margin-right: 4px; padding: 2px 10px; border-radius: 999px; background: var(--a-soft); color: var(--a-ink); font-size: 13px; font-weight: 650; }
.pop .memo { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--body); }

/* 표 */
.tbl { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.6; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { background: var(--soft); color: var(--ink); font-weight: 700; }
.tbl tbody th { width: 34%; color: var(--ink); font-weight: 700; }
.tbl small { color: var(--muted); font-size: 13px; font-weight: 600; }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 8px; margin-top: 16px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq details[open] { border-color: var(--a); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 15px 16px; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.03em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .ans { padding: 0 16px 16px; }
.faq .ans p + p, .faq .ans p + ul, .faq .ans ul + p { margin-top: 8px; }

/* 마무리 */
.end { margin-top: 56px; padding: 30px 22px; border-radius: 24px; background: var(--ink); color: #c9d0ea; text-align: center; }
.end h2 { color: #fff; font-size: clamp(21px, 6vw, 26px); line-height: 1.32; }
.end p { margin-top: 8px; }
.end a.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 18px; padding: 0 24px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 750; text-decoration: none; }
.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }
.foot a { color: var(--body); }
.foot p + p { margin-top: 6px; }

/* 스크롤하면 나타나기 (스크립트가 켜졌을 때만 숨겨 둔다) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .rv.in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  body { font-size: 16px; }
  .start { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-in { padding: 64px 0 56px; }
}
@media (min-width: 980px) {
  html { scroll-padding-top: 84px; }
  .hero h1 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.25; }
  .hero .lead { font-size: 18px; }
  .layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc { position: sticky; top: 84px; margin-top: 44px; background: none; backdrop-filter: none; border: 0; }
  .toc-title { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
  .toc ol { display: grid; gap: 2px; padding: 0; overflow: visible; }
  .toc a { padding: 8px 12px; border-radius: 10px; background: none; white-space: normal; }
  .toc a:hover { background: var(--soft); }
  .toc a.on { background: var(--a-soft); color: var(--a-ink); }
  .sections { max-width: 760px; }
  .part h2 { font-size: clamp(26px, 2.6vw, 36px); }
  .part h3 { font-size: 20px; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .end h2 { font-size: clamp(26px, 2.6vw, 36px); }
}
@media (max-width: 979px) {
  .layout { width: 100%; }
  .sections { width: var(--wrap); margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero::after { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .start a, .faq summary::after { transition: none; }
}
