/* 앱과 같은 색을 쓴다. 링크를 타고 넘어온 사람이 같은 서비스라고 느껴야 한다. */
:root {
  --bg: #f7f5fc;
  --surface: #ffffff;
  --line: #e7e2f2;
  --text: #221d33;
  --muted: #6f6a85;
  --primary: #7c4dff;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Malgun Gothic', 'Noto Sans KR', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

header.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  max-width: 880px;
  margin: 0 auto;
}

header.top strong {
  font-size: 17px;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── 첫 화면 ── */
.hero {
  text-align: center;
  padding: 32px 0 56px;
}

.hero img {
  width: min(320px, 78vw);
  border-radius: 24px;
  border: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(28px, 6vw, 40px);
  margin: 28px 0 12px;
  line-height: 1.35;
}

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

.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.badge {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

/* ── 기능 카드 ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 8px 0 56px;
}

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

.card .emoji {
  font-size: 30px;
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

section h2 {
  font-size: 22px;
  margin: 48px 0 8px;
}

/* ── 문서 페이지 ── */
.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px;
  margin-top: 24px;
}

.doc h1 {
  font-size: 26px;
  margin-top: 0;
}

.doc h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin: 6px 0;
}

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

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

.doc th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.updated {
  color: var(--muted);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  margin: 0 8px;
}

/* ── 선물 랜딩 (/g/{token}) ─────────────────────────────────────────── */

body.gift {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f1ecfc 0%, #fdf6ff 100%);
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
}
.gift-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(136, 84, 208, 0.16);
}
.gift-emoji {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.gift-card h1 {
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 12px;
  word-break: keep-all;
}
.gift-card p {
  color: #6b6b7b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.gift-card .cta {
  display: block;
  background: #8854d0;
  color: #fff;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
}
.gift-card .fine {
  font-size: 12px;
  color: #a0a0b0;
  margin: 16px 0 0;
}
