/* Post-checkout thank-you. No confetti: the noise settles into one quiet line, then the page appears. */
.thanks {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  align-items: center;
  background: var(--bg);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.thanks.out {
  opacity: 0;
  pointer-events: none;
}
.thanks-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
}
.thanks-wave {
  display: block;
  width: 100%;
  height: clamp(88px, 16vh, 140px);
  margin: 0 0 clamp(28px, 6vh, 56px);
}
.thanks-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(56px, 15vw, 104px);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}
/* Each letter lands loud and thins out: noise settling into quiet, like the logo. */
.thanks-title span {
  display: inline-block;
  animation: thanks-settle 1700ms cubic-bezier(0.2, 0.7, 0.15, 1) backwards;
  animation-delay: calc(320ms + var(--i) * 45ms);
}
@keyframes thanks-settle {
  from {
    font-weight: 800;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
}
.thanks-note {
  max-width: 30em;
  min-height: 3.1em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: var(--text-lg);
  text-wrap: pretty;
}
.thanks-note,
.thanks-go {
  opacity: 0;
  transition: opacity 600ms ease;
}
.thanks.said .thanks-note,
.thanks.said .thanks-go {
  opacity: 1;
}
.thanks-go {
  margin-top: 28px;
}
.btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .thanks-title span {
    animation: none;
  }
}
