/* Beep Beep Bitsy website: shared look (mock-up). Bright and sunny, chunky outlined titles, sticker characters. */
:root {
  --ink: #2f2f2f;
  --sky-top: #6cc6f2;
  --sky-low: #dff4ff;
  --sun: #ffd84a;
  --grass: #9cc65e;
  --grass-dark: #7aa844;
  --cream: #fffaf0;
  --teal: #7ee8fa;
  --bitsy: #9fd8d6;
  --yellow: #ffd166;
  --orange: #ff8a3d;
  --pink: #ff8fa3;
  --math: #ff9f1c;
  --math-soft: #fff1d6;
  --learn: #2fbf8f;
  --learn-soft: #dcf7ec;
  --read: #a77bf3;
  --read-soft: #efe6ff;
  --story: #4d9de0;
  --story-soft: #e3f1ff;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(47, 47, 47, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Chunky outlined title text, like the thumbnails */
.chunky {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--yellow);
  -webkit-text-stroke: .16em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .08em 0 rgba(0, 0, 0, .18);
  line-height: 1.05;
  margin: 0;
}
.chunky.teal { color: var(--teal); }
.chunky.white { color: #fff; }
.chunky.orange { color: var(--orange); }
.chunky.thin { -webkit-text-stroke-width: .12em; }

h2, h3 { font-family: "Fredoka", sans-serif; font-weight: 700; margin: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .85);
  border-bottom: 4px solid var(--ink);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 52px; }
.logo span { font-size: 28px; }
.topbar nav { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.topbar nav a {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 17px;
  text-decoration: none; padding: 8px 16px; border-radius: 999px;
  border: 3px solid var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink);
}
.topbar nav a.shop { background: var(--yellow); }
.topbar nav a.grown { background: var(--bitsy); }

/* ---------- Sunny sky scene ---------- */
.sky {
  position: relative; overflow: hidden;
  background:
    repeating-conic-gradient(from 0deg at 18% 30%, rgba(255, 255, 255, .22) 0 7.5deg, transparent 7.5deg 15deg),
    radial-gradient(circle at 18% 30%, #fff8c9 0, rgba(255, 248, 201, 0) 38%),
    linear-gradient(180deg, var(--sky-top), var(--sky-low) 75%);
}
.sun {
  position: absolute; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff6a8 0 22%, var(--sun) 23%);
  border: 5px solid var(--ink);
  box-shadow: 0 0 0 10px rgba(255, 216, 74, .35), 0 0 60px 30px rgba(255, 236, 140, .6);
}
.cloud {
  position: absolute; width: 150px; height: 52px; background: #fff; border-radius: 40px;
  border: 4px solid var(--ink); opacity: .95;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border: 4px solid var(--ink); border-bottom: 0; border-radius: 50% 50% 0 0;
}
.cloud::before { width: 64px; height: 50px; left: 22px; top: -34px; }
.cloud::after { width: 48px; height: 38px; left: 72px; top: -24px; }
.hills { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 150px; }

