/*
 * 지원 사이트 공통 스타일.
 * 색은 앱 아이콘에서 그대로 가져왔다 — 종이(#F6F5F0)와 먹(#2E2C36), 그리고 키 세 개.
 * 제품마다 색을 바꾸지 않는다. 두 앱이 같은 아이콘 문법을 쓰고 있어서, 구분은 마크와 글자가 한다.
 */

:root {
  --paper: #f6f5f0;
  --paper-deep: #efeee7;
  --surface: #ffffff;
  --ink: #2e2c36;
  --ink-strong: #1b1a20;
  --muted: #6f6d77;
  --line: rgba(46, 44, 54, 0.13);
  --line-soft: rgba(46, 44, 54, 0.07);
  --dot: #c7c6c0;
  --shadow: 0 1px 2px rgba(27, 26, 32, 0.05), 0 12px 28px rgba(27, 26, 32, 0.06);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15141a;
    --paper-deep: #100f14;
    --surface: #1e1d25;
    --ink: #ecebef;
    --ink-strong: #ffffff;
    --muted: #a09eab;
    --line: rgba(255, 255, 255, 0.13);
    --line-soft: rgba(255, 255, 255, 0.07);
    --dot: #4b4956;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans",
    "Yu Gothic", "Noto Sans KR", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  margin: 0 auto;
  max-width: 940px;
  padding: 0 20px;
}

/* ── 상단 바 ─────────────────────────────────────────── */

.topbar {
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .wrap {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: block;
  height: 40px;
  width: 40px;
}

.brand-copy { display: flex; flex-direction: column; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.brand-note { color: var(--muted); font-size: 12px; line-height: 1.3; }

.langs {
  display: flex;
  gap: 6px;
}

.langs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.langs a:hover { border-color: var(--ink); color: var(--ink); }

.langs a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ── 히어로 ──────────────────────────────────────────── */

.hero { padding: 56px 0 12px; }
.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink-strong);
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
  max-width: 34em;
}

.button {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  font-size: 15px;
  font-weight: 650;
  gap: 8px;
  margin-top: 24px;
  padding: 11px 22px;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.button:hover { opacity: 0.88; transform: translateY(-1px); }

/* 아이콘 아래의 키 세 개. 브랜드에서 가져온 유일한 장식이다. */
.dots {
  display: flex;
  gap: 7px;
  margin: 44px 0 0;
}

.dots span {
  background: var(--dot);
  border-radius: 3px;
  height: 9px;
  width: 9px;
}

.dots span:first-child { background: var(--ink); }

/* ── 섹션 공통 ───────────────────────────────────────── */

section { padding: 40px 0; }

.section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

/* ── 처음 설정 ───────────────────────────────────────── */

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.step-no {
  align-items: center;
  background: var(--paper-deep);
  border-radius: 9px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  margin-bottom: 12px;
  width: 26px;
}

.steps h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.steps p { color: var(--muted); font-size: 14.5px; margin: 0; }

.section-note {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

/* ── FAQ ────────────────────────────────────────────── */

.faq-group { margin-bottom: 26px; }

.faq-group > h3 {
  font-size: 15px;
  font-weight: 750;
  margin: 0 0 10px;
}

.faq-list {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

details { border-top: 1px solid var(--line-soft); }
details:first-child { border-top: 0; }

summary {
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 650;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 17px 20px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  border-bottom: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  content: "";
  flex: none;
  height: 8px;
  margin-top: 8px;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  width: 8px;
}

details[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
details[open] summary { padding-bottom: 6px; }

.answer {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
  padding: 0 20px 20px;
}

.answer strong { color: var(--ink); font-weight: 650; }

/* ── 문의 ────────────────────────────────────────────── */

.contact {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
  grid-template-columns: 1.25fr 1fr;
  padding: 30px;
}

.contact p { color: var(--muted); margin: 0 0 4px; }

.mail {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  text-decoration: none;
}

.mail strong {
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}

.checklist {
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  list-style: none;
  margin: 0;
  padding: 2px 0 2px 18px;
}

.checklist li { margin-bottom: 8px; }
.checklist li:last-child { margin-bottom: 0; }

/* ── 관련 링크 ───────────────────────────────────────── */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 17px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.links a:hover { border-color: var(--ink); }

/* ── 허브 ────────────────────────────────────────────── */

.hub-head { padding: 72px 0 8px; }
.hub-head h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.hub-head p { color: var(--muted); font-size: 17px; margin: 0; }

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.card img {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: block;
  height: 62px;
  margin-bottom: 18px;
  width: 62px;
}

.card h2 { font-size: 20px; margin: 0 0 4px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }

/* ── 장문 문서 (개인정보처리방침 등) ─────────────────── */

.doc {
  max-width: 46em;
  padding: 48px 0 24px;
}

.doc h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 22px;
}

.doc h2 {
  border-top: 1px solid var(--line-soft);
  font-size: 18px;
  font-weight: 750;
  margin: 40px 0 12px;
  padding-top: 26px;
}

.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }

.doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 표는 좁은 화면에서 페이지가 아니라 표만 넘치게 한다. */
.doc table {
  border-collapse: collapse;
  display: block;
  font-size: 14.5px;
  margin: 0 0 18px;
  overflow-x: auto;
  width: 100%;
}

.doc th, .doc td {
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.doc th { background: var(--surface); font-weight: 700; }
.doc td { color: var(--muted); }

/* ── 바닥글 ──────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 40px;
  padding: 26px 0 48px;
}

footer .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── 좁은 화면 ───────────────────────────────────────── */

@media (max-width: 720px) {
  .steps, .cards, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hub-head { padding-top: 48px; }
  .contact { padding: 24px; }
  .checklist { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}
