/**
 * Section: CTA, the yellow paper note from the design.
 */

.cta {
  background: var(--surface);
  padding-block: var(--section-space-s) var(--section-space-m);
  padding-inline: var(--space-gutter);
}

.cta-card {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  max-width: 62.5rem;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-l);
  background: var(--surface-note);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-note);
  text-align: center;
  transform: rotate(-0.7deg);
}

/* Washi tape across the top edge. */
.cta-card::before {
  content: '';
  position: absolute;
  top: calc(var(--space-xs) * -1);
  left: calc(50% - 4rem);
  width: 8rem;
  height: 1.9rem;
  background-color: var(--tape-bg);
  background-image:
    linear-gradient(90deg, var(--gingham-tape) 50%, transparent 50%),
    linear-gradient(var(--gingham-tape) 50%, transparent 50%);
  background-size: var(--tape-size) var(--tape-size);
  clip-path: var(--tape-edge);
  opacity: 0.85;
  transform: rotate(3deg);
}

/* Folded corner. */
.cta-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.9rem;
  height: 1.9rem;
  background: linear-gradient(135deg, var(--surface-note-fold) 50%, var(--surface) 51%);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  max-width: 45rem;
}

.cta-copy h2 {
  font-size: var(--text-h2);
}

.cta-copy p {
  max-width: 60ch;
  font-size: var(--text-body);
}

.cta-copy .btn-row {
  justify-content: center;
}

.cta-flower-one {
  left: var(--space-xs);
  top: 55%;
  width: 3.4rem;
  z-index: -1;
  transform: rotate(-18deg);
}

.cta-flower-two {
  right: var(--space-xs);
  bottom: var(--space-s);
  width: 3rem;
  z-index: -1;
  transform: rotate(15deg);
}

.cta-sparkle-one {
  right: var(--space-l);
  top: var(--space-l);
  width: 1.25rem;
  background: var(--brand-gold);
  z-index: -1;
}

.cta-sparkle-two {
  left: var(--space-l);
  bottom: var(--space-2xl);
  width: 0.9rem;
  background: var(--brand-gold);
  z-index: -1;
}

@media (max-width: 47.99rem) {
  .cta-card {
    padding: var(--space-xl) var(--space-m);
  }

  .cta-flower-one,
  .cta-flower-two {
    width: 2rem;
  }
}
