/*
 * Thank You page: a single full-screen panel (no site header or footer).
 * Loaded only on that page, after style.css (fonts, colours and buttons).
 */

html,
body {
  margin: 0;
  min-height: 100%;
  background: #0a1830;
}

.ty {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  box-sizing: border-box;
  background: radial-gradient(120% 90% at 50% 0%, #1f4479 0%, #0f2446 48%, #0a1830 100%);
  color: #f8f5ec;
  text-align: center;
}

.ty__glow {
  position: absolute;
  top: -28rem;
  left: 50%;
  z-index: -1;
  width: 60rem;
  height: 60rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgb(212 175 55 / 0.26), transparent 62%);
  pointer-events: none;
}

.ty__watermark {
  position: absolute;
  right: -6rem;
  bottom: -9rem;
  z-index: -1;
  width: min(38rem, 70vw);
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

/* Floating client covers on the sides (decorative) */
.ty__book {
  position: absolute;
  z-index: -1;
  width: clamp(5.5rem, 8vw, 8.5rem);
  aspect-ratio: 1 / 1.48;
  object-fit: cover;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6), inset 4px 0 0 rgb(255 255 255 / 0.12);
  opacity: 0.9;
  animation: ty-float 7s ease-in-out infinite;
}

.ty__book--1 { left: 6%; top: 14%; rotate: -10deg; }
.ty__book--2 { left: 11%; bottom: 12%; rotate: 7deg; animation-delay: -2.2s; }
.ty__book--3 { right: 7%; top: 16%; rotate: 9deg; animation-delay: -4.1s; }
.ty__book--4 { right: 12%; bottom: 10%; rotate: -6deg; animation-delay: -1.3s; }

.ty__inner {
  width: 100%;
  max-width: 48rem;
}

.ty__logo {
  display: inline-flex;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  color: inherit;
  text-decoration: none;
}

.ty__check {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: #d4af37;
  color: #0a1830;
  box-shadow: 0 0 0 10px rgb(212 175 55 / 0.14), 0 0 0 22px rgb(212 175 55 / 0.06);
  animation: ty-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.ty__check svg {
  width: 2rem;
  height: 2rem;
}

.ty__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ead9a0;
}

.ty__title {
  margin: 0.9rem 0 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.ty__title em {
  font-style: italic;
  color: #d4af37;
}

.ty__lead {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: rgb(248 245 236 / 0.82);
}

.ty__steps {
  display: grid;
  gap: 0.9rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

@media (min-width: 720px) {
  .ty__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ty__step {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(6px);
}

.ty__step-num {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.5rem;
  color: #d4af37;
}

.ty__step h2 {
  margin: 0.35rem 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.ty__step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgb(248 245 236 / 0.72);
}

.ty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.ty__note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: rgb(248 245 236 / 0.65);
}

.ty__note a {
  color: #ead9a0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ty a:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .ty__book {
    opacity: 0.22;
  }
}

@media (max-width: 600px) {
  .ty__book--2,
  .ty__book--4 {
    display: none;
  }
}

@keyframes ty-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes ty-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ty__book,
  .ty__check {
    animation: none;
  }
}
