/* ─────────────────────────────────────────────────────────────
   한글 구조대 공식 홈페이지 — 공용 스타일시트
   index / support / privacy / terms 4개 페이지가 공유한다.
   외부 폰트·라이브러리 의존 없음 (로딩 속도 + 심사자 접근성 우선).
   ───────────────────────────────────────────────────────────── */

:root {
  --gold: #f0a41f;
  --gold-dark: #d4860a;
  --ink: #2b2118;
  --ink-soft: #5c5045;
  --line: #e8e0d6;
  --bg: #fffdf9;
  --bg-alt: #fdf6ea;
  --radius: 16px;
  --max: 1080px;
  /* 본문(약관/정책)은 가독성을 위해 더 좁게 */
  --max-text: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-dark); }
a:hover { color: var(--gold); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-text { width: 100%; max-width: var(--max-text); margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.site-header .brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.site-header nav a:hover { color: var(--gold-dark); }

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

.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 64px 0 72px;
  text-align: center;
}

.hero .logo {
  max-width: 340px;
  margin: 0 auto 28px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: 19px;
  color: var(--ink-soft);
}

/* 스토어 배지 */
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badges img { height: 54px; width: auto; }

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

section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  text-align: center;
  letter-spacing: -0.01em;
}

section .section-lead {
  margin: 0 auto 40px;
  max-width: 620px;
  text-align: center;
  color: var(--ink-soft);
}

/* ── 스크린샷 ───────────────────────────────────────────── */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.shots img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(43, 33, 24, 0.08);
}

/* ── 특징 카드 ──────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.features li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.features h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.features p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ── 요금/구독 ──────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.plan.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 164, 31, 0.16);
}

.plan h3 { margin: 0 0 4px; font-size: 20px; }

.plan .price {
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan .price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.plan ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.plan ul li { margin-bottom: 6px; }

.note {
  margin: 28px auto 0;
  max-width: var(--max-text);
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
}

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

.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}

.contact-box .mail {
  display: inline-block;
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 800;
  word-break: break-all;
}

.faq { margin-top: 40px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 4px 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
}

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

.faq summary::before {
  content: "Q. ";
  color: var(--gold-dark);
  font-weight: 800;
}

.faq details > p,
.faq details > ul {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

/* ── 약관·정책 본문 ─────────────────────────────────────── */

.doc { padding: 56px 0 80px; }
.doc h1 { font-size: 28px; margin: 0 0 6px; }

.doc .meta {
  margin: 0 0 40px;
  color: var(--ink-soft);
  font-size: 15px;
}

.doc h2 {
  font-size: 20px;
  text-align: left;
  margin: 40px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 15px;
}

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

.doc th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }

/* ── 푸터 ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 40px 0 56px;
  font-size: 15px;
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.site-footer nav a { font-weight: 600; text-decoration: none; }
.site-footer p { margin: 4px 0; }

/* ── 모바일 ─────────────────────────────────────────────── */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 17px; }
  .hero .logo { max-width: 260px; }
  section { padding: 48px 0; }
  section h2 { font-size: 22px; }
  .store-badges img { height: 46px; }
}
