.stem-free-chapter-funnel {
  overflow: hidden;
  background: #fff7c7;
}

.stem-chapter-card {
  display: grid;
  grid-template: auto auto / minmax(0, 1fr) minmax(300px, .82fr);
  grid-template-areas:
    "copy art"
    "form art";
  column-gap: clamp(38px, 7vw, 92px);
  align-items: center;
  padding: clamp(36px, 6vw, 70px);
  border: 3px solid #111522;
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 10px 10px 0 #111522;
}

.stem-chapter-copy {
  grid-area: copy;
  align-self: end;
  max-width: 650px;
}

.stem-chapter-label {
  margin: 0 0 12px;
  color: #c90059;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .105em;
}

.stem-chapter-label b {
  padding-inline: 4px;
  color: #0879ae;
}

.stem-chapter-copy h2 {
  max-width: 720px;
  margin: 0;
  color: #111522;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: clamp(3.35rem, 5.4vw, 5.15rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .94;
}

.stem-chapter-copy h2 em {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: #fff;
  font-style: normal;
  letter-spacing: -.02em;
  text-shadow: 2px 2px 0 #111522;
}

.stem-chapter-copy h2 em::before {
  position: absolute;
  z-index: -1;
  inset: 3% -8% -3%;
  border: 3px solid #111522;
  border-radius: 14px 20px 12px 17px;
  background: #ed0b73;
  content: '';
  transform: rotate(-2deg);
}

.stem-chapter-lead {
  max-width: 620px;
  margin: 22px 0 8px;
  color: #2f3542;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.6;
}

.stem-chapter-benefit {
  margin: 0;
  color: #0879ae;
  font-size: .95rem;
  font-weight: 700;
}

.stem-chapter-art {
  position: relative;
  grid-area: art;
  align-self: center;
  min-height: 550px;
  padding: 30px 22px 58px;
  isolation: isolate;
}

.stem-art-splash {
  position: absolute;
  z-index: -1;
  inset: 7% -7% 2%;
  border: 3px solid #111522;
  border-radius: 52% 48% 48% 52% / 44% 54% 46% 56%;
  background: #ffd400;
  box-shadow: 12px 12px 0 rgba(0, 158, 227, .22);
  transform: rotate(3deg);
}

.stem-chapter-cover {
  display: block;
  width: min(310px, 78%);
  height: auto;
  margin: 0 auto;
  border: 3px solid #111522;
  border-radius: 5px 14px 14px 5px;
  box-shadow: 13px 15px 0 rgba(17, 21, 34, .18);
  transform: rotate(2.5deg);
}

.stem-character-row {
  position: absolute;
  right: 2%;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
}

.stem-character-row img {
  display: block;
  width: clamp(68px, 7.3vw, 92px);
  height: auto;
  aspect-ratio: 1;
  margin-left: -13px;
  border: 3px solid #111522;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 4px 5px 0 rgba(17, 21, 34, .15);
}

.stem-character-row img:nth-child(2n) {
  transform: translateY(9px) rotate(4deg);
}

.stem-character-row img:nth-child(2n + 1) {
  transform: rotate(-4deg);
}

.stem-art-note {
  position: absolute;
  top: 13%;
  right: -14px;
  max-width: 106px;
  padding: 10px 11px;
  border: 3px solid #111522;
  border-radius: 50%;
  background: #fff;
  color: #c90059;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transform: rotate(9deg);
}

.stem-chapter-form-wrap {
  grid-area: form;
  align-self: start;
  max-width: 690px;
  margin-top: 26px;
}

.stem-chapter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.stem-free-chapter-funnel .email-field {
  display: grid;
  gap: 6px;
  color: #111522;
  font-size: .88rem;
  font-weight: 700;
}

.stem-free-chapter-funnel .email-field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 3px solid #111522;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #111522;
  font-size: 16px;
  box-shadow: 4px 4px 0 rgba(17, 21, 34, .1);
  transition: box-shadow .16s ease, border-color .16s ease;
}

.stem-free-chapter-funnel .email-field input:focus {
  border-color: #0879ae;
  box-shadow: 0 0 0 4px rgba(0, 158, 227, .19);
}

.stem-free-chapter-funnel .email-field input[aria-invalid='true'] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
}

.stem-free-chapter-funnel .submit-button {
  position: relative;
  min-width: 226px;
  min-height: 56px;
  padding: 0 20px;
  border: 3px solid #111522;
  border-radius: 12px;
  background: #c90059;
  color: #fff;
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: .015em;
  box-shadow: 5px 5px 0 #111522;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.stem-free-chapter-funnel .submit-button:hover {
  background: #a90048;
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #111522;
}

.stem-free-chapter-funnel .submit-button:focus-visible {
  outline: 4px solid #009ee3;
  outline-offset: 4px;
}

