@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600&display=swap");

:root {
  --font-caveat: "Caveat";
  --cream: #f5eadf;
  --blue: #168eb5;
  --orange: #ff6500;
  --yellow: #ffd317;
  --brown: #755344;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

html { overflow-x: hidden; }

body {
  margin: 0;
  color: var(--brown);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input { font: inherit; }

.page-shell {
  min-height: 100svh;
  overflow: clip;
}

.hero {
  isolation: isolate;
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(345px, .82fr) minmax(470px, 1.18fr) minmax(440px, 1.04fr);
  align-items: stretch;
  gap: 0;
  padding: clamp(34px, 4vw, 55px) clamp(36px, 3.1vw, 53px) 0;
  background:
    radial-gradient(circle at 48% 47%, rgba(255,255,255,.72) 0, rgba(255,255,255,.19) 28%, transparent 53%),
    linear-gradient(115deg, #f8eee4 0%, #f4e8dc 58%, #f8eee6 100%);
}

.story {
  z-index: 6;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  display: block;
  width: 335px;
  height: auto;
  margin-top: -22px;
  margin-left: -14px;
}

.story__copy {
  margin-top: clamp(96px, 11vh, 120px);
}

.story h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(45px, 3.05vw, 54px);
  font-weight: 800;
  font-family: "Arial Rounded MT Bold", Arial, sans-serif;
  line-height: 1.18;
  letter-spacing: -.8px;
}

.handwriting {
  margin: 10px 0 31px;
  color: var(--blue);
  font-family: var(--font-caveat), cursive;
  font-size: clamp(47px, 3.45vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .3px;
}

.handwriting span {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-caveat), cursive;
  font-size: .92em;
  transform: rotate(9deg);
}

.intro {
  max-width: 340px;
  margin: 0;
  font-size: clamp(20px, 1.42vw, 24px);
  font-weight: 500;
  line-height: 1.56;
}

.intro strong { color: var(--orange); font-weight: 800; }
.intro strong:last-child { color: inherit; }

.baby-wrap {
  z-index: 5;
  position: relative;
  align-self: end;
  height: min(84.8svh, 820px);
  margin: 0 -62px 0 -136px;
  overflow: visible;
}

.baby-image {
  position: absolute;
  z-index: 3;
  inset: 0;
  left: -18px;
  width: 102%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 52%;
}

.form-card {
  z-index: 8;
  align-self: start;
  width: calc(100% + 45px);
  margin-top: 34px;
  margin-left: -30px;
  min-height: min(82svh, 795px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 47px 40px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  background: rgba(255,253,250,.77);
  box-shadow: 0 15px 35px rgba(112,79,57,.13);
  backdrop-filter: blur(7px);
}

.form-heading {
  margin-bottom: 55px;
  text-align: center;
}

.form-heading h2,
.success h2 {
  margin: 0 0 5px;
  color: var(--orange);
  font-size: clamp(23px, 1.65vw, 28px);
  font-weight: 800;
  font-family: "Arial Rounded MT Bold", Arial, sans-serif;
  line-height: 1.25;
}

.form-heading p {
  margin: 0;
  color: #394858;
  font-size: clamp(18px, 1.28vw, 22px);
  font-weight: 700;
}

form {
  display: grid;
  gap: 22px;
}

label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

input {
  width: 100%;
  height: 74px;
  padding: 0 25px;
  color: #493d36;
  border: 1px solid rgba(181,160,145,.12);
  border-radius: 11px;
  outline: none;
  background: rgba(255,255,255,.94);
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 500;
  box-shadow: 0 5px 14px rgba(106,75,54,.035);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder { color: #87909e; }
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(13,142,180,.13);
}

button {
  min-height: 78px;
  margin-top: 0;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: white;
  cursor: pointer;
  font-size: clamp(22px, 1.55vw, 27px);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(255,105,0,.19);
  transition: transform 150ms ease, filter 150ms ease;
}

button:hover { filter: brightness(1.05); transform: translateY(-1px); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 4px solid rgba(13,142,180,.35); outline-offset: 3px; }
button:disabled { cursor: wait; filter: saturate(.7); opacity: .72; transform: none; }

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--brown);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.consent input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--orange);
  box-shadow: none;
}

.consent em { font-style: normal; }

.form-error {
  margin: -6px 0 0;
  color: #a82922;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.privacy {
  margin: 29px 0 0;
  color: var(--brown);
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

.privacy span { margin-right: 9px; }

.lock-icon {
  position: relative;
  top: 2px;
  display: inline-block;
  width: 15px;
  height: 14px;
  border-radius: 2px;
  background: #ffbe00;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -9px;
  width: 9px;
  height: 11px;
  border: 3px solid #ffbe00;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.success { text-align: center; }
.success > span { display: block; margin-bottom: 12px; color: var(--blue); font-size: 70px; }
.success h2 { font-size: 30px; }
.success p { margin: 14px 0 28px; font-size: 18px; line-height: 1.55; }
.success button { width: 100%; }

.scribble-cloud {
  position: absolute;
  z-index: 2;
  top: 75px;
  left: 23.7%;
  width: 318px;
  height: auto;
  opacity: .9;
  object-fit: contain;
}

.gift {
  position: absolute;
  z-index: 4;
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.12));
}

.gift--top { top: 88px; left: 50.6%; width: 172px; transform: rotate(1deg); }

.gift--bottom {
  z-index: 1;
  bottom: 12px;
  left: -22%;
  width: 255px;
  transform: rotate(-4deg);
}

.spark { position: absolute; z-index: 4; color: var(--yellow); line-height: 1; }
.spark--one { left: 59.2%; bottom: 73px; font-size: 45px; }
.spark--two { left: 61.5%; bottom: 51px; font-size: 18px; }
.spark--three { left: 57.9%; bottom: 50px; color: var(--yellow); font-size: 17px; }

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 28px;
  }

  .logo { width: 255px; }
  .story__copy { margin-top: 90px; }
  .story h1 { font-size: 42px; }
  .handwriting { font-size: 46px; }
  .intro { max-width: 340px; font-size: 18px; }
  .baby-wrap { grid-column: 1; height: 490px; margin: -30px -60px 0; }
  .form-card { grid-column: 2; grid-row: 1 / span 2; width: 100%; min-height: 680px; margin: 0; align-self: center; padding: 42px 32px; }
  .form-heading { margin-bottom: 35px; }
  input { height: 61px; }
  button { min-height: 64px; }
  .scribble-cloud { left: 30%; transform: scale(.72); transform-origin: top left; }
  .gift--top { top: 80px; right: 52%; left: auto; transform: scale(.72) rotate(12deg); }
  .gift--bottom { bottom: 12px; left: -12%; width: 205px; transform: rotate(-18deg); }
}

