.download-stack {
  position: relative;
  width: fit-content;
  margin-top: 12px;
  display: grid;
  justify-items: center;
}

.download-stack .hero-actions {
  width: 100%;
  margin-top: 28px;
}

.download-stack .button-download {
  width: 100%;
}

.download-stack .apk-version {
  width: 100%;
  margin-top: 9px;
  text-align: center;
}

.download-stat[hidden] {
  display: none !important;
}

/*
 * Compact counter: it sits inside the existing breathing room above the CTA,
 * so it stays separate from the version without pushing Beneficios far down.
 */
.download-stat {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 44px);
  min-height: 22px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(79,132,238,.14);
  border-radius: 999px;
  background: rgba(79,132,238,.07);
  box-shadow: none;
  white-space: nowrap;
  pointer-events: none;
}

.download-stat strong {
  display: inline;
  color: var(--blue-2);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}

.download-stat span {
  color: var(--muted);
  font-size: .69rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .005em;
}

html[data-theme="dark"] .download-stat {
  background: rgba(79,132,238,.11);
  border-color: rgba(111,156,255,.18);
}

html[data-theme="dark"] .download-stat strong {
  color: #6f9cff;
}

@media (max-width:680px) {
  .download-stack {
    width: 100%;
  }

  .download-stat {
    max-width: calc(100% - 20px);
  }
}

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