.app-download-banner-section {
  padding: 18px 0;
}

.app-download-banner {
  position: relative;
  min-height: 126px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  grid-template-areas: "visual content stores";
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 18px 22px;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 50%, rgb(var(--ct-rgb-primary) / 0.08), transparent 24%),
    var(--ct-surface);
  box-shadow: 0 7px 24px rgb(var(--ct-rgb-ink) / 0.045);
}

.app-download-banner--no-image {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "content stores";
}

.app-download-banner__visual {
  grid-area: visual;
  min-width: 0;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-download-banner__visual img {
  max-width: 100%;
  max-height: 92px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.app-download-banner__content {
  grid-area: content;
  min-width: 0;
}

.app-download-banner__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--ct-primary-strong);
  font-size: 0.74rem;
  font-weight: 800;
}

.app-download-banner__content h2 {
  margin: 0;
  color: var(--ct-ink);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 900;
  line-height: 1.55;
}

.app-download-banner__content p {
  max-width: 660px;
  margin: 5px 0 0;
  color: var(--ct-muted);
  font-size: 0.82rem;
  line-height: 1.9;
}

.app-download-banner__stores {
  grid-area: stores;
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.app-store-button {
  position: relative;
  width: 168px;
  min-width: 168px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  overflow: hidden;
  padding: 7px 13px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.app-store-button:hover {
  transform: translateY(-1px);
}

.app-store-button:active {
  transform: translateY(0);
}

.app-store-button__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  font-size: 1.45rem;
  line-height: 1;
}

.app-store-button__copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  direction: ltr;
  text-align: left;
  line-height: 1;
}

.app-store-button__copy small,
.app-store-button__copy strong {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

.app-store-button__copy small {
  color: inherit;
  opacity: 0.7;
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.app-store-button__copy strong {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.app-store-button--google {
  border: 1px solid #d9e0e8;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 3px 10px rgb(15 23 42 / 0.06);
}

.app-store-button--google .app-store-button__icon {
  color: #34a853;
}

.app-store-button--google .app-store-button__icon i {
  background:
    linear-gradient(
      145deg,
      #34a853 0 28%,
      #4285f4 28% 52%,
      #fbbc04 52% 74%,
      #ea4335 74% 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-store-button--google:hover {
  border-color: #c5ced8;
  box-shadow: 0 6px 15px rgb(15 23 42 / 0.09);
}

.app-store-button--apple {
  border: 1px solid #0a0a0a;
  color: #ffffff;
  background: #050505;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.12);
}

.app-store-button--apple .app-store-button__icon {
  color: #ffffff;
  font-size: 1.55rem;
}

.app-store-button--apple:hover {
  border-color: #202020;
  background: #151515;
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.17);
}


html[data-theme="dark"] .app-store-button--google {
  border-color: #34404f;
  color: #f8fafc;
  background: #111827;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.16);
}

html[data-theme="dark"] .app-store-button--google .app-store-button__copy small,
html[data-theme="dark"] .app-store-button--google .app-store-button__copy strong {
  color: inherit;
}

html[data-theme="dark"] .app-store-button--google:hover {
  border-color: #465467;
  color: #ffffff;
  background: #172033;
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.22);
}

html[data-theme="dark"] .app-store-button--apple {
  border-color: #2b2b2b;
  background: #050505;
}

html[data-theme="dark"] .app-download-banner {
  border-color: rgb(255 255 255 / 0.08);
  background:
    radial-gradient(circle at 10% 50%, rgb(var(--ct-rgb-primary) / 0.08), transparent 24%),
    var(--ct-surface);
  box-shadow: 0 7px 24px rgb(0 0 0 / 0.15);
}

@media (max-width: 900px) {
  .app-download-banner {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-areas:
      "visual content"
      "stores stores";
    gap: 16px 20px;
  }

  .app-download-banner--no-image {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "stores";
  }

  .app-download-banner__visual {
    height: 78px;
  }

  .app-download-banner__visual img {
    max-height: 78px;
  }

  .app-download-banner__stores {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .app-download-banner-section {
    padding: 12px 0;
  }

  .app-download-banner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "content"
      "stores";
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
  }

  .app-download-banner--no-image {
    grid-template-areas:
      "content"
      "stores";
  }

  .app-download-banner__visual {
    height: 72px;
  }

  .app-download-banner__visual img {
    max-height: 72px;
  }

  .app-download-banner__content p {
    margin-right: auto;
    margin-left: auto;
  }

  .app-download-banner__stores {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .app-store-button {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 7px 11px;
  }

  .app-store-button__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 1.3rem;
  }

  .app-store-button__copy small {
    font-size: 0.52rem;
  }

  .app-store-button__copy strong {
    font-size: 0.84rem;
  }
}

@media (max-width: 390px) {
  .app-download-banner__stores {
    grid-template-columns: 1fr;
  }

  .app-store-button {
    justify-content: center;
  }
}
