@import url('https://fonts.cdnfonts.com/css/satoshi');

:root {
  --header-height: 66px;
  --bg-blue: #BEE7F0;
  --orange: #F9902B;
  --brown: #7a0a0a;
  --brown-hover: #a00e0e;
  --vivid-blue: hsl(199, 97%, 52%);
  --cream: #fbead0;
  --light-blue: #AEDEED;

  /* greys */
  --dark-gray: #222;
  --medium-gray: #ddd;
  --lighter-gray: #ccc;
  --light-gray-button: #f0f0f0;
  --off-white: #FBFBFB;
  --light-gray: #f9fafa;
  --white: #fff;
}

/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Satoshi, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.5;
}

/* font sizes */
h1 {
  font-size: 60px;
  line-height: 1.15;
}

@media screen and (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 40px;
  }
}

h2 {
  font-size: 48px;
  line-height: 1.15;
}

.magic-slide h2 {
  font-size: 40px;
}


@media screen and (max-width: 1024px) {
  h2 {
    font-size: 40px;
  }

  .magic-slide h2 {
    font-size: 32px;
  }
}

@media screen and (max-width: 480px) {
  h2 {
    font-size: 32px;
  }

  .magic-slide h2 {
    font-size: 24px;
  }
}

p {
  font-size: 20px;
}

@media screen and (max-width: 1024px) {
  p {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  p {
    font-size: 16px;
  }
}

.brand {
  font-size: 2.2rem;
}

.header-link {
  font-size: 1.15rem;
}

.try-btn {
  font-size: 1.2rem;
}

nav.mobile-menu a {
  font-size: 18px;
}

.logoutbtn {
  font-size: 18px;
}

.footer__logo-text {
  font-size: 1.25rem;
}

.footer__heading {
  font-size: 20px;
}

.footer__link {
  font-size: 16px;
}

.footer__address,
.footer__patents {
  font-size: 16px;
}

.footer__patents {
  margin-top: 20px;
}

.butt {
  font-size: 24px;
}



body {
  background-image: url('/images/newhome/top/bg.webp');
  background-repeat: repeat;
}

body.grid {
  background-image: url('/images/newhome/top/bg-grid.png');
}

#section-notfault {
  background-image: url('/images/newhome/bigsky.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media screen and (min-width: 1280px) {
  #section-notfault {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 100px;
  }
}

section#section-gap {
  background-color: hsl(195, 100%, 83%);
  background-image:
    linear-gradient(to bottom, transparent 20%, var(--light-gray) 40%),
    url('/images/newhome/clouds/tops.webp');
  background-size: 100% 100%, 1512px 592px;
  background-position: bottom, top;
  background-repeat: no-repeat, repeat-x;
  padding-bottom: 100px;
}

section#section-brain {
  padding-top: 50px;
  background-image:
    linear-gradient(to top, var(--light-gray) 0%, var(--light-gray) 80%),
    url('/images/newhome/clouds/bottoms.webp');
  background-size: 100% 80%, 1512px 568px;
  background-position: top, bottom;
  background-repeat: no-repeat, repeat-x;
  padding-bottom: 220px;
}

section#section-gap h2 {
  margin-top: 280px;
}

#section-access {
  padding-top: 100px;
}

section#section-tap {
  padding-bottom: 150px;
}

section video {
  margin-top: 48px;
  width: 100%;
  max-width: 1280px;
  border-radius: 45px;
}

@media screen and (min-width: 1280px) {
  section {
    height: calc(100dvh - var(--header-height));
  }
}

section#section-hero {
  position: absolute;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#section-hero aside {
  position: absolute;
  top: calc(40vh - var(--header-height));
  left: 15vw;
  width: 32vw;
}

#top-door {
  display: block;
}

#top-door-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  #top-door-mobile {
    display: block;
  }

  #top-door {
    display: none;
  }

  section#section-hero {
    display: flex;
    flex-direction: column;
  }

  section#section-hero .zoom-container {
    height: 100dvh;
  }

  #section-hero aside {
    position: absolute;
    text-align: center;
    height: 40dvh;
    top: 55dvh;
    padding-left: 16px;
    padding-right: 16px;
    left: 0;
    right: 0;
    width: 100%;
  }


}

section.section-c {
  xbackground-color: var(--cream);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
}

.scrolled section.section-c {
  visibility: visible;
}

.scrolled section#section-hero {
  opacity: 0;
}

.veryscrolled section#section-hero {
  display: none;
}

section.section-c h2 {
  max-width: 980px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

section.section-c .desktop-columns img {
  max-width: 450px;
}

@media screen and (min-width: 1280px) {
  section.section-c .desktop-columns h2 {
    text-align: left;
    margin-left: 0;
  }

  section.section-c .desktop-columns p {
    text-align: left;
    margin-left: 0;
    margin-bottom: 0.5em;
  }
}


section.section-c p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}


@media screen and (max-width: 1280px) {
  section.section-c {
    padding-left: 16px;
    padding-right: 16px;
  }

  section.section-c p {
    text-align: center;
  }
}


/* make the container fill the viewport and hide overflow */
.zoom-container {
  position: relative;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
}

