:root {
  --cream: #fffaf0;
  --cream-deep: #fdf3e0;
  --paper: #ffffff;
  --activity-paper: #f3f8ea;
  --ink: #2f4a28;
  --muted: #5a6b4f;
  --green: #6cb74a;
  --green-dark: #48962f;
  --green-deep: #2f6b1f;
  --blue: #68bce8;
  --sky: #9ad6f2;
  --yellow: #ffd23f;
  --yellow-deep: #ffb627;
  --orange: #ff8a6b;
  --lavender: #9b7ede;
  --peach: #ff8a6b;
  --line: #d8e6c8;
  --shadow: 0 28px 55px -20px rgba(53, 89, 40, 0.45);
  --soft-shadow: 0 18px 40px -18px rgba(53, 89, 40, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(var(--line) 1.3px, transparent 1.3px),
    radial-gradient(circle at 10% 7%, rgba(154, 214, 242, 0.42), transparent 20rem),
    radial-gradient(circle at 86% 12%, rgba(255, 210, 63, 0.2), transparent 18rem),
    linear-gradient(180deg, #fffaf0 0%, #fffaf0 48%, #f3f8ea 100%),
    var(--cream);
  background-size: 26px 26px, auto, auto, auto;
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1260px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(184, 220, 98, 0.44);
  border-radius: 0 0 22px 22px;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #8ed16d, var(--green-dark));
  border: 4px solid #fff;
  border-radius: 15px;
  box-shadow: 0 5px 0 var(--green-deep), 0 14px 20px -16px rgba(53, 89, 40, 0.5);
  transform: rotate(-6deg);
}

.menu-toggle {
  display: inline-grid;
  width: 52px;
  height: 52px;
  min-height: 52px;
  flex: 0 0 auto;
  place-items: center;
  gap: 4px;
  padding: 10px;
  background: #ffffff;
  border: 3px solid #0b2460;
  border-radius: 16px;
  box-shadow: 0 5px 0 rgba(7, 31, 92, 0.16);
}

.menu-line {
  display: block;
  width: 24px;
  height: 3px;
  background: #0b2460;
  border-radius: 999px;
}

.menu-toggle:hover {
  background: #ffffff;
  box-shadow: 0 5px 0 rgba(7, 31, 92, 0.16);
  transform: none;
}

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

.nav {
  display: none;
  position: absolute;
  top: calc(100% - 8px);
  right: 0;
  z-index: 5;
  width: min(260px, calc(100vw - 24px));
  gap: 6px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid #d7edb2;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(7, 31, 92, 0.16);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
}

.nav.is-open {
  display: grid;
}

.nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.nav a:hover {
  background: var(--activity-paper);
  color: var(--green-dark);
}

.section-band {
  border: 3px solid #ffffff;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  grid-template-areas:
    "copy-top"
    "media"
    "copy-bottom";
  padding: 26px 22px 32px;
  border-radius: 28px;
  background:
    linear-gradient(172deg, transparent 0 54%, rgba(108, 183, 74, 0.2) 54.2% 100%),
    radial-gradient(circle at 14% 18%, rgba(255, 210, 63, 0.42), transparent 17rem),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.75), transparent 11rem),
    linear-gradient(180deg, #9ad6f2 0%, #c9ecfb 58%, #d9f0d0 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-right: 8px;
  background: var(--yellow-deep);
  border-radius: 999px;
  content: "";
  vertical-align: middle;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 720px;
  color: #214a6e;
  font-size: clamp(2.35rem, 11vw, 3.6rem);
  text-shadow:
    0 3px 0 #ffffff,
    2px 0 0 #ffffff,
    -2px 0 0 #ffffff,
    0 -2px 0 #ffffff,
    0 6px 0 rgba(7, 31, 92, 0.1);
}

h1 span {
  display: block;
}

h1 span:nth-child(1) {
  color: #7bc72f;
}

h1 span:nth-child(2) {
  color: #179ee7;
}

h1 span:nth-child(3) {
  color: #ff8b16;
}

h1 span:nth-child(4) {
  color: #092769;
}

h1 span:nth-child(5) {
  color: #092769;
}

h2 {
  font-size: 2.15rem;
}

h3 {
  font-size: 1.45rem;
}

.subheadline {
  max-width: 670px;
  margin: 18px 0 0;
  color: #2c5777;
  font-size: 1.08rem;
  font-weight: 700;
}

.hero-actions {
  display: grid;
  gap: 12px;
  width: min(100%, 560px);
  margin-top: 24px;
}

.hero-freebie-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-freebie-list span {
  padding: 7px 12px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 5px 0 rgba(53, 89, 40, 0.08);
}

.signup-form {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 18px;
  background: var(--paper);
  border: 3px solid #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.signup-embed {
  overflow: hidden;
}

.signup-embed iframe {
  display: block;
  width: 100%;
  min-height: 270px;
  border: 0;
  background: transparent;
}

.tally-fallback {
  font-size: 0.9rem;
}

.download-after-submit {
  display: grid;
  gap: 10px;
}

.download-after-submit[hidden] {
  display: none;
}

.download-pack-button {
  min-height: 48px;
  margin-top: 4px;
  font-size: 0.98rem;
}

.download-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.signup-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.signup-form span {
  padding-left: 4px;
}

.form-topper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.form-topper span {
  padding: 7px 11px;
  color: var(--green-dark);
  background: var(--activity-paper);
  border: 0;
  border-radius: 999px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
}

.signup-form em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

input,
button,
.button-link {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  font: inherit;
}

input {
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--cream-deep);
  padding: 0 16px;
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(108, 183, 74, 0.2);
}