@media (min-width: 1121px) and (max-height: 880px) {
  .hero { padding-top: 30px; }
  .logo { width: 285px; margin-top: -16px; }
  .story__copy { margin-top: clamp(55px, 8vh, 72px); }
  .story h1 { font-size: clamp(39px, 3vw, 47px); }
  .handwriting { margin-bottom: 22px; font-size: clamp(42px, 3.2vw, 51px); }
  .intro { max-width: 315px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.48; }
  .baby-wrap { height: min(79svh, 700px); }
  .form-card { min-height: min(88svh, 700px); margin-top: 14px; padding: 34px 38px 30px; }
  .form-heading { margin-bottom: 30px; }
  form { gap: 16px; }
  input { height: 58px; }
  button { min-height: 62px; }
  .privacy { margin-top: 20px; }
  .scribble-cloud { top: 45px; width: 270px; }
  .gift--top { top: 58px; width: 145px; }
  .gift--bottom { bottom: 12px; left: -20%; width: 220px; }
}

@media (max-width: 820px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: 28px clamp(22px, 5vw, 42px) 38px;
  }

  .story { width: 100%; }
  .logo { width: clamp(238px, 38vw, 280px); margin-top: 0; margin-left: -14px; }
  .story__copy { width: min(100%, 380px); margin-top: clamp(68px, 10vw, 86px); }
  .story h1 { font-size: clamp(39px, 6vw, 48px); }
  .handwriting { margin-bottom: 26px; font-size: clamp(44px, 7vw, 54px); }
  .intro { max-width: 360px; font-size: clamp(17px, 2.6vw, 20px); }
  .scribble-cloud { top: 90px; right: clamp(-18px, -2vw, -5px); left: auto; width: clamp(190px, 34vw, 250px); transform: none; }
  .gift--top { top: clamp(170px, 24vw, 205px); right: clamp(8px, 4vw, 30px); left: auto; width: clamp(105px, 17vw, 135px); transform: rotate(12deg); }

  .baby-wrap {
    width: calc(100% + clamp(44px, 10vw, 84px));
    height: clamp(520px, 84vw, 660px);
    flex: none;
    margin: -35px calc(clamp(22px, 5vw, 42px) * -1) -12px;
    overflow: visible;
  }

  .baby-image { left: 0; width: 100%; object-position: 50% 50%; }
  .gift--bottom { right: auto; bottom: 10px; left: -18px; width: clamp(175px, 29vw, 220px); transform: rotate(-14deg); }
  .form-card { align-self: center; width: min(100%, 600px); min-height: 0; margin: 0; padding: 38px clamp(24px, 6vw, 42px) 30px; border-radius: 24px; }
  .form-heading { margin-bottom: 30px; }
  .form-heading h2 { font-size: clamp(22px, 3.8vw, 27px); }
  .form-heading p { font-size: clamp(17px, 2.8vw, 20px); }
  form { gap: 16px; }
  input { height: 62px; padding: 0 19px; font-size: 16px; }
  button { min-height: 64px; font-size: 21px; }
  .privacy { margin-top: 22px; font-size: 15px; }
  .spark--one { left: auto; right: 9%; bottom: 690px; }
  .spark--two { left: auto; right: 6%; bottom: 665px; }
  .spark--three { left: auto; right: 14%; bottom: 664px; }
}

