:root {
  color-scheme: light;
  /* 블로그(흑백·그레이지)와 첫 파스텔 사이의 중간 톤 */
  --bg: #f3f0eb;        /* 웜 그레이 바탕 */
  --bg-soft: #ebe6df;   /* 한 단계 깊은 바탕 (배지, 표 머리) */
  --card: #fdfcfa;      /* 흰 패널 */
  --ink: #2c2b33;       /* 본문 */
  --ink-soft: #6c6975;  /* 보조 글자 */
  --ink-faint: #9b97a2; /* 더 옅은 글자 */
  --line: #e4ded6;      /* 얇은 테두리 */
  --pink: #e98aa0;      /* 채도 낮춘 핑크 포인트 */
  --pink-soft: #f4e2e4;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.logo-mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 2px; }
.nav-link {
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  padding: 8px 12px; border-radius: 999px;
}
.nav-link:hover { color: var(--ink); background: var(--card); }

/* ---------- hero ---------- */
.hero { padding: 36px 0 20px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 {
  margin: 0 0 14px; font-size: clamp(32px, 8.4vw, 46px); line-height: 1.22;
  letter-spacing: -0.04em; font-weight: 800;
}
.hero p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* 아이콘 무더기: 페이지에서 유일하게 '튀는' 요소 */
.shelf { position: relative; height: 150px; max-width: 320px; }
.shelf-item { position: absolute; }
.shelf-item .app-icon {
  width: 84px; height: 84px; border-radius: 22px; font-size: 40px;
  box-shadow: 0 1px 0 rgba(44, 43, 51, .05), 0 10px 22px -8px rgba(44, 43, 51, .22);
}
.shelf-1 { left: 0;     top: 22px; transform: rotate(-7deg); }
.shelf-2 { left: 92px;  top: 0;    transform: rotate(5deg); }
.shelf-3 { left: 184px; top: 34px; transform: rotate(-3deg); }
.shelf-next { left: 184px; top: 34px; transform: rotate(-3deg); }
.shelf-3 ~ .shelf-next { left: 276px; top: 8px; transform: rotate(6deg); }
.shelf-item .next-slot {
  background: transparent; box-shadow: none; border: 2px dashed #cfc8bf;
  color: var(--ink-faint); font-size: 30px; font-weight: 300;
}

@media (min-width: 720px) {
  .hero { padding: 64px 0 36px; }
  .hero-grid { grid-template-columns: 1fr auto; }
  .shelf { width: 280px; height: 170px; }
  .shelf-item .app-icon { width: 92px; height: 92px; border-radius: 24px; font-size: 44px; }
  .shelf-1 { left: 0;   top: 40px; }
  .shelf-2 { left: 96px; top: 6px; }
  .shelf-next { left: 188px; top: 56px; }
}

/* 첫 로드 때 한 번만, 말랑하게 떨어지는 움직임 */
@media (prefers-reduced-motion: no-preference) {
  .shelf-item { animation: drop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
  .shelf-2 { animation-delay: .08s; }
  .shelf-3, .shelf-next { animation-delay: .16s; }
  .shelf-3 ~ .shelf-next { animation-delay: .24s; }
  @keyframes drop { from { opacity: 0; translate: 0 -24px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
}

/* ---------- sections ---------- */
.section { padding: 22px 0; }
.section-title { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 0 0 12px; }

/* ---------- app list ---------- */
.app-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.app-row { display: flex; gap: 16px; padding: 22px 20px; }
.app-row + .app-row { border-top: 1px solid var(--line); }
.app-icon {
  width: 60px; height: 60px; border-radius: 16px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-size: 28px;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-body { min-width: 0; flex: 1; }
.app-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.app-name { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.app-summary { margin: 2px 0 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.badge { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); background: var(--bg); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; line-height: 1.3; }
.store-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.3;
  text-decoration: none; background: var(--ink); color: #fff; border: 1px solid var(--ink);
}
.store-btn:hover { background: var(--card); color: var(--ink); }
.store-btn svg { width: 14px; height: 14px; }
.store-btn.soon { background: var(--bg-soft); color: var(--ink-soft); border-color: var(--line); cursor: default; }
.app-links { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; }
.app-links a { color: var(--ink-faint); text-decoration: none; }
.app-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 720px) {
  .app-row { padding: 24px 28px; gap: 20px; }
  .app-icon { width: 64px; height: 64px; }
}

/* ---------- blog ---------- */
.blog-link {
  display: flex; gap: 16px; align-items: flex-start; text-decoration: none;
  padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.blog-link:hover { background: var(--card); }
.blog-mark {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; letter-spacing: -0.03em;
}
.blog-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blog-text strong { font-size: 17px; letter-spacing: -0.02em; }
.blog-text span { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.blog-text em { font-style: normal; font-size: 13px; color: var(--ink-faint); margin-top: 6px; }
.blog-link:hover em { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) { .blog-link { padding: 24px 28px; gap: 20px; } }

/* ---------- contact ---------- */
.contact-row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-row p { margin: 0; color: var(--ink-soft); }
@media (min-width: 720px) {
  .contact-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid var(--ink);
}
.btn:hover { background: var(--card); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- document pages ---------- */
.page-head { padding: 20px 0 4px; }
.breadcrumb { font-size: 14px; color: var(--ink-faint); margin-bottom: 8px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(26px, 6vw, 34px); letter-spacing: -0.035em; line-height: 1.25; }
.page-head .meta { color: var(--ink-soft); font-size: 14px; margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; }
.tabs a {
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.tabs a:hover { background: var(--card); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 20px; margin: 16px 0 8px;
}
@media (min-width: 720px) { .doc { padding: 36px 40px; } }
.doc h2 { font-size: 18px; margin: 30px 0 8px; letter-spacing: -0.02em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16px; margin: 20px 0 6px; }
.doc p, .doc li { color: #4a4852; max-width: 40em; }
.doc ul, .doc ol { padding-left: 1.3em; list-style: revert; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }
.placeholder-note {
  background: var(--bg); border: 1px dashed #cfc8bf; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; color: var(--ink-soft); margin-bottom: 20px;
}

/* faq */
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; color: var(--pink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 0; }

/* ---------- 404 ---------- */
.notfound { padding: 56px 20px 32px; }
.notfound .big { font-size: 80px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 0; color: var(--pink); }
.notfound h1 { font-size: 24px; letter-spacing: -0.03em; margin: 18px 0 6px; }
.notfound p { color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 36px; padding: 28px 0 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.site-footer strong { color: var(--ink); font-size: 14px; }
.biz { margin: 8px 0 0; display: grid; gap: 2px; }
.biz li span { display: inline-block; min-width: 108px; color: var(--ink-faint); }
.copyright { margin: 14px 0 0; color: var(--ink-faint); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
