:root {
  --bg: #f6f3ee;
  --card: #fffdf9;
  --ink: #1a1714;
  --muted: #6e675f;
  --faint: #9a9288;
  --line: #e4ddd1;
  --hover: #efe9df;
  --serif: "New York", ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, "Noto Serif KR", "AppleMyungjo", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, "Noto Sans KR", "Hiragino Sans", "PingFang SC", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --card: #1b1917;
    --ink: #eee9e1;
    --muted: #a39b90;
    --faint: #776f66;
    --line: #2e2a26;
    --hover: #24211e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리 */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 960px; width: 100%; margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 24px 0;
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.glyph {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  font: 600 15px/1 var(--sans); letter-spacing: -0.06em;
}
.word { font: 600 17px/1 var(--serif); letter-spacing: -0.01em; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: 14px/1 var(--sans); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 30px 8px 14px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.lang select:hover { color: var(--ink); }

/* 본문 */
.wrap { max-width: 960px; width: 100%; margin: 0 auto; padding: 0 24px 72px; flex: 1; }
.narrow { max-width: 680px; }

.hero { padding: 88px 0 72px; max-width: 720px; }
.hero h1 {
  font: 500 clamp(36px, 6.4vw, 60px)/1.08 var(--serif);
  letter-spacing: -0.025em; margin: 0 0 22px; text-wrap: balance;
}
.lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 560px; text-wrap: pretty; }

.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 18px;
}

.apps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.app { border-bottom: 1px solid var(--line); padding: 26px 0; display: grid; gap: 16px; }
.app-head { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.app-head img, .app-hero img {
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.08);
}
.app-text { display: grid; gap: 4px; }
.app-name { font: 500 24px/1.2 var(--serif); letter-spacing: -0.01em; }
.app-head:hover .app-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.app-tag { color: var(--muted); font-size: 15px; line-height: 1.5; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-left: 92px; font-size: 14px; }
.app-links a:not(.btn) { color: var(--muted); text-decoration: none; }
.app-links a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.app-links .sep { width: 1px; height: 14px; background: var(--line); }
.btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 14px;
}
.btn:hover { opacity: .86; }
.soon {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 13px;
}

.contact { padding-top: 64px; }
.contact p { margin: 0; color: var(--muted); }
.contact a { color: var(--ink); text-underline-offset: 3px; }

/* 앱 페이지 */
.app-hero { text-align: center; padding: 72px 0 40px; display: grid; justify-items: center; gap: 0; }
.app-hero h1 { font: 500 40px/1.15 var(--serif); letter-spacing: -0.02em; margin: 26px 0 12px; }
.app-hero .lead { margin: 0 auto 26px; text-align: center; }
.center { justify-content: center; padding-left: 0; }
.doc-list { border-top: 1px solid var(--line); margin-top: 16px; }
.doc-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px;
}
.doc-list a:hover { background: var(--hover); }
.chev { color: var(--faint); font-size: 22px; line-height: 1; }

/* 문서 */
.doc-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.crumb { margin: 0 0 14px; font-size: 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc h1 { font: 500 clamp(30px, 5vw, 40px)/1.15 var(--serif); letter-spacing: -0.02em; margin: 0 0 12px; }
.date { margin: 0; color: var(--faint); font-size: 14px; }
.doc section { padding: 22px 0 4px; }
.doc h2 { font: 600 17px/1.4 var(--sans); margin: 0 0 8px; letter-spacing: -0.005em; }
.doc p { margin: 0 0 10px; color: var(--ink); opacity: .88; }
.doc ul { margin: 0 0 10px; padding-left: 1.2em; }
.doc li { margin: 0 0 4px; opacity: .88; }
.doc-contact {
  margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px;
}
.doc-contact span { color: var(--muted); }

/* 발 */
.foot {
  max-width: 912px; width: calc(100% - 48px); margin: 0 auto;
  padding: 28px 0 max(32px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint); border-top: 1px solid var(--line);
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .hero { padding: 56px 0 48px; }
  .lead { font-size: 17px; }
  .app-head { gap: 16px; }
  .app-head img { width: 60px; height: 60px; }
  .app-links { padding-left: 0; }
  .app-name { font-size: 21px; }
}

/* 한국어는 낱말 중간에서 줄을 바꾸지 않음 */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }

[data-l]{display:none}
html[data-lang="ko"] [data-l="ko"],
html[data-lang="en"] [data-l="en"],
html[data-lang="ja"] [data-l="ja"],
html[data-lang="zh"] [data-l="zh"],
html[data-lang="es"] [data-l="es"],
html[data-lang="fr"] [data-l="fr"],
html[data-lang="it"] [data-l="it"],
html[data-lang="ru"] [data-l="ru"],
html[data-lang="pt"] [data-l="pt"],
html[data-lang="de"] [data-l="de"]{display:revert}
