*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Red Hat Display", sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f2f2f2;
  background-image: url("./images/pattern-background-mobile.svg");
  background-repeat: no-repeat;
  background-size: 100%;
}

img {
  max-width: 100%;
}

.hero--image {
  border-radius: 32px 32px 0 0;
}

.container {
  background-color: white;
  width: 90%;
  border-radius: 32px;
  text-align: center;
  max-width: 450px;
}

.content {
  padding: 1em 0;
  width: 85%;
  margin: 0 auto;
}

.title {
  font-size: 1.375rem;
  font-weight: 900;
  color: #1f2e55;
}

.description {
  font-size: 0.9375rem;
  color: #717fa6;
  line-height: 1.625em;
  max-width: 300px;
  margin: 0 auto;
}

.plan {
  display: flex;
  align-items: center;
  background: #f7f9ff;
  padding: 1em 1em;
  border-radius: 16px;
  margin: 1.375em 0;
}

.plan img {
  margin-right: 1.125em;
}

.plan-name {
  font-weight: 900;
  font-size: 0.875rem;
  color: #1f2e55;
}

.plan-price {
  color: #717fa6;
  font-size: 0.875rem;
}

.change-link {
  color: #382ae1;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-left: auto;
}

.button {
  font-size: 0.9375rem;
  font-weight: 900;
  display: block;
  text-decoration: none;
  margin-top: 1em;
  padding: 1em 0;
  border-radius: 12px;
}

.button--primary {
  color: white;
  background-color: #382ae1;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px,
    rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

.button--primary:hover {
  background-color: #766cf1;
}

.button--secondary {
  color: #717fa6;
}

.attribution {
  font-size: 11px;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 350px) {
  body {
    background-image: url("./images/pattern-background-desktop.svg");
    background-repeat: no-repeat;
  }

  .content {
    width: 80%;
  }

  .title {
    font-size: 1.75rem;
  }

  .description {
    font-size: 1rem;
  }

  .plan-name,
  .plan-price {
    font-size: 1rem;
  }

  .change-link {
    font-size: 0.875;
  }
}
