/* App Store / Google Play badges + metrics — shared by home and download */

.hero-download-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}
.store-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}
.cta-download-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.cta-store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}
.store-badge {
  container-name: store-badge;
  container-type: inline-size;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  min-height: 56px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font);
  flex: 1 1 200px;
  max-width: 280px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-sizing: border-box;
}
.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Apple: black badge + white copy (standard App Store marketing look; reads cleanly on cream) */
.store-badge--apple {
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.store-badge--apple:hover {
  color: #ffffff;
  filter: brightness(1.08);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}
.store-badge--apple .store-badge__small {
  opacity: 0.85;
}
.store-badge--google {
  background: rgba(10, 10, 12, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.store-badge--google:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}
.store-badge__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-badge__icon svg {
  width: 28px;
  height: 28px;
}
.store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
  line-height: 1.12;
  text-align: left;
  min-width: 0;
}
.store-badge__small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.store-badge__big {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
@container store-badge (min-width: 270px) {
  .store-badge__text {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.3em;
    line-height: 1.2;
    white-space: nowrap;
  }
  .store-badge__small {
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.9;
  }
  .store-badge__big {
    font-size: 0.88rem;
  }
}
@media (max-width: 539px) {
  .store-badge .store-badge__text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
    line-height: 1.12;
    white-space: normal;
  }
  .store-badge .store-badge__small {
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.92;
  }
  .store-badge .store-badge__big {
    font-size: 1.02rem;
  }
}
@supports not (container-type: inline-size) {
  @media (min-width: 700px) {
    .store-badge__text {
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: baseline;
      gap: 0.3em;
      line-height: 1.2;
      white-space: nowrap;
    }
    .store-badge__small {
      font-weight: 600;
      letter-spacing: 0.01em;
      opacity: 0.9;
    }
    .store-badge__big {
      font-size: 0.88rem;
    }
  }
}
.cta-band .store-badge--google {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.store-metrics {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 8px;
  width: 100%;
  max-width: min(100%, 580px);
  margin: 0 auto;
  padding: 14px 12px;
  border-radius: 14px;
  background: #0a0a0c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.store-metrics--cta {
  max-width: 560px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.12);
}
.store-metrics__cell {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  min-width: 0;
}
.store-metrics__num {
  display: block;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.store-metrics__label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.store-metrics__rule {
  width: 1px;
  align-self: stretch;
  min-height: 36px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}
@media (prefers-color-scheme: dark) {
  .store-badge--apple {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  }
}
