/* --------------------
   Global Reset & Base
--------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;


  /* ---Debugging--- */
  /*outline: 1px solid red;*/
}
body {
  color: #13203A;
  background-color: #E8E9E8;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensure body spans full viewport */
} 
/* --------------------
        Header
--------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  background: #E8E9E8;
  border-bottom: 1px solid #E8E9E8;
  z-index: 1000;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
}
.logo-img {
  height: 60px;
}
.logo-accent {
  color: #0663D2;
}
.header-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
/* --------------------
      Navigation
--------------------- */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
nav a {
  position: relative;
  text-decoration: none;
  color: #13203A;
}
.menu-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #13203A;
  transition: width 0.3s ease;
}
.menu-item:hover::after {
  width: 100%;
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  gap: 6px;
  width: 40px;
  height: 30px;
  align-items: center;
  justify-content: center;
  /* position it to the right side when visible */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #13203A;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #E8E9E8;
  border: 1px solid rgba(19, 32, 58, 0.1);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(19, 32, 58, 0.1);
  z-index: 1000;
}

.mobile-nav.active {
  display: flex !important;
  flex-direction: column;
  padding: 20px;
  gap: 15px;
  align-items: center; /* center children horizontally */
}

/* Center Register and Login buttons inside the hamburger (mobile) menu */
.mobile-nav.active {
  align-items: center; /* center children horizontally */
}

.mobile-nav .btn-primary,
.mobile-nav .btn-secondary {
  width: 90% !important;     /* make buttons wide and consistent */
  max-width: 320px;
  margin: 0 auto;            /* center horizontally */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 48px;              /* ensure good tappable size */
  border-radius: 10px;
}

/* ensure buttons inside mobile nav don't retain desktop fixed widths */
.mobile-nav .btn-primary { background: #13203A; color: #E8E9E8; }
.mobile-nav .btn-secondary { background: #E8E9E8; color: #13203A; border: 2px solid #13203A; }

.mobile-nav a {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(19, 32, 58, 0.1);
}

.mobile-nav a:last-child {
  border-bottom: none;
}
/* --------------------
        Buttons
--------------------- */
.btn-primary, .btn-secondary {
  width: 130px;
  height: 45px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 90px;
  font-size: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn-primary {
  background: #13203A;
  color: #E8E9E8;
}
.btn-primary:hover {
  background-color: #E8E9E8;
  color: #13203A;
  border: 2px solid #13203A;
}
.btn-secondary {
  background: #E8E9E8;
  border: 2px solid #13203A;
  color: #13203A;
}
.btn-secondary:hover {
  background-color: #13203A;
  color: #E8E9E8;
}
/* --------------------
        Hero
--------------------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('../../../images/FundoRun.jpg') center/cover no-repeat;
  text-align: center;
  color: #E8E9E8;
  padding: 40px 20px;
  min-height: 600px;
}
.hero h1 {
  font-size: 3rem;
  /*color: #0663D2;*/
  color: #0663D2;

  max-width: 900px;
}
.hero p {
  margin-top: 1rem;
  color: #ffffff;
  max-width: 600px;
  /*text-shadow: 0 0 4px #0663D2, 0 0 2px #0663D2;*/
}
.hero-app-buttons {
  margin-top: 2rem;
}
.get-started-span {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}

.hero-waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin-top: 1.5rem;
}

.input-field {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.hero-waitlist-form .btn-primary {
  padding: 1rem 1.5rem;         
  font-size: 1.125rem;          
  font-weight: 700;             
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;                  
  background-color: #13203A;
  color: white;
  transition: background-color 0.3s ease;
}

.hero-waitlist-form .btn-primary:hover {
  background-color: #0663D2;
}


/* --------------------
     App Buttons
--------------------- */
.app-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.app-buttons a {
  display: inline-block;
  background-color: #13203A;
  color: #E8E9E8;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.app-buttons a:hover {
  color: #13203A;
  background-color: rgba(232, 233, 232, 0.4);
}
/* --------------------
        Intro
--------------------- */
.intro, .features, .education, .testimonials, .final-cta, footer {
  padding: 40px 0;
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro p {
  text-align: justify;
  font-size: 24px;
  max-width: 85%;
  color: #0D3D7B;
  font-weight: 500;
  margin-bottom: 60px;
}
/* --------------------
        Stats
--------------------- */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
  font-size: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}
.stats-small {
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(19, 32, 58, 0.6);
}
.stats-divider {
  width: 2px;
  height: 40px;
  background: rgba(19, 32, 58, 0.6);
}
.stats-download {
  padding: 0.75rem 1.5rem;
  background-color: #E8E9E8;
  border: 2px solid #0D3D7B;
  color: #0D3D7B;
  border-radius: 50px;
  text-align: center;
}
/* --------------------
       Features
--------------------- */
.features {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.features-img {
  border-radius: 16px;
  width: 100%; 
  max-width: 500px;
}
.features-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  width: 60%;
}
.features-desc, .features-title {
  text-align: center;
  color: #13203A;
}
.features-accordion {
  width: 80%;
}

/* --------------------
      Accordion
--------------------- */
.accordion {
  border: 1px solid #E8E9E8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(19, 32, 58, 0.1);
}
.accordion-item {
  border-bottom: 1px solid #E8E9E8;
}
.accordion-header {
  background: #E8E9E8;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #13203A;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  background: #E8E9E8;
  color: #13203A;
}
.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 10px 20px;
}
.accordion-header::after {
  content: '';
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat center;
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 10px;
}
.accordion-header.active::after {
  content: '';
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><polyline points="18 15 12 9 6 15"></polyline></svg>') no-repeat center;
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 10px;
}

/* --------------------
      Education
--------------------- */

.education{
  background: #13203A;
  color: #E8E9E8;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
}

.education-testimonials {
  flex: 1 1 0;
  max-width: 90rem;
  margin-left: 7rem;
  font-size: 1.38rem;
}

.education .testimonial-list {
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
  align-items: center;
  justify-content: center;
}

.education iframe {
  max-width: 90vh;
  border-radius: 16px;
  margin-right: 5rem;
}


/* --------------------
     Testimonials
--------------------- */

.testimonial {
  background: #E8E9E8;
  color: #13203A;
  padding: 30px 30px;
  border-radius: 20px;
  width: 80%;
  font-size: 20px;
}

.testimonial-carousel {
  position: relative;
  height: 15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 1rem;
  margin-left: -5rem;
  padding-top: 0.5rem;
}

.testimonial-carousel .testimonial {
  margin: 0 0 10px 0;
  background: #E8E9E8;
  color: #13203A;
  border-radius: 20px;
  opacity: 0.2;
  transition: opacity 0.3s, transform 0.3s, height 0.3s;
  margin-left: 5rem;
}

.testimonial-carousel .testimonial.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.1);
  z-index: 2;
  border-radius: 20px;
  margin-left: 5rem;
}