@media (max-width: 480px) {
  .hero { padding: 24px clamp(16px, 5vw, 21px) 30px; }
  .logo { width: clamp(218px, 68vw, 238px); }
  .story__copy { margin-top: clamp(58px, 18vw, 70px); }
  .story h1 { font-size: clamp(33px, 10.3vw, 39px); letter-spacing: -.5px; }
  .handwriting { margin: 8px 0 22px; font-size: clamp(39px, 11.6vw, 44px); }
  .intro { max-width: 330px; font-size: clamp(15.5px, 4.5vw, 17px); line-height: 1.52; }
  .scribble-cloud { top: 82px; right: -24px; width: clamp(176px, 55vw, 205px); }
  .gift--top { top: clamp(168px, 51vw, 194px); right: 2px; width: clamp(92px, 29vw, 110px); }
  .baby-wrap {
    width: calc(100% + clamp(32px, 10vw, 42px));
    height: clamp(390px, 117vw, 455px);
    margin: -24px calc(clamp(16px, 5vw, 21px) * -1) -10px;
  }
  .baby-image { object-position: 50% 55%; }
  .gift--bottom { bottom: 4px; left: -24px; width: clamp(155px, 48vw, 185px); }
  .form-card { padding: 32px clamp(18px, 5.5vw, 24px) 25px; }
  .form-heading { margin-bottom: 25px; }
  .form-heading h2 { font-size: clamp(19px, 5.7vw, 22px); }
  .form-heading p { font-size: clamp(15px, 4.4vw, 17px); }
  form { gap: 13px; }
  input { height: 56px; padding: 0 15px; font-size: 15px; }
  button { min-height: 58px; font-size: 19px; }
  .privacy { margin-top: 19px; font-size: 14px; }
  .spark { display: none; }
}

@media (max-width: 350px) {
  .hero { padding-inline: 14px; }
  .story__copy { margin-top: 52px; }
  .intro { max-width: 292px; }
  .baby-wrap { width: calc(100% + 28px); height: 375px; margin-inline: -14px; }
  .form-card { padding-inline: 16px; }
  input { font-size: 14px; }
}

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