/* Wumbly site — the app's claymorphism candy theme, translated to the web.
   Tokens mirror src/ui/theme.ts: light periwinkle bg, candy card colors with
   a darker same-hue "clay" bottom edge, Baloo 2 headings, Comic Neue body. */

:root {
  --bg: #ecf1fe;
  --surface: #ffffff;
  --ink: #292e54;
  --ink-soft: #6e7396;
  --indigo: #5b7be8;
  --indigo-edge: #4863c4;
  --pink: #d5578e;
  --pink-edge: #b03e71;
  --orange: #f2b13e;
  --orange-edge: #cc8f27;
  --teal: #62c4be;
  --teal-edge: #46a19b;
  --green: #66c57f;
  --green-edge: #4ba463;
  --purple: #9b7be8;
  --purple-edge: #7e5fc8;
  --radius: 26px;
  --shadow-soft: 0 14px 30px rgba(41, 46, 84, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo, .btn {
  font-family: 'Baloo 2', 'Comic Sans MS', cursive, sans-serif;
}

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
}

/* ---------- header ---------- */

header {
  padding: 18px 0;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  color: var(--indigo);
  text-decoration: none;
}

.logo img {
  width: 44px;
  height: 44px;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(41, 46, 84, 0.08);
  transition: transform 0.12s ease;
}

nav a:hover {
  transform: translateY(-2px);
  color: var(--indigo);
}

nav a.play {
  background: var(--green);
  color: #163a22;
  box-shadow: 0 3px 0 var(--green-edge);
}

nav a.play:hover {
  color: #163a22;
}

.btn-play {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: #163a22;
  background: var(--green);
  text-decoration: none;
  border-radius: 20px;
  padding: 16px 34px;
  box-shadow: 0 6px 0 var(--green-edge), var(--shadow-soft);
  transition: transform 0.12s ease;
}

.btn-play:hover {
  transform: translateY(-3px) scale(1.02);
}

/* ---------- lessons page ---------- */

.track {
  margin-bottom: 34px;
}

.track > h2 {
  text-align: left;
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 14px;
}

.level {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 0 rgba(41, 46, 84, 0.07), var(--shadow-soft);
}

.level .chip {
  flex: 0 0 auto;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 3px 0 var(--edge, var(--indigo-edge));
  white-space: nowrap;
}

.level h3 {
  font-size: 20px;
  margin-bottom: 2px;
}

.level p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0;
}

.level .try {
  margin-left: auto;
  align-self: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--indigo);
  text-decoration: none;
  white-space: nowrap;
}

.chip.indigo { background: var(--indigo); --edge: var(--indigo-edge); }
.chip.pink   { background: var(--pink);   --edge: var(--pink-edge); }
.chip.orange { background: var(--orange); --edge: var(--orange-edge); color: var(--ink); }
.chip.teal   { background: var(--teal);   --edge: var(--teal-edge); color: var(--ink); }
.chip.green  { background: var(--green);  --edge: var(--green-edge); color: var(--ink); }
.chip.purple { background: var(--purple); --edge: var(--purple-edge); }

@media (max-width: 560px) {
  .level { flex-wrap: wrap; }
  .level .try { margin-left: 0; }
}

/* ---------- floating candy blobs ---------- */

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
  animation: floaty 7s ease-in-out infinite;
}

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

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 56px 0 40px;
  position: relative;
}

.hero .mascot {
  width: 130px;
  height: 130px;
  animation: bob 3.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.hero h1 {
  font-size: clamp(46px, 8vw, 76px);
  font-weight: 800;
  color: var(--indigo);
  line-height: 1.05;
  margin: 8px 0 14px;
}

.hero .tagline {
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 700;
  color: var(--pink);
  max-width: 640px;
  margin: 0 auto 12px;
}

.hero .sub {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
}

.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 14px;
  padding: 12px 22px;
  box-shadow: 0 5px 0 #14183a, var(--shadow-soft);
}

.badge span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  font-family: 'Comic Neue', sans-serif;
}

/* ---------- sections ---------- */

section {
  padding: 44px 0;
  position: relative;
}

section h2 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  color: var(--indigo);
  text-align: center;
  margin-bottom: 28px;
}

/* feature cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  color: #fff;
  box-shadow: 0 6px 0 var(--edge, var(--indigo-edge)), var(--shadow-soft);
  transition: transform 0.14s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
}

.card .emoji {
  font-size: 34px;
  display: block;
  margin-bottom: 6px;
}

.card h3 {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 6px;
}

.card p {
  font-size: 15.5px;
  opacity: 0.95;
}

.card.indigo { background: var(--indigo); --edge: var(--indigo-edge); }
.card.pink   { background: var(--pink);   --edge: var(--pink-edge); }
.card.orange { background: var(--orange); --edge: var(--orange-edge); color: var(--ink); }
.card.teal   { background: var(--teal);   --edge: var(--teal-edge); color: var(--ink); }
.card.green  { background: var(--green);  --edge: var(--green-edge); color: var(--ink); }
.card.purple { background: var(--purple); --edge: var(--purple-edge); }

/* white panel (safety strip, pricing) */

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 6px 0 rgba(41, 46, 84, 0.08), var(--shadow-soft);
}

.panel h2 {
  margin-bottom: 14px;
}

.checks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.checks li {
  font-size: 17px;
  font-weight: 700;
}

.checks li::before {
  content: '✅ ';
}

.panel .note {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 18px;
  font-size: 15px;
}

.panel .note a {
  color: var(--indigo);
  font-weight: 700;
}

/* pricing */

.price-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.price {
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.price.free {
  background: var(--bg);
  box-shadow: inset 0 0 0 3px rgba(91, 123, 232, 0.25);
}

.price.pro {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 6px 0 var(--indigo-edge), var(--shadow-soft);
}

.price h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.price ul {
  list-style: none;
  font-size: 15.5px;
  text-align: left;
  max-width: 260px;
  margin: 0 auto;
}

.price li {
  margin: 6px 0;
}

.price li::before {
  content: '• ';
  font-weight: 700;
}

.price .tiny {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  opacity: 0.8;
}

/* ---------- legal / text pages ---------- */

.doc {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(41, 46, 84, 0.08), var(--shadow-soft);
  padding: clamp(24px, 5vw, 48px);
  margin: 24px 0 48px;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  color: var(--indigo);
  margin-bottom: 4px;
}

.doc .updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 24px;
}

.doc h2 {
  font-size: 24px;
  color: var(--ink);
  text-align: left;
  margin: 28px 0 8px;
}

.doc p, .doc li {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}

.doc ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.doc a {
  color: var(--indigo);
  font-weight: 700;
}

.doc .summary {
  background: var(--bg);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 10px;
}

.doc .summary p {
  margin: 0;
  font-weight: 700;
}

/* ---------- footer ---------- */

footer {
  padding: 36px 0 48px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

footer .links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

footer a {
  color: var(--indigo);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  nav a { padding: 7px 12px; font-size: 13.5px; }
  .hero { padding-top: 36px; }
}
