:root {
  /*==== colors =====*/
  --primaryViolet: hsl(257, 40%, 49%);
  --primaySoftMagenta: hsl(300, 69%, 71%);

  /*=== headings font ===*/
  --headings: "Poppins", serif;

  /*=== body font ===*/
  --primary: "Open Sans", serif;
}
/*=== basic configuration ===*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.1;
}
img {
  display: block;
  width: 100%;
}

body {
  font-family: var(--primary);
  background-color: var(--primaryViolet);
  background-image: url(./images/bg-mobile.svg);
  background-repeat: no-repeat;
  background-size: contain;
  padding-inline: 2rem;
}

article {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  header {
    margin-bottom: 1.6rem;
    padding-block: 1.8rem;

    img:first-of-type {
      width: 130px;
      margin-bottom: 3.2rem;
    }
    img:last-of-type {
      transform: scale(0.95);
    }
  }
  h1 {
    font-family: var(--headings);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.4;

    color: white;
    padding-inline: 1rem;
    margin-bottom: 1rem;
  }
  p {
    opacity: 0.9;
    color: white;
    font-size: 15px;
    font-weight: 300;
    padding-inline: 0.5rem;
    line-height: 1.5;

    margin-bottom: 1.5rem;
  }

  button {
    outline: none;
    border: none;
    background-color: white;
    padding-block: 0.8rem;
    padding-inline: 5rem;
    border-radius: 2rem;

    font-size: 12px;
    color: var(--primaryViolet);

    margin-bottom: 3.4rem;
  }

  button:hover,
  button:focus {
    background-color: var(--primaySoftMagenta);
    color: white;
    cursor: pointer;
  }
  ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;

    li img {
      cursor: pointer;
    }
    li:first-of-type img {
      width: 35px;
    }
    li:nth-of-type(2) img {
      width: 31px;
    }
    li:last-of-type img {
      width: 30px;
    }
  }
}

@media screen and (min-width: 773px) {
  body {
    background-image: url(./images/bg-desktop.svg);
    background-size: cover;
    padding-inline: 3.5rem;
  }
}
@media screen and (min-width: 1440px) {
  body {
    background-image: url(./images/bg-desktop.svg);
    background-size: cover;
    padding-inline: 3.5rem;
  }

  article {
    max-width: 1500px;
    flex-direction: row;
    gap: 1.5rem;
    header {
      padding-block: 3.3rem;

      img:first-of-type {
        width: 220px;
        margin-bottom: 4.5rem;
      }
      img:last-of-type {
        width: 740px;
        height: 534px;
      }
    }

    div {
      flex: 1;
      padding-inline-end: 2rem;
      display: flex;
      flex-direction: column;
      align-items: start;

      padding-top: 5.25rem;
    }
    h1 {
      font-size: 2.5rem;
      font-weight: 500;
      line-height: 1.5;
      text-align: start;
      padding-inline: 0rem;
      margin-bottom: 1.35rem;
    }
    p {
      font-size: 18px;
      padding-inline: 0rem;
      text-align: start;
    }

    button {
      padding-block: 1.1rem;
      padding-inline: 5rem;
      font-size: 18px;
    }
    ul {
      position: relative;
      top: 125px;
      align-self: flex-end;
      justify-self: end;
      gap: 1rem;

      li:first-of-type img {
        width: 48px;
      }
      li:nth-of-type(2) img {
        width: 40px;
      }
      li:last-of-type img {
        width: 40px;
      }
    }
  }
}
