@import "snippets/chroma.css";

.pricing-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 1rem clamp(4rem, 10vw, 8rem);
  gap: 3rem;
  background: #000;
}

.pricing-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;

  & .title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 0.05em;
  }
}

.pricing-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1px;
  width: min(100%, 72rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.plan {
  background: #000;
  padding: 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background var(--transition-smooth);

  &:hover {
    background: rgba(255, 255, 255, 0.015);
  }
}

.plan-featured {
  background: rgba(255, 255, 255, 0.025);
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  }

  &:hover {
    background: rgba(255, 255, 255, 0.04);
  }
}

.plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.plan-name {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.plan-price {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.plan-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;

  & a {
    color: rgba(255, 255, 255, 0.65);
    text-underline-offset: 3px;
  }
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;

  & li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
  }
}

.feat-yes {
  color: var(--green);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.feat-no {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.pricing-note {
  width: min(100%, 52ch);
  text-align: center;

  & p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.7;

    & a {
      color: rgba(255, 255, 255, 0.5);
      text-underline-offset: 3px;
    }
  }
}

@media (max-width: 640px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
