* {
  box-sizing: border-box;
}

/********** Fonts **********/

* {
  font-family: "red hat display", sans-serif;
}

h1 {
  font-size: 58px;
  line-height: 110%;
  font-weight: 900;
  margin-bottom: 24px;
}

h2 {
  font-size: 40px;
  margin: 0;
  font-weight: 900;
}

.buttons a {
  font-weight: 700;
}

.text {
  font-size: 18px;
  color: #87879d;
}

.uppercase {
  letter-spacing: 4px;
  font-weight: 700;
  color: #4d96a9;
}

/********** Landing Page **********/

body {
  overflow-x: hidden;
}

.logo-container {
  margin: 2rem auto;
  width: fit-content;
  /* border: 2px solid cyan; */
}

header {
  position: relative;
  /* border: 2px solid cyan; */
  width: fit-content;
  margin: 0 auto;
}

img {
  width: 100%;
}

.img-left-desktop {
  position: absolute;
  left: -36vw;
}

.img-right-desktop {
  position: absolute;
  right: -36vw;
  top: 20px;
}

.header-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  max-width: 450px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.buttons a {
  text-decoration: none;
  color: white;
  padding: 16px 32px;
  border-radius: 28px;
}

.buttons a:nth-child(1) {
  background-color: #4d96a9;
}

.buttons a:nth-child(2) {
  background-color: #855fb1;
}

.four-photos-container {
  width: 90%;
  margin: 180px auto 20px auto;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.four-photos-container img {
  width: 256px;
  height: 256px;
}

.smarter {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
}

.smarter h2 {
  margin-top: 12px;
}

.smarter p:nth-of-type(2) {
  margin-top: 32px;
}

footer {
  min-height: 312px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/********** Background Image and Overlay **********/

footer {
  background-image: url(assets/desktop/image-footer.jpg);
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(77, 150, 168, 0.9);
  z-index: 0;
}

.footer-text {
  display: flex;
  justify-content: space-between;
  align-content: center;
  flex-wrap: wrap;
  padding: 40px 60px;
  z-index: 1;
  width: 90%;
  /* border: 2px solid cyan; */
}

.footer-text h2,
p {
  margin: 12px 0;
}

.footer-text h2 {
  max-width: 445px;
}

.footer-text p {
  max-width: 355px;
}

.footer-text a {
  align-self: start;
  margin-top: 16px;
  font-weight: 700;
}

.btn-download-purple {
  text-decoration: none;
  color: white;
  background-color: #855fb1;
  padding: 16px 32px;
  border-radius: 28px;
}

@media (max-width: 1100px) {
  .img-right-desktop {
    display: none;
  }

  .img-left-desktop {
    content: url(assets/tablet/image-hero.png);
    position: relative;
    left: auto;
    width: 100%;
    transform: scale(1.1);
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-text {
    margin-top: 32px;
  }

  h1 {
    font-size: 48px;
  }

  .four-photos-container {
    gap: 12px;
  }

  .four-photos-container img {
    width: 152px;
    height: 160px;
  }

  .footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-text a {
    align-self: center;
    margin-top: 16px;
  }

  .footer-text h2 {
    font-size: 30px;
  }

  .footer-text p {
    max-width: 500px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 38px;
  }

  .text {
    font-size: 16px;
  }

  .buttons {
    display: flex;
    flex-direction: column;
  }

  .four-photos-container img {
    width: 147px;
    height: 144px;
  }
}
