/* =====================================================
   BLOX — FUNKY CONCEPT
   Big learning. Tiny moments.
   ===================================================== */

:root {
  --paper: #fff6ea;
  --ink: #2b2b33;
  --coral: #ff6b5b;
  --coral-deep: #e8503f;
  --sunshine: #ffc83d;
  --sky: #5bb8e8;
  --sky-deep: #3d9bd0;
  --green: #7fb069;
  --green-deep: #648f51;
  --lilac: #b69ce8;
  --lilac-deep: #9678d4;
  --pink: #ffa8c5;
  --cream: #fffdf8;
  --shadow-pop: 6px 6px 0 var(--ink);
  --shadow-pop-sm: 4px 4px 0 var(--ink);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  line-height: 1.04;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

p {
  margin-top: 0;
}

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

img {
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

em {
  font-style: normal;
}

/* ---------- scroll rainbow ---------- */
.scroll-rainbow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 90;
  pointer-events: none;
}

.scroll-rainbow span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--sunshine), var(--green), var(--sky), var(--lilac));
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 0 99px 99px 0;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(255, 246, 234, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--ink);
}

.wordmark {
  display: flex;
  gap: 5px;
  cursor: pointer;
}

.wordmark-block {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid var(--ink);
  border-radius: 11px;
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.b1 { background: var(--coral); transform: rotate(-4deg); }
.b2 { background: var(--sunshine); transform: rotate(3deg); }
.b3 { background: var(--sky); transform: rotate(-2deg); }
.b4 { background: var(--lilac); transform: rotate(5deg); }

.wordmark:hover .wordmark-block {
  transform: rotate(0deg) translateY(-3px);
}

.topnav {
  display: flex;
  gap: clamp(16px, 2.6vw, 34px);
  margin-left: auto;
  font-weight: 800;
  font-size: 16px;
}

.topnav a {
  position: relative;
  padding: 6px 2px;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 99px;
  background: var(--sunshine);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a.is-active::after {
  transform: scaleX(1);
}

.cta-pill {
  padding: 11px 20px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: var(--coral);
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.cta-pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.cta-pill:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--sunshine);
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
}

.burger span {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.topbar.is-open .burger span:nth-child(2) { opacity: 0; }
.topbar.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vh, 90px) 0 0;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding-bottom: clamp(70px, 10vh, 120px);
}

.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-confetti i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  opacity: 0.85;
  animation: floatDrift 9s ease-in-out infinite alternate;
}

.hero-confetti i:nth-child(1) { left: 4%; top: 12%; background: var(--coral); border-radius: 50%; }
.hero-confetti i:nth-child(2) { left: 12%; top: 70%; background: var(--sunshine); transform: rotate(20deg); animation-delay: -1s; }
.hero-confetti i:nth-child(3) { left: 28%; top: 8%; background: var(--sky); animation-delay: -2s; }
.hero-confetti i:nth-child(4) { left: 44%; top: 84%; background: var(--lilac); border-radius: 50%; animation-delay: -3s; }
.hero-confetti i:nth-child(5) { left: 55%; top: 6%; background: var(--green); animation-delay: -4s; }
.hero-confetti i:nth-child(6) { left: 64%; top: 76%; background: var(--pink); border-radius: 50%; animation-delay: -5s; }
.hero-confetti i:nth-child(7) { left: 76%; top: 14%; background: var(--sunshine); animation-delay: -2.5s; }
.hero-confetti i:nth-child(8) { left: 88%; top: 64%; background: var(--coral); animation-delay: -1.5s; }
.hero-confetti i:nth-child(9) { left: 94%; top: 28%; background: var(--sky); border-radius: 50%; animation-delay: -3.5s; }
.hero-confetti i:nth-child(10) { left: 36%; top: 42%; background: var(--pink); animation-delay: -6s; }
.hero-confetti i:nth-child(11) { left: 7%; top: 42%; background: var(--lilac); animation-delay: -7s; }
.hero-confetti i:nth-child(12) { left: 82%; top: 88%; background: var(--green); border-radius: 50%; animation-delay: -8s; }