.button-link,
button {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #75ca35, #349d22);
  border: 3px solid #ffffff;
  padding: 0 20px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-shadow: 0 6px 0 #1f7a16, 0 12px 24px rgba(7, 31, 92, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-link:hover,
button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #82d641, #349d22);
  box-shadow: 0 8px 0 #1f7a16, 0 16px 28px rgba(7, 31, 92, 0.2);
}

.secondary-button {
  background: linear-gradient(180deg, #75ca35, #349d22);
  box-shadow: 0 6px 0 #1f7a16, 0 12px 24px rgba(7, 31, 92, 0.2);
}

.secondary-button:hover {
  background: linear-gradient(180deg, #82d641, #349d22);
}

.amazon-button {
  color: #6a4a00;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  box-shadow: 0 6px 0 #d99400, var(--soft-shadow);
}

.amazon-button:hover {
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  box-shadow: 0 9px 0 #d99400, var(--shadow);
}

.hero-actions .hero-primary-button {
  min-height: 62px;
  font-size: 1.08rem;
}

.hero-actions .hero-secondary-button,
.bottom-cta .hero-secondary-button {
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.94);
  border-color: #bfe4a8;
  box-shadow: 0 6px 0 rgba(72, 150, 47, 0.28), var(--soft-shadow);
}

.hero-actions .hero-secondary-button:hover,
.bottom-cta .hero-secondary-button:hover {
  color: var(--green-deep);
  background: #ffffff;
  box-shadow: 0 8px 0 rgba(72, 150, 47, 0.28), var(--shadow);
}

.feelings-button {
  background: linear-gradient(180deg, #9d54b4, #6b2f94);
  box-shadow: 0 6px 0 #4b1d6d, 0 12px 24px rgba(7, 31, 92, 0.2);
}

.feelings-button:hover {
  background: #7a3ea1;
}

.signup-card {
  grid-template-columns: 1fr;
}

.signup-copy {
  display: grid;
  gap: 4px;
  padding: 6px 4px 2px;
}

.signup-copy strong {
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.signup-copy span {
  color: var(--muted);
  font-weight: 800;
}

.text-link {
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.form-note,
.success-message,
.fallback-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.success-message {
  color: var(--green-dark);
}

.fallback-message a {
  font-weight: 900;
}

.hero-art {
  position: relative;
  display: grid;
  justify-items: center;
  grid-area: media;
  min-width: 0;
  animation: hero-bob 5s ease-in-out infinite;
}

.hero-download-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
  border: 5px solid #ffffff;
  border-radius: 26px;
  box-shadow:
    0 0 0 3px rgba(72, 150, 47, 0.18),
    0 24px 0 rgba(52, 157, 34, 0.14),
    0 30px 54px rgba(7, 31, 92, 0.22);
}

.hero-copy-top {
  grid-area: copy-top;
}

.hero-copy-bottom {
  grid-area: copy-bottom;
}

.hero-series-video,
.hero-fallback-image img {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 5px solid #ffffff;
  border-radius: 24px;
  box-shadow:
    0 0 0 3px rgba(7, 31, 92, 0.16),
    0 24px 0 rgba(52, 157, 34, 0.16),
    0 30px 54px rgba(7, 31, 92, 0.22);
}

.hero-series-video {
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.hero-series-video-desktop {
  display: none;
}

.hero-fallback-image {
  display: none;
  width: 100%;
}

.hero-art.use-fallback .hero-series-video {
  display: none;
}

.hero-art.use-fallback .hero-fallback-image {
  display: block;
}

.hero-video-card {
  width: min(100%, 420px);
  overflow: hidden;
  padding: 10px;
  background: #ffffff;
  border: 4px solid #0b2460;
  border-radius: 26px;
  box-shadow: 0 28px 0 rgba(7, 31, 92, 0.12), 0 26px 48px rgba(7, 31, 92, 0.22);
}

.hero-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid rgba(31, 61, 87, 0.08);
  border-radius: 18px;
}

.book-card {
  width: min(100%, 560px);
  min-height: 0;
  padding: 10px;
  background: #ffffff;
  border: 4px solid #0b2460;
  border-radius: 26px;
  box-shadow: 0 28px 0 rgba(7, 31, 92, 0.12), 0 26px 48px rgba(7, 31, 92, 0.22);
  transform: none;
}

.book-card img,
.character-image img,
.image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(143, 189, 104, 0.24), rgba(158, 211, 231, 0.24)),
    #fff;
  border: 2px solid rgba(31, 61, 87, 0.08);
  border-radius: 18px;
}

.image-placeholder {
  display: grid;
  min-height: inherit;
  place-items: center;
  padding: 24px;
  color: var(--green-dark);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
  text-align: center;
}

.content-section,
.character-section,
.bottom-signup {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 70px 0;
}

.signup-section,
.book-section,
.books-section,
.series-section {
  display: grid;
  gap: 24px;
  align-items: center;
  margin: 48px 0 70px;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 32px;
}

.signup-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 210, 63, 0.24), transparent 16rem),
    radial-gradient(circle at 76% 12%, rgba(154, 214, 242, 0.26), transparent 14rem),
    linear-gradient(150deg, #eaf6dc, #dff0cf),
    var(--activity-paper);
}

