:root {
  --download-overlay: linear-gradient(180deg, rgba(0, 34, 17, 0.35) 0%, rgba(0, 34, 17, 0.65) 75%);
}

.android-download-page {
  background-color: #000;
  color: #f6fffa;
}

.download-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  background-image: url("images/downloadandroid.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-height) + 1.5rem) clamp(1.25rem, 4vw, 2rem) clamp(3.5rem, 14vh, 5.5rem);
  overflow: hidden;
}

.download-overlay {
  position: absolute;
  inset: 0;
  background: var(--download-overlay);
  pointer-events: none;
}

.download-content {
  position: relative;
  max-width: 640px;
  z-index: 1;
}

.download-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: #f6fffa;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.download-content p {
  margin: 0;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: rgba(246, 255, 250, 0.92);
  line-height: 1.6;
}

.download-button-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
}

.android-download-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(430px, 82vw);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.android-download-button img {
  width: 100%;
  height: auto;
  display: block;
}

.android-download-button.pulsing {
  animation: slowPulse 2.4s ease-in-out infinite;
}

.android-download-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 6px;
}

.download-helper-text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(246, 255, 250, 0.9);
  text-align: center;
}

@keyframes slowPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .download-hero {
    min-height: calc(100vh - var(--header-height) - var(--stacked-header-offset));
    padding-top: calc(var(--header-height) + var(--stacked-header-offset) + 1rem);
    background-position: center top;
  }

  .download-helper-text {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .android-download-button {
    animation: none !important;
  }
}
