/* Styles for download-hero.hbs */

.download-hero {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  margin: 64px auto;
  gap: 40px;
}

.download-hero-items {
  width: 100%;
}

.download-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
}

.download-hero-description {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
}

.download-hero-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
}

.download-hero-platform {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-700);
}

/* The platform marks are drawn in `currentColor`, so they follow the heading. */
.download-hero-platform-icon {
  color: var(--gray-700);
  flex: none;
}

.download-hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* iOS has one card. On narrow screens it takes the full width rather than
   leaving a hole beside it. */
.download-hero-cards > .download-hero-card:only-child {
  grid-column: 1 / -1;
}

.download-hero-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background-color: var(--gray-0);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.download-hero-card:hover {
  border-color: var(--gray-300);
}

.download-hero-card-icon {
  flex: none;
}

.download-hero-art {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 24px;
}

.download-hero-art-image {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 300px;
}

@media (min-width: 1000px) {
  .download-hero {
    flex-direction: row;
  }

  .download-hero-items {
    width: fit-content;
  }

  .download-hero-title {
    font-size: 48px;
  }

  .download-hero-list {
    margin-top: 32px;
  }

  .download-hero-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Wide screens give every card its own column, so the lone iOS card keeps the
     same width as the Android pair above it instead of stretching across four. */
  .download-hero-cards > .download-hero-card:only-child {
    grid-column: 1;
  }

  .download-hero-card {
    flex-direction: column;
    gap: 12px;
    width: 105px;
    height: 88px;
  }

  .download-hero-art {
    width: 400px;
    height: 400px;
  }

  .download-hero-art-image {
    height: 400px;
  }
}