@keyframes floatDrift {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-28px) rotate(140deg); }
}

.sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.sticker {
  display: inline-block;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: var(--cream);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-pop-sm);
}

.sticker.spin-slow {
  background: var(--sunshine);
  animation: stickerWiggle 4s ease-in-out infinite;
}

.tilt-l { transform: rotate(-3deg); background: var(--sky); }
.tilt-r { transform: rotate(2.5deg); background: var(--pink); }

@keyframes stickerWiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.hero h1 {
  font-size: clamp(56px, 8.5vw, 118px);
  font-weight: 700;
  line-height: 0.94;
  margin-bottom: 24px;
}

.hero h1 .line {
  display: block;
}

.squig {
  position: relative;
  color: var(--coral);
  white-space: nowrap;
}

.squig::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 4%;
  bottom: -0.06em;
  height: 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10' viewBox='0 0 60 10'%3E%3Cpath d='M0 5 Q 7.5 0 15 5 T 30 5 T 45 5 T 60 5' fill='none' stroke='%23ffc83d' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / auto 100%;
  animation: squigSlide 8s linear infinite;
}

@keyframes squigSlide {
  to { background-position-x: 120px; }
}

.bounce-word {
  display: inline-block;
  color: var(--sky-deep);
  animation: gentleBounce 3.2s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(18px, 1.7vw, 21px);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  font-family: "Fredoka", sans-serif;
  font-size: 19px;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn-big:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.btn-big:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-coral { background: var(--coral); }
.btn-ghost { background: var(--cream); }

/* hero stage */
.hero-stage {
  min-width: 0;
}

.stage-frame {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 34px;
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--sunshine), 10px 10px 0 3px var(--ink);
  padding: 14px 14px 10px;
  transform: rotate(1.6deg);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wobble-on-hover:hover {
  transform: rotate(-0.5deg) scale(1.015);
}

.school-burst {
  --burst-star: polygon(
    100% 50%, 88.6% 60.4%, 93.3% 75%, 78.3% 78.3%, 75% 93.3%, 60.4% 88.6%,
    50% 100%, 39.6% 88.6%, 25% 93.3%, 21.7% 78.3%, 6.7% 75%, 11.4% 60.4%,
    0% 50%, 11.4% 39.6%, 6.7% 25%, 21.7% 21.7%, 25% 6.7%, 39.6% 11.4%,
    50% 0%, 60.4% 11.4%, 75% 6.7%, 78.3% 21.7%, 93.3% 25%, 88.6% 39.6%
  );
  position: absolute;
  top: -44px;
  left: -38px;
  z-index: 4;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  animation: burstWiggle 3.4s ease-in-out infinite;
}

.school-burst::before,
.school-burst::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: var(--burst-star);
}

.school-burst::before {
  background: var(--ink);
  transform: scale(1.09) rotate(8deg);
}

.school-burst::after {
  background: var(--sunshine);
}

.burst-text {
  position: relative;
  z-index: 1;
  font-family: "Fredoka", sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  transform: rotate(-9deg);
}

@keyframes burstWiggle {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.06); }
}

@media (max-width: 560px) {
  .school-burst {
    top: -34px;
    left: -16px;
    width: 106px;
    height: 106px;
  }

  .burst-text {
    font-size: 17px;
  }
}

.stage-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: #fbfaf7;
}

.stage-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 600ms ease, transform 600ms ease;
}

.stage-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.stage-caption {
  margin: 12px 4px 4px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  text-align: center;
}

.stage-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.stage-dots button {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.stage-dots button:hover {
  transform: scale(1.25);
}

.stage-dots button.is-active {
  background: var(--coral);
  transform: scale(1.25);
}

.stage-support {
  max-width: 520px;
  margin: 16px auto 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.18;
  text-align: center;
}

/* wave divider */
.wave-divider {
  position: relative;
  z-index: 2;
  margin-bottom: -2px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 70px;
}

.wave-divider path {
  fill: var(--ink);
}

/* ---------- mega marquee ---------- */
.mega-marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 26px 0;
}

