/* components/app-cta.php: the app's logo, what the app adds, and its
   buttons, on a card in the page's primary color like the landing page's
   highlight card. */
.app-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 22px;
  padding: 28px;
  border-radius: 24px;
  color: var(--on-primary);
  background: var(--primary);
}

.app-cta__logo {
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface);
}

.app-cta__text {
  display: grid;
  gap: 6px;
}

.app-cta__heading {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.app-cta__lead {
  margin: 0;
  color: var(--on-primary);
}

.app-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  grid-column: 1 / -1;
  gap: 10px;
}

.app-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.app-cta__button[hidden] {
  display: none;
}

.app-cta__button--primary {
  color: var(--primary);
  background: var(--surface);
}

.app-cta__button--primary:hover {
  background: var(--lilac);
}

.app-cta__button--primary:focus-visible {
  outline: 3px solid var(--on-primary);
  outline-offset: 3px;
}

/* Not a link: the iPhone app isn't in the App Store yet. */
.app-cta__button--soon {
  border: 2px solid rgb(255 255 255 / 55%);
  color: var(--on-primary);
}

.app-cta__soon {
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--on-tile);
  background: var(--amber);
  font-size: .8rem;
  font-weight: 800;
}

.app-cta__badge:focus-visible {
  outline-color: var(--on-primary);
}

.app-cta__icon {
  width: 20px;
  height: 20px;
}

/* Phone: the logo above the text, which gets the whole width. */
@media (max-width: 640px) {
  .app-cta {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .app-cta__actions,
  .app-cta__button {
    width: 100%;
  }

  .app-cta__badge {
    align-self: center;
  }
}
