:root {
  --yellow: #fdb102;
  --blue: #2638ff;
  --coral: #e63d46;
  --coral-hot: #ff4b3a;
  --cream: #f5efe6;
  --white: #fffdf8;
  --ink: #141414;
  --muted: #5a5550;
  --pink: #ff8fab;
  --display: "Manrope", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--display);
}

body {
  min-height: 100dvh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.wordmark {
  display: flex;
  align-items: center;
  line-height: 1;
}

.wordmark img {
  display: block;
  height: 34px;
  width: auto;
}

.note {
  margin: 0;
  padding: 8px 12px;
  border: 2px solid var(--coral);
  border-radius: 16px 18px 14px 20px;
  transform: rotate(6deg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: var(--white);
  animation: floaty 4.5s ease-in-out infinite;
}

.note .heart {
  width: 14px;
  height: 14px;
  color: var(--coral);
  vertical-align: -2px;
  display: inline-block;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
}

.copy h1 {
  margin: 18px 0 0;
  font-size: clamp(2.35rem, 11vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.copy .row {
  display: block;
}

.iconic {
  position: relative;
  color: var(--coral-hot);
  font-style: normal;
  display: inline-block;
  padding: 0 0.12em 0.06em;
  isolation: isolate;
}

.scribble {
  position: absolute;
  left: -10%;
  top: -18%;
  width: 120%;
  height: 140%;
  color: var(--coral-hot);
  pointer-events: none;
  z-index: -1;
}

.scribble ellipse {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 1.1s 0.15s ease forwards;
}

.lede {
  margin: 16px 0 28px;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
}

.stage-wrap {
  perspective: 900px;
  margin: 8px 0 -70px;
  min-height: 340px;
  position: relative;
  z-index: 2;
}

.stage {
  position: relative;
  height: 360px;
  transform-style: preserve-3d;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-origin: center 60%;
  will-change: transform;
}

.blob {
  position: absolute;
  left: 8%;
  top: 4%;
  width: 84%;
  height: 92%;
  overflow: hidden;
  background: var(--coral-hot);
  border-radius: 46% 54% 42% 58% / 42% 38% 62% 58%;
  animation: morph 7s ease-in-out infinite;
  transform: translateZ(-20px);
  box-shadow: 12px 22px 0 rgba(38, 56, 255, 0.18), 0 18px 24px rgba(20, 20, 20, 0.18);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  animation: hop 3.6s ease-in-out infinite;
  pointer-events: none;
}

.doodle {
  position: absolute;
  z-index: 3;
}

.spark {
  width: 28px;
  height: 28px;
  color: var(--yellow);
  animation: spin 5s linear infinite;
}

.spark-1 {
  top: 18%;
  right: 6%;
}

.spark-2 {
  left: 8%;
  top: 46%;
  width: 18px;
  height: 18px;
  color: var(--blue);
  animation-duration: 7s;
  animation-direction: reverse;
}

.marks {
  width: 42px;
  height: 42px;
  color: var(--ink);
  top: 6%;
  left: 4%;
  transform: rotate(-18deg);
}

.card {
  position: relative;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 18px 18px;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
  transform: rotate(-0.6deg);
}

.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 86px;
  height: 22px;
  margin-left: -43px;
  background: var(--coral-hot);
  opacity: 0.92;
  transform: rotate(-8deg);
  border-radius: 2px;
}

.card-star {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 22px;
  height: 22px;
  color: var(--yellow);
  animation: spin 6s linear infinite;
}

.card-title {
  margin: 8px 0 16px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.field {
  margin-bottom: 10px;
}

input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #d8d0c6;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

input::placeholder {
  color: #6d675f;
  font-weight: 600;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 56, 255, 0.18);
}

.error,
.form-error {
  display: none;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
}

.field.invalid .error {
  display: block;
}

.field.invalid input {
  border-color: var(--coral);
}

button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--coral-hot);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 0 #c22722;
  white-space: nowrap;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 7px 0 #c22722;
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #c22722;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.fine {
  display: none;
}

.promise {
  grid-column: 1 / -1;
  margin: 28px -16px 0;
  padding: 14px 20px;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.form-error[hidden] {
  display: none;
}

.form-error:not([hidden]) {
  display: block;
  text-align: center;
}

.success {
  display: none;
  margin: 12px 8px 8px;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
}

.card.is-success form {
  display: none;
}

.card.is-success .success {
  display: block;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 46% 54% 42% 58% / 42% 38% 62% 58%;
  }
  50% {
    border-radius: 58% 42% 60% 40% / 52% 60% 40% 48%;
  }
}

@keyframes hop {
  0%,
  100% {
    transform: translate3d(0, 0, 36px);
  }
  50% {
    transform: translate3d(0, -10px, 36px);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: rotate(6deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-6px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 768px) {
  .page {
    padding: 22px 32px 64px;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .copy {
    grid-column: 1;
    grid-row: 1;
    padding-top: 12px;
  }

  .copy h1 {
    font-size: clamp(3.2rem, 6vw, 4.6rem);
  }

  .lede {
    font-size: 1.05rem;
    max-width: 38ch;
  }

  .stage-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    min-height: 560px;
  }

  .stage {
    height: 560px;
  }

  .card {
    grid-column: 1;
    grid-row: 2;
    max-width: 460px;
    margin-top: 8px;
  }

  .promise {
    grid-row: 3;
    margin: 36px -32px 0;
  }

  .wordmark img {
    height: 42px;
  }
}

@media (min-width: 1024px) {
  .stage {
    height: 620px;
  }

  .blob {
    left: 10%;
    width: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .stage {
    transform: none;
  }

  .scribble ellipse {
    stroke-dashoffset: 0;
  }
}
