/* ============================================================
   콜든타임 — 사장님 앱 다운로드 페이지
   landing/styles.css 의 디자인 토큰·컴포넌트를 그대로 재사용(자기완결).
   "단골 상담실 × 클린 블루" · Wanted Sans · 흰 카드 on 쿨 그레이.
   ============================================================ */

/* ---------- 토큰 (landing/styles.css 와 동일) ---------- */
:root {
  --brand: #2d64e8;
  --brand-deep: #1f4dc2;
  --brand-soft: #eaf0fd;

  --amber: #e8590c;
  --amber-soft: #fdefe6;
  --amber-deep: #9a3d08;
  --green: #13865c;
  --green-soft: #e5f4ee;

  --ink: #191f28;
  --sub: #4e5968;
  --mute: #8b95a1;
  --line: #e9edf1;
  --line-strong: #cbd3dc;
  --page: #f4f6f8;
  --card: #ffffff;
  --inverse: #12161c;

  --r-card: 24px;
  --r-btn: 16px;
  --r-chip: 999px;
  --shadow-card: 0 2px 4px rgba(25, 31, 40, 0.04), 0 12px 28px -16px rgba(25, 31, 40, 0.14);
  --shadow-float: 0 8px 20px rgba(25, 31, 40, 0.08), 0 30px 60px -28px rgba(25, 31, 40, 0.3);

  --font:
    'Wanted Sans Variable', 'Wanted Sans', -apple-system, BlinkMacSystemFont, system-ui,
    'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- 리셋 ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
::selection {
  background: var(--brand-soft);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  width: 100%;
}

/* ---------- 브랜드 마크 (동일) ---------- */
.mark {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.mark .mark-body {
  position: absolute;
  inset: 0;
  border-radius: 42%;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
}
.mark .mark-tail {
  position: absolute;
  bottom: -10%;
  left: 16%;
  width: 20%;
  height: 20%;
  background: var(--brand);
  border-radius: 3px;
  transform: rotate(45deg);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wordmark .wm-ko {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark .wm-en {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-top: 3px;
}

/* ---------- 버튼 (동일) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 56px;
  padding: 0 26px;
  border-radius: var(--r-btn);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}
.btn:active {
  transform: scale(0.985);
  opacity: 0.9;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn-primary:hover {
  background: var(--brand-deep);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  height: 62px;
  font-size: 18.5px;
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
  pointer-events: none;
}

/* ---------- 헤더 (landing 톤) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  height: 72px;
}

/* ---------- eyebrow 칩 (동일) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 8px 15px;
  border-radius: var(--r-chip);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- 다운로드 섹션 ---------- */
main {
  flex: 1;
}
.dl-section {
  padding-block: clamp(40px, 8vw, 80px);
  display: flex;
}
.dl-section .wrap {
  display: flex;
  justify-content: center;
}

.dl-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 6vw, 44px) clamp(22px, 5vw, 40px);
  text-align: center;
}
.dl-card h1 {
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 18px;
  text-wrap: balance;
}
.dl-sub {
  font-size: clamp(15.5px, 3.6vw, 17px);
  color: var(--sub);
  line-height: 1.6;
  margin-top: 14px;
  font-weight: 500;
  max-width: 30em;
  margin-inline: auto;
}

/* Android 1차 CTA */
.dl-android {
  margin-top: 28px;
}
.dl-android .dl-ico {
  flex-shrink: 0;
}

.dl-version {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* 설치 안내 2줄 */
.dl-steps {
  list-style: none;
  text-align: left;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px;
}
.dl-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dl-steps .st-no {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.dl-steps .st-txt {
  font-size: 15px;
  font-weight: 600;
  color: var(--sub);
  line-height: 1.55;
}
.dl-steps .st-txt b {
  color: var(--ink);
  font-weight: 800;
}

/* iOS 준비 중 (비활성 안내) */
.dl-ios {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-top: 14px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 16px 18px;
  opacity: 0.9;
}
.dl-ios .ios-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--page);
  color: var(--mute);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dl-ios .ios-t {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dl-ios .ios-d {
  font-size: 13px;
  color: var(--mute);
  font-weight: 600;
  line-height: 1.5;
  margin-top: 3px;
}
.dl-ios .ios-badge {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  color: var(--sub);
  background: var(--page);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--r-chip);
}

.dl-foot-note {
  font-size: 13px;
  color: var(--mute);
  font-weight: 600;
  line-height: 1.55;
  margin-top: 18px;
}

/* iOS 디바이스에서 접속 시 — Android 버튼은 부차적으로 안내 (download.js 가 토글) */
body.is-ios .dl-android {
  opacity: 0.92;
}
body.is-ios .dl-ios {
  border-style: solid;
  border-color: var(--brand-soft);
  opacity: 1;
}
body.is-ios .dl-ios .ios-ico {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

/* ---------- 푸터 (동일) ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.foot-meta {
  font-size: 13.5px;
  color: var(--mute);
  font-weight: 600;
  line-height: 1.7;
  margin-top: 12px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
}
.foot-links a:hover {
  color: var(--ink);
}
.foot-links .foot-sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .foot-links {
    gap: 12px 16px;
  }
  .site-footer .wrap {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