.mega-track {
  display: flex;
  width: max-content;
  animation: megaScroll 26s linear infinite;
}

.mega-marquee:hover .mega-track {
  animation-play-state: paused;
}

.mega-group {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  padding-right: clamp(24px, 3vw, 44px);
  white-space: nowrap;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
}

.mega-group .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--paper);
}

.mega-group i {
  font-style: normal;
  color: var(--sunshine);
  font-size: 0.6em;
  animation: starTwirl 6s linear infinite;
}

@keyframes megaScroll {
  to { transform: translateX(-50%); }
}

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

/* ---------- shared section bits ---------- */
.kicker {
  display: inline-block;
  padding: 7px 14px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: var(--shadow-pop-sm);
  background: var(--cream);
}

.kicker-coral { background: var(--coral); }
.kicker-sky { background: var(--sky); }
.kicker-lilac { background: var(--lilac); }
.kicker-green { background: var(--green); }
.kicker-yellow { background: var(--sunshine); }

h2 {
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  max-width: 900px;
}

.hl-yellow, .hl-sky, .hl-lilac, .hl-green, .hl-coral {
  padding: 0 0.18em;
  border-radius: 0.28em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hl-yellow { background: var(--sunshine); }
.hl-sky { background: var(--sky); }
.hl-lilac { background: var(--lilac); }
.hl-green { background: var(--green); }
.hl-coral { background: var(--coral); }

.section-sub {
  max-width: 640px;
  font-size: clamp(18px, 1.7vw, 21px);
  margin-bottom: 40px;
}

.rotato {
  display: inline-block;
  font-weight: 900;
  background: var(--sunshine);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 1px 10px;
  transform: rotate(-1.5deg);
  transition: opacity 240ms ease, transform 240ms ease;
}

.rotato.is-leaving {
  opacity: 0;
  transform: rotate(-1.5deg) translateY(-10px);
}

.rotato.is-entering {
  opacity: 0;
  transform: rotate(-1.5deg) translateY(12px);
  transition: none;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* polaroids keep their tilt after reveal */
.polaroid.reveal {
  transform: translateY(30px) rotate(0deg);
}

.polaroid.tilt-l.is-visible { transform: translateY(0) rotate(-2.4deg); }
.polaroid.tilt-r.is-visible { transform: translateY(0) rotate(2deg); }
.polaroid.tilt-l2.is-visible { transform: translateY(0) rotate(-1.2deg); }

/* ---------- your day ---------- */
.day-section {
  padding: clamp(80px, 11vh, 130px) 0;
  background: var(--paper);
}

.polaroid-spread {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 14px;
}

.polaroid {
  position: relative;
  padding: 14px 14px 20px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow-pop);
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease,
    opacity 650ms ease;
}

.polaroid:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02) !important;
  box-shadow: 9px 11px 0 var(--ink);
  z-index: 3;
}

.tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 200, 61, 0.85);
  border: 2px solid rgba(43, 43, 51, 0.25);
  border-radius: 3px;
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--ink);
  margin-bottom: 14px;
}

.polaroid h3 {
  font-size: 23px;
  margin-bottom: 6px;
}

.polaroid p {
  margin: 0;
  font-size: 16px;
}

/* ---------- blox tv ---------- */
.tv-section {
  background: var(--sky);
  border-block: 4px solid var(--ink);
  padding: clamp(80px, 11vh, 130px) 0;
}

.tv-section h2 {
  margin-bottom: 36px;
}

.tv-section .hl-sky {
  background: var(--cream);
}

.tv-frame {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 30px;
  overflow: visible;
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--sky-deep), 12px 12px 0 4px var(--ink);
}

.tv-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #050505;
  object-fit: contain;
}

