:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #23201c;
  --muted: #6d665d;
  --line: #ece4d8;
  --accent: #ee4b23;
  --accent-ink: #c43a17;
  --radius: 18px;
  --max: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { display: block; height: 30px; width: auto; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent-ink); }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 64px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0; max-width: 560px; color: var(--muted); font-size: 18px; }

/* Sections */
section { padding: 40px 0 72px; }
.section-title { margin: 0 0 24px; font-size: 24px; letter-spacing: -0.01em; }

/* App grid */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.app {
  display: flex; gap: 16px; align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.app:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 40, 20, 0.08); }
.app img { width: 72px; height: 72px; border-radius: 18px; flex: 0 0 auto; }
.app h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.app p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.app .store { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* Contact */
.contact {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact h2 { margin: 0 0 8px; font-size: 22px; }
.contact p { margin: 0; color: var(--muted); }
.contact a { font-weight: 600; }

/* Document pages (policy, deletion) */
.doc { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.doc h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 40px); line-height: 1.2; letter-spacing: -0.01em; }
.doc .meta { margin: 0 0 32px; color: var(--muted); }
.doc h2 { margin: 40px 0 12px; font-size: 21px; line-height: 1.35; }
.doc h3 { margin: 28px 0 8px; font-size: 17px; }
.doc p, .doc li { color: #3a352f; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 44px; }
.doc .note { background: #fff3ee; border: 1px solid #f6d3c6; border-radius: 12px; padding: 14px 16px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand img { height: 26px; }
  .hero { padding-top: 56px; padding-bottom: 40px; }
  .hero p { font-size: 16px; }
  .contact { padding: 24px; }
}
