:root {
  --charcoal: #1f1f1f;
  --ink: #252827;
  --muted: #687370;
  --teal: #5b8f8b;
  --teal-dark: #336a66;
  --tan: #c99a6b;
  --sage: #8ba593;
  --cream: #f6f3ee;
  --paper: #fffdf8;
  --line: #e1d9cd;
  --shadow: 0 22px 50px rgba(31, 31, 31, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(246,243,238,0.94) 34rem),
    var(--cream);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(31,31,31,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(31,31,31,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
  padding: 0.35rem clamp(1rem, 3vw, 3rem);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid rgba(31, 31, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(285px, 58vw);
  overflow: visible;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.65rem 0.78rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #ffffff;
  color: var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(31,31,31,0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--charcoal);
}

main {
  position: relative;
}

.hero,
.page-hero,
.createabooth-hero,
.about-layout,
.section,
.split-section,
.downloads,
.feature-list,
.principles {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero-copy h1,
.page-hero h1,
.createabooth-hero h1,
.about-layout h1 {
  margin: 0;
  max-width: 11ch;
  color: var(--charcoal);
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.createabooth-hero h1 {
  max-width: none;
  font-size: clamp(3.1rem, 6vw, 5.9rem);
  overflow-wrap: normal;
}

.page-hero.compact h1,
.about-layout h1 {
  max-width: 15ch;
  font-size: clamp(2.45rem, 5.4vw, 4.9rem);
  line-height: 1;
}

.eyebrow,
.tag {
  margin: 0 0 0.8rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lead {
  max-width: 660px;
  margin: 1.25rem 0 0;
  color: #4f5754;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.76rem 1rem;
  border: 1px solid rgba(31,31,31,0.14);
  border-radius: 7px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(31,31,31,0.07);
}

.button.primary {
  border-color: transparent;
  background: var(--charcoal);
  color: #fff;
}

.hero-device {
  overflow: hidden;
  border: 1px solid rgba(31,31,31,0.12);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.device-top {
  display: flex;
  gap: 0.38rem;
  padding: 0.8rem 1rem;
  background: #272727;
}

.device-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tan);
}

.device-top span:nth-child(2) {
  background: var(--sage);
}

.device-top span:nth-child(3) {
  background: var(--teal);
}

.app-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
}

.lesson-panel {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 170px;
  padding: 1.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3dcc0, #fff);
}

.lesson-panel strong {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.lesson-panel span {
  color: var(--muted);
}

.dashboard-icon {
  width: 94px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(31,31,31,0.12);
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border: 10px solid var(--teal);
  border-left-color: #e9d5bc;
  border-radius: 50%;
  font-weight: 900;
}

.tile {
  min-height: 86px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-weight: 900;
}

.tile.teal { background: var(--teal); }
.tile.tan { background: var(--tan); }
.tile.sage { background: var(--sage); }
.tile.dark { background: var(--charcoal); }

.section {
  padding: 3.8rem 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.split-section h2,
.feature-list h2,
.download-item h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.principles h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.app-card,
.download-item,
.feature-list article,
.principles article,
.identity-panel {
  border: 1px solid rgba(31,31,31,0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 28px rgba(31,31,31,0.07);
}

.mock-screen {
  min-height: 250px;
  padding: 1rem;
  border-bottom: 1px solid rgba(31,31,31,0.08);
  border-radius: 8px 8px 0 0;
}

.education-screen {
  display: grid;
  align-content: center;
  gap: 1rem;
  background: #f7fbff;
}

.mock-logo {
  width: min(100%, 410px);
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

.media-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.media-blocks span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1468ff, #1cc7bf);
  color: #fff;
  font-weight: 900;
}

.media-blocks span:nth-child(2) {
  background: linear-gradient(135deg, #ff4d4d, #ff7c7c);
}

.media-blocks span:nth-child(3) {
  background: linear-gradient(135deg, #0fc0c5, #009fb2);
}

.media-blocks span:nth-child(4) {
  background: linear-gradient(135deg, #6f3de0, #9162ff);
}

.truespeed-screen {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  background: #f8fbff;
}

.audio-player-preview {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 72px;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.audio-player-preview span {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #93c5fd);
}

.audio-player-preview strong {
  color: #1e293b;
}

.booth-screen {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 0.8rem;
  background: #d7e4df;
}

.camera-frame {
  border-radius: 8px;
  background: linear-gradient(135deg, #1f1f1f, #5b8f8b);
}

.photo-strip {
  display: grid;
  gap: 0.5rem;
}

.photo-strip span {
  border-radius: 6px;
  background: #fffaf0;
}

.studio-screen {
  display: grid;
  place-items: center;
  background: #f4efe6;
}

.studio-screen img {
  width: 150px;
}

.card-body {
  padding: 1.1rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.45rem;
}

.card-body p:not(.tag),
.split-section p,
.feature-list p,
.principles p,
.download-item p,
.about-layout p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.card-body a {
  font-weight: 900;
  color: var(--teal-dark);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 5rem;
}

.page-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
}

.downloads {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 5rem;
}

.download-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1rem;
}

.download-preview {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 8px;
  color: #fff;
  text-align: center;
}

.download-preview span,
.download-preview strong {
  display: block;
}

.download-preview span {
  font-size: 1.5rem;
  font-weight: 900;
}

.download-preview strong {
  font-size: 2.1rem;
}

.download-preview.maths { background: var(--teal); }
.download-preview.phonics { background: var(--tan); }
.download-preview.classroom { background: var(--charcoal); }

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 178px;
}

.education-products {
  gap: 1.3rem;
}

.product-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.1rem;
  border: 1px solid rgba(31,31,31,0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 28px rgba(31,31,31,0.07);
}

.product-art {
  display: grid;
  gap: 0.9rem;
  align-items: center;
  min-height: 230px;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(31,31,31,0.07);
}

.product-logo {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.product-suite {
  width: 100%;
  max-height: 145px;
  object-fit: contain;
  border-radius: 8px;
}

.product-icon {
  width: min(150px, 45%);
  justify-self: center;
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
}

.product-copy h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.product-copy p:not(.tag) {
  color: var(--muted);
  line-height: 1.6;
}

.product-tagline {
  margin: 0.65rem 0;
  color: #1e3a8a;
  font-size: 1.2rem;
  font-weight: 900;
}

.app-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.app-pill-list span {
  padding: 0.48rem 0.65rem;
  border-radius: 7px;
  background: #eef4ff;
  color: #1e3a8a;
  font-size: 0.86rem;
  font-weight: 900;
}

.truespeed-product .product-tagline {
  color: #2563eb;
}

.createabooth-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 0;
}

.booth-preview {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 1rem;
  min-height: 430px;
  padding: 1rem;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.lens {
  border: 10px solid #fff;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.85) 0 9%, transparent 10%),
    linear-gradient(135deg, var(--teal), #f2d0aa 52%, var(--sage));
}

.strip {
  display: grid;
  gap: 0.7rem;
}

.strip span {
  border: 7px solid #fff;
  border-radius: 4px;
  background: linear-gradient(135deg, #f3dcc0, #5b8f8b);
}

.feature-list,
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 0 5rem;
}

.feature-list article,
.principles article {
  padding: 1.2rem;
}

.principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principles span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 7px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 900;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 0;
}

.identity-panel {
  padding: 1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(31,31,31,0.08);
  color: var(--muted);
  font-weight: 800;
}

.site-footer img {
  width: 42px;
}

.site-footer a {
  color: var(--teal-dark);
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .createabooth-hero,
  .about-layout,
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .app-grid,
  .feature-list,
  .principles {
    grid-template-columns: 1fr;
  }

  .download-item {
    grid-template-columns: 110px 1fr;
  }

  .product-feature {
    grid-template-columns: 1fr;
  }

  .download-preview {
    width: 110px;
  }

  .download-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .product-art {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 0.5rem;
    padding-inline: 0.8rem;
  }

  .brand {
    width: min(220px, 58vw);
  }

  .hero,
  .page-hero,
  .createabooth-hero,
  .about-layout {
    padding-top: 2.3rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .createabooth-hero h1,
  .about-layout h1 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
    line-height: 1.03;
  }

  .hero-device {
    transform: none;
  }

  .app-dashboard,
  .booth-screen,
  .booth-preview {
    grid-template-columns: 1fr;
  }

  .booth-preview {
    min-height: 360px;
  }

  .strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .download-item {
    grid-template-columns: 1fr;
  }

  .download-preview {
    width: 100%;
    aspect-ratio: 2.4 / 1;
  }

  .download-actions,
  .button {
    width: 100%;
  }

  .product-feature {
    padding: 0.8rem;
  }

  .product-art {
    padding: 0.75rem;
  }

  .product-logo {
    max-height: 90px;
  }

  .product-suite {
    max-height: 120px;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}
