:root {
  --primary-blue: #3E66F9;
  --deep-blue: #1A346C;
  --text-gray: #414856;
  --text-blue: #3E66F9;
  --bg-blue-light: #C3EFFF;
  --bg-banner: #8FE1FF;
  --method-bg: #436DFB;
  --footer-bg: #EBFAFF;
  --accent-orange: #FF9B26;
  --container-width: 1200px;
  --container-width-centered: 800px;
}

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

body {
  font-family: 'Rubik', sans-serif;
  color: var(--text-gray);
  background-color: #FFFFFF;
  overflow-x: hidden;
  line-height: 1.5;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Top Banner / Hero Title */
.top-banner {
  text-align: center;
  padding: 18px 20px;
  color: var(--deep-blue);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.5px;
}

.top-banner .divider {
  display: inline-block;
  width: 2px;
  height: 22px;
  background-color: var(--deep-blue);
  vertical-align: middle;
  margin: 0 15px;
}

/* Navbar */
header {
  padding: 12px 0;
  background-color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 5px;
  flex-shrink: 0;
}

.logo-container img {
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--text-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--deep-blue);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-blue);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate hamburger to X when open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid #e8eaf0;
  padding: 12px 20px 16px;
  gap: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--text-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f8;
  transition: color 0.2s;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--deep-blue);
}

/* Hero Section */
.hero-wrapper {
  background: linear-gradient(180deg, #89E2FF 0%, #E6F9FF 100%);
  text-align: center;
  position: relative;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 70%, #ffffff 100%);
  pointer-events: none;
}

.hero-image-wrapper {
  overflow: hidden;
  width: 100%;
}

.hero-image {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 10px;
  display: block;
}

/* Features Section */
.features-section {
  background-color: #FFFFFF;
  text-align: center;
  position: relative;
  padding: 0 20px 0px;
}

.features-content {
  max-width: var(--container-width);
  margin: 0 auto;
}

.features-content h2 {
  color: var(--text-blue);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.features-content p.subtitle {
  color: var(--text-gray);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* === Wide-screen features layout (2 rows × 3 items with dividers) === */
.features-list-wide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  width: 100%;
}

.features-row-wide {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 680px;
}

/* Each feature item takes equal width; dividers sit between them */
.features-row-wide .feature-item {
  flex: 1 1 0;
  justify-content: flex-start;
}

.features-row-wide .feature-divider {
  flex: 0 0 auto;
  align-self: center;
  width: 1px;
  background-color: #D1D5DF;
  margin: 0 16px;
  height: 36px;
}

/* === Narrow-screen features layout (3 rows × 2 items, no dividers) === */
.features-list-narrow {
  display: none;
  /* hidden by default; shown on narrow screens */
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  margin-top: 10px;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* === Shared feature item styles === */
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-gray);
}

.feature-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-item span {
  text-align: center;
}

/* Start Your Adventure */
.adventure-section {
  padding: 35px 0;
  text-align: center;
}

.adventure-section h2 {
  color: var(--text-blue);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 5px;
}

.adventure-section .subhead {
  color: var(--text-blue);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.steps-container {
  max-width: 410px;
  margin: 0 auto 50px;
  text-align: left;
}

.step-item {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.step-age-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FE9E02;
  border-radius: 10px;
  padding: 6px 12px;
  min-width: 72px;
  flex-shrink: 0;
  line-height: 1.2;
}

.step-age-badge .age-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.step-age-badge .age-range {
  font-size: 27px;
  font-weight: 700;
}

.step-content {
  padding-top: 2px;
}

.step-content h3 {
  color: var(--deep-blue);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
}

.step-content p {
  color: var(--text-gray);
  font-size: 16px;
  font-weight: 500;
}

/* ── Screens Carousel ──────────────────────────────────── */

/* Outer wrapper: full-width, breaks out of .container */
.screens-carousel-outer {
  width: 100%;
  padding: 0 20px;
  margin-bottom: 50px;
  box-sizing: border-box;
}

/* Inner track: flex row, left-aligned, scrollable */
.screens-carousel {
  display: flex;
  justify-content: safe center;
  /* left-aligns when overflowing */
  gap: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* snap each image when scrolling */
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #C3EFFF transparent;
}

.screens-carousel::-webkit-scrollbar {
  height: 6px;
}

.screens-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.screens-carousel::-webkit-scrollbar-thumb {
  background-color: #C3EFFF;
  border-radius: 3px;
}

.screens-carousel-slide {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.screens-carousel-slide img {
  width: 310px;
  border-radius: 16px;
  display: block;
}

/* ── Narrow slideshow (hidden on wide, scroll-snap based) ──── */
.screens-slideshow {
  display: none;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  /* browser handles swipe snapping */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* hide scrollbar (Firefox) */
  margin-bottom: 20px;
}

.screens-slideshow::-webkit-scrollbar {
  display: none;
  /* hide scrollbar (WebKit) */
}

/* The track is a plain flex row — no transforms needed */
.screens-slideshow-track {
  display: flex;
}

.screens-slideshow-track .screens-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  /* each slide is a snap target */
}

.screens-slideshow-track .screens-carousel-slide img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 16px;
  display: block;
}

/* Dots: hidden by default; shown on narrow screens via media query */
.slideshow-dots {
  display: none;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.store-badge-link:hover {
  opacity: 0.85;
}

.store-badge {
  height: 60px;
  width: auto;
  display: block;
}

/* The Google Play badge includes more padding in its image, so we make
   the Apple badge slightly taller to visually match them. */
.store-badge-apple {
  height: 44px;
  margin: 8px 0;
}

.learn-more {
  color: var(--text-blue);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.learn-more:hover {
  opacity: 0.8;
}

/* Method Section */
.method-section {
  background-color: var(--method-bg);
  color: #FFFFFF;
  padding: 80px 0 90px;
  text-align: center;
  position: relative;
}

.method-section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 70px;
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1050px;
  margin: 0 auto;
}

.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.method-card img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 25px;
}

.method-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  padding: 0 10px;
}

