:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #152d3a;
  background: #fbfcfd;
  font-synthesis: none;

  /* Safari/iOS anterior ao suporte da propriedade sem prefixo. */
  -webkit-text-size-adjust: 100%; /* stylelint-disable-line property-no-vendor-prefix */
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.download-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: radial-gradient(ellipse 260px 220px at 46% 32%, #60b8df0d, transparent), radial-gradient(ellipse 220px 180px at 57% 36%, #f9731608, transparent);
  text-align: center;
}

.download-content {
  width: 100%;
  max-width: 680px;
  margin-block: auto;
  padding-block: 24px;
  animation: appear 400ms ease-out both;
}

.brand-logo {
  display: block;
  width: 108px;
  height: auto;
  margin-inline: auto;
}

.brand-name {
  margin: 14px 0 26px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.6px;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5.7vw, 2.875rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.subtitle {
  margin: 18px 0 30px;
  color: #536571;
  font-size: 1rem;
  line-height: 1.6;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 64px;
  padding: 7px;
  border-radius: 13px;
  outline: 2px solid transparent;
  outline-offset: 3px;
  -webkit-tap-highlight-color: #20759526;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.store-link img { display: block; width: auto; height: 50px; }
.store-link-preferred { background: #e7f2f7; box-shadow: 0 0 0 2px #317898; }
.store-link:focus-visible { outline-color: #124e6b; }
.store-link:active { background: #d8eaf2; }

.availability {
  margin: 22px 0 0;
  color: #5e6c75;
  font-size: 0.875rem;
  line-height: 1.5;
}

footer { padding-top: 16px; color: #65737c; font-size: 0.75rem; }
.redirect-status { margin: -8px 0 22px; color: #536571; font-size: 0.875rem; line-height: 1.5; }
.redirect-status p { margin: 0; }
.redirect-status p:first-child { margin-bottom: 4px; color: #152d3a; font-weight: 600; }

@media (hover: hover) {
  .store-link:hover { background: #e7f2f7; box-shadow: 0 3px 12px #152d3a12; }
  .store-link-preferred:hover { box-shadow: 0 0 0 2px #317898, 0 3px 12px #152d3a12; }
}

@media (width < 400px) {
  .store-links { flex-direction: column; gap: 8px; }
  .store-link { min-width: 184px; }
}

@media (height < 700px) {
  .download-content { padding-block: 8px; }
  .brand-logo { width: 84px; }
  .brand-name { margin: 10px 0 18px; font-size: 19px; }
  .subtitle { margin-block: 14px 20px; }
  .availability { margin-top: 16px; }
}

@media (height < 650px) {
  .download-content:has(.redirect-status:not([hidden])) { padding-block: 0; }
  .download-content:has(.redirect-status:not([hidden])) .brand-logo { width: 64px; }
  .download-content:has(.redirect-status:not([hidden])) .brand-name { margin: 6px 0 12px; }
  .download-content:has(.redirect-status:not([hidden])) .subtitle { margin-block: 8px 14px; }
  .download-content:has(.redirect-status:not([hidden])) .availability { margin-top: 10px; }
}

@media (width >= 768px) {
  .download-page { padding: max(40px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left)); }
  .subtitle { font-size: 1.125rem; }
}

@media (width < 340px) {
  .wide-break { display: none; }
}

@keyframes appear {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .download-content { animation: none; }
  .store-link { transition: none; }
}
