:root {
  --blue-900: #0b2a4a;
  --blue-800: #10365d;
  --blue-700: #14487a;
  --blue-500: #1a7fd4;
  --blue-400: #3ca0eb;
  --blue-050: #eef5fc;
  --green: #0f9d58;
  --green-dark: #0b7c45;
  --ink: #17212e;
  --ink-soft: #47576b;
  --line: #d8e2ee;
  --white: #ffffff;
  --radius: 12px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #f6f9fc;
  line-height: 1.75;
  font-size: 16px;
  word-break: keep-all;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

a { color: var(--blue-700); }
a:hover { color: var(--blue-500); }

/* ---------- header ---------- */
.site-header {
  background: var(--blue-900);
  color: var(--white);
  border-bottom: 3px solid var(--blue-500);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { display: block; height: 40px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: .2px; }
.brand-text small { font-size: 12px; color: #b9d4ee; }

.site-nav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  color: #d8e8f8;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--blue-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 15px 26px;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  border: 2px solid transparent;
}
.btn-web { background: var(--blue-500); color: var(--white); border-color: var(--blue-500); }
.btn-web:hover { background: var(--blue-700); color: var(--white); }
.btn-app { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-app:hover { background: var(--green-dark); color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-500); }
.btn-ghost:hover { background: var(--blue-050); }

.cta-group { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 10px; }
.cta-note { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 36px 0 34px;
}
.hero h1 { font-size: 30px; line-height: 1.35; margin: 0 0 12px; }
.hero p { color: #dbeaf8; margin: 0 0 10px; }
.hero .checked-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: #eaf3fb;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: center; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25); }
.hero figcaption { font-size: 12px; color: #c7dcef; margin-top: 6px; }

/* ---------- content ---------- */
.section { padding: 30px 0; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 20px;
}
h2 { font-size: 23px; line-height: 1.4; margin: 26px 0 10px; color: var(--blue-900); }
h3 { font-size: 18px; line-height: 1.5; margin: 20px 0 8px; color: var(--blue-800); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
p { margin: 0 0 14px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

figure.inline-figure { margin: 18px 0; }
figure.inline-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
figure.inline-figure figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

.table-scroll { overflow-x: auto; margin: 0 0 18px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--blue-050); color: var(--blue-900); }

.notice {
  background: var(--blue-050);
  border-left: 4px solid var(--blue-500);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 18px;
  font-size: 15px;
}
.notice.warn { background: #fff6e6; border-left-color: #e0900b; }

.promo-code {
  display: inline-block;
  background: var(--blue-900);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 19px;
  border: 2px dashed var(--blue-400);
}
.code-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin-bottom: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tile h3 { margin-top: 0; }

.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin: 0 0 6px; }

.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 14px 0 0; }
.breadcrumb a { color: var(--blue-700); text-decoration: none; }
.breadcrumb span { margin: 0 6px; color: #9fb0c2; }

.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 22px; }
.toc h2 { margin: 0 0 8px; font-size: 17px; }
.toc ul { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; }

.keyword-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0 0 16px; }
.keyword-list li {
  background: var(--blue-050);
  border: 1px solid var(--line);
  color: var(--blue-800);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  margin: 0;
}

.page-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 0; }
.page-links a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--blue-800);
  font-weight: 700;
  font-size: 15px;
}
.page-links a:hover { border-color: var(--blue-500); background: var(--blue-050); }
.page-links span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: #cfe1f2;
  margin-top: 34px;
  padding: 30px 0 22px;
  font-size: 14px;
}
.footer-cols { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 26px; }
.footer-title { color: var(--white); font-size: 16px; margin: 0 0 10px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list a { color: #cfe1f2; text-decoration: none; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }
.site-footer .checked { color: #9dc4e6; font-size: 13px; }
.site-footer .age {
  display: inline-block;
  border: 2px solid #cfe1f2;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  line-height: 40px;
  text-align: center;
  font-weight: 700;
  color: var(--white);
  margin: 4px 0 0;
}
.copy {
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin: 22px 0 0;
  padding-top: 14px;
  font-size: 13px;
  color: #a8c6e2;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-links { grid-template-columns: 1fr; }
  .site-nav { order: 3; margin-left: 0; width: 100%; gap: 10px 16px; }
  .header-inner .btn-sm { order: 4; width: 100%; }
  .hero h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  .card { padding: 18px; }
}