/* position image absolutely so scaling keeps it centered */
.zoom-container>img {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transform: scale(1);
  object-fit: cover;
}

.zoom-container>img#top-door-mobile {
  object-fit: contain;
}

.zoom-container>img#top-door {
  transform-origin: 83% 58%;
}

.zoom-container>img#top-door-mobile {
  transform-origin: 89% 55%;
  margin-top: -15dvh;
  margin-left: -15dvw;
}





h1 {
  margin-bottom: 0.2em;
}

h2 {
  margin-bottom: 0.6em;
}


p {
  font-weight: 500;
}


/* HEADER STYLES */
.newhome-header {
  width: 100%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5vw;
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 36px;
  width: auto;
  margin-right: 12px;
}

@media screen and (max-width:768px) {
  .logo {
    height: 30px;
  }
}

.brand {
  font-weight: 500;
  color: var(--brown);
  font-family: 'Teachers', 'Arial', sans-serif;
  letter-spacing: 1px;
}


.header-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.5vw;
  transition: color 0.2s;
}

.header-link:hover {
  color: var(--brown);
}

.header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.try-btn {
  background: var(--brown);
  white-space: nowrap;
  color: var(--white);
  width: auto;
  font-weight: 600;
  padding: 0.7em 2em;
  border-radius: 2em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(122, 10, 10, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
  margin-left: 1vw;
  display: inline-block;
}

@media screen and (max-width:768px) {
  .try-btn {
    padding: 0.5em 1.6em;
    font-size: 16px;
  }
}

.try-btn:hover {
  background: var(--brown-hover);
  box-shadow: 0 4px 16px rgba(122, 10, 10, 0.15);
}

/* Add top padding to body content to avoid header overlap */
body {
  padding-top: var(--header-height);
}

.desktop-only,
.desktop-only-inline {
  display: none;
}

nav.mobile-menu {
  padding-top: 1em;
  padding-bottom: 1em;
  display: none;
  flex-direction: column;
  width: 100%;
  position: absolute;
  background-color: white;
  z-index: 10;
}

nav.mobile-menu form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

nav.mobile-menu a {
  display: block;
  padding: 0.5em;
  font-weight: 500;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

nav.mobile-menu a:hover,
nav.mobile-menu a:active {
  color: var(--brown);
}

nav.mobile-menu.active {
  display: flex;
}

@media screen and (min-width: 1280px) {
  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}

@media screen and (min-width: 1280px) {
  .desktop-only-inline {
    display: inline;
  }
}

.logoutbtn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.logoutbtn:hover {
  color: var(--brown);
}

.footer {
  background-color: var(--brown);
  /* deep red */
  color: var(--white);
  padding: 2rem 1rem;
  font-family: sans-serif;
  min-height: 350px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  margin-top: 50px;
}

.footer__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.footer__logo-img {
  width: 100px;
  height: auto;
  margin-right: 100px;
}

.footer__logo-text {
  font-weight: 500;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__nav .footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__col {
  min-width: 120px;
}

.footer__heading {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__item {
  margin-bottom: 0.5rem;
}

.footer__link {
  color: inherit;
  text-decoration: none;
}

.footer__address {}

.footer__link:hover {
  text-decoration: underline;
}

.desktop-columns {
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media screen and (max-width: 1280px) {
  .desktop-columns .column:nth-child(2) {
    order: 1;
  }

  .desktop-columns .column:nth-child(1) {
    order: 2;
  }
}

@media screen and (max-width: 1280px) {
  .desktop-columns.reversed .column:nth-child(2) {
    order: 2;
  }

  .desktop-columns.reversed .column:nth-child(1) {
    order: 1;
  }
}

@media screen and (min-width: 1280px) {
  .desktop-columns {
    flex-direction: row;
    gap: 20px;
  }
}

.desktop-columns .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.desktop-columns .column img {
  max-width: 100%;
}

#mobile-brain-diagram {
  width: 100%;
}

#mobile-brain-diagram .brain-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

#mobile-brain-diagram .brain-grid-item {
  width: calc(50% - 10px);
}

#mobile-brain-diagram .brain {
  display: block;
  width: 233px;
  margin: 40px auto 0;
}

#section-brain h2 {
  margin-bottom: 48px;
}

.empathy {
  width: 100%;
  max-width: 350px;
  margin: 32px auto 0;
  text-align: center;
  margin-bottom: 48px;
}

.empathy .italso {
  margin-bottom: 8px;
}

.empathy .teaches {
  font-weight: bold;
  display: none;
}

.empathy[data-state='0'] #teaches-0 {
  display: block;
}

.empathy[data-state='1'] #teaches-1 {
  display: block;
}

.empathy[data-state='2'] #teaches-2 {
  display: block;
}

@media screen and (min-width:1280px) {
  .empathy {
    margin-top: -200px;
  }
}

#brain-diagram {
  max-width: 1280px;
  width: 100%;
  aspect-ratio: 16/9;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  margin-top: -40px;
}

#brain-diagram>img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

.brain-reason {
  transition: all 0.8s ease;
}

