:root {
  color-scheme: light;
  --red: #f43528;
  --red-dark: #d92a20;
  --yellow: #ffc72f;
  --yellow-soft: #ffe77a;
  --orange: #ff8a2a;
  --blue: #09aeea;
  --blue-deep: #086bd8;
  --purple: #b95bd8;
  --green: #28c76f;
  --ink: #252525;
  --muted: #6b6f76;
  --paper: #fffdf6;
  --line: rgba(37, 37, 37, 0.12);
  --shadow: 0 24px 54px rgba(90, 42, 24, 0.18);
  --body-font: "Avenir Next", "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display-font: "Baloo 2", "Avenir Next Rounded", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  letter-spacing: 0;
}

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

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

button {
  border: 0;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 5px clamp(18px, 5vw, 58px);
  color: #fff;
  background: var(--red);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 58px;
  background: var(--red);
  box-shadow: 0 14px 34px rgba(128, 22, 18, 0.18);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.site-footer nav,
.compatible-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 1.38rem;
  font-weight: 900;
}

.brand-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(128, 22, 18, 0.18));
}

.site-nav {
  justify-content: center;
  gap: 34px;
  font-size: 0.9rem;
  font-weight: 900;
}

.site-nav a {
  opacity: 0.9;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.pill-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.pill-button {
  padding: 0 24px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 16px 30px rgba(204, 69, 20, 0.26);
}

.pill-button.primary {
  color: var(--red);
  background: #fff;
}

.pill-button.white {
  color: var(--purple);
  background: #fff;
}

.pill-button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.86rem;
}

.pill-button:hover {
  transform: translateY(-2px);
}

.hero-section {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  overflow: hidden;
  padding: 116px clamp(22px, 5vw, 70px) 145px;
  color: #fff;
  background:
    radial-gradient(circle at 9% 34%, rgba(255, 199, 47, 0.88) 0 2.8rem, transparent 2.9rem),
    radial-gradient(circle at 90% 20%, rgba(255, 199, 47, 0.9) 0 3.4rem, transparent 3.5rem),
    linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.shipping-note,
.eyebrow,
.section-title p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shipping-note {
  color: #ffe9b7;
}

.hero-content h1 {
  margin-bottom: 18px;
  font-size: 5.35rem;
  line-height: 0.95;
}

.hero-content p:not(.shipping-note) {
  max-width: 465px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.75;
}

.hero-media {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 9px solid rgba(255, 255, 255, 0.95);
  border-radius: 72px 72px 18px 72px;
  box-shadow: 0 28px 60px rgba(116, 24, 18, 0.32);
  transform: rotate(1.5deg);
}

.hero-media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
}

.white-wave {
  bottom: -1px;
  height: 154px;
  background-image: url("./assets/wave-white.png");
}

.transform-section {
  position: relative;
  padding: 82px clamp(22px, 5vw, 70px) 110px;
  background: var(--paper);
}

.section-title {
  width: min(900px, 100%);
}

.section-title.center {
  margin: 0 auto 42px;
  text-align: center;
}

.section-title p,
.eyebrow.red {
  color: var(--red);
}

.section-title h2,
.how-copy h2,
.learn-copy h2,
.school-copy h2,
.order-copy h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.08;
}

.section-title span,
.learn-copy p,
.school-copy p,
.order-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.76;
}

.transform-stage {
  position: relative;
  width: min(1060px, 100%);
  min-height: 430px;
  margin: 0 auto;
}

.bubble {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 8px solid #fff;
  background: #fff;
  box-shadow: var(--shadow);
}

.bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble-a {
  left: 0;
  top: 34px;
  width: 255px;
  height: 166px;
  border-radius: 38% 62% 54% 46%;
  transform: rotate(-7deg);
}

.bubble-b {
  right: 36px;
  top: 18px;
  width: 260px;
  height: 166px;
  border-radius: 56% 44% 38% 62%;
  transform: rotate(6deg);
}

.bubble-c {
  left: 74px;
  bottom: 10px;
  width: 250px;
  height: 160px;
  border-radius: 60% 40% 54% 46%;
  transform: rotate(5deg);
}

.bubble-d {
  right: 0;
  bottom: 18px;
  width: 268px;
  height: 174px;
  border-radius: 44% 56% 50% 50%;
  transform: rotate(-5deg);
}

.mascot-pair {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(330px, 36vw);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 30px rgba(90, 42, 24, 0.16));
}

.mascot-pair img {
  width: 100%;
  height: auto;
}

.how-section {
  position: relative;
  overflow: hidden;
  padding: 145px clamp(22px, 5vw, 70px) 92px;
  background: var(--yellow);
}

