/* 안내 사이트 공통 모양. 앱과 같은 파스텔 바탕과 보라색. 기기에 있는 글꼴만 쓰고 바깥에서 가져오는 것은 없다. */
:root {
  --ink: #1e1b4b;
  --body: #3b3a63;
  --primary: #6366f1;
  --primary-deep: #4f46e5;
  --soft: #eef2ff;
  --line: #c7d2fe;
  --pink: #fdf2f8;
  --green: #15803d;
  --gray: #6b7280;
  --shadow: 0 6px 20px rgba(79, 70, 229, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fdf2f8 linear-gradient(170deg, #eef2ff 0%, #fdf2f8 100%) fixed;
  color: var(--body);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
a { color: var(--primary-deep); text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* 위쪽 줄 */
.site-head { padding: 14px 0 6px; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #fff; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12); }

main { padding: 12px 0 40px; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; margin-top: 36px; margin-bottom: 10px; }
h3 { font-size: 18px; font-weight: 800; margin-top: 24px; margin-bottom: 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--ink); font-weight: 600; }
.small { font-size: 14px; color: var(--gray); }

/* 흰 둥근 카드 */
.card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 22px 20px; margin: 16px 0; }
.card > :last-child { margin-bottom: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* 첫 화면 */
.hero { text-align: center; padding: 22px 0 8px; }
.hero h1 { font-size: 32px; }
.hero .lead { margin: 12px auto 22px; max-width: 30em; }
.hero-art { margin: 8px auto 22px; width: 100%; max-width: 440px; display: block; }

/* 단추 */
.btn {
  display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 800; font-size: 19px;
  padding: 15px 30px; border-radius: 999px; box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35); text-align: center;
}
.btn:hover { background: var(--primary-deep); }
.btn.ghost { background: #fff; color: var(--primary-deep); box-shadow: 0 2px 10px rgba(79, 70, 229, 0.15); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0; }

/* 세 칸 */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 16px 0; }
.grid .card { margin: 0; }
.grid .card h3 { margin-top: 10px; }
.feat-icon { width: 54px; height: 54px; display: block; }

/* 순서 단계 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 22px 20px 22px 20px; margin: 16px 0; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 8px;
}
.step h2 { margin: 0 0 8px; font-size: 21px; }
.step > :last-child { margin-bottom: 0; }
.scene-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 14px 0; }
.scene { background: linear-gradient(170deg, #f5f7ff, #fdf2f8); border-radius: 18px; padding: 14px 12px 12px; text-align: center; }
.scene svg { width: 100%; max-width: 230px; display: block; margin: 0 auto 8px; }
.scene b { color: var(--ink); }
.scene p { margin: 0; font-size: 15px; line-height: 1.55; }
.tag { display: inline-block; font-size: 13px; font-weight: 800; color: var(--primary-deep); background: var(--soft); border-radius: 999px; padding: 2px 12px; margin-bottom: 8px; }

/* 알아 둘 점 */
.note { background: var(--soft); border-radius: 16px; padding: 14px 16px; margin: 14px 0; font-size: 16px; }
.note > :last-child { margin-bottom: 0; }
.note.warn { background: #fff7ed; }

/* 마지막 안내 상자 */
.cta-box { text-align: center; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-radius: 26px; padding: 30px 20px; margin: 28px 0; box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35); }
.cta-box h2 { color: #fff; margin: 0 0 8px; }
.cta-box p { color: #eef2ff; }
.cta-box .btn { background: #fff; color: var(--primary-deep); box-shadow: 0 6px 16px rgba(30, 27, 75, 0.25); margin-top: 6px; }
.cta-box .btn:hover { background: var(--soft); }

/* 자주 묻는 질문 */
.faq { margin: 12px 0; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-bottom: 14px; }

/* 안내 글 */
.article h1 { margin-bottom: 8px; }
.article .byline { font-size: 14px; color: var(--gray); margin-bottom: 18px; }
.article h2 { margin-top: 34px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; background: #fff; border-radius: 14px; overflow: hidden; }
.compare th, .compare td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e0e7ff; }
.compare th { background: var(--soft); color: var(--ink); }
.table-scroll { overflow-x: auto; }
.more { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 14px 0; }
.more a { display: block; background: #fff; border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.more a span { display: block; font-weight: 400; font-size: 14px; color: var(--gray); margin-top: 2px; }
kbd { background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-size: 0.9em; font-family: inherit; color: var(--ink); }

/* 광고 자리: 지금은 비어 있어 보이지 않는다. 광고가 들어오면 가운데에 놓인다. */
.ad-slot { margin: 26px auto; text-align: center; min-height: 0; max-width: 100%; overflow: hidden; }
.ad-slot:empty { display: none; }

/* 아래쪽 줄 */
.site-foot { padding: 28px 0 40px; font-size: 14px; color: var(--gray); }
.site-foot .wrap { border-top: 1px solid var(--line); padding-top: 20px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.site-foot a { color: var(--primary-deep); font-weight: 700; text-decoration: none; }
.site-foot p { margin: 0 0 6px; }

.legal h2 { font-size: 20px; }
.legal ol, .legal ul { margin-bottom: 14px; }

@media (min-width: 640px) {
  body { font-size: 18px; }
  h1 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 24px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .scene-row.two { grid-template-columns: 1fr 1fr; }
  .more { grid-template-columns: repeat(3, 1fr); }
  .card, .step { padding: 28px 30px; }
}

/* 다시 온 사람: 안내 첫 화면 맨 위에서 대화창으로 바로 */
.return-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; margin: 0 auto 20px;
  padding: 14px 18px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.14); border: 2px solid #c7d2fe; font-size: 16px;
}
.return-bar b { color: var(--primary-deep); white-space: nowrap; }
.return-bar:hover { border-color: var(--primary); }