.tv-sticker {
  position: absolute;
  top: -22px;
  right: 26px;
  z-index: 2;
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: var(--sunshine);
  font-weight: 900;
  font-size: 14px;
  transform: rotate(3deg);
  box-shadow: var(--shadow-pop-sm);
}

/* ---------- the big five ---------- */
.five-section {
  padding: clamp(80px, 11vh, 130px) 0;
}

.five-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.five-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease,
    opacity 650ms ease;
}

.five-card:hover {
  transform: translateY(-10px) rotate(-1.2deg);
  box-shadow: 8px 12px 0 var(--ink);
}

.five-card:nth-child(even):hover {
  transform: translateY(-10px) rotate(1.2deg);
}

.five-card:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 2px 2px 0 var(--ink);
}

.c-lilac { background: var(--lilac); }
.c-green { background: var(--green); }
.c-pink { background: var(--pink); }
.c-sky { background: var(--sky); }
.c-yellow { background: var(--sunshine); }

.five-num {
  position: absolute;
  top: -14px;
  left: -10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-pop-sm);
}

.five-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--ink);
  background: #fbfaf7;
}

.five-name {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.12;
}

.five-tag {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
}

/* ---------- jargon ---------- */
.jargon-section {
  background: var(--green);
  border-block: 4px solid var(--ink);
  padding: clamp(80px, 11vh, 130px) 0;
}

.jargon-section .hl-green {
  background: var(--cream);
}

.bubbles {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  margin: 44px 0 54px;
}

.bubble {
  position: relative;
  padding: 30px 30px 34px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow-pop);
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 44px;
  width: 26px;
  height: 26px;
  background: inherit;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) skew(10deg, 10deg);
}

.bubble-boring {
  background: #e8e3da;
}

.bubble-blox {
  background: var(--sunshine);
}

.bubble-label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  opacity: 0.7;
}

.bubble p {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.18;
}

.bubble-boring p {
  font-weight: 400;
  opacity: 0.8;
}

.bubble-emoji {
  position: absolute;
  top: -18px;
  right: 20px;
  font-size: 30px;
  transform: rotate(8deg);
}

.bubble-arrow {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  text-align: center;
}

.jargon-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.jargon-point {
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-pop-sm);
  transition: transform 200ms ease, opacity 650ms ease, box-shadow 200ms ease;
}

.jargon-point:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
}

.jargon-point span {
  font-size: 34px;
  display: inline-block;
  margin-bottom: 12px;
}

.jargon-point h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.jargon-point p {
  margin: 0;
  font-size: 15.5px;
}

/* ---------- the app ---------- */
.app-section {
  padding: clamp(90px, 12vh, 140px) 0;
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.phone-stack {
  position: relative;
  min-height: 560px;
}

.phone {
  position: absolute;
  width: min(240px, 58%);
  margin: 0;
  border: 4px solid var(--ink);
  border-radius: 32px;
  overflow: visible;
  background: var(--ink);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 650ms ease, z-index 0ms;
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.phone-main {
  left: 50%;
  top: 0;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 3;
  box-shadow: 10px 10px 0 var(--coral), 10px 10px 0 4px var(--ink);
}

.phone-books {
  left: 0;
  top: 110px;
  transform: rotate(-7deg) scale(0.86);
  z-index: 2;
  box-shadow: 8px 8px 0 var(--sky), 8px 8px 0 4px var(--ink);
}

.phone-music {
  right: 0;
  top: 150px;
  transform: rotate(6deg) scale(0.86);
  z-index: 1;
  box-shadow: 8px 8px 0 var(--lilac), 8px 8px 0 4px var(--ink);
}

.phone:hover {
  z-index: 5;
  transform: translateX(var(--hx, 0)) rotate(0deg) scale(1.02);
}

.phone-main { --hx: -50%; }

.phone-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  white-space: nowrap;
  padding: 7px 14px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: var(--shadow-pop-sm);
}

.l-coral { background: var(--coral); }
.l-sky { background: var(--sky); }
.l-lilac { background: var(--lilac); }

.chunk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.chunk-list li {
  padding: 18px 22px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow-pop-sm);
  font-size: 17px;
}