.yellow-wave.top {
  top: 0;
  height: 154px;
  background-image: url("./assets/wave-yellow-top.webp");
  background-position: center top;
}

.how-grid {
  display: grid;
  width: min(1040px, 100%);
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
  margin: 0 auto;
}

.kit-demo {
  position: relative;
  min-height: 392px;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: 54px 18px 54px 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kit-image {
  width: min(470px, 112%);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(135, 72, 10, 0.18));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.kit-image.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.parent-preview-image.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.how-copy .eyebrow {
  color: #8a5c00;
}

.step-list {
  display: grid;
  gap: 16px;
  margin: 26px 0 24px;
  padding: 0;
  list-style: none;
}

.step-list button {
  display: grid;
  width: 100%;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  padding: 0;
  color: rgba(37, 37, 37, 0.62);
  background: transparent;
  font-weight: 900;
  line-height: 1.55;
  text-align: left;
}

.step-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 37, 37, 0.25);
}

.step-list li.is-active button,
.step-list button:hover {
  color: var(--ink);
}

.step-list li.is-active span,
.step-list button:hover span {
  background: var(--red);
}

.compatible-row {
  flex-wrap: wrap;
  gap: 10px;
}

.compatible-row strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #805500;
  background: rgba(255, 255, 255, 0.54);
  font-size: 0.84rem;
}

.learning-section {
  display: grid;
  width: min(1120px, calc(100% - 44px));
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1.16fr);
  gap: 60px;
  align-items: center;
  margin: 0 auto;
  padding: 94px 0;
}

.learn-copy h2 {
  color: var(--red);
}

.learning-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

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

.mode-card {
  min-height: 116px;
  cursor: pointer;
  border-radius: 20px;
  color: #9a9fa5;
  background: #f0f0f0;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.03);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.mode-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 900;
}

.mode-card strong {
  font-size: 0.96rem;
}

.mode-card:hover,
.mode-card.is-active {
  color: #fff;
  background: var(--red);
  transform: translateY(-3px);
}

.mode-card:nth-child(2):hover,
.mode-card:nth-child(2).is-active {
  background: var(--yellow);
  color: var(--ink);
}

.mode-card:nth-child(3):hover,
.mode-card:nth-child(3).is-active {
  background: var(--blue);
}

.mode-card:nth-child(4):hover,
.mode-card:nth-child(4).is-active {
  background: var(--green);
}

.mode-preview {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.parent-preview-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 34px 14px 34px 14px;
  filter: drop-shadow(0 24px 38px rgba(90, 42, 24, 0.14));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.school-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 72px clamp(22px, 5vw, 70px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(244, 53, 40, 0.94), rgba(244, 53, 40, 0.98)),
    radial-gradient(circle at 95% 20%, rgba(255, 199, 47, 0.45), transparent 16rem);
}

.school-image {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: 54px 18px 54px 18px;
  box-shadow: 0 22px 46px rgba(113, 19, 14, 0.2);
}

.school-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.school-copy h2,
.school-copy p,
.eyebrow.light {
  color: #fff;
}

.school-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.starter-section {
  padding: 92px clamp(22px, 5vw, 70px);
  background: #fff;
}

.starter-grid {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin: 0 auto;
}

.starter-grid article {
  text-align: center;
}

.starter-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 34px;
}

.starter-grid article:first-child img {
  object-fit: cover;
  padding: 0;
  background: transparent;
}

.starter-grid h3 {
  margin: 24px 0 10px;
  color: var(--red);
  font-size: 1.55rem;
}

.starter-grid p {
  max-width: 360px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.68;
}

.featured-section {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  padding: 64px clamp(22px, 5vw, 70px);
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.22), transparent 14rem),
    linear-gradient(135deg, var(--purple), #7b3fc3);
}

.featured-section::before,
.featured-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.featured-section::before {
  left: -60px;
  bottom: -70px;
  width: 180px;
  height: 180px;
}

.featured-section::after {
  right: 20%;
  top: -58px;
  width: 130px;
  height: 130px;
}

.featured-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.featured-content p {
  margin-bottom: 4px;
  font-weight: 900;
}

.featured-content h2 {
  margin: 0 0 14px;
  font-size: 3.25rem;
}

.featured-content span {
  display: block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  line-height: 1.75;
}

.featured-section img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: 42px 18px 42px 18px;
  box-shadow: 0 22px 46px rgba(38, 14, 80, 0.28);
}

.parents-section {
  position: relative;
  overflow: hidden;
  padding: 310px clamp(22px, 5vw, 70px) 92px;
  color: #fff;
  background: var(--blue-deep);
}

.blue-wave.top {
  top: 0;
  height: 290px;
  background-image: url("./assets/wave-blue-top.webp");
  background-position: center top;
}

