:root {
  color: #152449;
  background: #f2f5ff;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #2149f2; outline-offset: 4px; }

.download-page {
  width: min(100%, 67rem);
  margin-inline: auto;
  padding: 1rem clamp(.875rem, 4vw, 2rem) 1.75rem;
}

.download-header, .download-brand {
  display: flex;
  align-items: center;
}

.download-header {
  justify-content: space-between;
  gap: .75rem;
  min-height: 3.25rem;
  margin-block-end: .875rem;
}

.download-brand { gap: .5rem; font-weight: 750; }
.download-brand img { flex: none; width: 2.25rem; height: 2.25rem; border-radius: .675rem; }

.web-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .75rem;
  border: 1px solid #d8e0f8;
  border-radius: .75rem;
  background: #fff;
  color: #233dac;
  font-weight: 650;
  font-size: .875rem;
  text-decoration: none;
}

.download-layout { display: grid; gap: .875rem; }

.download-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 14rem;
  padding: clamp(1rem, 5vw, 2.75rem);
  border-radius: 1.5rem;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 12% 100%, #2752f4 0%, #1530ab 39%, #111c53 88%);
}

.hero-copy { position: relative; z-index: 1; width: 63%; }
.app-audience { margin: 0 0 .5rem; color: #d9e5ff; font-size: .875rem; font-weight: 650; }

.download-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6.5vw, 3.75rem);
  line-height: 1.24;
  font-weight: 800;
}

.download-hero h1 span { color: #dce6ff; }
.app-description { margin: .625rem 0 0; color: #fff; font-size: 1rem; }

.app-preview {
  position: absolute;
  inset-inline-end: 1.25%;
  top: 1.5rem;
  width: clamp(6.5rem, 36%, 14.5rem);
  padding: .35rem;
  transform: rotate(-10deg);
  transform-origin: center 40%;
  border: 1px solid #869bff;
  border-radius: 1.15rem;
  background: #111830;
  box-shadow: 0 1.125rem 2.5rem #060c3199;
}

.app-preview img { display: block; width: 100%; height: auto; border-radius: .85rem; }

.download-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e0e7fa;
  border-radius: 1.375rem;
  background: #fff;
  box-shadow: 0 .75rem 2rem #3753a40c;
}

.download-panel h2 { margin: 0 0 .75rem; font-size: 1.125rem; }
.store-links { display: grid; gap: .625rem; }

.store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .625rem;
  min-height: 4.375rem;
  padding: .625rem .875rem;
  border: 1px solid #dbe3fc;
  border-radius: .875rem;
  color: #14274d;
  background: #f7f9ff;
  text-decoration: none;
}

.store-copy { display: grid; justify-items: start; gap: .125rem; }
.store-copy strong { font-size: 1.125rem; line-height: 1.2; }
.platform-label, .store-action { font-size: .875rem; }
.platform-label { color: #425679; }
.store-action { padding: .3rem .7rem; border-radius: .525rem; background: #e8eeff; color: #243c9e; font-weight: 700; }
.store-link:hover { border-color: #667ee1; }
.store-link[data-recommended] { border-color: #203cdc; color: #fff; background: #203cdc; }
.store-link[data-recommended]:hover { background: #182eb1; }
.store-link[data-recommended] .platform-label { color: #e2e9ff; }
.store-link[data-recommended] .store-action { background: #fff; color: #233dac; }

.download-footer { margin-block-start: 1rem; text-align: center; font-size: .875rem; }
.download-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #344a85; text-underline-offset: .2em; }

@media (max-width: 23rem) {
  .download-header { gap: .375rem; }
  .download-brand { font-size: .875rem; }
  .web-link { padding-inline: .5rem; }
  .app-preview { inset-inline-end: 0; }
}

@media (min-width: 49rem) {
  .download-page { padding-block-start: 1.75rem; }
  .download-header { margin-block-end: 1.5rem; }
  .download-layout { grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 1fr); gap: 1.25rem; }
  .download-hero { min-height: 25rem; }
  .app-preview { top: 4rem; inset-inline-end: 5%; }
  .download-panel { align-self: center; padding: 1.5rem; }
  .download-footer { margin-block-start: 1.5rem; }
}