.method-card p {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.95;
}

.floating-star {
  position: absolute;
  width: 70px;
}

.star-top {
  top: -35px;
  right: 20%;
}

.star-bottom {
  bottom: -35px;
  left: 20%;
}

/* Team Section */
.team-section {
  padding: 70px 0 30px;
  text-align: center;
}

.team-section h2 {
  color: var(--text-blue);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 25px;
}

.team-section p {
  color: var(--text-gray);
  font-size: 18px;
  font-weight: 700;
  max-width: 750px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 40px 0 60px;
}

.faq-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  max-width: 950px;
  margin: 0 auto;
}

.faq-section h2 {
  color: var(--text-blue);
  font-size: 46px;
  font-weight: 900;
  margin-top: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid #EBEBEB;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-gray);
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  color: var(--text-blue);
  background-color: var(--text-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #ffffff;
  border-radius: 1px;
}

.faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-item.active .faq-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-answer {
  margin-top: 15px;
  margin-left: 40px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-gray);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-logo img {
  height: 36px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: var(--text-blue);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.copyright {
  text-align: center;
  color: #6AACF2;
  font-size: 15px;
  font-weight: 500;
}

/* ========================================= */
/*             OUR METHOD PAGE CSS           */
/* ========================================= */

/* Method Hero Section */
.method-hero {
  background-color: var(--method-bg);
  /* #436DFB */
  color: #FFFFFF;
  padding: 30px 0;
  text-align: center;
}

.method-hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.method-hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
}

.method-hero p {
  font-size: 24px;
  font-weight: 500;
  opacity: 0.95;
}

.hero-star {
  position: absolute;
  width: 60px;
}

.star-tl {
  top: -11px;
  left: 0;
}

.star-br {
  bottom: -44px;
  right: 3%;
  transform: rotate(110deg);
}

/* Introduction Section */
.method-intro {
  background-color: #FFFFFF;
  padding: 50px 0;
  text-align: center;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.method-intro p {
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 25px;
}

.method-intro strong {
  color: var(--deep-blue);
  font-weight: 700;
}

.method-intro .learn-more {
  margin-top: 20px;
  font-size: 20px;
}

/* Method Pillars Section */
.method-pillars {
  background-color: var(--method-bg);
  padding: 50px 0;
  color: #FFFFFF;
  text-align: center;
}

.method-pillars h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 30px;
}

.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.pillar-item img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  flex-shrink: 0;
}

.pillar-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.pillar-text p {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 500;
  opacity: 0.95;
}

