.plans-preview {
  background-color: #f8fafc;
}

.plans-preview__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.plans-preview__tab {
  padding: 0.5rem 1.125rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: #475569;
  background-color: #fff;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.plans-preview__tab:hover {
  border-color: #cbd5e1;
  color: #1e293b;
}

.plans-preview__tab[aria-selected='true'] {
  border-color: #1e293b;
  color: #fff;
  background-color: #1e293b;
}

.plans-preview__panel[hidden] {
  display: none;
}

.plans-preview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plans-preview__title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #0f172a;
}

.plans-preview__subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

.plans-preview__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  transition: color 0.15s ease;
}

.plans-preview__link:hover {
  color: #1d4ed8;
}

.plans-preview__carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plans-preview__carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.plans-preview__carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.plans-preview__carousel .plan-card {
  flex: 0 0 var(--carousel-card-width, 100%);
  min-width: 0;
}

.plans-preview__arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #334155;
  background-color: #fff;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    opacity 0.15s ease;
}

.plans-preview__arrow:hover:not(:disabled) {
  border-color: #cbd5e1;
  color: #0f172a;
  background-color: #f8fafc;
}

.plans-preview__arrow:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

@media (min-width: 1024px) {
  .plans-preview__arrow {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan-card:hover {
  border-color: #cbd5e1;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 2px 4px -2px rgba(15, 23, 42, 0.04);
}

.plan-card--featured {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.plan-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background-color: #f1f5f9;
  border-radius: 0.5rem 0.5rem 0 0;
}

.plan-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
}

.plan-card__tag {
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1d4ed8;
  background-color: #dbeafe;
}

.plan-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.plan-card__amount {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
}

.plan-card__period {
  font-size: 0.8125rem;
  color: #64748b;
}

.plan-card__features {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #475569;
}

.plan-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.plan-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: #94a3b8;
}

.plans-preview__carousel .plan-card__features {
  font-size: 0.75rem;
}

.plan-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background-color: #1e293b;
  transition: background-color 0.15s ease;
}

.plan-card__cta:hover {
  background-color: #0f172a;
}

.plan-card--featured .plan-card__cta {
  background-color: #2563eb;
}

.plan-card--featured .plan-card__cta:hover {
  background-color: #1d4ed8;
}
