/* Vars */
:root {
  --dark-gray-blue: #494c5f;
  --gray-blue: #6d708d;
  --light-gray-blue: #b3b5c6;
  --very-light-grayish-blue: #f6f6fe;
  --main-color: #696fdd;
  --secondary-color: #a3a8f0;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

/* Basic */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  background-color: var(--very-light-grayish-blue);
  background: url('images/bg-top.svg') no-repeat top right;
}

.container {
  width: 90vw;
  margin: 0 auto;
}

.hide {
  display: none;
}

/* Title */
h1 {
  color: var(--gray-blue);
  text-align: center;
  margin-bottom: 47px;
  margin-top: 70px;
}

/* Pricing */
.pricing {
  color: var(--light-gray-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
}

/* Checkbox */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(163, 168, 240);
  background: linear-gradient(
    90deg,
    var(--secondary-color) 0%,
    var(--main-color) 100%
  );
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background: rgb(163, 168, 240);
  background: linear-gradient(
    90deg,
    var(--secondary-color) 0%,
    var(--main-color) 100%
  );
}

input:focus + .slider {
  box-shadow: 0 0 1px #ccc;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Cards */
.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  width: 350px;
  background-color: #fff;
  margin-bottom: 35px;
  border-radius: 10px;
  color: var(--dark-gray-blue);
  box-shadow: 0px 0px 25px 0px var(--very-light-grayish-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-title {
  text-align: center;
  margin: 40px 0;
}

.card-content {
  width: 270px;
}

.card-content > p {
  text-align: center;
}

.card-content .info {
  height: 55px;
  line-height: 55px;
  border-top: 1px solid var(--light-gray-blue);
}

.last {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--light-gray-blue);
}

.monthly,
.annually {
  font-size: 60px;
  margin-bottom: 40px;
}

.monthly > span,
.annually > span {
  font-size: 30px;
  display: inline-block;
  position: relative;
  top: -10px;
}

.card-button {
  display: inline-block;
  text-align: center;
  line-height: 45px;
  width: 100%;
  height: 45px;
  background: linear-gradient(
    90deg,
    var(--secondary-color) 0%,
    var(--main-color) 100%
  );
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--very-light-grayish-blue);
  border-radius: 10px;
  margin-bottom: 30px;
}

/* Best offer */
article:nth-of-type(2) {
  color: var(--very-light-grayish-blue);
  background: linear-gradient(var(--secondary-color), var(--main-color));
}

article:nth-of-type(2) .card-button {
  background: var(--very-light-grayish-blue);
  color: var(--main-color);
}

/* Responsive */
@media screen and (min-width: 1200px) {
  body {
    background: url('images/bg-top.svg') no-repeat top right,
      url('images/bg-bottom.svg') no-repeat bottom left;
  }
  .container {
    height: 90vh;
  }
  .card-container {
    flex-direction: row;
    justify-content: center;
  }

  article:nth-of-type(1) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  article:nth-of-type(2) {
    z-index: 2;
    height: 550px;
  }

  article:nth-of-type(3) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .card-content {
    margin: auto 0;
  }
}
