/* ==========================================================
   앱 다운로드 (2026-09-28)
   - .dl-mini : 첫 화면 아래 작은 스토어 버튼 + QR
   - #download: 맨 아래 다운로드 섹션
   스토어 주소는 js/stores.js — 비어 있으면 .soon (출시 준비 중)
   ========================================================== */

/* ---------- 스토어 버튼 (공용) ---------- */
.store-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 14px;
  background: var(--navy); color: var(--white);
  transition: transform .2s var(--ease), background .2s;
}
.store-btn:hover { transform: translateY(-2px); background: var(--navy-2); }
.store-btn .si { width: 24px; height: 24px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 10px; font-weight: 700; letter-spacing: .02em; opacity: .8; }
.store-btn b { font-size: 17px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.store-btn em {
  position: absolute; top: -15px; right: -8px; padding: 3px 8px; border-radius: 999px;
  background: var(--blue); color: var(--white); font-style: normal; font-size: 11px; font-weight: 900; white-space: nowrap;
}
.store-btn:not(.soon) em { display: none; }
.store-btn.soon { cursor: default; }
.store-btn.ping em { animation: dl-ping .5s var(--ease) 2; }
@keyframes dl-ping { 50% { transform: scale(1.18); } }

.store-btn.big { padding: 13px 22px 13px 16px; border-radius: 16px; }
.store-btn.big .si { width: 30px; height: 30px; }
.store-btn.big small { font-size: 12px; }
.store-btn.big b { font-size: 21px; }

/* ---------- 첫 화면: 작은 다운로드 줄 ---------- */
.dl-mini { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dl-mini-qr { display: inline-flex; align-items: center; gap: 10px; padding-left: 6px; }
.dl-mini-qr img { width: 64px; height: 64px; border-radius: 10px; background: var(--white); box-shadow: 0 6px 16px rgba(8, 24, 53, .12); }
.dl-mini-qr small { font-size: 13px; font-weight: 800; line-height: 1.35; color: var(--muted); }

/* ---------- 맨 아래: 다운로드 섹션 ---------- */
.dl-sec { padding: 130px 0; background: linear-gradient(160deg, var(--ice), var(--white) 70%); }
.dl-sec .inner { display: grid; grid-template-columns: 1fr 380px; align-items: center; gap: 60px; }
.dl-sec .sec-desc b { color: var(--navy); }
.dl-btns { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.dl-steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl-steps li { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.dl-steps li > b {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-size: 16px; font-weight: 900;
}
.dl-steps span { font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.dl-steps strong { display: block; font-size: 17px; font-weight: 900; color: var(--navy); }

.dl-qr-card {
  padding: 40px 34px; border-radius: var(--r); background: var(--navy); color: var(--white);
  text-align: center; box-shadow: 0 30px 70px rgba(8, 24, 53, .25);
}
.dl-icon { display: block; width: 72px; height: 72px; margin: 0 auto; border-radius: 18px; }
.dl-qr-title { margin-top: 16px; font-size: 20px; font-weight: 900; line-height: 1.4; letter-spacing: -.03em; }
.dl-qr { display: block; width: 220px; height: 220px; margin: 22px auto 0; padding: 10px; border-radius: 20px; background: var(--white); }
.dl-qr-url { margin-top: 14px; font-size: 15px; font-weight: 800; color: var(--sky); }

.final .soon a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1024px) {
  .dl-sec .inner { grid-template-columns: 1fr; text-align: center; }
  .dl-btns, .dl-mini { justify-content: center; }
  .dl-qr-card { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .dl-mini-qr { display: none; } /* 휴대폰 화면에서는 자기 화면 QR 을 찍을 수 없다 */
  .store-btn b { font-size: 15px; }
  .dl-sec { padding: 90px 0; }
  .dl-steps { grid-template-columns: 1fr; text-align: left; }
  .store-btn.big b { font-size: 18px; }
  .dl-qr-card { padding: 32px 22px; }
}