.hero + .signup-section {
  margin-top: 32px;
}

.signup-section::before,
.signup-section::after {
  position: absolute;
  content: "";
  background: #ffffff;
  border-radius: 999px;
  opacity: 0.72;
  pointer-events: none;
}

.signup-section::before {
  top: 26px;
  left: 46%;
  width: 86px;
  height: 30px;
  box-shadow: 22px -8px 0 7px #fff, 48px 0 0 0 #fff;
}

.signup-section::after {
  right: 32px;
  bottom: 28px;
  width: 64px;
  height: 24px;
  box-shadow: 18px -7px 0 6px #fff, 38px 0 0 0 #fff;
}

.signup-panel-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.signup-pack-preview {
  margin-top: 8px;
  max-width: 520px;
}

.pack-pages {
  position: relative;
  min-height: 335px;
}

.pack-page {
  position: absolute;
  width: min(46%, 230px);
  aspect-ratio: 8.5 / 11;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(7, 31, 92, 0.18);
}

.pack-page-one {
  left: 7%;
  bottom: 0;
  transform: rotate(-5deg);
  z-index: 2;
}

.pack-page-two {
  left: 42%;
  bottom: 18px;
  transform: rotate(4deg);
  z-index: 1;
}

.signup-panel-copy p,
.book-section-copy p,
.book-product-copy p,
.series-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.book-section,
.books-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(var(--line) 1.4px, transparent 1.4px),
    radial-gradient(circle at 14% 18%, rgba(64, 197, 255, 0.24), transparent 18rem),
    radial-gradient(circle at 84% 10%, rgba(255, 213, 29, 0.32), transparent 16rem),
    linear-gradient(160deg, rgba(243, 248, 234, 0.96), rgba(255, 250, 240, 0.92)),
    var(--activity-paper);
  background-size: 26px 26px, auto, auto, auto, auto;
}