/* ---------- Hero ---------- */
.hero { min-height: 520px; padding: 40px 24px 150px; }
.hero-inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px;
}
.hero h1 { font-size: clamp(52px, 7vw, 92px); }
.hero .tag { font-size: clamp(22px, 2.4vw, 30px); margin-top: 10px; }
.hero p.lead { font-size: 21px; font-weight: 700; max-width: 520px; margin: 18px 0 22px; }
.hero-cast { position: relative; height: 380px; }
.hero-cast img { position: absolute; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .12)); }
.bob { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
.wiggle:hover { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* Code box: for printed workbooks */
.codebox {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 4px solid var(--ink); border-radius: 999px;
  padding: 8px 8px 8px 20px; box-shadow: var(--shadow);
}
.codebox label { font-family: "Fredoka", sans-serif; font-weight: 600; }
.codebox input {
  font-family: "Fredoka", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  width: 150px; border: 3px dashed #bbb; border-radius: 14px; padding: 4px 10px; outline: none;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 20px; text-decoration: none; cursor: pointer;
  padding: 10px 22px; border-radius: 999px; border: 4px solid var(--ink);
  background: var(--yellow); box-shadow: 0 5px 0 var(--ink); transition: transform .1s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.teal { background: var(--teal); }
.btn.white { background: #fff; }
.btn.green { background: #8fe388; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 48px 24px; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2.chunky { font-size: 44px; }
.section-head p { margin: 0; font-weight: 700; color: #555; }

/* Grade stepping stones on the meadow */
.meadow {
  background:
    radial-gradient(circle at 10% 20%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, #ffd1dc 0 3px, transparent 4px),
    linear-gradient(180deg, var(--grass), #b4d67a);
  background-size: 90px 90px, 120px 120px, auto;
  border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
}
.stones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.stone {
  position: relative; text-decoration: none; text-align: center;
  background: var(--c, #fff); border: 4px solid var(--ink); border-radius: 46% 54% 50% 50% / 55% 50% 50% 45%;
  padding: 20px 8px 16px; box-shadow: 0 8px 0 rgba(47, 47, 47, .3); transition: transform .15s;
}
.stone:hover { transform: translateY(-6px) rotate(-2deg); }
.stone .big { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 54px; line-height: 1; color: #fff;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.stone .small { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 17px; }
.stone .age { font-size: 14px; font-weight: 800; opacity: .75; }
.stone .soon { position: absolute; top: -12px; right: -6px; background: #fff; border: 3px solid var(--ink);
  border-radius: 999px; font-size: 12px; font-weight: 800; padding: 1px 8px; transform: rotate(8deg); }
.stone.dim { filter: saturate(.55); opacity: .8; }

/* Mode cards */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode {
  position: relative; text-decoration: none; overflow: hidden;
  border: 4px solid var(--ink); border-radius: var(--radius); background: var(--soft);
  padding: 22px 22px 150px; box-shadow: var(--shadow); min-height: 300px;
}
.mode h3 { font-size: 30px; }
.mode h3 .chunky { color: var(--c); }
.mode p { font-weight: 700; margin: 8px 0 0; max-width: 85%; }
.mode .pill { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 800; background: #fff;
  border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; }
.mode img { position: absolute; right: 12px; bottom: 8px; height: 150px; transition: transform .2s; }
.mode:hover img { transform: rotate(-5deg) scale(1.06); }
.mode.math { --c: var(--math); --soft: var(--math-soft); }
.mode.learn { --c: var(--learn); --soft: var(--learn-soft); }
.mode.read { --c: var(--read); --soft: var(--read-soft); }

/* Episode cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  text-decoration: none; background: #fff; border: 4px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px) rotate(-.6deg); }
.card .pic { position: relative; aspect-ratio: 16 / 9; border-bottom: 4px solid var(--ink); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); border: 4px solid var(--ink); display: grid; place-items: center; }
.card .play::after { content: ""; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 21px; line-height: 1.15; }
.card .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.code {
  font-family: "Fredoka", sans-serif; font-weight: 700; letter-spacing: 1px;
  background: var(--ink); color: #fff; border-radius: 10px; padding: 1px 9px; font-size: 15px;
}
.chip { font-size: 13px; font-weight: 800; border: 2.5px solid var(--ink); border-radius: 999px; padding: 0 9px; background: #fff; }
.chip.math { background: var(--math-soft); }
.chip.learn { background: var(--learn-soft); }
.chip.story { background: var(--story-soft); }
.chip.read { background: var(--read-soft); }
.chip.pack { background: #fff4b8; }
.soonpic { aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f4f4f4 0 14px, #fff 14px 28px); border-bottom: 4px solid var(--ink); font-family: "Fredoka", sans-serif; font-weight: 700; color: #999; }

/* Grown-ups strip */
.grownups {
  background: #fff; border-top: 4px solid var(--ink);
}
.grownups .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grownups .col { border: 3px solid var(--ink); border-radius: 18px; padding: 18px; background: var(--cream); }
.grownups .col h3 { font-size: 22px; margin-bottom: 6px; }
.grownups .col p { margin: 0; font-size: 16px; }
.emoji { font-size: 34px; }

footer { background: var(--ink); color: #fff; padding: 28px 24px; text-align: center; font-size: 15px; }
footer a { color: var(--teal); }

/* ---------- Grade page ---------- */
.gradehero { padding: 30px 24px 130px; }
.gradehero .inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.gradebadge { width: 150px; height: 150px; border-radius: 50%; border: 5px solid var(--ink); background: var(--c);
  display: grid; place-items: center; box-shadow: var(--shadow); flex: none; }
.gradebadge span { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 50px; color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; }
.crumbs { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.crumbs a { text-decoration: none; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 2px 10px; }
.gradetabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 14px; background: #fff; border-bottom: 4px solid var(--ink); position: sticky; top: 0; z-index: 4; }
.gradetabs a { font-family: "Fredoka", sans-serif; font-weight: 700; text-decoration: none; width: 52px; height: 52px; display: grid; place-items: center;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--c); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; font-size: 20px; }
.gradetabs a.on { transform: scale(1.18); box-shadow: 0 0 0 5px var(--yellow); }
.modetabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.modetabs a { text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 700; padding: 8px 18px; border: 3px solid var(--ink); border-radius: 999px; background: var(--soft); }
.modeblock { border: 4px solid var(--ink); border-radius: 28px; background: var(--soft); padding: 22px; margin-bottom: 30px; position: relative; }
.modeblock.math { --c: var(--math); --soft: var(--math-soft); }
.modeblock.learn { --c: var(--learn); --soft: var(--learn-soft); }
.modeblock.read { --c: var(--read); --soft: var(--read-soft); }
.modeblock > header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.modeblock > header p { flex: 1; min-width: 240px; }
.modeblock > header h2.chunky { font-size: 40px; color: var(--c); }
.modeblock > header img { height: 86px; margin-left: auto; }
.level { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 16px; margin-top: 16px; }
.level h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.level h3 .lv { background: var(--c); color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 0 10px; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.level .workbook { margin-left: auto; font-size: 15px; }
.level .cards { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.level .card .title { font-size: 18px; }

/* ---------- Episode page ---------- */
.ephead { padding: 22px 24px 120px; }
.ephead .inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.ephead h1 { font-size: clamp(40px, 5vw, 64px); }
.bigcode { display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 3px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 2px 16px; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--ink); margin-bottom: 10px; }
.epgrid { max-width: 1180px; margin: -100px auto 0; padding: 0 24px 40px; position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border: 5px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 0 10px 0 rgba(47, 47, 47, .25); background: #000; cursor: pointer; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player .bigplay { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: var(--yellow); border: 6px solid var(--ink); display: grid; place-items: center; box-shadow: 0 8px 0 var(--ink); transition: transform .15s; }
.player:hover .bigplay { transform: scale(1.08); }
.player .bigplay::after { content: ""; border-left: 40px solid var(--ink); border-top: 25px solid transparent; border-bottom: 25px solid transparent; margin-left: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.step { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 14px; text-align: center; font-weight: 800; }
.step .n { font-family: "Fredoka", sans-serif; font-size: 30px; }
.packcard { background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); }
.packcard h3 { font-size: 24px; }
.cover { position: relative; aspect-ratio: 8.5 / 11; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; margin: 12px 0;
  background: linear-gradient(180deg, #8fd8ff, #e6f7ff 60%, var(--grass) 60%); transform: rotate(-2deg); box-shadow: 8px 8px 0 #ffe08a, 8px 8px 0 3px var(--ink); }
.cover .t { position: absolute; top: 14px; left: 0; right: 0; text-align: center; }
.cover img { position: absolute; bottom: 10px; height: 52%; }
.cover .qr { position: absolute; right: 10px; bottom: 10px; width: 54px; height: 54px; background:
  conic-gradient(var(--ink) 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0) 0 0 / 12px 12px; border: 4px solid #fff; outline: 2px solid var(--ink); }
.cover .cc { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); }
.price { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 34px; }
.packcard ul { padding-left: 20px; margin: 8px 0 14px; font-size: 16px; font-weight: 700; }
.alsoon { font-size: 14px; font-weight: 700; color: #666; margin-top: 10px; }
.infobox { background: var(--math-soft); border: 3px solid var(--ink); border-radius: 18px; padding: 16px; margin-top: 18px; }
.infobox h3 { font-size: 20px; }
.infobox p { margin: 6px 0 0; font-size: 16px; }
.infobox p.numbers, .numbers { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 4px; }
.numbers b { color: var(--orange); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; font-size: 34px; }


@media (max-width: 860px) {
  .hero-inner, .epgrid { grid-template-columns: 1fr; }
  .hero-cast { height: 260px; }
  .stones { grid-template-columns: repeat(3, 1fr); }
  .modes, .grownups .cols, .steps { grid-template-columns: 1fr; }
  .topbar nav a { font-size: 14px; padding: 6px 10px; }
  .epgrid { margin-top: -80px; }
}

/* ---------- Built-site extras ---------- */
.player.soon { cursor: default; }
.player .soonsticker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg);
  background: var(--yellow); border: 5px solid var(--ink); border-radius: 22px; padding: 10px 26px; box-shadow: 0 6px 0 var(--ink);
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 28px; white-space: nowrap; }
.player .blank { width: 100%; height: 100%; background: linear-gradient(180deg, #8fd8ff, #e6f7ff 62%, var(--grass) 62%); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { max-width: 820px; margin: 0 auto; padding: 40px 24px 60px; font-size: 19px; }
.prose h2 { font-size: 30px; margin: 28px 0 8px; }
.prose li { margin: 4px 0; }
.empty { text-align: center; padding: 40px 20px; }
.empty img { height: 200px; margin: 0 auto 14px; }
.empty h2 { font-size: 34px; }
.packgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.packtile { background: #fff; border: 4px solid var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.packtile img { border: 3px solid var(--ink); border-radius: 12px; aspect-ratio: 8.5 / 11; object-fit: cover; background: #f4f4f4; }
.packtile h3 { font-size: 21px; line-height: 1.2; }
.packtile .btn { justify-content: center; font-size: 18px; margin-top: auto; }
.packcard .realcover { border: 3px solid var(--ink); border-radius: 12px; margin: 12px 0; transform: rotate(-2deg); box-shadow: 8px 8px 0 #ffe08a, 8px 8px 0 3px var(--ink); }
.btn.off { background: #eee; color: #777; box-shadow: 0 5px 0 #999; border-color: #999; cursor: default; }
.btn.off:hover { transform: none; }
.shoplinks { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.shoplinks a { font-weight: 800; font-size: 15px; }
.topic { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 24px; margin: 20px 0 10px; }
.codeerr { font-weight: 800; color: #c0392b; margin-top: 8px; min-height: 1.5em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px; }
:focus-visible { outline: 4px solid #4d9de0; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .bob, .wiggle:hover { animation: none; } }
@media (max-width: 860px) {
  .gradehero .inner { flex-wrap: wrap; }
  .gradehero .inner > img { display: none; }
  .gradebadge { width: 100px; height: 100px; }
  .gradebadge span { font-size: 34px; }
  .logo span { font-size: 22px; }
  .topbar { flex-wrap: wrap; padding: 10px 14px; }
  .topbar nav { margin-left: 0; }
  .section-head h2.chunky { font-size: 34px; }
  .hero { padding-bottom: 120px; }
}
.modeblock.story { --c: #4d9de0; --soft: #e3f1ff; }
.mode.story { --c: #4d9de0; --soft: #e3f1ff; }
.stone .big { white-space: nowrap; }
@media (max-width: 600px) {
  body { overflow-x: hidden; }
  .stones { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stone .big { font-size: 40px; }
  .cloud { display: none; }
  .hero { padding-top: 24px; }
  .hero-cast { height: 330px; transform: scale(.66); transform-origin: top center; margin: -10px 0 -110px; }
  .codebox { border-radius: 26px; }
  .player .soonsticker { font-size: 18px; padding: 6px 14px; border-width: 4px; }
  .player .bigplay { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .player .bigplay::after { border-left-width: 28px; border-top-width: 17px; border-bottom-width: 17px; margin-left: 8px; }
  .ephead h1 { font-size: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .step { padding: 8px 4px; font-size: 13px; }
  .step .n { font-size: 22px; }
}
