/* Spectrum Lab Kids — landing page
   Same art direction as the Little Elements app: warm cream, soft blobs,
   rounded cards, one colour per natural state. */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/baloo2-700.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/baloo2-800.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-800.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-900.woff2") format("woff2");
}

:root {
  --cream: #fff7e6;
  --ink: #26334a;
  --ink-soft: #66738a;
  --yellow: #ffc93c;
  --blue: #3d7bf7;
  --blue-deep: #2456c7;
  --radius: 28px;
  --font-display: "Baloo 2", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --shell: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: var(--blue-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ background */

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% -10%, #fff1c9 0%, transparent 45%),
    radial-gradient(circle at 88% 8%, #ffe3ef 0%, transparent 40%),
    var(--cream);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.6;
}
.blob-sun {
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  top: -20vw;
  left: -12vw;
  background: #ffe08a;
}
.blob-mint {
  width: 40vw;
  height: 40vw;
  min-width: 320px;
  min-height: 320px;
  bottom: -18vw;
  left: -8vw;
  background: #c9edcf;
}
.blob-sky {
  width: 42vw;
  height: 42vw;
  min-width: 340px;
  min-height: 340px;
  top: -16vw;
  right: -12vw;
  background: #cfe3ff;
}
.blob-pink {
  width: 36vw;
  height: 36vw;
  min-width: 300px;
  min-height: 300px;
  bottom: -16vw;
  right: -8vw;
  background: #ffd3e2;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(38, 51, 74, 0.1) 1.4px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
}

.sparkle {
  position: absolute;
  color: #f3ad1f;
  font-size: 22px;
  opacity: 0.8;
}
.sparkle-1 { top: 16%; left: 6%; }
.sparkle-2 { top: 28%; right: 5%; font-size: 30px; color: #f1548b; }
.sparkle-3 { bottom: 16%; left: 11%; color: #59b9e8; }
.sparkle-4 { bottom: 24%; right: 11%; font-size: 17px; color: #6faf2f; }

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

.topbar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand em {
  font-style: normal;
  color: var(--blue-deep);
}
.mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.mark.small {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: clamp(12px, 3vw, 26px);
  font-size: 0.9rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 800;
}
.nav a:hover {
  color: var(--blue-deep);
}

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

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px) clamp(16px, 4vw, 32px) clamp(40px, 7vw, 84px);
}

.hero-copy {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.kicker {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.accent {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.accent::before {
  content: "";
  position: absolute;
  inset: 16% -3% 6% -3%;
  background: #ffe08a;
  border-radius: 14px;
  transform: rotate(-1.2deg);
  z-index: -1;
}

.mission {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.play-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 5px 0 rgba(38, 51, 74, 0.35), 0 18px 34px -18px rgba(38, 51, 74, 0.8);
}
.play-pill svg {
  width: 20px;
  height: 20px;
}

.ghost-link {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue-deep);
  text-decoration: none;
}
.ghost-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.ghost-link:hover span {
  transform: translateX(3px);
}

.claims {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  padding: 0;
  margin: 0;
}
.claims li {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(38, 51, 74, 0.08);
  border-radius: 999px;
  padding: 6px 13px;
}

/* state palettes, matching the app */
.s-solid { --state: #3d7bf7; --state-deep: #2456c7; --state-soft: #e4eeff; }
.s-liquid { --state: #00a8b5; --state-deep: #00838f; --state-soft: #ddf7f8; }
.s-gas { --state: #f1548b; --state-deep: #c92f67; --state-soft: #ffe4ee; }
.s-artificial { --state: #6faf2f; --state-deep: #4e8618; --state-soft: #edf9dd; }

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

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) clamp(16px, 4vw, 32px);
}

.section-head {
  max-width: 60ch;
  margin: 0 auto clamp(20px, 3vw, 34px);
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  margin: 0 0 10px;
}
.lede {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ------------------------------------------------------------------ deck */

.deck {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

.tile {
  background: #fff;
  border: 3px solid var(--state-deep);
  border-radius: 22px;
  padding: 10px 10px 12px;
  box-shadow: 0 10px 24px -18px rgba(38, 51, 74, 0.8);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile-art {
  border-radius: 14px;
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tile-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tile-foot {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}
.tile-symbol {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--state-deep);
  line-height: 1;
}
.tile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.tile-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.tile-caption::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--state);
}

.fineprint {
  margin: 22px auto 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 58ch;
  text-align: center;
}

/* -------------------------------------------------------------- features */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.2vw, 22px);
}

.feature {
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(38, 51, 74, 0.07);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 18px 40px -34px rgba(38, 51, 74, 0.9);
}
.feature-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- manifesto */

.manifesto-card {
  background: #fff;
  border-radius: 34px;
  border: 4px solid var(--blue-deep);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 26px 60px -44px rgba(38, 51, 74, 0.9);
}
.manifesto-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}
.manifesto-card p {
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 68ch;
}
.manifesto-card p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- notify */

.notify {
  text-align: center;
  padding-bottom: clamp(40px, 7vw, 80px);
}
.notify h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0 0 8px;
}
.notify p {
  color: var(--ink-soft);
  margin: 0 auto 20px;
  max-width: 46ch;
  line-height: 1.6;
}
.button {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 13px 26px;
  box-shadow: 0 5px 0 var(--blue-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--blue-deep);
}

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

.footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid rgba(38, 51, 74, 0.08);
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-right {
  display: flex;
  gap: 18px;
}
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 800;
}
.footer a:hover {
  color: var(--blue-deep);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .mission {
    margin-inline: auto;
  }
  .cta-row,
  .claims {
    justify-content: center;
  }
  .section-head {
    margin-inline: auto;
    text-align: center;
  }
  .fineprint {
    margin-inline: auto;
    text-align: center;
  }
  .deck {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .footer {
    justify-content: center;
    text-align: center;
  }
  .sparkle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ghost-link span {
    transition: none;
  }
  .button {
    transition: none;
  }
}

/* ------------------------------------------------------------------ legal */

.prose-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 32px) clamp(48px, 7vw, 80px);
}

.prose h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.06;
  margin: 0 0 10px;
}

.prose .updated {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 30px;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 32px 0 8px;
}

.prose p {
  color: var(--ink-soft);
  line-height: 1.68;
  margin: 0 0 14px;
  font-size: 1rem;
}

.prose strong {
  color: var(--ink);
}

.prose code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(38, 51, 74, 0.1);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
}

.prose a {
  font-weight: 800;
}
