/* Keep the original badge proportions and the same visible height in every locale. */
.store-badges {
  --store-badge-height: 60px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 34px;
}

.store-badges .app-store-badge,
.home-video-hero .store-badges .app-store-badge {
  flex: 0 0 auto;
  width: auto;
  height: var(--store-badge-height);
  margin: 0;
}

.store-badges .app-store-badge img,
.store-badges .google-play-badge__image {
  display: block;
  width: auto;
  max-width: none;
  height: var(--store-badge-height);
}

.google-play-badge {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  width: calc(var(--store-badge-height) * 238.96 / 70.87);
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.google-play-badge__image {
  pointer-events: none;
  user-select: none;
}

.google-play-badge:hover { transform: translateY(-2px); opacity: 0.9; }
.google-play-badge:active { transform: scale(0.98); }
.google-play-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

@media (max-width: 900px) {
  .store-badges { --store-badge-height: 52px; gap: 18px; }
}

@media (max-width: 640px) {
  /* The widest Apple translations (Turkish and Hungarian) also fit at 320px. */
  .store-badges { --store-badge-height: clamp(34px, 10.5vw, 52px); gap: 14px; margin-top: 26px; }
}