.testimonial-carousel .testimonial.half {
  opacity: 0.3;
  z-index: 1;
  margin-left: 5rem;
}

/* --------------------
        Footer
--------------------- */
.footer {
  background: #006d50;
  color: #E8E9E8;
  padding: 0px 0px 0px 0px;
  border-radius: 12px;
  position: relative;
  margin: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 85%;
  margin: 0 auto;
  gap: 40px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-text {
  flex: 1;
  min-width: 60%;
  text-align: justify !important; /* ensure footer text is justified at all screen sizes */
}

.footer-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  max-width: 100%;
}

.footer-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 80%;
  text-align: justify !important; /* always justify footer paragraph text */
}

.phones-wrapper {
  flex: 1 1 100px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  background: #006d50;
  
}

.phones {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  background: #006d50;
  margin-bottom: -14%;
  margin-right: -17%;
}



/* --------------------
     Media Queries
--------------------- */
@media only screen and (max-width: 600px), only screen and (min-width: 601px) and (max-width: 1200px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
  .features-img,
  .features-title,
  .features-desc,
  .features-accordion {
    position: static;
    text-align: center;
    left: auto;
    top: auto;
    margin: 0 auto;
    width: 100%; 
    max-width: 450px;
  }
}

/* Tablet Styles (481px to 768px) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
  /* Header & Navigation */
  header {
    position: relative;
    padding: 15px 30px;
  }
  
  .logo-img {
    height: 55px;
  }
  
  /* Show hamburger menu for tablet */
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav {
    display: none;
  }
  
  .btn-primary, .btn-secondary {
    width: 125px;
    height: 42px;
    font-size: 17px;
  }
  
  /* Hero Section */
  .hero {
    min-height: 450px;
    padding: 35px 25px;
  }
  
  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 16px;
    margin-top: 0.8rem;
  }
  
  .hero-waitlist-form {
    max-width: 450px;
    gap: 1rem;
  }
  
  /* Intro Section */
  .intro {
    padding: 35px 25px;
  }
  
  .intro p {
    font-size: 20px;
    max-width: 90%;
    margin-bottom: 50px;
  }
  
  /* Stats */
  .stats {
    gap: 1.5rem;
    font-size: 20px;
    flex-wrap: wrap;
  }
  
  .stats-download {
    width: 100%;
    max-width: 280px;
    margin: 20px auto 0 auto;
  }
  
  /* Features Section */
  .features {
    flex-direction: column;
    gap: 3rem;
    padding: 35px 25px;
  }
  
  .features-img {
    width: 100%;
    max-width: 400px;
  }
  
  .features-text {
    width: 90%;
    gap: 3rem;
  }
  
  .features-title {
    font-size: 26px;
  }
  
  .features-desc {
    font-size: 16px;
  }
  
  .features-accordion {
    width: 100%;
  }
  
  /* Education Section */
  .education {
    flex-direction: column;
    padding: 35px 25px;
    gap: 25px;
  }
  
  .education-testimonials {
    margin-left: 0;
    font-size: 20px;
    width: 100%;
    text-align: center;
  }
  
  .education iframe {
    width: 100%;
    height: 280px;
    margin-right: 0;
  }
  
  /* Testimonials */
  .testimonial-carousel {
    margin-left: 0;
    height: 14rem;
  }
  
  .testimonial-carousel .testimonial {
    margin-left: 0;
    font-size: 18px;
    padding: 25px;
    width: 100%;
  }
  
  .testimonial-carousel .testimonial.active {
    margin-left: 0;
    transform: scale(1.05);
  }
  
  .testimonial-carousel .testimonial.half {
    margin-left: 0;
  }
  
  /* Footer */
  .footer {
    padding: 35px 25px;
  }
  
  .footer-content {
    gap: 20px;
    max-width: 95%;
    flex-direction: row;
    align-items: center;
  }
  
  .footer-text {
    flex: 1;
    min-width: 50%;
  }
  
  .footer-title {
    font-size: 28px;
  }
  
  .footer-desc {
    font-size: 18px;
    max-width: 100%;
  }
  
  .phones-wrapper {
    flex: 0 0 auto;
    width: 40%;
    height: auto;
    justify-content: flex-end;
  }
  
  .phones {
    width: 100%;
    margin-bottom: -5%;
    margin-right: -10%;
  }
  
  .phones img {
    width: 90%;
    max-width: 300px;
  }
}