.brain-reason.hidden {
  transform: scale(0.9);
}

.brain-reason.fade-in {
  display: block;
  transform: scale(1);
}

.carousel {
  width: 100%;
  margin-top: 90px;
  overflow-x: hidden;
}

.carousel .carousel-inner {
  margin-left: 0;
  flex-wrap: nowrap;
  display: flex;
  gap: 60px;
  flex-direction: row;
}

.carousel-item,
.carousel-item img {
  width: 200px;
  height: auto;
}

.dummy-page {
  max-width: 1280px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  padding: 20px;
  margin-top: 100px;
  margin-bottom: 100px;
}

.mt-2 {
  margin-top: 2em;
}

.butt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--brown);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px 32px;
  cursor: pointer;
}

.butt:hover {
  background-color: var(--brown-hover);
}

.dyslexic-highlight {
  vertical-align: middle;
}

@media screen and (max-width: 480px) {
  .dyslexic-highlight {
    height: 40px;
  }
}

.language-changing {
  position: relative;
}

.language-changing .overlay {
  position: absolute;
  top: 10px;
  left: 0;
  height: 100px;
  object-fit: contain;
  object-position: 85% 50%;
  width: 100%;
  max-width: 450px;
}

.research p {
  margin-bottom: 1.5em !important;
}

.research a {
  color: var(--brown);
  text-decoration: none;
}

.research a em {
  font-style: normal;
  text-decoration: underline;
}

.access-carousel {
  margin-top: 58px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 40px;
  overflow-x: auto;
  /*scroll-snap-type: x mandatory;*/
  margin-bottom: 200px;
  padding-left: 48px;
  padding-right: 48px;
}

@media screen and (max-width:768px) {
  .access-carousel {
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 100px;
  }
}

.access-carousel>img {
  display: block;
}

.access-carousel img {
  scroll-snap-align: start;
}

.create-buttons {
  display: flex;
  margin-top: 30px;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .create-buttons {
    display: none;
  }
}

.create-buttons a {
  display: block;
  white-space: nowrap;
  padding: 10px 20px;
  background-color: white;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.create-buttons a:hover {
  background-color: var(--brown);
  color: white;
}

.create-carousel {
  margin-top: 8px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-left: 100px;
  padding-right: 100px;
}

.create-carousel>img {
  display: block;
  max-width: 100%;
}

@media screen and (max-width: 768px) {

  /* seamless carousels */
  #section-create,
  #section-access {
    padding-left: 0;
    padding-right: 0;
  }

  #section-access h2,
  #section-access p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .create-carousel {
    padding-left: 0;
    padding-right: 0;
  }

  .create-carousel>img {
    width: 100%;
  }
}

.create-carousel img {
  scroll-snap-align: start;
}

.booklist {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  margin-top: 100px;
  margin-bottom: 100px;
}

#section-workwithus {
  background-color: var(--vivid-blue);
  color: var(--white);
  padding-top: 157px;
  padding-bottom: 157px;
  background-image: url('/images/newhome/education/caregiver.webp');
  background-size: 507px 490px;
  background-position: bottom left;
  background-repeat: no-repeat;
}

#section-workwithus h2 {
  margin-bottom: 48px;
}

@media screen and (max-width: 1280px) {
  #section-workwithus {
    background-size: 300px 280px;
  }
}

#section-stickers {
  margin-bottom: 48px;
}

#section-stickers>h2 {
  margin-bottom: 54px;
}

@media screen and (max-width:768px) {
  #section-stickers .magicsticker {
    margin-bottom: 48px;
  }
}

#section-workwithus a {
  color: black;
  white-space: nowrap;
  padding: 10px 20px;
  background-color: white;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
}

/* Magic Slides Styles */
.magic-slides {
  position: relative;
  width: 100%;
  min-height: 200px;
}

.magic-slides-container {
  position: relative;
  padding: 24px;
  min-height: 430px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.magic-slide {
  display: none;
  text-align: center;
}

.magic-slide:first-child {
  display: block;
}

.magic-slide h2 {
  margin-bottom: 20px;
}


.magic-slide p {
  margin-bottom: 0;
}

.magic-slides-nav {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.magic-slides-prev-btn,
.magic-slides-next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-gray-button);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.magic-slides-prev-btn:hover,
.magic-slides-next-btn:hover {
  outline: 2px solid black;
}

.magic-slides-nav-dots {
  display: flex;
  gap: 8px;
}

.magic-slides-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--medium-gray);
  cursor: pointer;
  transition: background-color 0.2s;
}

.magic-slides-nav-dot:hover {
  background: var(--lighter-gray);
}

.magic-slides-nav-dot.active {
  background: black;
}

#section-quiet {
  padding-top: 60px;
  padding-bottom: 100px;
}

.brain-green-container {
  background: linear-gradient(to bottom, #00BD9A, #008B71);
  border-radius: 50px;
  color: white;
  text-align: center;
  max-width: 1240px;
  width: 100%;
}

@media screen and (max-width:1280px) {
  .brain-green-container {
    border-radius: 16px;
    padding: 32px 16px 0;
  }
}

.brain-green-container h2 {
  color: white;
}