body {
  font-family: "Public Sans";
  font-size: 18px;
  margin: 0;
  font-size: 18px;
  overflow-x: hidden;
}

p {
  color: #2d314d;
  opacity: 0.7;
  font-weight: 300;
  font-size: 0.8em;
}

header {
  background-color: white;
  z-index: 5;
  position: relative;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  color: #2d314d;
}

button {
  display: flex;
  justify-content: center;
  border: none;
  border-radius: 20px;
  height: 40px;
  width: 140px;
  color: white;
  text-align: center;
  align-items: center;
  cursor: pointer;
  font-weight: 400;
  background: linear-gradient(90deg, #31d35c, #2bb7da);
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

footer {
  background-color: #2d314d;
}

.nav {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 1;
  z-index: 5;
}
.nav__img {
  display: flex;
  justify-content: flex-start;
  width: 150px;
  margin: auto;
}
.nav__links {
  display: flex;
  justify-content: center;
}
.nav__links li {
  display: inline;
  color: #9698a6;
  font-size: 0.8em;
  margin: 0.2em;
  padding: 0.2em;
}
.nav__links li:hover {
  border-bottom: 3px solid #31d35c;
  cursor: pointer;
}
.nav__button {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav__hamburger {
  display: none;
}
.nav__menu {
  display: none;
}
.nav .menu {
  display: none;
}

.landing {
  background-color: #fafafa;
  position: relative;
}
.landing__container {
  display: grid;
  height: 600px;
  grid-template-columns: 1fr 1fr;
}
.landing__text {
  text-align: left;
  max-width: 350px;
  color: #2d314d;
  margin: auto;
}
.landing__text h1 {
  font-weight: 400;
  font-size: 2.5em;
}
.landing__text p {
  font-weight: 300;
  font-size: 0.9em;
}
.landing__img {
  z-index: 1;
  position: absolute;
  background-image: url("images/bg-intro-desktop.svg");
  background-position-y: -250px;
  background-position-x: 0px;
  background-size: cover;
  background-repeat: no-repeat;
  width: 780px;
  right: 0;
  top: 0;
}
.landing__img img {
  position: relative;
  right: -120px;
  top: -100px;
}

.features {
  padding: 50px 0;
  background-color: #f3f4f6;
  display: flex;
  justify-content: left;
  z-index: 1;
}
.features__text {
  margin: 2.2em 0;
  width: 50%;
}
.features__text h2 {
  font-size: 2.1em;
}
.features__articles {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.articles {
  padding: 60px 0;
  background-color: #fafafa;
}
.articles h2 {
  font-size: 2.2em;
  align-self: start;
  margin-top: 0;
}
.articles__container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 20px;
}
.articles__container .article img {
  width: 100%;
  height: 158px;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
}
.articles__container .article .article__text {
  display: grid;
  grid-template-columns: 1fr;
  background-color: white;
  padding: 20px;
}
.articles__container .article .article__text small {
  font-size: 0.55em;
}
.articles__container .article .article__text p {
  margin: 5px;
  font-size: 0.7em;
}
.articles__container .article .article__text h4 {
  margin: 5px;
  font-size: 0.9em;
}
.articles__container .article .article__text h4:hover {
  color: #31d35c;
  cursor: pointer;
  opacity: 0.9;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  color: #fafafa;
}
.footer__links ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
}
.footer__links ul li {
  font-size: 0.8em;
  padding: 5px;
}
.footer__links ul li:hover {
  color: #31d35c;
  cursor: pointer;
}
.footer__button {
  display: grid;
  justify-content: flex-end;
  align-items: center;
  grid-row-gap: 20px;
  padding: 30px 0;
}
.footer__button button {
  right: 0;
  opacity: 1;
}
.footer__button small {
  font-size: 0.6em;
}

.social {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}
.social__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.social__icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.social__icons svg {
  margin: 10px;
  fill: white;
  cursor: pointer;
}
.social__icons path:hover {
  fill: #31d35c;
}

@media (max-width: 1024px) {
  body {
    text-align: center;
  }

  .container {
    max-width: 750px;
    margin: auto;
  }

  .landing__container {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 300px 300px;
    height: 900px;
    padding: 0 0 30px;
  }
  .landing__text {
    grid-area: 3;
  }
  .landing__text button {
    margin: auto;
  }
  .landing__img {
    top: -200px;
    width: 100%;
  }

  .features__text {
    width: 500px;
    margin: 50px auto;
  }
  .features__articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .articles__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .article__text {
    text-align: left;
  }
  .article img {
    height: 213px;
  }

  .footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .footer__button {
    justify-content: center;
  }
  .footer .social {
    justify-content: center;
    padding: 30px 0;
  }
  .footer .social__logo, .footer .social__icons {
    justify-content: center;
  }
  .footer__links {
    margin: auto;
    grid-area: span 2;
  }
  .footer__links ul {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    grid-gap: 10px;
  }
}
@media (max-width: 640px) {
  body {
    text-align: center;
  }

  .container {
    max-width: 400px;
    margin: auto;
  }

  .nav {
    height: 70px;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 20px;
    position: relative;
  }
  .nav__img {
    display: flex;
    justify-content: flex-start;
    margin: auto 20px;
  }
  .nav__links, .nav__button {
    display: none;
  }
  .nav__hamburger {
    display: flex;
    justify-content: flex-end;
    margin: auto 20px;
  }
  .nav__hamburger img {
    height: 15px;
    cursor: pointer;
  }
  .nav .activeMenu {
    display: flex;
    background: white;
    margin: 0 10vw;
    width: 80vw;
    position: absolute;
    z-index: 4;
    top: 90px;
    justify-content: center;
    border-radius: 10px;
    height: 45vh;
  }
  .nav .activeMenu ul {
    list-style: none;
    padding: 20px 0;
  }
  .nav .activeMenu ul li {
    padding: 10px;
    cursor: pointer;
  }

  .active__container {
    position: absolute;
    top: 70px;
    display: flex;
    background-color: #2d314d;
    opacity: 0.5;
    width: 100vw;
    height: 90vh;
    bottom: 0;
    z-index: 1;
  }

  .features__text {
    width: 100%;
    margin: 50px auto;
  }
  .features__articles {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing__container {
    grid-template-rows: auto;
  }
  .landing__img {
    top: -200px;
    width: 100%;
    background-image: url(images/bg-intro-mobile.svg);
    background-position-y: 0;
  }
  .landing__img img {
    top: 0;
    width: 100%;
    right: 0;
  }
  .landing__text {
    text-align: center;
    grid-gap: 10px;
  }
  .landing__text button {
    margin: auto;
  }

  .articles__container {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article__text {
    text-align: left;
  }
  .article img {
    height: 213px;
    object-fit: cover;
  }

  .footer {
    display: grid;
    grid-template-columns: 1fr;
  }
  .footer__button {
    justify-content: center;
  }
  .footer .social {
    justify-content: center;
    padding: 30px 0;
  }
  .footer .social__logo, .footer .social__icons {
    justify-content: center;
  }
  .footer__links {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .footer__links ul {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    grid-gap: 10px;
  }

  .background__main {
    height: 50vh;
    background-image: url(" images/bg-intro-mobile.svg");
    top: 0;
    position: absolute;
    background-position: -100px;
    background-size: 150%;
    width: 100%;
    left: 0;
  }

  .phone__image {
    display: none;
  }

  .text {
    margin-top: 150px;
    text-align: center;
    width: 350px;
    color: #2d314d;
  }
  .text h1 {
    font-size: 2.5em;
  }
  .text button {
    margin: auto;
  }

  .close {
    display: none;
  }

  .active {
    display: flex;
  }

  .overflow {
    overflow: hidden;
  }
}
@media (max-width: 420px) {
  .container {
    max-width: 320px;
    margin: auto;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.8em;
  }

  .landing__container {
    height: 700px;
  }
  .landing__text {
    max-width: 320px;
  }
  .landing__text p {
    font-size: 0.8em;
  }
  .landing__img {
    top: -100px;
  }
}