@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Karla:wght@400;700&family=Kumbh+Sans:wght@400;700&family=Lexend+Deca&family=Manrope:wght@600;800&family=Montserrat:ital,wght@1,700&family=Open+Sans&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  min-height: 100vh;
  background-color: hsl(240, 78%, 98%);
  background-image: url("./images/bg-top.svg"), url("./images/bg-bottom.svg");
  background-position: right top, left bottom;
  background-repeat: no-repeat;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.wrapper {
  padding: 60px 20px;
  list-style-type: inside;
  justify-content: center;
  text-align: center;
}

.title {
  font-size: 32px;
  color: hsl(233, 13%, 49%);
}

.switch input {
  opacity: 0;
}

.switch {
  display: inline-block;
  width: 60px;
  height: 32px;
  position: relative;
  cursor: pointer;
}

.slider {
  position: absolute;
  background: linear-gradient(180deg, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 35px;
}

.slider:hover {
  background: hsl(236, 72%, 79%);
}

.slider::before {
  content: "";
  position: absolute;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background-color: #fff;
  bottom: 4px;
  left: 4px;
  transition: all 0.4s ease-in-out;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

.pricing {
  color: hsl(234, 14%, 74%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.pricing label {
  margin: 0 20px;
}

.pricing-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.pricing-box {
  background: #fff;
  padding: 50px 40px;
  border-radius: 12px;
  align-self: center;
}

.box-title {
  color: hsl(233, 13%, 49%);
  font-size: 18px;
  margin-bottom: 30px;
}

.price-annually,
.price-monthly {
  display: flex;
  font-size: 32px;
  align-items: center;
  justify-content: center;
  color: hsl(232, 13%, 33%);
}

.price-monthly {
  display: none;
}

.price {
  font-size: 65px;
  padding-left: 7px;
}

ul {
  list-style: none;
  padding: 35px 0;
}

ul li {
  color: hsl(233, 13%, 49%);
  border-bottom: 1px solid hsl(234, 14%, 74%);
  padding: 18px 0;
}

ul li:first-child {
  border-top: 1px solid hsl(234, 14%, 74%);
}

a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(180deg, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
  width: 100%;
  padding: 16px 0;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
}

a:hover {
  color: hsl(237, 63%, 64%);
  background: transparent;
  border-color: hsl(237, 63%, 64%);
}

.pricing-box.featured {
  /* no spacing above b/c otherwise it will be percieved as a child element which it is not */
  background: linear-gradient(180deg, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
  padding: 80px 40px;
  transform: scaleX(1.05);
}

.pricing-box.featured p {
  color: #fff;
}

.pricing-box.featured ul li {
  color: #fff;
}

.pricing-box.featured a {
  background: #fff;
  color: hsl(237, 63%, 64%);
}

.pricing-box.featured a:hover {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

@media only screen and (max-width: 1024px) {
  body {
    font-size: 14px;
  }

  .price {
    font-size: 50px;
  }

  .pricing-box {
    padding: 40px 30px;
  }

  .pricing-box.featured {
    padding: 70px 30px;
  }
}

@media only screen and (max-width: 820px) {
  .pricing-main {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .price {
    font-size: 50px;
  }

  .pricing-box {
    padding: 40px 30px;
  }

  .pricing-box.featured {
    transform: scaleX(1);
    padding: 50px;
  }
}
