* {
  padding: 0;
  margin: 0;
  outline: none;
  border: none;
  box-sizing: border-box;
  font-weight: 700;
  font-family: "Montserrat";
  font-size: 15px;
}

body {
  text-align: center;
  background-color: #f7f7fe;
}

main {
  width: 90%;
  margin: 0 auto;
  padding: 4em 0;
}

.bg-top {
  position: absolute;
  z-index: -1;
  top: -50px;
  right: -150px;
}
.bg-bottom {
  display: none;
}

button {
  width: 100%;
  text-transform: uppercase;
  padding: 1.125em 0;
  border-radius: 8px;
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  font-size: 13px;
  letter-spacing: 0.25em;
  cursor: pointer;
}

h1 {
  font-size: 72px;
  color: #4a4d60;
  margin: 0.25em 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
h1 span {
  font-size: 40px;
}

h2 {
  font-size: 32px;
  color: #6e728e;
  margin-bottom: 1em;
}

header {
  margin-bottom: 5em;
}

.toggle--container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75em;
}

.toggle--container span {
  color: #6e728e;
  opacity: 0.5;
}

#price-toggle {
  height: 0;
  width: 0;
  display: none;
}

label {
  cursor: pointer;
  display: inline-block;
  position: relative;
  text-indent: -9999px;
  width: 56px;
  height: 32px;
  background: linear-gradient(#a2a7f0, #696edd);
  border-radius: 50px;
}

label:hover {
  opacity: 0.5;
}

label:after {
  content: "";
  position: absolute;
  background: white;
  width: 24px;
  height: 24px;
  top: 4px;
  right: 4px;
  border-radius: 30px;
  transition: 0.3s;
}

label:active:after {
  width: 30px;
}

input:checked + label:after {
  right: calc(100% - 4px);
  transform: translateX(100%);
}

.card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(212, 210, 244, 0.5);
  margin: 0 auto;
  margin-bottom: 2em;
  padding: 2em 2em;
  max-width: 330px;
}

.card__title {
  font-size: 18px;
  color: #6e728e;
}

.card__details p {
  color: #6e728e;
  padding: 1.125em 0;
  border-bottom: solid 1px color-mix(in srgb, #979797 25%, white);
}

.card__details p:first-child {
  border-top: solid 1px color-mix(in srgb, #979797 25%, white);
}

button.primary {
  background: linear-gradient(#a2a7f0, #696edd);
  color: white;
}
button.primary:hover {
  background: transparent;
  color: #6d72de;
  border: inset 1px #6d72de;
  margin-top: calc(2.5em - 1px);
  margin-bottom: calc(0.5em - 1px);
}

.card.accent {
  background: linear-gradient(#a2a7f0, #696edd);
}

.card.accent .card__title,
.card.accent h1,
.card.accent .card__details p {
  color: white;
}

.card.accent .card__details p {
  border-bottom: solid 1px color-mix(in srgb, white 25%, transparent);
}
.card.accent .card__details p:first-child {
  border-top: solid 1px color-mix(in srgb, white 25%, transparent);
}

button.accent {
  background-color: white;
  color: #6d72de;
}
button.accent:hover {
  background: transparent;
  color: white;
  border: solid 1px white;
  margin-top: calc(2.5em - 1px);
  margin-bottom: calc(0.5em - 1px);
}

@media (min-width: 1000px) {
  .bg-bottom {
    display: block;
    z-index: -1;
    position: absolute;
    bottom: 0;
    left: 0;
  }

  content {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card {
    height: 100%;
    width: 100%;
    margin: 0;
  }

  .card.accent {
    padding: 3.5em 2.25em;
    max-width: 350px;
  }
}
