:root {
  --coral: #ff7043;
  --ink: #242321;
  --cream: #fff9f3;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.download-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 50% 12%, #fff 0 22%, transparent 52%),
    linear-gradient(155deg, #fffdfb 0%, #fff4e9 100%);
}

.glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .4;
}

.glow-one { top: -120px; left: -100px; background: #ffd8c8; }
.glow-two { right: -120px; bottom: -110px; background: #ffe3a8; }

.download-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: 34px 30px 30px;
  text-align: center;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 34px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 24px 80px rgb(131 76 45 / 14%);
  backdrop-filter: blur(18px);
}

/* 언어 전환 — 홈 헤더의 KO · EN 토글과 같은 형태(현재 언어는 활성 표시). */
.lang-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgb(36 35 33 / 12%);
  border-radius: 999px;
  background: rgb(255 255 255 / 90%);
  color: #8a827b;
  font-size: 13px;
  font-weight: 600;
  /* 홈 헤더 토글과 같은 높이(35px)가 되도록 본문 line-height(1.6)를 그대로 쓴다. */
  line-height: 1.6;
}

.lang-toggle .lang-opt.is-active { color: var(--coral); }
.lang-toggle .lang-sep { color: #c3bbb3; }
.lang-toggle a.lang-opt { color: #8a827b; text-decoration: none; }
.lang-toggle a.lang-opt:hover { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.lang-toggle a.lang-opt:focus-visible { outline: 3px solid rgb(255 112 67 / 30%); outline-offset: 3px; border-radius: 999px; }

.app-icon {
  width: 106px;
  height: 106px;
  margin: 0 auto 20px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgb(255 112 67 / 20%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.18;
  letter-spacing: -.05em;
}

.description {
  margin: 14px 0 0;
  color: #645f5a;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -.02em;
}

.redirect-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
  margin: 24px 0 12px;
  color: #6a625b;
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--coral);
}

.status-dot.spinner {
  background: transparent;
  border: 2px solid #ffd2c3;
  border-top-color: var(--coral);
  animation: spin .8s linear infinite;
}

.store-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 59px;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.store-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / 16%); }
.store-button:focus-visible { outline: 4px solid rgb(255 112 67 / 30%); outline-offset: 3px; }
.store-button img { display: block; width: 100%; height: 100%; object-fit: contain; flex: 0 0 auto; }

.fallback-copy { margin: 14px 0 0; color: #8a827b; font-size: 12px; }
.home-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 4px;
}
.home-link:hover { text-decoration: underline; }
.home-link:focus-visible { outline: 3px solid rgb(255 112 67 / 30%); outline-offset: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 430px) {
  .download-card { padding: 28px 20px 24px; border-radius: 28px; }
  .app-icon { width: 92px; height: 92px; border-radius: 21px; }
  .store-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .store-button { transition: none; }
}
