@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {
  --pry-clr: #0c4651;
  --sec-clr: #c6ff2a;

  /* BLACKS */
  --pry-dark: #061215;
  --pry-dark-sub: #1d1f21;
  --pry-light: #f3f3f3;
  --pry-light-sub: #f8f8f8;

  --text-clr-light: #fff;
  --text-clr-emph: #ccc;
  --text-clr-dark: #000;
  --text-clr-muted: #444;

  --card-bg-light: #ffffff;
  --card-bg-dark: #0c0c0c;
}
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,html {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background: linear-gradient(300deg, #fafad2, var(--pry-light), #fafad2);
  line-height: 1.6;
  color: var(--text-clr-dark);
}
.main-inner {
  min-height: 100vh;
}
section.pricing {
  padding: 0 clamp(0.5rem, -1.392rem + 10.81vw, 2.5rem) clamp(0.8rem, -1.281rem + 11.89vw, 3rem);
}
.pricing-inner {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, -0.892rem + 10.81vw, 3rem);
}
header.pricing__header {
  text-align: center;
}
header.pricing__header h1 {
  font-size: clamp(1.3rem, 0.638rem + 3.78vw, 2rem);
  border-bottom: 1px solid lightgray;
}
header.pricing__header p {
  font-size: clamp(0.8rem, 0.611rem + 1.08vw, 1rem);
  font-weight: 500;
}
.cards__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(0.5rem, 0.027rem + 2.7vw, 1rem);
}
.card {
  border: 1px solid;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(0.5rem, 0.027rem + 2.7vw, 1rem);
  padding: clamp(0.3rem, -0.362rem + 3.78vw, 1rem);
  border-radius: 0.8rem;
  transition: transform 300ms ease;
}
.card:hover:not(.pro--card) {
  transform: translateY(-5px);
}
.light--card {
  border-color: var(--pry-clr);
  background: var(--card-bg-light);
  color: var(--text-clr-dark);
}
.dark--card {
  border-color: var(--sec-clr);
  background: var(--pry-dark-sub);
  color: var(--text-clr-light);
}
.top--light,
.bottom--light .fc-wrapper .card__features {
  background-color: #eee;
  padding: 0.3rem;
  border-radius: 0.5rem;
  border: 1px solid lightgrey;
}
.top--dark,
.bottom--dark .fc-wrapper .card__features {
  background-color: #111;
  padding: 0.3rem;
  border-radius: 0.5rem;
  border: 1px solid darkgrey;
}
.top,
.bottom {
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, -0.446rem + 5.41vw, 1.5rem);
}
.bottom--spacing {
  justify-content: space-between;
}
.top .card__icon {
  padding-top: 0.3rem;
}
.pro--card .top .card__icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__icon i,
.popular i {
  font-size: clamp(0.7rem, 0.416rem + 1.62vw, 1rem);
  background-color: var(--sec-clr);
  padding: 0.3rem;
  color: var(--text-clr-dark);
  border: 1px solid darkgray;
  border-radius: 50%;
}
.popular {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 0.105rem + 0.54vw, 0.3rem);
}
.popular span {
  font-size: clamp(0.65rem, 0.508rem + 0.81vw, 0.8rem);
}
.text-wrapper .card__title h2,
.top--dark .text-wrapper .card__title h2 {
  font-size: clamp(1.15rem, 0.819rem + 1.89vw, 1.5rem);
  font-weight: 600;
}
.text-wrapper .card__desc p,
.top--dark .text-wrapper .card__desc p {
  font-size: clamp(0.75rem, 0.608rem + 0.81vw, 0.9rem);
  font-weight: 450;
}

.card__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  position: relative;
}
.card__price::after {
  position: absolute;
  content: '';
  width: 20%;
  margin: 0 auto;
  height: clamp(0.125rem, 0.066rem + 0.34vw, 0.188rem);
  background-color: var(--sec-clr);
  left: 0;
  right: 0;
  bottom: 0.1rem;
  border-radius: 100px;
  transition: width 400ms ease-out 200ms;
}
.card:hover .card__price::after {
  width: 100%;
}
.price-main p {
  font-size: clamp(2rem, 1.527rem + 2.7vw, 2.5rem);
  font-weight: 400;
}
.bottom--dark .price-main p {
  color: var(--sec-clr);
}
.price-sub {
  display: flex;
  flex-direction: column;
  font-size: clamp(0.6rem, 0.505rem + 0.54vw, 0.7rem);
}
.price-sub span {
  color: var(--text-clr-muted);
}
.bottom--dark .price-sub span {
  color: var(--text-clr-emph);
}

.fc-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.027rem + 2.7vw, 1rem);
}
.fc-wrapper .card__features ul {
  display: flex;
  flex-direction: column;
  gap: clamp(0.1rem, 0.005rem + 0.54vw, 0.2rem);
  list-style: none;
}
.fc-wrapper .card__features ul li {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 0.022rem + 2.16vw, 0.8rem);
}
.bottom--light .feature-icon i {
  color: var(--pry-clr);
}
.bottom--dark .feature-icon i {
  color: var(--sec-clr);
}
.feature-text {
  font-size: clamp(0.7rem, 0.605rem + 0.54vw, 0.8rem);
}

button.cta-btn {
  padding: clamp(0.3rem, 0.111rem + 1.08vw, 0.5rem) 0;
  width: 100%;
  display: inline-block;
  background-color: var(--sec-clr);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: filter 200ms ease, transform 300ms ease;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.cta-btn:focus-visible {
  outline: 2px solid var(--pry-clr);
  outline-offset: 2px;
}
.cta-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}
.cta-btn:active {
  transform: translateY(1px);
}


@media screen and (min-width: 577px) and (max-width: 1200px) {
  .cards__wrapper {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .card {
    gap: 1rem;
    padding: 1rem;
  }
}


@media screen and (min-width: 1200px) {
  .cards__wrapper {
    grid-template-columns: repeat(auto-fit, minmax(355px, 1fr));
  }
}

@media screen and (min-width: 1162px) {
  .pro--card {
    transform: scale(1.05);
  }
}