#homepage p {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  margin: 0;
}

#homepage h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: -0.02em;
}

.fold {
  padding: 36px 50px;
}

a.item_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: #D74344;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.25);
  margin: 8px auto;
  border: 1px solid #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.05em;
  width: max-content;
}

/* avoid horizontal scrollbar */
body {
  overflow-x: hidden;
  text-align: center;
}

/* change background for specific articles */
#plans {
  background-color: #F2F2F2;
}

/* all articles inside the #homepage main element should fill 100% vw */
#homepage article {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

#homepage article>* {
  max-width: 960px;
  margin: 0 auto;
}

/* splash article */
#splash {
  position: relative;
  text-align: center;
  background: url('../img/Homepage_v2.jpg');
  background-size: cover;
  background-position: right;
  box-shadow: inset 0 0 0 100vw rgba(0, 0, 0, 0.4);
  vertical-align: middle;
  width: 100vw;
  padding: 72px 0;
}

.title {
  color: white;
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.02em;
  margin: 1rem auto;
}

/* what we delivery article */
#wwd-diagram {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

#wwd-diagram .section-subtitle {
  line-height: 140%;
  margin-top: 1.2rem;
}

#wwd-diagram .row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wwd-diagram .card {
  margin: 1.2rem 0 0;
  padding: 30px 15px;
  width: 275px;
  max-width: 100vw;
  height: 200px;
  box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

#wwd-diagram img {
  width: 76px;
  height: 57px;
  object-fit: contain;
}

#wwd-diagram h4 {
  font-size: 18px;
  line-height: 21px;
  font-weight: 700;
  margin: 0.5rem 0;
}

#wwd-diagram a {
  margin-top: 2.4rem;
}

/* hiw-diagram article */
.hiw-step>div {
  text-align: left;
}

#hiw-diagram .desktop-only {
  display: none;
}

#hiw-diagram .hiw-step>div>p {
  line-height: 140%;
}

#hiw-diagram .hiw-step {
  max-width: 500px;
}

#hiw-diagram .card {
  margin: 2px 0;
  text-align: left;
  padding-bottom: 2rem;
}

#hiw-diagram img {
  width: 100%;
  border-radius: 16px;
  margin: 3rem 0;
}

#hiw-diagram h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

#learn-more {
  color: #D74344;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  line-height: normal;
  margin-top: 0.8rem;
}

#learn-more p {
  text-decoration: underline;
  font-weight: 700;
}

#hiw-diagram .try-it {
  font-size: 20px;
  margin: 3rem auto 0.5rem;
}

/* reviews article */
.desktop-only {
  display: none;
}

#customers-reviews img {
  width: 100%;
}

#customers-reviews .rating {
  color: orange;
  margin: 0 8px 0 5px;
}

#customers-reviews #instagram-reviews {
  margin-top: 2rem;
}

#customers-reviews a {
  margin-top: 1.2rem;
}

/* in-the-box article */
#in-the-box {
  padding: 0;
}

/* #in-the-box h3 should have the same padding-top as .fold */
#in-the-box h3 {
  position: absolute;
  padding-top: 36px;
  left: 0;
  right: 0;
  margin: auto
}

#in-the-box img {
  width: 100vw;
}

/* Tablet adjustments */
@media (min-width: 768px) {
  #splash {
    padding: 120px 32px;
  }

  .fold {
    padding: 54px 50px;
  }

  .title {
    font-size: 48px;
    line-height: 125%;
    max-width: 786px;
    align-self: center;
  }

  #homepage h3 {
    font-size: 36px;
    line-height: 133%;
  }

  #wwd-diagram h4 {
    font-size: 18px;
    line-height: 21px;
    margin: 1rem 0;
  }

  #wwd-diagram .section-subtitle {
    margin: 1.2rem auto;
    max-width: 736px;
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 2.4rem;
  }

  #wwd-diagram .row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  #wwd-diagram p {
    font-size: 14px;
    line-height: 16px;
  }

  #wwd-diagram .card {
    margin: 1.2rem;
    height: 250px;
    padding: 38px;
  }

  #wwd-diagram .card:first-child>h4 {
    width: max-content;
    margin-left: -22.5px;
  }

  #hiw-diagram p {
    font-size: 20px;
    line-height: 160%;
  }

  #hiw-diagram .hiw-step>div>p {
    line-height: 160%;
  }

  #hiw-diagram h4 {
    font-size: 24px;
  }

  #hiw-diagram .try-it {
    font-size: 36px;
  }

  #customers-reviews a {
    margin-top: 1.8rem;
  }

  /* #in-the-box h3 should have the same padding-top as .fold */
  #in-the-box h3 {
    padding-top: 54px;
  }
}

/* Laptop adjustments */
@media (min-width: 900px) {
  .fold {
    padding: 72px 50px;
  }

  #wwd-diagram .card {
    flex: 1
  }

  #hiw-diagram .hiw-step {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
    margin: 72px 0 0;
  }

  #hiw-diagram .hiw-step:nth-child(odd) {
    flex-direction: row-reverse;
  }

  #hiw-diagram img {
    margin: 0 52.5px;
    width: 40%;
    max-width: 500px;
  }

  .hiw-step>div {
    margin: 0 52.5px;
    width: 40%;
    max-width: 500px;
  }

  #hiw-diagram .desktop-only {
    display: flex;
    margin-top: 1.2rem;
    margin-left: 0;
  }

  #hiw-diagram .mobile-only {
    display: none;
  }

  #hiw-diagram .try-it {
    margin-top: 72px;
  }

  #customers-reviews .desktop-only {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
  }

  #customers-reviews .desktop-only .section-subtitle {
    font-size: 16px;
    line-height: 150%;
  }

  #customers-reviews .desktop-only .card {
    margin: 58px 0;
    border-radius: 16px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
  }

  #customers-reviews .desktop-only img {
    padding: 20px 30px 35px;
  }

  /* #in-the-box h3 should have the same padding-top as .fold */
  #in-the-box h3 {
    padding-top: 72px;
  }
}