/* Mastery Works Section */
.mastery-works {
  background-color: #FFFFFF;
  padding: 50px 0;
  text-align: center;
}

.mastery-content {
  max-width: 800px;
  margin: 0 auto;
}

.mastery-works h2 {
  color: var(--text-blue);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.mastery-works .section-subhead,
.story-driven .section-subhead {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 50px;
  line-height: 1.5;
}

.mastery-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 50px;
}

.mastery-step {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 25px;
}

.step-num {
  font-size: 60px;
  font-weight: 900;
  color: var(--text-blue);
  line-height: 1;
  min-width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.step-text h3 {
  color: var(--text-blue);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-text p {
  color: var(--text-gray);
  font-size: 19px;
  line-height: 1.5;
}

.mastery-result {
  font-size: 22px;
  color: var(--deep-blue);
  margin-top: 30px;
}

/* Story-Driven Section */
.story-driven {
  background-color: #FFFFFF;
  padding: 0px 0 80px;
  text-align: center;
}

.story-content {
  max-width: 900px;
  margin: 0 auto;
}

.story-driven h2 {
  color: var(--text-blue);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 40px;
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
}

.story-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #F6F8FE;
  padding: 20px 30px;
  border-radius: 16px;
}

.story-icon {
  font-size: 32px;
  color: var(--accent-orange);
  width: 50px;
  height: 50px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.story-item p {
  font-size: 19px;
  color: var(--text-gray);
  margin: 0;
}

.story-item strong {
  color: var(--deep-blue);
  font-weight: 700;
}

/* Journey Section */
.journey-section {
  padding: 0px 0 80px;
  text-align: center;
  background-color: #FFFFFF;
}

.journey-section h2 {
  color: var(--text-blue);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.journey-section .subhead {
  color: var(--text-gray);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .method-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-card:last-child {
    grid-column: 1 / -1;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-section h2 {
    text-align: center;
  }

  /* carousel already left-aligns via safe center */
}

/* Switch to narrow layout below 720px */
@media (max-width: 720px) {
  .features-list-wide {
    display: none;
  }

  .features-list-narrow {
    display: grid;
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .features-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .method-cards {
    grid-template-columns: 1fr;
  }

  .method-card:last-child {
    grid-column: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-content: items-center;
  }

  .footer-logo {
    justify-content: center;
  }

  .step-age-badge {
    min-width: 64px;
    padding: 5px 10px;
  }

  .floating-star,
  .hero-star {
    display: none;
  }

  /* Narrow feature items: slightly smaller font to fit 2 per row */
  .features-list-narrow .feature-item {
    font-size: 16px;
  }

  .features-list-narrow .feature-item img {
    width: 26px;
    height: 26px;
  }

  /* Switch to slideshow on narrow screens */
  .screens-slideshow {
    padding: 10px 0px;
  }

  .screens-carousel-outer {
    display: none;
  }

  .screens-slideshow {
    display: block;
  }

  /* Slideshow dot indicators */
  .slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 50px;
  }

  .slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #C3EFFF;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .slideshow-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.3);
  }

  /* Method Page Mobile Responsiveness */
  .method-hero h1 {
    font-size: 38px;
  }

  .method-hero p {
    font-size: 18px;
  }

  .pillar-item {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .mastery-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 15px;
  }

  .step-num {
    text-align: center;
  }

  .story-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .hero-image-wrapper {
    overflow: hidden;
    width: 100%;
  }

  .team-section {
    padding-top: 40px;
    padding-bottom: 0px;
  }

  .faq-section {
    padding-bottom: 40px;
  }

  .hero-image {
    max-width: none;
    width: 600px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
  }

  .top-banner .divider {
    display: none;
  }

  .top-banner .banner-ages {
    display: block;
  }
}

@media (max-width: 650px) {
  .top-banner {
    font-size: 18px;
  }
}

/* ========================================= */
/*               APP PAGE CSS                */
/* ========================================= */

.app-hero {
  text-align: center;
  padding: 40px 0 40px;
}

.app-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.app-hero h1 {
  color: var(--text-blue);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.app-hero .subtitle {
  color: var(--text-gray);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.app-hero-video {
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  clip-path: inset(0 round 20px);
  margin-bottom: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.app-hero-stores {
  margin-bottom: 40px;
}

.app-hero-trust {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.app-hero-trust-mobile {
  margin-top: 20px;
  display: none;
}

.app-goals {
  padding: 40px 0 0;
}

.app-goals h2,
.what-kids-do h2,
.made-for-families h2,
.built-for-mastery h2,
.best-results h2,
.for-teachers h2 {
  text-align: center;
  color: var(--text-blue);
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subhead {
  text-align: center;
  color: var(--text-gray);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.goal-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 70px;
}

.goal-block.reverse {
  flex-direction: row-reverse;
}

.goal-text {
  flex: 1;
}

.goal-image {
  flex: 1;
  text-align: center;
}

.screenshot-rounded {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.goal-text h3 {
  color: var(--text-blue);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.goal-focus {
  font-size: 16px;
  margin-bottom: 12px;
}

.goal-desc {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.goal-list h4 {
  color: var(--text-blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.goal-list ul {
  list-style-type: none;
  padding: 0;
}

.goal-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.goal-list li::before {
  content: "•";
  color: var(--text-blue);
  font-weight: bold;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

.what-kids-do {
  padding: 40px 0;
  background-color: transparent;
}

.numbered-features-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.numbered-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.num-badge {
  color: var(--text-blue);
  font-size: 50px;
  font-weight: 900;
  line-height: 0.9;
  flex-shrink: 0;
  width: 50px;
}

.feat-content h3 {
  color: var(--text-blue);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.feat-content p {
  font-size: 17px;
  line-height: 1.5;
}

.made-for-families {
  padding: 40px 0;
}

.family-features {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.family-feature {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fam-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fam-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fam-info h3 {
  color: var(--text-blue);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
}

.fam-info p {
  font-size: 16px;
  color: var(--text-gray);
}

.built-for-mastery {
  padding: 40px 0;
  background-color: #fff;
}

.mastery-pillars {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.mastery-pillar {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mp-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.mp-icon img {
  max-width: 100%;
  max-height: 100%;
}

.mastery-pillar h3 {
  color: var(--text-blue);
  font-size: 22px;
  font-weight: 800;
}

.mp-subtext {
  display: block;
  color: var(--text-gray);
  font-size: 15px;
  font-weight: 500;
  margin-top: 5px;
}

.best-results {
  padding: 40px 0;
}

.br-container {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.br-container p {
  font-size: 18px;
  line-height: 1.6;
}

.for-teachers {
  padding: 40px 0;
  background-color: #F8FAFF;
}

.teachers-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto 20px;
}

.teachers-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-gray);
}

.teachers-list li::before {
  content: "•";
  color: var(--text-blue);
  font-weight: bold;
  font-size: 27px;
  position: absolute;
  left: 0;
  top: -7px;
}

.teachers-contact {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.teachers-contact p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.email-link {
  color: var(--text-blue);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .app-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {

  .goal-block,
  .goal-block.reverse {
    flex-direction: column;
    gap: 30px;
  }

  .app-hero h1 {
    font-size: 32px;
  }

  .app-goals h2,
  .what-kids-do h2,
  .made-for-families h2,
  .built-for-mastery h2,
  .best-results h2,
  .for-teachers h2 {
    font-size: 30px;
  }

  .mastery-pillars {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .mastery-pillar {
    width: 100%;
    max-width: 300px;
  }

  .app-hero-trust {
    display: none;
  }

  .app-hero-trust-mobile {
    display: grid;
    justify-content: center;
  }
}

/* ========================================= */
/*              CONTACT PAGE CSS             */
/* ========================================= */

.contact-hero {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  padding: 30px 0 30px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
}

.contact-section {
  padding: 60px 0 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background-color: #E6FAFF;
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  color: var(--primary-blue);
  font-size: 64px;
  margin-bottom: 20px;
}

.contact-card h2 {
  color: var(--primary-blue);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-email {
  color: var(--text-gray);
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
  margin-bottom: 25px;
  display: inline-block;
  transition: opacity 0.2s;
}

.contact-email:hover {
  text-decoration: none;
  opacity: 0.8;
}

.contact-card p {
  color: var(--text-gray);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

/* Responsive adjustment for the contact grid */
@media (max-width: 768px) {
  .contact-hero {
    padding: 40px 0 50px;
  }

  .contact-hero h1 {
    font-size: 38px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-card {
    padding: 40px 30px;
  }
}