/** Variables **/
:root {
  --pink: hsl(322, 100%, 66%);
  --pale-cyan: hsl(193, 100%, 96%);
  --dark-cyan: hsl(192, 100%, 9%);
  --gray-blue: hsl(208, 11%, 55%);
  --headings: "Poppins";
  --cta: "Open Sans";
}

body {
  margin: 0;
  padding: 0;
  max-width: 1920px;
  font-family: var(--headings);
}

header {
  background-color: var(--pale-cyan);
  background-image: url(images/bg-hero-mobile.svg);
  background-repeat: no-repeat;
  background-size: auto;
  height: 900px;
}

img.logo-top {
  width: 100%;
  max-width: 150px;
  margin: 30px;
}

a.cta-top {
  padding: 10px 40px 10px 40px;
  background-color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  color: black;
  margin-left: 20px;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
  transition: 0.5s;
  float: right;
  margin-right: 40px;
  margin-top: 20px;
}

a.cta-top:hover {
  opacity: 0.5;
}

img.first-illustration {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: auto;
}

img.illustrations {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: auto;
  padding-top: 20px;
}

h1 {
  text-align: center;
  margin-left: 30px;
  margin-right: 30px;
  font-weight: 600;
  font-size: 34px;
}

p.intro {
  text-align: center;
  line-height: 1.7;
  margin-left: 30px;
  margin-right: 30px;
}

button[type="submit"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  margin-bottom: 50px;
  padding: 15px 80px 15px 80px;
  border-radius: 30px;
  border: transparent;
  background-color: var(--pink);
  color: white;
  font-family: var(--cta);
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: 0.5s;
}

button[type="submit"]:hover {
  background-color: hsla(322, 100%, 66%, 0.5);
}

.container {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 80px;
  margin-bottom: 200px;
}

section.item {
  width: 400px;
  height: 600px;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

h2 {
  text-align: center;
  font-weight: 600;
  font-size: 25px;
  padding-top: 30px;
}

p.item-text {
  color: var(--gray-blue);
  text-align: center;
  padding: 30px;
  line-height: 1.7;
}

.ready {
  width: 450px;
  height: 220px;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  margin: auto;
  background-color: white;
  color: black;
  position: relative;
  top: -120px;
  right: 25px;
}

img.logo-bottom {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(334deg)
    brightness(102%) contrast(102%);
  width: 100%;
  max-width: 200px;
  margin-top: 30px;
  margin-bottom: 40px;
}

footer {
  background-color: var(--dark-cyan);
  color: white;
  padding-left: 40px;
}

img.icon {
  margin-right: 30px;
}

p.links {
  line-height: 3;
  font-size: 18px;
}

p.copyright {
  font-size: 10px;
  text-align: center;
}

p.attribution {
  padding-top: 20px;
  padding-bottom: 20px;
}

@media only screen and (min-width: 1400px) {
  header {
    background-image: url(images/bg-hero-desktop.svg);
    background-size: cover;
  }
  a.cta-top {
    float: right;
    margin-right: 40px;
    margin-top: 20px;
  }
  .header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 90px;
  }
  .heading-info {
    width: 500px;
    margin-top: 110px;
  }
  img.first-illustration {
    max-width: 800px;
  }
  h1 {
    text-align: left;
  }
  p.intro {
    text-align: left;
  }
  button[type="submit"] {
    margin-left: 30px;
    margin-right: 0;
  }
  section.container {
    margin-bottom: 200px;
  }
  section.item {
    width: 950px;
    height: 300px;
    gap: 20px;
  }
  section.item-right {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
  }
  section.item-left {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
  }
  .text-left {
    width: 500px;
    height: 300px;
  }
  h2 {
    text-align: left;
  }
  p.item-text {
    text-align: left;
    padding-left: 0;
  }
  .ready {
    width: 700px;
    top: -140px;
    background-color: white;
  }
  h2.ready-header {
    text-align: center;
    color: black;
  }
  button[type="submit"].ready-btn {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-bottom: 50px;
  }
  img.logo-bottom {
    margin-left: 270px;
  }
  .copyright {
    float: right;
    margin-right: 50px;
  }
}