/* ---------- village ---------- */
.village-section {
  background: var(--lilac);
  border-block: 4px solid var(--ink);
  padding: clamp(80px, 11vh, 130px) 0;
}

.village-section .hl-sky {
  background: var(--cream);
}

.village-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.village-card {
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-pop-sm);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease,
    opacity 650ms ease;
}

.village-card:hover {
  transform: translateY(-7px) rotate(-1deg);
  box-shadow: var(--shadow-pop);
}

.village-card:nth-child(even):hover {
  transform: translateY(-7px) rotate(1deg);
}

.village-card span {
  font-size: 36px;
  display: inline-block;
  margin-bottom: 14px;
}

.village-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.village-card p {
  margin: 0;
  font-size: 15.5px;
}

/* ---------- no guilt ---------- */
.guilt-section {
  padding: clamp(80px, 11vh, 130px) 0;
}

.guilt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 14px;
}

.guilt-card {
  position: relative;
  margin: 0;
  padding: 30px 30px 30px 30px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-pop-sm);
  font-size: 18px;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 650ms ease;
}

.guilt-card:hover {
  transform: rotate(-0.8deg) translateY(-5px);
  box-shadow: var(--shadow-pop);
}

.guilt-card:nth-child(even):hover {
  transform: rotate(0.8deg) translateY(-5px);
}

.stamp {
  position: absolute;
  top: -15px;
  right: 18px;
  padding: 6px 12px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--green);
  font-weight: 900;
  font-size: 13px;
  transform: rotate(4deg);
  box-shadow: var(--shadow-pop-sm);
}

/* ---------- numbers ---------- */
.numbers-section {
  padding: 10px 0 clamp(80px, 11vh, 120px);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.number-card {
  padding: 36px 22px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-pop);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 650ms ease;
}

.number-card:hover {
  transform: translateY(-7px) rotate(-1deg);
}

.number-card:nth-child(even):hover {
  transform: translateY(-7px) rotate(1deg);
}

.n-coral { background: var(--coral); }
.n-sky { background: var(--sky); }
.n-green { background: var(--green); }
.n-lilac { background: var(--lilac); }

.big-number {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--cream);
}

.big-number.is-popped {
  animation: numPop 560ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes numPop {
  0% { transform: scale(0.3) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.number-card p {
  margin: 12px auto 0;
  max-width: 210px;
  font-weight: 800;
}

/* ---------- download ---------- */
.download-blast {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(90px, 13vh, 150px) 0;
  text-align: center;
  overflow: hidden;
}

.download-blast::before {
  content: "✦ ✦ ✦";
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--sunshine);
  letter-spacing: 18px;
  font-size: 18px;
}

.download-inner h2 {
  max-width: none;
  font-size: clamp(44px, 6.5vw, 92px);
  margin-bottom: 20px;
}

.squig-light {
  position: relative;
  color: var(--sunshine);
  white-space: nowrap;
}

.squig-light::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 3%;
  bottom: -0.04em;
  height: 0.13em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10' viewBox='0 0 60 10'%3E%3Cpath d='M0 5 Q 7.5 0 15 5 T 30 5 T 45 5 T 60 5' fill='none' stroke='%23ff6b5b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / auto 100%;
  animation: squigSlide 8s linear infinite;
}

.download-inner > p {
  max-width: 560px;
  margin: 0 auto 38px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: rgba(255, 246, 234, 0.8);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.store-chunk {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border: 3px solid var(--paper);
  border-radius: 18px;
  background: transparent;
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--coral);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.store-chunk:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--coral);
  background: rgba(255, 246, 234, 0.06);
}

.store-chunk:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--coral);
}

.store-chunk .store-icon {
  width: 30px;
  height: 30px;
}