.stem-free-chapter-funnel .submit-button[disabled] {
  cursor: wait;
  opacity: .82;
}

.stem-free-chapter-funnel .submit-button.is-loading .button-label {
  padding-left: 22px;
}

.stem-free-chapter-funnel .spinner {
  position: absolute;
  top: 50%;
  left: 17px;
  display: none;
  width: 17px;
  height: 17px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: stem-chapter-spin .75s linear infinite;
}

.stem-free-chapter-funnel .submit-button.is-loading .spinner {
  display: block;
}

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

.stem-free-chapter-funnel .form-error {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 1px 0 -4px;
  color: #a40e0e;
  font-size: .86rem;
  font-weight: 700;
}

.stem-free-chapter-funnel .instant-note,
.stem-free-chapter-funnel .return-note,
.stem-free-chapter-funnel .privacy-note {
  margin: 8px 0 0;
  color: #5b6270;
  font-size: .875rem;
}

.stem-free-chapter-funnel .instant-note {
  color: #333a48;
}

.stem-free-chapter-funnel .return-note {
  margin-top: 2px;
}

.stem-free-chapter-funnel .privacy-note {
  max-width: 650px;
  margin-top: 8px;
  line-height: 1.45;
}

.stem-free-chapter-funnel .privacy-note a {
  color: #0879ae;
  font-weight: 700;
}

@media (max-width: 900px) {
  .stem-chapter-card {
    grid-template: auto auto auto / 1fr;
    grid-template-areas: "copy" "art" "form";
    gap: 0;
    padding: 32px clamp(18px, 5vw, 38px);
  }

  .stem-chapter-copy {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .stem-free-chapter-funnel {
    padding-inline: 0;
  }

  .stem-chapter-card {
    padding: 28px 16px 30px;
    border-radius: 22px;
    box-shadow: 6px 6px 0 #111522;
  }

  .stem-chapter-label {
    margin-bottom: 8px;
    font-size: .7rem;
  }

  .stem-chapter-copy h2 {
    font-size: clamp(2.72rem, 12.8vw, 3.65rem);
    line-height: .96;
  }

  .stem-chapter-lead {
    margin: 14px auto 5px;
    font-size: .91rem;
    line-height: 1.45;
  }

  .stem-chapter-benefit {
    font-size: .875rem;
  }

  .stem-chapter-art {
    min-height: 205px;
    padding: 12px 10px 23px;
  }

  .stem-art-splash {
    inset: 10px 11% 3px;
    border-width: 2px;
    box-shadow: 7px 7px 0 rgba(0, 158, 227, .2);
  }

  .stem-chapter-cover {
    width: 116px;
    border-width: 2px;
    border-radius: 3px 8px 8px 3px;
    box-shadow: 7px 8px 0 rgba(17, 21, 34, .18);
  }

  .stem-character-row {
    right: auto;
    bottom: 1px;
    left: 50%;
    width: 235px;
    transform: translateX(-50%);
  }

  .stem-character-row img {
    width: 54px;
    margin-left: -8px;
    border-width: 2px;
  }

  .stem-art-note {
    top: 21px;
    right: 7%;
    max-width: 78px;
    padding: 8px;
    border-width: 2px;
    font-size: .68rem;
  }

  .stem-chapter-form-wrap {
    margin-top: 8px;
  }

  .stem-chapter-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stem-free-chapter-funnel .email-field {
    gap: 4px;
    font-size: .78rem;
  }

  .stem-free-chapter-funnel .email-field input,
  .stem-free-chapter-funnel .submit-button {
    width: 100%;
    min-width: 0;
    height: 52px;
    min-height: 52px;
  }

  .stem-free-chapter-funnel .submit-button {
    font-size: .9rem;
  }

  .stem-free-chapter-funnel .form-error {
    min-height: 0;
    margin: 0;
  }

  .stem-free-chapter-funnel .form-error:not(:empty) {
    min-height: 19px;
  }

  .stem-free-chapter-funnel .instant-note,
  .stem-free-chapter-funnel .return-note,
  .stem-free-chapter-funnel .privacy-note {
    text-align: center;
  }
}

@media (max-width: 380px), (max-height: 820px) and (max-width: 760px) {
  .stem-chapter-lead {
    font-size: .875rem;
  }

  .stem-chapter-art {
    min-height: 176px;
    padding-top: 8px;
  }

  .stem-chapter-cover {
    width: 98px;
  }

  .stem-character-row {
    width: 214px;
  }

  .stem-character-row img {
    width: 48px;
  }

  .stem-art-note {
    right: 4%;
  }

  .stem-free-chapter-funnel .email-field input,
  .stem-free-chapter-funnel .submit-button {
    height: 50px;
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stem-free-chapter-funnel *,
  .stem-free-chapter-funnel *::before,
  .stem-free-chapter-funnel *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
