:root {
  --bg: #ffffff;
  --fg: #191f28;
  --sub: #4e5968;
  --muted: #8b95a1;
  --line: #e9ecef;
  --soft: #f5f6f8;
  --accent: #f2b200;
  --accent-soft: #fff5d1;
  --accent-ink: #7a5600;
  --link: #3182f6;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --fg: #f1f3f5;
    --sub: #b0b8c1;
    --muted: #7e8791;
    --line: #262a30;
    --soft: #1a1d22;
    --accent: #ffc933;
    --accent-soft: #2f2710;
    --accent-ink: #ffd75e;
    --link: #64a8ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.75 "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 언어: html[data-lang]에 맞는 쪽만 보인다 */
html[data-lang="ko"] .en, html[data-lang="en"] .ko { display: none !important; }

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

/* 상단 */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); font-size: 15px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.top nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.top nav a { color: var(--sub); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.top nav a:hover { background: var(--soft); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.lang-btn { margin-left: 4px; font: inherit; font-size: 13px; color: var(--sub); background: var(--soft); border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.lang-btn:hover { color: var(--fg); }

/* 본문 */
main.wrap { padding-top: 48px; padding-bottom: 72px; }
.points + section { margin-top: 44px; }
.eyebrow { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
h1 { font-size: 32px; line-height: 1.3; letter-spacing: -0.03em; margin: 0 0 12px; }
.lead { color: var(--sub); font-size: 17px; margin: 0; }
h2 { font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 10px; }
section + section { margin-top: 44px; }
p { margin: 0 0 10px; }
ul { margin: 0 0 10px; padding-left: 20px; }
li { margin: 4px 0; }
li::marker { color: var(--muted); }
.sub { color: var(--sub); }
.muted { color: var(--muted); font-size: 14px; }
strong { font-weight: 650; }

/* 강조 묶음 */
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; background: var(--soft); border-radius: 14px; font-size: 15px; }
.points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23c48f00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* 카드 */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head img { width: 52px; height: 52px; border-radius: 12px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.app-head b { display: block; font-size: 17px; line-height: 1.35; }
.app-head span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.facts { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; margin: 0; border-top: 1px solid var(--line); }
.facts li span:first-child { color: var(--sub); }
.facts li span:last-child { text-align: right; font-weight: 550; }

/* 개인정보 본문 번호 */
.num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 700; vertical-align: 2px; }
.policy section { padding-top: 4px; }
.policy section p, .policy section ul { color: var(--sub); }
.policy section ul ul { margin-top: 4px; }

/* 앱 이동 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); font-size: 14px; font-weight: 550; }
.chips a:hover { background: var(--soft); text-decoration: none; }
.chips img { width: 26px; height: 26px; border-radius: 7px; }
.chips a.plain { padding-left: 14px; }

/* 자주 묻는 질문 */
.faq { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { background: var(--soft); }
.faq .answer { padding: 0 20px 18px; color: var(--sub); }
.faq .answer p:last-child { margin: 0; }

/* 문의 */
.contact { margin-top: 48px; padding: 28px 24px; border-radius: var(--radius); background: var(--soft); text-align: center; }
.contact h2 { margin-bottom: 6px; }
.contact p { color: var(--sub); font-size: 15px; }
.btn { display: inline-block; margin-top: 10px; padding: 12px 22px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 15px; }
.btn:hover { text-decoration: none; opacity: .88; }
.contact .mail { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* 첫 화면 앱 목록 */
.apps { display: grid; gap: 12px; margin-top: 32px; }
.apps a.card { display: block; color: var(--fg); transition: background .15s; }
.apps a.card:hover { background: var(--soft); text-decoration: none; }
.links { display: flex; gap: 16px; margin-top: 24px; font-size: 15px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  main.wrap { padding-top: 32px; padding-bottom: 56px; }
  h1 { font-size: 27px; }
  .lead { font-size: 16px; }
  .top nav a.hide-sm { display: none; }
}

/* 테스트 참여 단계 */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; counter-reset: step; }
.steps > li { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.steps h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 6px; }
.steps h2::before { content: counter(step); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 800; }
.steps p { color: var(--sub); font-size: 15px; margin: 0 0 12px; }
.steps .btn { margin-top: 2px; }
.btn.block { display: block; text-align: center; }
.btn.ghost { background: var(--soft); color: var(--fg); }
.note { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; }
.note strong { color: inherit; }
.share { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--soft); text-align: center; }
.share img { width: 168px; height: 168px; border-radius: 12px; background: #fff; padding: 10px; margin: 12px auto 4px; display: block; }
.share .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.share button { font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer; background: var(--fg); color: var(--bg); }
.share button.ghost { background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* 앱 받기 (links/) — 휴대폰에서 누르기 편하게 큰 버튼 */
.store-list { display: grid; gap: 14px; margin-top: 28px; }
.store-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; scroll-margin-top: 72px; }
.store-list section + section { margin-top: 0; }
.store-card .app-head img { width: 60px; height: 60px; border-radius: 14px; }
.store-card .app-head b { font-size: 18px; }
.app-head .inline { display: inline !important; color: inherit; font-size: inherit; }
html[data-lang="en"] .app-head .inline { display: none !important; }
.store-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.store-btn { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-weight: 700; font-size: 16px; line-height: 1.2; -webkit-tap-highlight-color: transparent; }
.store-btn:hover { text-decoration: none; background: var(--soft); }
.store-btn:active { transform: scale(0.98); }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn .t { flex: 1; text-align: center; padding-right: 24px; }
.store-btn.mine { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.store-btn.mine:hover { background: var(--fg); opacity: .9; }
.store-btn.soon { color: var(--muted); background: var(--soft); border-style: dashed; cursor: default; }
.store-btn.soon.mine { background: var(--soft); color: var(--muted); border-color: var(--line); }
.test-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }
/* 휴대폰: 버튼을 한 줄에 하나씩, 크게 */
@media (max-width: 560px) {
  .store-row { grid-template-columns: 1fr; gap: 8px; }
  .store-btn { min-height: 54px; font-size: 17px; }
}