.boat-sprite {
  position: absolute;
  z-index: 1;
  top: 74px;
  right: clamp(28px, 8vw, 136px);
  width: clamp(90px, 12vw, 150px);
  pointer-events: none;
  transform-origin: 50% 82%;
  filter: drop-shadow(0 16px 18px rgba(5, 64, 130, 0.18));
  animation: boat-rock 4.8s ease-in-out infinite;
}

@keyframes boat-rock {
  0%,
  100% {
    transform: translateX(-5px) rotate(-3deg);
  }

  50% {
    transform: translateX(6px) rotate(4deg);
  }
}

.inverse h2,
.inverse p,
.inverse span {
  color: #fff;
}

.trust-grid {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 44px auto 0;
}

.trust-grid article {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 36px rgba(6, 70, 142, 0.22);
}

.trust-grid strong {
  display: block;
  color: var(--red);
  font-family: var(--display-font);
  font-size: 2.2rem;
  line-height: 1;
}

.trust-grid span {
  display: block;
  max-width: 220px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.48;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 82px clamp(22px, 5vw, 70px);
  background: #fff;
}

.order-art {
  overflow: hidden;
  border-radius: 44px 16px 44px 16px;
  box-shadow: none;
}

.order-art img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 44px 16px 44px 16px;
  box-shadow: 0 18px 34px rgba(90, 42, 24, 0.1);
}

.order-copy {
  max-width: 540px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: stretch;
  gap: 24px;
  padding: 36px clamp(22px, 5vw, 70px) 34px;
  color: rgba(255, 255, 255, 0.7);
  background: #333;
}

.site-footer strong,
.site-footer span,
.site-footer small {
  display: block;
}

.site-footer strong {
  margin-bottom: 7px;
  color: #fff;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-legal {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.site-footer small {
  font-size: 0.8rem;
  line-height: 1.5;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition: transform 240ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .hero-section,
  .how-grid,
  .learning-section,
  .school-section,
  .featured-section,
  .order-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 0;
    padding-top: 92px;
  }

  .hero-media {
    max-width: 720px;
  }

  .transform-stage {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bubble,
  .mascot-pair {
    position: relative;
    inset: auto;
    width: auto;
    height: 190px;
    transform: none;
  }

  .mascot-pair {
    min-height: 220px;
    grid-column: 1 / -1;
    order: -1;
  }

  .mascot-pair img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .learning-board,
  .trust-grid,
  .starter-grid {
    grid-template-columns: 1fr;
  }

  .parents-section {
    padding-top: 244px;
  }

  .blue-wave.top {
    height: 224px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 56px;
    padding: 5px 14px;
  }

  .brand {
    gap: 10px;
    font-size: 1.16rem;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .hero-section {
    gap: 22px;
    padding: 82px 18px 108px;
    background:
      radial-gradient(circle at 98% 18%, rgba(255, 199, 47, 0.9) 0 4rem, transparent 4.05rem),
      linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  }

  .hero-content h1 {
    font-size: 3.75rem;
  }

  .hero-content p:not(.shipping-note) {
    font-size: 1rem;
  }

  .hero-media {
    border-width: 6px;
    border-radius: 42px 42px 14px 42px;
    transform: none;
  }

  .hero-media img {
    height: 260px;
  }

  .white-wave {
    height: 104px;
  }

  .yellow-wave.top {
    height: 118px;
  }

  .transform-section,
  .starter-section {
    padding: 64px 18px 74px;
  }

  .section-title h2,
  .how-copy h2,
  .learn-copy h2,
  .school-copy h2,
  .order-copy h2 {
    font-size: 2rem;
  }

  .transform-stage {
    grid-template-columns: 1fr;
  }

  .bubble {
    height: 210px;
    border-width: 6px;
  }

  .how-section,
  .parents-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .kit-demo {
    min-height: 290px;
    padding: 22px;
    border-radius: 34px 14px 34px 14px;
  }

  .kit-image {
    width: min(380px, 122%);
  }

  .parents-section {
    padding-top: 196px;
  }

  .blue-wave.top {
    height: 176px;
  }

  .boat-sprite {
    top: 52px;
    right: 18px;
    width: 82px;
  }

  .learning-section,
  .school-section,
  .featured-section,
  .order-section {
    width: auto;
    padding: 68px 18px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 82px;
  }

  .parent-preview-image {
    max-width: 100%;
    border-radius: 28px 12px 28px 12px;
  }

  .school-image img,
  .featured-section img,
  .order-art img,
  .starter-grid img {
    height: 230px;
  }

  .featured-content h2 {
    font-size: 2.45rem;
  }

  .trust-grid article {
    min-height: 164px;
    border-radius: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .footer-legal {
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 3.25rem;
  }

  .pill-button {
    width: 100%;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
