/* A promo link's landing (pages/landing/promo.js): wokie says the invitation from the face in the title, and the
   trial card stands before the plans. Without a promo none of these nodes exist. */

/* the chat bubble of the window below, its corner on the face; the face's size is the title's, so the bubble sets its own.
   promo.js pins it to the egg every frame through `translate` (shared/face.js), the entrance keeps `transform` */
.promo-bubble { position: absolute; left: 0; bottom: 100%; padding: 8px 14px; border-radius: 18px 18px 18px 5px; background: #2a2a2a; color: #f1f1f1; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: 0; white-space: nowrap; pointer-events: none; animation: promo-bubble-in .5s var(--intro-ease) .7s backwards; }
@keyframes promo-bubble-in { from { opacity: 0; transform: translateY(6px) scale(.9); transform-origin: 0 100%; } }

/* the trial first, the plans are what comes after it */
.promo-first { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 16px; padding: clamp(24px, 3.4cqi, 40px); border-radius: 32px; background: #1a1a1a; }
.promo-first h2 { font-size: clamp(28px, 4cqi, 44px); font-weight: 620; line-height: 1.1; letter-spacing: -.04em; }
.promo-first h2 + p { max-width: 520px; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.promo-first .pill { flex: none; }

@media (max-width: 760px) {
  /* the face opens the second line here, the gap gives its bubble room under the first */
  .hero-title:has(.promo-bubble) { row-gap: 34px; }
  .promo-bubble { font-size: 14px; }
  .promo-first { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 20px 20px; border-radius: 28px; }
  .promo-first h2 { font-size: 28px; }
  .promo-first h2 + p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-bubble { animation: none; }
}
