/*
  소개·다운로드 페이지. 앱 번들과 별개로 서빙되므로 토큰을 여기 다시 둔다.
  약관 페이지(legal.css)와 달리 앱 설정을 따라가지 않는다 — 앱을 아직 설치하지 않은
  사람이 보는 화면이라 기기 설정을 그대로 존중한다.
*/
:root {
  --ground: #e7ecee;
  --surface: #ffffff;
  --surface-2: #f4f7f8;
  --ink: #131e2e;
  --ink-2: #46586b;
  --muted: #8796a3;
  --line: #d7dfe3;
  --accent: #0b7c81;
  --accent-soft: #d6eae9;
  --accent-ink: #075b5f;
  --on-accent: #ffffff;
  --gold: #c39a44;
  --warn: #b87716;
  --crit: #c3374c;
  --shadow: 0 1px 2px rgba(19, 30, 46, 0.05), 0 12px 32px rgba(19, 30, 46, 0.07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0c141b;
    --surface: #16212b;
    --surface-2: #1c2833;
    --ink: #e6edf1;
    --ink-2: #a8b9c5;
    --muted: #6f818d;
    --line: #2a3945;
    --accent: #3fb0b2;
    --accent-soft: #0f2e31;
    --accent-ink: #7fd3d2;
    --on-accent: #06231f;
    --gold: #c9a45c;
    --warn: #e0a63e;
    --crit: #e8697c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", system-ui, "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}
.num {
  font-variant-numeric: tabular-nums;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 상단 바 ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.nav-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--accent);
}

/* ---------- 히어로 ---------- */
.hero {
  padding: 58px 0 46px;
  text-align: center;
}
.hero img.icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 26px 0 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.28;
  text-wrap: balance;
}
.hero .sub {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 17px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.btn-main {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-main:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--muted);
}

/* ---------- 문제 제기 ---------- */
.problem {
  margin: 10px 0 54px;
  padding: 26px 26px 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.problem p {
  margin: 0 0 12px;
  font-size: 16.5px;
}
.problem p:last-child {
  margin-bottom: 0;
}
.problem b {
  color: var(--accent);
}

/* ---------- 기능 ---------- */
section {
  padding-bottom: 54px;
}
h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.section-title {
  margin: 0 0 26px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.feature {
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* 실납입금 계산 예시 — 말로만 설명하면 와닿지 않는다 */
.calc {
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.calc .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.calc .row:last-child {
  border-bottom: none;
}
.calc .row.total {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}
.calc .row.after {
  background: var(--surface-2);
  color: var(--warn);
  font-weight: 650;
}
.calc .k {
  color: var(--muted);
}
.calc .row.total .k,
.calc .row.after .k {
  color: inherit;
}

/* ---------- 알림 단계 ---------- */
.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.step {
  flex: 1 1 110px;
  padding: 14px 12px;
  border-radius: 11px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step b {
  display: block;
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 3px;
  color: var(--ink);
}
.step.s30 b { color: var(--accent); }
.step.s7 b  { color: var(--warn); }
.step.s3 b,
.step.s1 b  { color: var(--crit); }

/* ---------- 개인정보 강조 ---------- */
.privacy-box {
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.privacy-box ul {
  margin: 14px 0 0;
  padding-left: 20px;
}
.privacy-box li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.privacy-box li:last-child {
  margin-bottom: 0;
}

/* ---------- 다운로드 ---------- */
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.store {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}
.store .os {
  font-size: 12.5px;
  color: var(--muted);
}
.store .name {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.store .meta {
  font-size: 13px;
  color: var(--ink-2);
}
/* 아직 심사 중인 스토어는 눌리지 않게 하고 상태를 밝힌다 */
.store.pending {
  opacity: 0.72;
  cursor: default;
  border-style: dashed;
}
.store .badge {
  align-self: flex-start;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  background: var(--surface-2);
  color: var(--muted);
}
.store.pending .badge {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

table.spec {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}
table.spec th,
table.spec td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.spec tr:last-child th,
table.spec tr:last-child td {
  border-bottom: none;
}
table.spec th {
  width: 140px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--line);
  border-radius: 0 10px 10px 0;
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 바닥 ---------- */
footer {
  margin-top: 20px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
footer .links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
footer .links a {
  color: var(--ink-2);
  text-decoration: none;
}
footer .links a:hover {
  color: var(--accent);
}
footer .src {
  line-height: 1.6;
}

@media (max-width: 560px) {
  .hero {
    padding: 40px 0 34px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero .sub {
    font-size: 15.5px;
  }
  .section-title {
    font-size: 22px;
  }
  table.spec th {
    width: 104px;
  }
}