/* dolpha.app 공용 스타일 — 랜딩·법적 문서·고객지원 페이지가 함께 사용한다. */

:root {
  color-scheme: dark;
  --bg: #1a1b26;
  --surface: #232433;
  --border: #33354a;
  --text: #f2f2f7;
  --text-muted: #a9abbd;
  --accent: #00ffdd;
  --accent-ink: #00201d;
  --purple: #7b5ea7;
  --todo-bg: #ffd60a;
  --todo-ink: #1c1c1e;
  --radius: 14px;
  --content-width: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.brand img { width: 32px; height: 32px; }

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 16px;
}

.site-nav a:hover { color: var(--text); }

/* ── Main ─────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

h1 { font-size: 28px; line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 40px 0 12px; }
h3 { font-size: 16px; margin: 24px 0 8px; }
p, li { color: var(--text); }
ul, ol { padding-left: 22px; }
li + li { margin-top: 4px; }

.muted { color: var(--text-muted); }

.doc-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}

.table-wrap { overflow-x: auto; margin: 12px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th { background: var(--surface); font-weight: 700; }

/* 운영자가 채워야 하는 값. 남아 있으면 predeploy 검사가 배포를 막는다. */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
}

.toc ol { margin: 0; }

/* ── Landing ──────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 40px 0 24px;
}

.hero img { width: 96px; height: 96px; }

.hero .slogan {
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  margin: 20px 0 0;
}

.hero h1 { font-size: 34px; margin-top: 4px; }

.intro {
  text-align: center;
  max-width: 560px;
  margin: 32px auto 0;
}

.intro h2 { margin-top: 0; }
.intro p { color: var(--text-muted); }

.hero .tagline {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 auto 28px;
  max-width: 480px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.feature h3 { margin: 0 0 6px; color: var(--accent); }
.feature p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer .inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 20px 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 12px;
}

.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a.strong { font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }

.site-footer p { margin: 2px 0; color: var(--text-muted); }

@media (max-width: 520px) {
  h1 { font-size: 24px; }
  .hero h1 { font-size: 28px; }
  .site-nav a { margin-left: 12px; }
}
