:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #f6f8fc;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

a {
  color: #137cff;
  text-decoration: none;
}
a:hover {
  color: #0e63cc;
}

.redirect-page {
  min-height: 100dvh;
  width: 100%;
  display: flex;
}

.redirect-page[hidden] {
  display: none;
}

/* ---------- shared ---------- */

.redirect-logo {
  border-radius: 22%;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(19, 124, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.redirect-logo img {
  object-fit: contain;
}

.redirect-brand {
  font-size: 13px;
  font-weight: 700;
  color: #137cff;
  letter-spacing: 1.2px;
}

.redirect-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}
.redirect-button:hover {
  color: #ffffff;
  opacity: 0.92;
}
.redirect-button--dark {
  background: #12141c;
}
.redirect-button--blue {
  background: #137cff;
  box-shadow: 0 10px 24px rgba(19, 124, 255, 0.28);
}
.redirect-button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
}
.redirect-button-eyebrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}
.redirect-button-label {
  font-size: 16px;
  font-weight: 600;
}

/* ---------- phone (android / ios auto-redirect) ---------- */

.redirect-page--phone {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 72px 28px 48px;
}

.redirect-phone-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.redirect-phone-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.redirect-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(19, 124, 255, 0.15);
  border-top-color: #137cff;
  animation: redirect-spin 0.85s linear infinite;
  margin-bottom: 20px;
}

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

.redirect-status-title {
  font-size: 17px;
  font-weight: 600;
  color: #12141c;
  margin-bottom: 6px;
}

.redirect-status-subtitle {
  font-size: 14px;
  color: #6b7280;
}

.redirect-phone-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.redirect-fallback-caption {
  font-size: 13px;
  color: #9aa1b1;
}

.redirect-phone-bottom .redirect-button {
  width: 100%;
}

/* ---------- desktop / other ---------- */

.redirect-page--desktop {
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.redirect-card {
  width: 420px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 28px;
  box-shadow:
    0 20px 60px rgba(19, 124, 255, 0.12),
    0 2px 8px rgba(16, 24, 40, 0.06);
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.redirect-title {
  font-size: 24px;
  font-weight: 700;
  color: #12141c;
  text-align: center;
  line-height: 1.3;
  margin: 10px 0 10px;
}

.redirect-subtitle {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 296px;
}

.redirect-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.redirect-store-buttons .redirect-button {
  justify-content: flex-start;
}

.redirect-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 28px 0 20px;
}
.redirect-divider span:not(.redirect-divider-label) {
  flex: 1;
  height: 1px;
  background: #e7ebf3;
}
.redirect-divider-label {
  font-size: 12px;
  color: #9aa1b1;
  white-space: nowrap;
}

.redirect-qr {
  width: 132px;
  height: 132px;
  border-radius: 16px;
  border: 1px solid #e7ebf3;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.redirect-qr img {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .redirect-page--desktop {
    padding: 24px;
  }
  .redirect-card {
    padding: 36px 24px 32px;
  }
}
