@layer components {
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    width: 100%;
  }

  @media (min-width: 768px) {
    .pricing-grid {
      grid-template-columns: repeat(3, 1fr);
      align-items: start;
    }
  }

  .pricing-card {
    background-color: var(--color-white);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .pricing-card:hover {
    box-shadow: 0 10px 15px -3px oklch(0% 0 0 / 0.1), 0 4px 6px -2px oklch(0% 0 0 / 0.05);
  }

  .pricing-card.current-plan-card {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 10%, transparent);
  }

  .current-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
  }

  .pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
  }

  .plan-description {
    font-size: 0.875rem;
    color: var(--text-secondary-light);
    margin-bottom: 1.5rem;
  }

  .price-container {
    margin-bottom: 1.5rem;
    margin-top: auto;
  }

  .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: baseline;
  }

  .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary-light);
    margin-left: 0.25rem;
  }
}
