/* 앱과 같은 색 (Kachi/App/Theme.swift) */
:root {
  --blue: #3A6FF0;
  --blue-lip: #2C58C8;
  --ink: #262A3A;
  --ink-soft: #5B6175;
  --coral: #F0565B;
  --leaf: #62C37A;
  --beak: #FFB020;
  --mist: #F1F3F8;
  --mist-lip: #DDE1EA;
  --mirror: #EEF3FF;
  --bg: #FFFFFF;
}

/* 한글 제목 글꼴: 토스 머니그라피 라운디드(굵기 하나뿐이라 모든 굵기에 같은 모양을 씀).
   수정·재배포 금지 조건이라 파일을 사이트에 두지 않고 눈누가 올려 둔 주소에서 불러옴. 한국어 페이지의 제목·버튼에만 */
@font-face {
  font-family: "Moneygraphy";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2411-2@1.0/Moneygraphy-Rounded.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
html:lang(ko) :is(h1, h2, .button, .store, .links a, .qa summary, .faq summary, .lang summary) {
  font-family: "Moneygraphy", ui-rounded, "Nunito", "Apple SD Gothic Neo", system-ui, sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "Nunito", "Hiragino Maru Gothic ProN", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

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

/* 위 줄 */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
/* 언어 고르기: 누르면 아래로 펼쳐지는 목록 */
.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2.5px solid var(--ink-soft);
  border-bottom: 2.5px solid var(--ink-soft);
  border-radius: 1px;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.lang[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lang nav {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  min-width: 150px;
  padding: 6px;
  background: #fff;
  border: 2px solid var(--mist-lip);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--mist-lip);
  animation: langin 0.22s cubic-bezier(0.2, 1.4, 0.4, 1);
  transform-origin: 100% 0;
}
@keyframes langin { from { opacity: 0; transform: scale(0.9) translateY(-6px); } }
.lang nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.lang nav a:hover { background: var(--mist); }
.lang nav a[aria-current="page"] { color: var(--blue); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .lang nav { animation: none; } }

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--blue-lip);
  transition: transform 0.08s, box-shadow 0.08s;
}
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--blue-lip); }

/* 위 줄 가운데 링크: 어느 페이지에서나 같은 자리 */
.links { display: flex; gap: 4px; margin-left: auto; margin-right: 10px; }
.links a {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.links a[aria-current="page"] { color: var(--blue); }

/* 아래 */
.foot {
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--ink-soft);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.foot nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.foot p { margin: 6px 0; }

/* 개인정보처리방침 같은 글 */
.doc { padding: 40px 0 96px; max-width: 720px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 6vw, 48px); font-weight: 900; margin: 8px 0 6px; line-height: 1.15; letter-spacing: -0.02em; }
.doc .date { color: var(--ink-soft); margin: 0 0 28px; }
.doc h2 { font-size: 20px; font-weight: 800; margin: 32px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc .summary {
  background: var(--mist);
  border-radius: 20px;
  padding: 18px 20px;
  font-weight: 700;
}

/* 질문·지원 페이지: 칸 없이 줄로만 */
.help { padding: 40px 0 96px; max-width: 720px; margin: 0 auto; }
.help h1 { font-size: clamp(36px, 6vw, 48px); font-weight: 900; margin: 8px 0 6px; line-height: 1.15; letter-spacing: -0.02em; }
.help .lead { color: var(--ink-soft); font-size: 19px; margin: 0 0 12px; max-width: 30em; }
.qa { margin-top: 44px; }
.qa h2 { font-size: 15px; font-weight: 800; color: var(--blue); margin: 0 0 4px; }
.qa details { border-bottom: 2px solid var(--mist); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0;
  font-weight: 800; font-size: 18px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 3px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 3px 100% no-repeat;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.qa details[open] summary::after { transform: rotate(135deg); }
.qa details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 34em; }
.qa ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.qa li { margin: 6px 0; }
.qa > p { color: var(--ink-soft); margin: 8px 0 0; }
.more { margin: 28px 0 0; font-weight: 800; color: var(--ink-soft); }
.more a { text-decoration: none; }
.more a::after { content: " →"; }
.reach { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 26px 0 0; }
.reach .addr { font-weight: 700; color: var(--ink-soft); text-decoration: none; word-break: break-all; }

@media (max-width: 680px) {
  body { font-size: 16px; }
  .links { display: none; }
}
