:root {
  --brand: #1257E6;
  --text: #111827;
  --muted: #6B7280;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --brand-tint: rgba(18, 87, 230, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(18, 87, 230, 0.14), transparent 60%),
    linear-gradient(180deg, #EEF2FB 0%, var(--bg) 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px calc(24px + env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 40px rgba(17, 24, 39, 0.08);
  padding: 32px 24px 28px;
  text-align: center;
}

.badge {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge[hidden] { display: none; }

.app-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(18, 87, 230, 0.2);
}

.title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.slogan {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.message {
  margin: 20px auto 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.message[hidden] { display: none; }

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--brand);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.store-button:not([aria-disabled="true"]):hover {
  background: #0F4BC7;
  box-shadow: 0 6px 18px rgba(18, 87, 230, 0.28);
}

.store-button:not([aria-disabled="true"]):active { transform: scale(0.98); }

.store-button:focus-visible {
  outline: 3px solid rgba(18, 87, 230, 0.45);
  outline-offset: 3px;
}

.store-button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.store-glyph {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  min-width: 112px;
}

.store-platform {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

.store-name { font-size: 16px; font-weight: 600; }

.footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.footer p { margin: 0; }

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