.books-section::after {
  position: absolute;
  right: -38px;
  bottom: -22px;
  width: 220px;
  height: 130px;
  content: "";
  background:
    radial-gradient(ellipse at 22% 100%, rgba(123, 199, 47, 0.24) 0 34%, transparent 35%),
    radial-gradient(ellipse at 52% 100%, rgba(64, 197, 255, 0.2) 0 42%, transparent 43%),
    radial-gradient(ellipse at 82% 100%, rgba(255, 213, 29, 0.22) 0 34%, transparent 35%);
}

.books-section {
  align-items: stretch;
}

.books-grid {
  display: grid;
  gap: 22px;
}

.book-product-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid #ffffff;
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.book-product-card:nth-child(2) {
  border-color: #ffffff;
}

.book-product-card:nth-child(3) {
  border-color: #ffffff;
}

.book-product-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.book-product-card img {
  width: 100%;
  aspect-ratio: 139 / 90;
  object-fit: cover;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(53, 89, 40, 0.16);
}

.book-product-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.book-product-copy .button-link {
  margin-top: 4px;
}

.series-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(47, 74, 40, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(255, 210, 63, 0.26), transparent 13rem),
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(223, 240, 207, 0.78)),
    var(--activity-paper);
  background-size: 32px 100%, auto, auto, auto;
}

.series-section .section-heading {
  margin-bottom: 0;
}

.book-section-art {
  display: grid;
  justify-items: center;
}

.book-card-flat {
  width: min(100%, 390px);
  transform: none;
}

.book-section-copy {
  display: grid;
  gap: 16px;
}

.book-actions {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  margin-top: 6px;
}

.content-section p,
.character-copy p,
.bottom-signup p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.intro {
  position: relative;
  margin: 12px 0 36px;
  padding: clamp(28px, 5vw, 44px);
  background: rgba(255, 250, 240, 0.84);
  border: 3px solid rgba(216, 230, 200, 0.85);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.printable-preview {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  padding: clamp(34px, 5vw, 54px);
  margin: 0 0 64px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 210, 63, 0.2), transparent 14rem),
    radial-gradient(var(--line) 1.2px, transparent 1.2px),
    linear-gradient(155deg, rgba(255, 250, 240, 0.96), rgba(243, 248, 234, 0.94));
  background-size: auto, 24px 24px, auto;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow: var(--soft-shadow);
}

.preview-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.preview-copy p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.preview-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.preview-mini-list span {
  padding: 7px 12px;
  color: var(--green-deep);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(53, 89, 40, 0.06);
}

.preview-showcase {
  display: grid;
  gap: 22px;
  align-items: start;
}

.preview-showcase figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.preview-showcase img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.preview-feature {
  padding: clamp(10px, 2vw, 16px);
  transform: rotate(-1.5deg);
}

.preview-feature img {
  aspect-ratio: 8.5 / 11;
  background: #fff;
  border: 1px solid rgba(47, 74, 40, 0.08);
  border-radius: 14px;
  object-fit: contain;
}

