/* app-download.css — /mobileqrcode smart mobile download landing (scoped) */

body.tt-app-dl-page {
  --tt-bg-0: #000000;
  --tt-fg-0: #ffffff;
  --tt-accent: #2962ff;
  --tt-accent-soft: rgba(41, 98, 255, 0.22);
  --tt-border: rgba(255, 255, 255, 0.1);
  --tt-glow: rgba(41, 98, 255, 0.35);
  min-height: 100dvh;
  margin: 0;
  background: var(--tt-bg-0);
  color: var(--tt-fg-0);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.tt-app-dl {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.tt-app-dl__glow {
  position: fixed;
  inset: -20% -10% 40%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, var(--tt-accent-soft), transparent 68%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.tt-app-dl__brand {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin-bottom: 28px;
  text-align: center;
}

.tt-app-dl__logo {
  display: inline-block;
  color: var(--tt-fg-0);
  text-decoration: none;
}

.tt-app-dl__logo .tz-logo-full {
  width: min(180px, 70vw);
  height: auto;
}

.tt-app-dl__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  text-align: center;
}

.tt-app-dl__panel[hidden] {
  display: none !important;
}

.tt-app-dl__title {
  margin: 0 0 12px;
  font-family: Montserrat, "Plus Jakarta Sans", sans-serif;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tt-app-dl__lead {
  margin: 0 auto 28px;
  max-width: 36ch;
  line-height: 1.55;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.tt-app-dl__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.tt-app-dl__store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 54px;
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms;
}

.tt-app-dl__store-link:hover,
.tt-app-dl__store-link:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.tt-app-dl__store-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.tt-app-dl__store-badge {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.tt-app-dl__btn {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  text-align: left;
}

.tt-app-dl__btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tt-app-dl__btn-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.tt-app-dl__btn-icon svg {
  width: 22px;
  height: 22px;
}

.tt-app-dl__btn-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
}

.tt-app-dl__notice {
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px solid var(--tt-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.tt-app-dl__notice[hidden] {
  display: none !important;
}

.tt-app-dl__notice-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.tt-app-dl__notice-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.tt-app-dl__soon {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.tt-app-dl__soon[hidden] {
  display: none !important;
}

.tt-app-dl__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 20px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--tt-fg-0);
  border-radius: 50%;
  animation: tt-app-dl-spin 0.8s linear infinite;
}

@keyframes tt-app-dl-spin {
  to { transform: rotate(360deg); }
}

.tt-app-dl__fallback {
  margin: 20px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.tt-app-dl__fallback a {
  color: var(--tt-fg-0);
  font-weight: 600;
  margin-left: 6px;
}

.tt-app-dl__desktop-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.tt-app-dl__qr-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tt-app-dl__qr-card {
  margin: 0 auto;
}

.tt-app-dl__desktop-stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

@media (min-width: 640px) {
  .tt-app-dl__desktop-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
  }

  .tt-app-dl__desktop-stores {
    width: 180px;
    flex-shrink: 0;
    align-items: stretch;
    padding-top: 28px;
  }
}
