/* dabji 랜딩 · 문서 페이지 스타일. 토큰은 tokens.css, 글꼴은 ../fonts/pretendard.css.
   레이아웃: 세로 스크롤 한 페이지, 콘텐츠 최대 폭 1120 가운데, 폰 폭에서 좌우 여백 16. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

/* 글자 */
.t-display { font-size: 30px; line-height: 40px; font-weight: 700; letter-spacing: -0.3px; }
.t-title { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.2px; }
.t-heading { font-size: 17px; line-height: 24px; font-weight: 600; }
.t-label { font-size: 14px; line-height: 20px; font-weight: 500; }
.t-caption { font-size: 13px; line-height: 18px; font-weight: 500; }
.muted { color: var(--ink-2); }
@media (min-width: 900px) {
  .t-display { font-size: 44px; line-height: 52px; letter-spacing: -0.4px; }
  .t-title { font-size: 28px; line-height: 36px; }
}

/* 상단 바 */
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.brand .wordmark { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.2px; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 12px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.topnav a:hover { background: var(--surface-alt); color: var(--ink); }
.topbar-end { display: flex; align-items: center; gap: 8px; min-width: 0; }

/* 언어 전환 "한국어 · English" — 지금 언어는 굵게(aria-current). 링크는 늘 언어를 박은 /ko/… · /en/… 이다
   (짧은 주소로 가면 브라우저 언어가 다시 고르므로 누른 언어가 안 나올 수 있다). 터치 영역은 높이 44. */
.lang-switch { display: flex; align-items: center; flex-shrink: 0; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.lang-switch a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 8px; border-radius: 12px;
  color: var(--ink-2); text-decoration: none;
}
.lang-switch a:hover { background: var(--surface-alt); color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.lang-switch .sep { color: var(--ink-3); }
/* 폰 폭에서는 로고 · 페이지 링크 · 언어 전환이 한 줄에 다 안 들어간다. 페이지 링크(스토어 링크 · 문서 링크)는
   히어로 버튼과 푸터에 같은 것이 있으니 숨기고 언어 전환을 남긴다. */
@media (max-width: 599px) {
  .topnav { display: none; }
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px; border-radius: var(--r-button);
  font: inherit; font-size: 17px; line-height: 24px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--surface-alt); }

/* 섹션 공통 */
.section { padding-block: 56px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .band { border-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 40em; }
.section-head + * { margin-top: 32px; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--primary-deep); letter-spacing: 0.02em; }
@media (min-width: 900px) {
  .section { padding-block: 88px; }
  .section-head + * { margin-top: 40px; }
}

/* 히어로 */
.hero { padding-block: 24px 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-copy .sub { font-size: 17px; line-height: 28px; color: var(--ink-2); max-width: 30em; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row .btn { flex: 1 1 220px; }
.hero-phone { justify-self: center; }
@media (min-width: 900px) {
  .hero { padding-block: 56px 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 72px; }
  .store-row .btn { flex: 0 0 auto; min-width: 224px; }
}

/* 기기 프레임 */
.phone {
  --w: 280px;
  width: var(--w); max-width: 100%;
  padding: 10px; background: var(--ink); border-radius: 48px;
  box-shadow: 0 24px 48px rgba(31, 26, 23, 0.14);
}
.phone img { width: 100%; height: auto; aspect-ratio: 804 / 1748; border-radius: 38px; background: var(--bg); }
.phone--lg { --w: 320px; }

/* 특징 카드 */
.features { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 20px; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.icon-circle {
  width: 56px; height: 56px; border-radius: 999px; background: var(--primary-soft);
  display: grid; place-items: center; color: var(--primary-strong);
}
.icon-circle svg { width: 28px; height: 28px; }
.card h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.card p { color: var(--ink-2); font-size: 15px; line-height: 24px; }
.card .text { display: flex; flex-direction: column; gap: 6px; }

/* 흐름 3단계 */
.steps { display: grid; gap: 40px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.step .phone { --w: 232px; }
.step-text { display: flex; flex-direction: column; gap: 6px; align-items: center; max-width: 24em; }
.step-title { display: inline-flex; align-items: center; gap: 10px; }
.step-num {
  width: 28px; height: 28px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep);
  font-size: 14px; line-height: 20px; font-weight: 600; display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 24px; }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
}

/* 누구에게 */
.who { display: grid; gap: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500;
}
.who-aside { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) {
  .who { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}

/* 지원 기기 */
.specs {
  display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.specs > div { display: grid; gap: 4px; padding: 20px; border-top: 1px solid var(--line); min-width: 0; }
.specs > div:first-child { border-top: 0; }
.specs dt { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.specs dd { font-size: 17px; line-height: 26px; font-weight: 600; }
.specs dd small { display: block; font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
@media (min-width: 800px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div { border-top: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 24px; }
  .specs > div:nth-child(2n) { border-right: 0; }
  .specs > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* FAQ */
.faq { display: grid; gap: 0; }
.qa { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.qa h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.qa p { color: var(--ink-2); }
@media (min-width: 800px) {
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}

/* 푸터 */
.footer {
  border-top: 1px solid var(--line); padding-block: 32px 48px;
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
  color: var(--ink-2); font-size: 14px; line-height: 20px;
}
.footer .brand .wordmark { font-size: 17px; line-height: 24px; }
.footer .brand img { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--ink-2); text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer a:hover { color: var(--ink); }

/* 문서 페이지(개인정보처리방침) */
.draft {
  background: var(--caution-soft); color: var(--caution);
  font-size: 14px; line-height: 20px; font-weight: 600;
}
.draft .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-block: 8px; }
.draft svg { width: 18px; height: 18px; flex: 0 0 auto; }
.doc { max-width: 760px; margin-inline: auto; padding-block: 40px 96px; display: flex; flex-direction: column; gap: 40px; }
.doc header { display: flex; flex-direction: column; gap: 12px; }
.doc h1 { font-size: 30px; line-height: 40px; font-weight: 700; letter-spacing: -0.3px; }
.doc h2 { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.2px; }
.doc h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin-top: 4px; }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc a { color: var(--primary-deep); text-underline-offset: 3px; }
.doc .summary { background: var(--primary-soft); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.doc .summary h2 { font-size: 17px; line-height: 24px; }
.doc .summary ul { gap: 4px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
/* 본문의 overflow-wrap: anywhere 는 표 열을 단어 중간까지 좁힌다(영어 "countrie/s"). 칸 안에서는 단어를 지키고,
   넘치면 .table-wrap 이 가로로 스크롤한다. */
.doc th, .doc td { overflow-wrap: break-word; }
.doc th { background: var(--surface-alt); font-weight: 600; white-space: nowrap; }
.doc thead th { border-bottom: 1px solid var(--line); }
.doc table tbody th { font-weight: 600; background: transparent; white-space: normal; }
.ph { background: var(--caution-soft); color: var(--caution); padding: 0 6px; border-radius: 6px; font-weight: 600; }
.doc .meta { color: var(--ink-2); font-size: 14px; line-height: 20px; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.doc .toc ol { gap: 2px; font-size: 15px; line-height: 24px; }
.doc .toc a { color: var(--ink); text-decoration: none; }
.doc .toc a:hover { color: var(--primary-deep); }

/* 접근성 — 키보드로 올 때만 보이는 본문 건너뛰기 */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; padding-block: 48px 96px; text-align: center; }
.notfound .inner { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 28em; }
.notfound .btn { margin-top: 8px; }
