h1, h2 {
  font-family: poppins, roboto, Arial, Helvetica, sans-serif;
}

.hero h1 {
  font-size: 4.5vw;
  margin: 0 0 16px 0;
  max-width: 800px;
}

h2 {
  font-size: 3vw;
}

.faq-page {
  text-align: center;
}

main > section, .inner-ride-section {
  padding: 20px min(6vw, 80px) 20px min(6vw, 80px);
  height: auto;
  display: flex;
  justify-content: space-between;
  background-color: var(--landing-page-primary-background);
}

main article:not(.faq-section article) {
  max-width: 40vw;
}

aside {
  display: flex;
  width: 45vw;
  align-items: center;
}

main > section p:not(.faq-section p) {
  font-size: 20px;
  margin-right: 20px;
}

main .sign-up-button:not(.hero .sign-up-button) {
  margin-top: 40px;
}

main .sign-up-button {
  width: auto;
  padding: 10px 32px;
  display: inline-flex;
  justify-content: center;
  transition: padding 0.3s;
}

main .sign-up-button:hover {
  padding: 10px 64px;
}

aside img {
  max-width: 800px;
  min-width: 200px;
}

.hero p, .ride-section p, .plan-section p, .stats-section p {
  line-height: 28px;
}

.hero {
  padding: 112px min(6vw, 80px) 80px min(6vw, 80px);
  margin-top: 60px;
}

.hero article {
  width: 40vw;
  max-width: 800px;
}

.hero p {
  margin: 0 0 36px 0;
  font-size: 24px;
}

.plan-section img, .ride-section img {
  width: 200px;
}

.plan-section, .ride-section, .stats-section {
  background-color: var(--landing-page-secondary-background);
}

.plan-section aside, .stats-section aside {
  justify-content: end;
}

.plan-section img:last-child {
  margin: 64px 0 0 16px;
}

.ride-section {
  padding: 20px !important;
}

.ride-section h2 {
  font-size: 5vw;
}

.ride-section article {
  margin: 16px 0 0 80px;
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.inner-ride-section {
  border-radius: 50px;
  background-color: var(--landing-page-tertiary-background);
  color: var(--reverse-text);
  margin: 40px 0;
  padding: 40px min(10vw, 100px) 40px min(10vw, 100px);
}

.ride-section h2 {
  margin-bottom: 20px;
}

.ride-section .sign-up-button {
  background-color: var(--secondary-sign-in-button);
  margin-top: 28px !important;
}

.stats-section {
  align-items: start;
  padding-bottom: 60px;
}

.stats-section h2 {
  margin-top: 4px;
}

.stats-section img:last-child {
  display: none;
}

.faq-section {
  flex-direction: column;
  text-align: center;
}

.faq-section p {
  margin-bottom: 48px;
}

.faq-section h2 {
  margin-bottom: 0;
  background-color: var(--landing-page-primary-background);
  padding: 16px 0;
}

.main-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 40px auto;
}

.main-faq article {
  background-color: var(--landing-page-secondary-background);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  padding: 12px 40px;
}
 
.upper-faq {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.main-faq p {
  text-align: left;
}

.main-faq img {
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s;
  margin-left: 16px;
}

.icon-rotated {
  transform: rotate(180deg);
}

.faq-page {
  padding: 100px 0;
  background-color: var(--landing-page-primary-background);
  align-items: center;
  text-align: center;
}

.contact-paragraph {
  margin-top: 60px;
  margin: 60px 40px;
}

footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero, .inner-ride-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 60px;
  }

  .hero {
    padding-top: 32px;
  }

  .inner-ride-section {
    width: 100%;
  }

  .hero h1 {
    font-size: max(6vw, 30px);
    order: 1;
  }

  h2 {
    font-size: 24px;
  }

  .hero img, .ride-section img {
    order: 2;
    width: calc(100vw - 120px);
    max-width: 400px;
    margin-bottom: 40px;
  }

  .hero p, .ride-section p {
    order: 3;
  }

  .hero article, .ride-section article, .hero aside, .ride-section aside {
    display: contents;
    justify-content: center;
    align-items: center;
  }

  .hero h1, .ride-section h2, .ride-section p, .hero p {
    text-align: center;
    max-width: none;
    max-width: 500px;
  }

  .faq-page h1 {
    text-align: center;
    max-width: none;
    margin: 0 50px;
  }

  .hero .sign-up-button, .ride-section .sign-up-button {
    width: 100%;
    padding: 10px 0;
    max-width: 400px;
    order: 4;
  }

  .plan-section article {
    width: 60vw;
  }

  .plan-section aside {
    justify-content: end;
  }

  .plan-section img, .ride-section img {
    width: 100px;
    margin: 0;
  }

  .plan-section img:last-child {
    display: none;
  }

  .stats-section img:last-child {
    display: block;
    width: 160px;
  }

  .stats-section img:first-child {
    display: none;
  }

  .faq-section p {
    margin-bottom: 24px;
  }

  .main-faq {
    grid-template-columns: 1fr;
    place-self: center;
    width: calc(100vw - 100px);
    padding: 40px 0;
  }
}

@media (max-width: 496px) {
  h1 {
    font-size: 36px;
  }

  main > section, .inner-ride-section {
    flex-direction: column;
    text-align: center;
    align-items: center !important;
    padding: 60px;
  }

  h2:not(.faq-section h2) {
    font-size: 24px;
    order: 1;
  }

  main img:not(.faq-section img) {
    order: 2;
    width: calc(100vw - 120px);
    max-width: 400px;
    margin-bottom: 40px;
  }

  main p:not(.faq-section p) {
    order: 3;
  }

  main > section article, main > section aside {
    display: contents;
    justify-content: center;
    align-items: center;
  }

  h2:not(.faq-section h2), main p:not(.faq-section p) {
    text-align: center;
    max-width: none;
    max-width: 500px;
  }

  .main-faq {
    width: calc(100vw - 40px);
  }

  main .sign-up-button {
    width: 100%;
    padding: 10px 0;
    max-width: 400px;
    order: 4;
  }

  .inner-ride-section {
    width: auto;
  }

  .stats-section img:last-child {
    display: none;
  }

  .stats-section img:first-child {
    display: block;
    width: 80vw;
  }
}

@media (max-width: 392px) {
  main > section {
    padding: 30px !important;
  }
}