:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F5F6F8;
  --amber-soft: #FBF1E6;
  --ink: #111111;
  --ink2: #5E6166;
  --line: #E5E6EA;
  --amber: #D4761F;
  --amber-deep: #A8550F;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }

a { color: var(--amber-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1040px; }

/* 머리 */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 22px; width: auto; display: block; }
.top nav { display: flex; gap: 16px; font-size: 14px; }
.top nav a { color: var(--ink2); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* 본문 */
main.wrap { padding-top: 24px; padding-bottom: 56px; }
.doc { background: var(--surface); }
h1 { text-wrap: balance; font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.meta { color: var(--ink2); font-size: 14px; margin: 0 0 24px; }
h2 { text-wrap: balance; font-size: 19px; line-height: 1.4; font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 10px; padding-top: 4px; }
h2:first-of-type { margin-top: 8px; }
h1 + h2 { margin-top: 24px; }
h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 20px; }
li { margin: 4px 0; }
li::marker { color: var(--ink2); }
strong { font-weight: 700; }

.table { width: 100%; overflow-x: auto; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 700; color: var(--ink2); font-size: 13px; white-space: nowrap; }
td:first-child { font-weight: 600; min-width: 92px; }

.toc { background: var(--tint); border-radius: 12px; padding: 14px 16px; margin: 0 0 8px; font-size: 15px; }
.toc ol { margin: 0; columns: 2; column-gap: 24px; }
.toc li { margin: 0 0 4px; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.path { display: inline-block; background: var(--tint); border-radius: 8px; padding: 2px 8px; font-weight: 700; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 34px; margin: 10px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

.en { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.en h2 { margin-top: 0; }
.note { color: var(--ink2); font-size: 14px; }
.mail { font-weight: 700; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink2); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 0; }

/* 404 · 앱에서 열기 */
.hero { padding: 48px 0 8px; }
.hero .sub { color: var(--ink2); margin: 0 0 28px; }
.links { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 420px; }
.links li { margin: 0; }
.links li + li { border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.links a::after { content: "›"; color: var(--ink2); font-size: 20px; line-height: 1; }
.links a:hover { background: var(--tint); }

/* 첫 화면 */
.home main.wrap { padding-top: 0; }
.home .hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 0 40px; }
.eyebrow { color: var(--amber-deep); font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.home h1 { font-size: 40px; line-height: 1.22; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; }
.home .lead { font-size: 17px; line-height: 1.6; color: var(--ink2); margin: 0; }
.hero-mark { display: none; }
.br-m { display: none; }

.features { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 32px; }
.feature { background: var(--tint); border-radius: 20px; padding: 20px; }
.ficon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--amber); margin: 0 0 14px; }
.feature h2 { font-size: 19px; line-height: 1.4; margin: 0 0 4px; padding: 0; }
.feature p { color: var(--ink2); font-size: 15px; line-height: 1.6; margin: 0; }

.launch { border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; margin: 0 0 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--amber-soft); color: var(--amber-deep); font-size: 14px; font-weight: 700; line-height: 1; padding: 8px 12px; border-radius: 999px; margin: 0 0 12px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.launch h2 { font-size: 19px; line-height: 1.4; margin: 0 0 16px; padding: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; flex: 1 1 140px; max-width: 200px; height: 56px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.store b { font-size: 15px; line-height: 1.2; }
.store span { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.72); font-weight: 600; }

.age { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: 14px; line-height: 1.5; margin: 0 0 56px; }
.age-mark { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 800; }

/* 꼬리 */
footer { border-top: 1px solid var(--line); background: var(--tint); padding: 24px 0 32px; font-size: 13px; color: var(--ink2); line-height: 1.7; }
footer .fnav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; }
footer .fnav a { color: var(--ink); text-decoration: none; font-weight: 600; }
footer .fnav a:hover { text-decoration: underline; }
footer p { margin: 0; }
footer .biz strong { color: var(--ink); font-weight: 700; }
footer .copy { margin-top: 8px; }

@media (max-width: 480px) {
  .top nav { display: none; }
  .toc ol { columns: 1; }
  h1 { font-size: 24px; }
  .home h1 { font-size: 34px; }
  .br-m { display: inline; }
}

@media (min-width: 720px) {
  main.wrap { padding-top: 40px; padding-bottom: 72px; }
}

@media (min-width: 840px) {
  .home .hero { padding: 88px 0 64px; }
  .home h1 { font-size: 56px; }
  .home .lead { font-size: 20px; }
  .hero-mark { display: block; width: 150px; height: auto; margin-right: 48px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
  .feature { padding: 28px 24px; }
  .launch { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px; padding: 28px 32px; }
  .launch .badge { grid-column: 1; justify-self: start; }
  .launch h2 { grid-column: 1; margin: 0; }
  .launch .stores { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
  .store { width: 170px; }
}

@media print {
  .top, footer, .toc { display: none; }
  body, .doc { background: #fff; border: 0; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

[id] { scroll-margin-top: 72px; }

/* 앱에서 열기 */
.openapp .badge { margin-bottom: 16px; }
.openapp .stores { margin: 0 0 28px; }
.openapp .store { background: var(--ink); color: #fff; }