.store-chunk svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.play-icon svg { fill: none; }
.play-a { fill: #3ddc84; }
.play-b { fill: #4285f4; }
.play-c { fill: #fbbc04; }
.play-d { fill: #ea4335; }

.store-chunk span:last-child {
  display: grid;
  text-align: left;
  font-family: "Fredoka", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.05;
}

.store-chunk small {
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.75;
}

.download-tiny {
  margin: 30px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 246, 234, 0.55);
  letter-spacing: 0.03em;
}

/* ---------- modal ---------- */
.modal-open {
  overflow: hidden;
}

.domain-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.domain-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.domain-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 51, 0.66);
  backdrop-filter: blur(10px);
}

.domain-modal-panel {
  position: relative;
  width: min(1000px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px;
  border: 4px solid var(--ink);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--sunshine), 12px 12px 0 4px var(--ink);
  transform: translateY(16px) scale(0.97) rotate(-0.5deg);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.domain-modal.is-open .domain-modal-panel {
  transform: translateY(0) scale(1) rotate(0deg);
}

.domain-modal-panel h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 0 56px 18px 0;
}

.domain-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 150ms ease;
}

.domain-modal-close:hover {
  transform: rotate(90deg);
}

.domain-modal-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: 18px;
  border: 3px solid var(--ink);
  background: #ffffff;
}

/* ---------- footer ---------- */
.mega-footer {
  background: var(--ink);
  color: rgba(255, 246, 234, 0.7);
  text-align: center;
  padding: 0 20px 54px;
  border-top: 4px solid var(--sunshine);
}

.footer-giant {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(120px, 24vw, 340px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--coral), var(--sunshine), var(--green), var(--sky), var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.footer-line {
  margin: 8px 0 22px;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  color: var(--paper);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  margin-bottom: 24px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--sunshine);
}

.footer-tiny {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

.footer-egg {
  cursor: default;
  color: var(--sunshine);
}

/* ---------- confetti bits ---------- */
.confetti-bit {
  position: fixed;
  z-index: 200;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  pointer-events: none;
  animation: confettiBurst 900ms cubic-bezier(0.14, 0.62, 0.36, 1) forwards;
}

@keyframes confettiBurst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--cx, 0px), var(--cy, -90px)) rotate(var(--cr, 240deg)) scale(0.4); }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .five-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .topnav,
  .topbar > .cta-pill {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .topbar.is-open .mobile-menu {
    display: grid;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    gap: 4px;
    padding: 12px;
    border: 3px solid var(--ink);
    border-radius: 20px;
    background: var(--cream);
    box-shadow: var(--shadow-pop);
  }

  .mobile-menu a {
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 800;
  }

  .mobile-menu a:hover {
    background: var(--sunshine);
  }

  .mobile-cta {
    background: var(--coral);
    border: 3px solid var(--ink);
    text-align: center;
    margin-top: 6px;
  }

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

  .polaroid-spread {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

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

  .bubble-arrow {
    transform: rotate(90deg);
  }

  .jargon-points,
  .village-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid,
  .guilt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    min-height: 480px;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .five-grid,
  .numbers-grid,
  .guilt-grid {
    grid-template-columns: 1fr;
  }

  .mega-group {
    font-size: 24px;
  }

  .phone-stack {
    min-height: 420px;
  }

  .phone {
    width: min(200px, 60%);
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .polaroid.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .polaroid.tilt-l, .polaroid.tilt-l.is-visible { transform: rotate(-2.4deg); }
  .polaroid.tilt-r, .polaroid.tilt-r.is-visible { transform: rotate(2deg); }
  .polaroid.tilt-l2, .polaroid.tilt-l2.is-visible { transform: rotate(-1.2deg); }

  .mega-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .mega-group[aria-hidden="true"] {
    display: none;
  }

  .hero-confetti i,
  .sticker.spin-slow,
  .school-burst,
  .bounce-word,
  .squig::after,
  .squig-light::after,
  .mega-group i {
    animation: none;
  }

  .big-number.is-popped {
    animation: none;
  }

  .confetti-bit {
    display: none;
  }
}