.preview-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-page-grid img {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 22px -14px rgba(53, 89, 40, 0.46);
}

.preview-button {
  width: min(420px, 100%);
  margin-top: 6px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 72px;
}

.feature-grid article {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.88));
  border: 0;
  border-top: 5px solid var(--green);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.feature-grid article:nth-child(2) {
  border-top-color: var(--orange);
}

.feature-grid article:nth-child(3) {
  border-top-color: var(--yellow-deep);
}

.feature-grid article:nth-child(4) {
  border-top-color: var(--lavender);
}

.feature-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.sticker-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #0b2460, 0 10px 18px rgba(7, 31, 92, 0.16);
  font-size: 1.35rem;
  font-weight: 900;
}

.green {
  background: var(--green);
}

.blue {
  background: var(--blue);
}

.yellow {
  background: var(--yellow);
  color: #092769;
}

.lavender {
  background: var(--lavender);
}

.inside-section,
.bottom-signup {
  padding: clamp(28px, 5vw, 46px);
  border-radius: 32px;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 22px;
}

.inside-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inside-list div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--line);
  border-radius: 16px;
  font-weight: 900;
  box-shadow: 0 6px 0 rgba(7, 31, 92, 0.05);
}

.inside-list span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-right: 8px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 999px;
}

.character-image {
  min-height: 360px;
  padding: 14px;
  background: #fff;
  border: 4px solid #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.character-copy {
  display: grid;
  gap: 14px;
}

.sky-cloud {
  position: absolute;
  z-index: 0;
  width: 92px;
  height: 34px;
  background: #fff;
  border-radius: 999px;
  opacity: 0.9;
  box-shadow: 24px -10px 0 8px #fff, 52px 0 0 0 #fff;
}

.cloud-one {
  top: 44px;
  right: 14%;
  animation: cloud-drift 26s ease-in-out infinite;
}

.cloud-two {
  top: 170px;
  left: 5%;
  transform: scale(0.72);
  animation: cloud-drift-small 34s ease-in-out infinite reverse;
}

@keyframes cloud-drift {
  0%,
  100% {
    transform: translateX(-12px);
  }

  50% {
    transform: translateX(14px);
  }
}

@keyframes cloud-drift-small {
  0%,
  100% {
    transform: translateX(-10px) scale(0.72);
  }

  50% {
    transform: translateX(12px) scale(0.72);
  }
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .cloud-one,
  .cloud-two {
    animation: none;
  }
}

.hero-copy,
.hero-art {
  z-index: 1;
}

figcaption {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

figcaption strong {
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.08rem;
}

figcaption span {
  font-size: 0.94rem;
  line-height: 1.45;
}

.bottom-signup {
  margin-bottom: 70px;
  position: relative;
  overflow: hidden;
  align-items: center;
  background:
    linear-gradient(170deg, rgba(154, 214, 242, 0.8) 0%, rgba(201, 236, 251, 0.72) 44%, rgba(108, 183, 74, 0.3) 45%, rgba(255, 210, 63, 0.22) 100%),
    var(--activity-paper);
}

.bottom-signup > div:not(.bottom-cloud) {
  position: relative;
  z-index: 1;
}

.bottom-signup h2 {
  max-width: 620px;
  color: var(--ink);
  text-shadow:
    0 4px 0 #ffffff,
    3px 0 0 #ffffff,
    -3px 0 0 #ffffff,
    0 -3px 0 #ffffff;
}

.bottom-signup p {
  max-width: 620px;
  color: var(--muted);
}

.bottom-cta {
  display: grid;
  gap: 14px;
  justify-items: stretch;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 4px solid #ffffff;
  border-radius: 28px;
  box-shadow: 0 12px 0 rgba(7, 31, 92, 0.1), 0 22px 44px rgba(7, 31, 92, 0.16);
  transform: rotate(-1deg);
}

.bottom-cta .button-link {
  min-height: 66px;
  font-size: 1.05rem;
}

.cta-sticker {
  justify-self: start;
  padding: 8px 14px;
  color: #fff;
  background: var(--lavender);
  border: 3px dashed #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--lavender);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1;
}

.bottom-cta .text-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration-thickness: 2px;
}

