/* MoiPin (모이핀) — 소개 홈페이지 공용 스타일 (issue #55)
   순수 정적. 빌드 없음.
   디자인 방향: moyolo.app 참고 — 밝고 미니멀, 모노크롬 위주, 넉넉한 여백. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --text: #111214;
  --text-muted: #6b7280;
  --border: #ececf0;
  --accent: #2f6df6;       /* 링크·핀 등 최소한의 포인트 */
  --ink: #111214;          /* CTA 등 강조는 검정 계열 */
  --radius: 14px;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --surface: #16171c;
    --surface-2: #1c1e24;
    --text: #f2f3f5;
    --text-muted: #9aa1ad;
    --border: #262932;
    --accent: #6f9bff;
    --ink: #f2f3f5;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR",
    "Noto Sans JP", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 헤더 ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 19px; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .pin { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); }

/* 언어 스위처 */
.langs { display: flex; gap: 2px; flex-wrap: wrap; font-size: 14px; }
.langs a { padding: 5px 9px; border-radius: 8px; color: var(--text-muted); }
.langs a:hover { background: var(--surface-2); text-decoration: none; }
.langs a[aria-current="true"] { color: var(--text); font-weight: 600; }

/* ---------- 히어로 ---------- */
.hero { padding: 96px 0 56px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500;
  color: var(--text-muted); letter-spacing: .02em; margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 6.2vw, 56px); line-height: 1.1;
  letter-spacing: -.035em; margin: 0 0 20px; font-weight: 700;
}
.hero .lede {
  font-size: clamp(17px, 2.3vw, 20px); color: var(--text-muted);
  max-width: 600px; margin: 0 auto 32px;
}
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); font-weight: 600;
  padding: 13px 26px; border-radius: 999px; font-size: 15px;
  border: 1px solid var(--ink);
}
.cta:hover { text-decoration: none; opacity: .88; }
.cta.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.cta-note { display: block; margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ---------- 섹션 ---------- */
.section { padding: 56px 0; }
.section h2 {
  font-size: clamp(24px, 4vw, 30px); letter-spacing: -.025em;
  text-align: center; margin: 0 0 10px; font-weight: 700;
}
.section .section-sub {
  text-align: center; color: var(--text-muted); margin: 0 auto 44px; max-width: 580px;
}
.grid {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card { background: var(--surface); padding: 30px 26px; }
.card .ico { font-size: 24px; margin-bottom: 14px; line-height: 1; }
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; font-weight: 600; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- 프라이버시 강조 ---------- */
.privacy-banner {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px 32px; text-align: center; background: var(--surface-2);
}
.privacy-banner h2 { margin-top: 0; }
.privacy-banner p { color: var(--text-muted); max-width: 560px; margin: 0 auto 24px; }

/* ---------- 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 32px;
  padding: 36px 0; color: var(--text-muted); font-size: 14px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }

/* ---------- 문서(개인정보처리방침) ---------- */
.doc { padding: 56px 0 20px; }
.doc .back { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--text-muted); }
.doc h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -.03em; margin: 0 0 8px; font-weight: 700; }
.doc .meta { color: var(--text-muted); font-size: 14px; }
.doc .note {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; font-size: 14px;
  color: var(--text-muted); margin: 24px 0 36px;
}
.doc article h2 {
  font-size: 21px; letter-spacing: -.015em; margin: 44px 0 10px;
  padding-top: 16px; border-top: 1px solid var(--border); font-weight: 700;
}
.doc article h2:first-of-type { border-top: none; padding-top: 0; }
.doc article h3 { font-size: 16px; margin: 24px 0 6px; font-weight: 600; }
.doc article ul { padding-left: 22px; }
.doc article li { margin: 5px 0; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 40px; }
  .wrap { padding: 0 20px; }
}
