:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182233;
  background: #fff8dc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgb(255 255 255 / 95%) 0 3.5rem, transparent 3.6rem),
    radial-gradient(circle at 92% 82%, rgb(255 255 255 / 75%) 0 5rem, transparent 5.1rem),
    linear-gradient(145deg, #fff4a8 0%, #ffcf36 48%, #ff9f43 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  opacity: 0.18;
  pointer-events: none;
}

body::before {
  top: -7rem;
  left: -5rem;
  background: #7b2cbf;
}

body::after {
  right: -7rem;
  bottom: -8rem;
  background: #008f7a;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: #182233;
  color: #fff;
  font-weight: 750;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  place-items: center;
  padding: 3rem 1.2rem;
}

.return-card {
  width: min(100%, 58rem);
  min-width: 0;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgb(24 34 51 / 10%);
  border-radius: 2rem;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 1.5rem 4rem rgb(78 52 0 / 22%);
  text-align: center;
  backdrop-filter: blur(10px);
}

.brand {
  margin: 0 0 1.75rem;
  color: #182233;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 850;
  letter-spacing: 0.03em;
}

.eyebrow {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #fff1aa;
  color: #714b00;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 48rem;
  margin: 0 auto 1.3rem;
  color: #121b29;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.lead,
.return-card > p:not(.brand, .eyebrow) {
  max-width: 43rem;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.lead {
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.65rem;
  margin: 1.55rem auto 0.8rem;
  padding: 0.85rem 1.55rem;
  border: 2px solid #172131;
  border-radius: 0.9rem;
  background: #182233;
  color: #fff;
  box-shadow: 0 0.45rem 0 #f2b80d;
  font-size: 1.08rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.store-button:hover {
  background: #27364d;
  transform: translateY(-2px);
  box-shadow: 0 0.58rem 0 #f2b80d;
}

.store-button:active {
  transform: translateY(3px);
  box-shadow: 0 0.15rem 0 #f2b80d;
}

.store-button:focus-visible,
.store-url:focus-visible {
  outline: 4px solid #006d60;
  outline-offset: 4px;
}

.store-url {
  display: block;
  width: fit-content;
  margin: 0.6rem auto 2.2rem;
  color: #31557a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.existing-order {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.5rem;
  padding: clamp(1.15rem, 3vw, 1.55rem);
  border: 1px solid #a9ddd3;
  border-radius: 1rem;
  background: #e9faf6;
  text-align: left;
}

.existing-order__icon {
  display: grid;
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #008f7a;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  place-items: center;
}

.existing-order h2 {
  margin: 0 0 0.45rem;
  color: #123b35;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.3;
}

.existing-order p {
  margin: 0;
  color: #24534c;
  line-height: 1.55;
}

.confetti {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -2rem;
  width: 0.7rem;
  height: 1.15rem;
  border-radius: 0.15rem;
  background: #7b2cbf;
  animation: celebrate 8s linear infinite;
}

.confetti span:nth-child(3n) { background: #008f7a; }
.confetti span:nth-child(3n + 1) { background: #e53935; }
.confetti span:nth-child(4n) { border-radius: 50%; }
.confetti span:nth-child(1) { left: 4%; animation-delay: -1s; }
.confetti span:nth-child(2) { left: 12%; animation-delay: -6s; animation-duration: 10s; }
.confetti span:nth-child(3) { left: 20%; animation-delay: -3s; }
.confetti span:nth-child(4) { left: 29%; animation-delay: -8s; animation-duration: 11s; }
.confetti span:nth-child(5) { left: 37%; animation-delay: -5s; }
.confetti span:nth-child(6) { left: 45%; animation-delay: -2s; animation-duration: 9s; }
.confetti span:nth-child(7) { left: 54%; animation-delay: -7s; }
.confetti span:nth-child(8) { left: 62%; animation-delay: -4s; animation-duration: 12s; }
.confetti span:nth-child(9) { left: 70%; animation-delay: -9s; }
.confetti span:nth-child(10) { left: 77%; animation-delay: -3.5s; animation-duration: 10s; }
.confetti span:nth-child(11) { left: 84%; animation-delay: -6.5s; }
.confetti span:nth-child(12) { left: 91%; animation-delay: -1.5s; animation-duration: 11s; }
.confetti span:nth-child(13) { left: 25%; animation-delay: -10s; animation-duration: 13s; }
.confetti span:nth-child(14) { left: 73%; animation-delay: -11s; animation-duration: 13s; }

@keyframes celebrate {
  0% {
    opacity: 0;
    transform: translate3d(0, -3rem, 0) rotate(0deg);
  }
  10%,
  85% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate3d(2rem, calc(100vh + 5rem), 0) rotate(620deg);
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 1rem;
  }

  .return-card {
    padding: 1.65rem 1.15rem;
    border-radius: 1.35rem;
  }

  .brand {
    margin-bottom: 1.25rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .store-button {
    display: flex;
    width: 100%;
  }

  .existing-order {
    display: block;
  }

  .existing-order__icon {
    margin-bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