.bottom-cloud {
  position: absolute;
  width: 88px;
  height: 32px;
  background: #fff;
  border-radius: 999px;
  opacity: 0.82;
  box-shadow: 22px -9px 0 7px #fff, 48px 0 0 0 #fff;
}

.cloud-a {
  top: 32px;
  right: 12%;
}

.cloud-b {
  bottom: 28px;
  left: 46%;
  transform: scale(0.72);
}

.site-footer {
  display: grid;
  gap: 20px;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 34px);
  color: var(--muted);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 210, 63, 0.18), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 234, 0.92));
  border: 3px solid rgba(216, 230, 200, 0.9);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
  font-weight: 700;
}

.site-footer strong {
  display: block;
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.45rem;
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: var(--green-deep);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.footer-links {
  display: grid;
  gap: 14px;
}

.footer-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link-group a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(53, 89, 40, 0.08);
}

.footer-note {
  padding-top: 14px;
  border-top: 2px dashed var(--line);
  font-size: 0.94rem;
}

.footer-brand p {
  max-width: 34ch;
}

@media (min-width: 720px) {
  .site-header,
  .site-footer,
  main {
    width: min(1260px, calc(100% - 32px));
  }

  .hero {
    padding: clamp(36px, 6vw, 64px);
    border-radius: 34px;
  }

  h1 {
    font-size: 4.35rem;
    text-shadow:
      0 5px 0 #ffffff,
      4px 0 0 #ffffff,
      -4px 0 0 #ffffff,
      0 -4px 0 #ffffff,
      0 10px 0 rgba(7, 31, 92, 0.1);
  }

  .subheadline {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    width: auto;
    gap: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav a {
    padding: 0;
  }

  .nav a:hover {
    background: transparent;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 620px);
  }

  .signup-form {
    grid-template-columns: 1fr 1.2fr;
    align-items: end;
  }

  .signup-card,
  .bottom-cta {
    grid-template-columns: 1fr;
  }

  .signup-form button,
  .signup-form .form-topper,
  .signup-form .form-note,
  .signup-form .success-message,
  .signup-form .fallback-message,
  .signup-form iframe,
  .signup-form .tally-fallback,
  .signup-form .download-after-submit {
    grid-column: 1 / -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inside-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 0.8fr 1.2fr;
    justify-content: space-between;
    align-items: start;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 940px) {
  .hero,
  .content-section,
  .signup-section,
  .book-section,
  .character-section,
  .bottom-signup {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero {
    grid-template-areas:
      "copy-top media"
      "copy-bottom media";
    column-gap: clamp(28px, 4vw, 54px);
    min-height: 620px;
  }

  .hero-copy-top,
  .hero-copy-bottom {
    align-self: end;
  }

  .hero-copy-bottom {
    align-self: start;
  }

  .hero-art {
    align-self: center;
  }

  .hero-series-video {
    max-height: 560px;
  }

  .hero-series-video-mobile {
    display: none;
  }

  .hero-series-video-desktop {
    display: block;
    aspect-ratio: 2688 / 1536;
    object-fit: cover;
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 620px);
  }

  .book-card {
    transform: rotate(1.5deg);
  }

  .book-card-flat {
    transform: none;
  }

  .preview-showcase {
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 42px);
  }

  .preview-feature img {
    aspect-ratio: 8.5 / 11;
  }

  .preview-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .printable-preview {
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  }

  .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-product-card:nth-child(1) {
    transform: rotate(-1.2deg);
  }

  .book-product-card:nth-child(2) {
    transform: translateY(12px);
  }

  .book-product-card:nth-child(3) {
    transform: rotate(1.2deg);
  }
}