/* Large Tablet Styles (769px to 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  /* Header & Navigation */
  header {
    padding: 15px 25px;
    flex-wrap: nowrap;
  }
  
  nav {
    gap: 18px;
    flex-wrap: wrap;
  }
  
  .btn-primary, .btn-secondary {
    width: 110px;
    height: 40px;
    font-size: 15px;
  }
  
  /* Hero Section */
  .hero {
    min-height: 500px;
    padding: 30px 25px;
  }
  
  .hero h1 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 16px;
    line-height: 1.4;
  }
  
  .hero-waitlist-form {
    max-width: 380px;
    gap: 0.9rem;
  }
  
  /* Intro Section */
  .intro {
    padding: 30px 25px;
  }
  
  .intro p {
    font-size: 20px;
    max-width: 95%;
    margin-bottom: 40px;
  }
  
  /* Stats */
  .stats {
    gap: 1.5rem;
    font-size: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stats-download {
    margin-top: 15px;
    padding: 0.6rem 1.2rem;
  }
  
  /* Features Section */
  .features {
    gap: 2.5rem;
    padding: 30px 25px;
    flex-direction: column;
  }
  
  .features-img {
    max-width: 400px;
    width: 100%;
  }
  
  .features-text {
    width: 95%;
    gap: 2.5rem;
  }
  
  .features-title {
    font-size: 26px;
    line-height: 1.2;
  }
  
  .features-desc {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .features-accordion {
    width: 100%;
  }
  
  /* Education Section */
  .education {
    padding: 30px 25px;
    gap: 25px;
    flex-direction: column;
  }
  
  .education-testimonials {
    font-size: 20px;
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  
  .education iframe {
    height: 280px;
    width: 100%;
    margin-right: 0;
  }
  
  /* Testimonials */
  .testimonial-carousel {
    margin-left: 0;
    height: 13rem;
  }
  
  .testimonial-carousel .testimonial {
    font-size: 17px;
    padding: 22px;
    margin-left: 0;
    width: 100%;
  }
  
  .testimonial-carousel .testimonial.active {
    margin-left: 0;
    transform: scale(1.03);
  }
  
  .testimonial-carousel .testimonial.half {
    margin-left: 0;
  }
  
  /* Footer */
  .footer {
    padding: 30px 25px;
  }
  
  .footer-content {
    gap: 20px;
    max-width: 95%;
    flex-direction: row;
    align-items: center;
  }
  
  .footer-text {
    flex: 1;
    min-width: 50%;
  }
  
  .footer-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .footer-desc {
    font-size: 17px;
    max-width: 100%;
    text-align: justify !important; /* always justify footer paragraph text */
  }
  
  .phones-wrapper {
    flex: 0 0 auto;
    width: 35%;
    height: auto;
    justify-content: flex-end;
  }
  
  .phones {
    width: 100%;
    margin-bottom: -5%;
    margin-right: -8%;
  }
  
  .phones img {
    width: 85%;
    max-width: 280px;
  }
}

/* Mobile Phone Styles (480px and below) */
@media only screen and (max-width: 480px) {
  /* Header & Navigation */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
  }
  
  .logo-img {
    height: 50px;
  }
  
  /* Show hamburger menu for mobile */
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav {
    display: none;
  }
  
  .btn-primary, .btn-secondary {
    width: 120px;
    height: 40px;
    font-size: 16px;
  }
  
  /* Hero Section */
  .hero {
    min-height: 400px;
    padding: 30px 15px;
  }
  
  .hero h1 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 14px;
    margin-top: 0.5rem;
    line-height: 1.4;
  }
  
  .hero-waitlist-form {
    max-width: 100%;
    gap: 0.8rem;
    margin-top: 1rem;
  }
  
  .input-field {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .hero-waitlist-form .btn-primary {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  
  /* Intro Section */
  .intro {
    padding: 30px 15px;
  }
  
  .intro p {
    font-size: 16px;
    max-width: 100%;
    text-align: left;
    margin-bottom: 40px;
  }
  
  /* Stats */
  .stats {
    flex-direction: column;
    gap: 20px;
    font-size: 18px;
    text-align: center;
  }
  
  .stats-divider {
    width: 40px;
    height: 2px;
    transform: rotate(90deg);
  }
  
  .stats-download {
    width: 100%;
    max-width: 250px;
    margin: 15px auto 0 auto;
    padding: 0.6rem 1rem;
    font-size: 16px;
  }
  
  /* Features Section */
  .features {
    flex-direction: column;
    gap: 2rem;
    padding: 30px 15px;
  }
  
  .features-img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  
  .features-text {
    width: 100%;
    gap: 2rem;
  }
  
  .features-title {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .features-desc {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .features-accordion {
    width: 100%;
  }
  
  .accordion-header {
    padding: 15px;
    font-size: 14px;
  }
  
  .accordion-content {
    padding: 0 15px;
  }
  
  .accordion-item.active .accordion-content {
    padding: 8px 15px;
  }
  
  /* Education Section */
  .education {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
  }
  
  .education-testimonials {
    margin-left: 0;
    font-size: 18px;
    width: 100%;
  }
  
  .education iframe {
    width: 100%;
    height: 200px;
    margin-right: 0;
  }
  
  /* Testimonials */
  .testimonial-carousel {
    margin-left: 0;
    height: auto;
    min-height: 12rem;
  }
  
  .testimonial-carousel .testimonial {
    margin-left: 0;
    font-size: 16px;
    padding: 20px;
    width: 100%;
  }
  
  .testimonial-carousel .testimonial.active {
    margin-left: 0;
    transform: scale(1.02);
  }
  
  .testimonial-carousel .testimonial.half {
    margin-left: 0;
  }
  
  /* Footer */
  .footer {
    padding: 30px 15px;
  }
  
  .footer-content {
    flex-direction: row;
    gap: 15px;
    max-width: 100%;
    align-items: center;
  }
  
  .footer-text {
    flex: 1;
    min-width: 50%;
    text-align: left;
  }
  
  .footer-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .footer-desc {
    font-size: 16px;
    max-width: 100%;
    text-align: left;
  }
  
  .phones-wrapper {
    flex: 0 0 auto;
    width: 35%;
    height: auto;
    justify-content: flex-end;
  }
  
  .phones {
    width: 100%;
    margin-bottom: -8%;
    margin-right: -5%;
  }
  
  .phones img {
    width: 100%;
    max-width: 220px;
  }
}

/* Small Mobile and older phones (375px and below) */
@media only screen and (max-width: 375px) {
  .hero h1 {
    font-size: 22px;
  }
  
  .hero p {
    font-size: 13px;
  }
  
  .intro p {
    font-size: 15px;
  }
  
  .features-title {
    font-size: 20px;
  }
  
  .footer-title {
    font-size: 22px;
  }
  
  .btn-primary, .btn-secondary {
    width: 110px;
    height: 38px;
    font-size: 15px;
  }
}

@media only screen and (max-width: 750px) {
  header, nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 16px;
  }
  .app-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .intro p, .stats {
    font-size: 18px;
    margin-left: 0;
    left: 0;
    flex-direction: column;
    align-items: center;
    max-width: 570px;
  }
  .stats-download {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    display: block;
    text-align: center;
  }
  .testimonial {
    width: 100%;
  }
  footer .columns {
    flex-direction: column;
    gap: 20px;
  }
  .features-accordion {
    width: 100%;
  }
  .features-text {
    width: 100%;
    align-items: center;
  }
}

@media only screen and (min-width: 601px) and (max-width: 1200px) {
  /* Show regular nav for larger tablets and small desktops */
  /* keep mobile toggle visibility controlled by the narrower/explicit breakpoints (avoid hiding it here)
     so that the single breakpoint rule (max-width: 850px) can reliably show the hamburger when desired */

  .mobile-nav {
    display: none !important;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    justify-content: center; 
    gap: 20px;
    display: flex;
  }
  .hero h1 {
    font-size: 36px;
  }
  .intro p {
    font-size: 20px;
    margin-left: 0;
  }
  .stats {
    left: 0;
    width: 700px;
    gap: 30px;
    font-size: 26px;
    margin: 0 auto;
  }
  .stats-download {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    display: block;
    text-align: center;
  }
  .testimonial {
    width: 45%;
  }
  .final-cta {
    padding: 50px 20px;
  }
  footer .columns {
    flex-wrap: wrap;
    gap: 40px;
  }
  .features-accordion {
    width: 100%;
  }
  .features-text {
    width: 100%;
    align-items: center;
  }
}

@media only screen and (min-width: 1201px) {
  /* Ensure desktop shows regular nav */
  .mobile-menu-toggle {
    display: none;
  }
  
  .mobile-nav {
    display: none !important;
  }

  .hero h1 {
    font-size: 50px;
  }
  .intro p {
    font-size: 24px;
  }
  .stats {
    left: 45px;
  }
}

/* hamburger active up to 900px */
@media (max-width: 850px) {
  .mobile-menu-toggle { display: flex; }
  nav { display: none !important; }
}
/* hide hamburger at desktop sizes */
@media (min-width: 851px) {
  .mobile-menu-toggle { display: none; }
  nav { display: flex; }
}

/* Ensure footer sits flush with the bottom of the page (no gap) */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensure body spans full viewport */
}

/* Make main/content areas take remaining space so footer is pushed to bottom */
main, .content, .intro, .features, .education, .testimonials, .final-cta {
  flex: 1 0 auto;
}

/* Remove any external spacing on footer and its inner wrapper to guarantee flush bottom */
.footer, footer {
  margin: 0 !important;
  padding: 0 !important; /* keep default reset here; bottom padding will be applied in a media query */
  border-radius: 0 !important;
}
.footer-content {
  margin: 0 !important;
  padding: 40px 20px 20px 20px !important; /* keep interior spacing and maintain side margins */
}

/* Add bottom padding to the footer only on screens smaller than laptop */
@media (max-width: 1200px) {
  .footer {
    padding-bottom: 40px !important; /* create space at the bottom on tablets and mobiles */
  }
}

/* Ensure phones image area doesn't introduce negative margins that push footer up */
.phones-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  height: auto; /* allow footer to size naturally */
  display: flex;
  align-items: flex-end; /* keep phone images anchored to bottom of footer */
  overflow: hidden;
}
.phones {
  margin: 0 !important;
  width: 100% !important;
}
.phones img {
  display: block;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

/* Small safeguard: remove any bottom spacing on direct children inside footer */
.footer > * {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Ensure footer phones image is properly sized across all screen sizes while maintaining side-by-side layout */
@media (max-width: 1024px) {
  .footer-content {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .footer-text {
    flex: 1;
    min-width: 50%;
  }
  .phones-wrapper {
    flex: 0 0 auto;
    width: 40%;
    height: auto !important;
    padding: 0;
    overflow: visible !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .phones {
    width: 100% !important;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
  }
  .phones img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0;
    transform: none !important;
    object-fit: contain;
  }
}

/* Adjust image size for smaller screens while keeping side-by-side layout */
@media (max-width: 768px) {
  .footer-content {
    gap: 15px;
  }
  .phones-wrapper {
    width: 35%;
  }
  .phones img {
    max-width: 250px;
  }
}

/* Tighter limits for small screens while maintaining side-by-side layout */
@media (max-width: 480px) {
  .footer-content {
    gap: 10px;
  }
  .footer-text {
    min-width: 55%;
  }
  .phones-wrapper {
    width: 40%;
  }
  .phones img {
    max-width: 180px;
  }
}