/* The product tour in /app (src/tour.ts). The ring and the step card are the
   /demo tour's, in site-marketing.css; this file holds the one offer card on
   the Sites list and the app-only touches. Tokens only, so both themes match. */

/* ---------------- the "Take the tour" card on /app ---------------- */

.tour-offer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 14px 18px;
}

.tour-offer-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
}

.tour-offer-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.tour-offer-copy .card-title {
  font-size: 15px;
}

.tour-offer-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}

.tour-offer-actions form {
  margin: 0;
}

@media (max-width: 720px) {
  /* The close button stays in the top corner; Start goes full width below. */
  .tour-offer {
    position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 16px;
  }
  .tour-offer-copy {
    flex-basis: calc(100% - 52px - 44px);
  }
  .tour-offer-actions {
    width: 100%;
  }
  .tour-offer-actions > .btn {
    flex: 1 1 auto;
  }
  .tour-offer-actions form {
    position: absolute;
    top: 6px;
    right: 6px;
  }
}

/* ---------------- the step card inside the app ---------------- */

/* App UI stays sans (docs/style.md): the step title matches the card titles. */
.app .tour-title {
  font-family: inherit;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* On a phone the card is a sheet over the bottom of the screen: clear of the
   home indicator, with full-size tap targets. */
@media (max-width: 720px) {
  .app .tour-card.is-sheet {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .app .tour-actions .btn {
    min-height: 44px;
  }
}
