.pricing-page {
  gap: var(--hig-spacing-6);
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--hig-spacing-6);
  position: relative;
  overflow: hidden;
  padding: var(--hig-spacing-6) var(--hig-spacing-5);
}

.pricing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0, 113, 227, 0.14), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(88, 86, 214, 0.12), transparent 65%);
  pointer-events: none;
}

.pricing-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--hig-spacing-4);
}

.pricing-hero__title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hig-color-text);
  margin: 0;
}

.pricing-hero__subtitle {
  margin: 0;
  color: var(--hig-color-text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
}

.pricing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hig-spacing-3);
}

.pricing-hero__visual {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
}

.pricing-hero__card {
  background: var(--hig-color-surface-alt);
  border-radius: var(--hig-radius-large);
  border: 1px solid var(--hig-color-divider);
  padding: var(--hig-spacing-5);
  box-shadow: var(--hig-shadow-quiet);
  display: grid;
  gap: var(--hig-spacing-4);
  min-width: 280px;
}

.pricing-hero__metric {
  display: grid;
  gap: var(--hig-spacing-2);
}

.pricing-hero__metric .metric-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hig-color-text-muted);
}

.pricing-hero__metric .metric-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--hig-color-primary);
}

.pricing-hero__sparkline {
  display: flex;
  gap: var(--hig-spacing-2);
  align-items: flex-end;
  height: 120px;
}

.pricing-hero__sparkline .sparkline-bar {
  flex: 1;
  border-radius: var(--hig-radius-small);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.55), rgba(0, 113, 227, 0.08));
  height: var(--sparkline-height);
  transition: transform 0.3s ease;
}

.pricing-hero__sparkline .sparkline-bar:hover {
  transform: translateY(-4px);
}

.pricing-billing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--hig-spacing-4);
  padding: var(--hig-spacing-4) var(--hig-spacing-5);
}

.pricing-billing__label {
  display: inline-flex;
  align-items: center;
  gap: var(--hig-spacing-2);
  font-weight: 600;
  color: var(--hig-color-text);
}

.pricing-billing__actions {
  display: inline-flex;
  gap: var(--hig-spacing-2);
  background: var(--hig-color-surface-alt);
  border-radius: var(--hig-radius-medium);
  padding: 4px;
}

.pricing-billing__button {
  border: none;
  background: transparent;
  color: var(--hig-color-text-secondary);
  font-weight: 600;
  padding: var(--hig-spacing-2) var(--hig-spacing-4);
  border-radius: var(--hig-radius-medium);
  transition: background 0.2s ease, color 0.2s ease;
}

.pricing-billing__button.active {
  background: var(--hig-color-surface);
  color: var(--hig-color-primary);
  box-shadow: var(--hig-shadow-quiet);
}

.pricing-billing__badge {
  margin-left: var(--hig-spacing-2);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.12);
  color: var(--hig-color-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-plan {
  display: grid;
  gap: var(--hig-spacing-4);
  height: 100%;
  padding: var(--hig-spacing-5);
}

.pricing-plan.is-featured {
  border: 1px solid rgba(0, 113, 227, 0.3);
  box-shadow: var(--hig-shadow-elevated);
}

.pricing-plan.is-free {
  border: 1px solid rgba(52, 199, 89, 0.25);
}

.pricing-plan.is-enterprise {
  border: 1px solid rgba(142, 142, 147, 0.25);
}

.pricing-plan__header {
  display: grid;
  gap: var(--hig-spacing-2);
}

.pricing-plan__badge {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--hig-spacing-1);
  padding: var(--hig-spacing-1) var(--hig-spacing-3);
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.12);
  color: var(--hig-color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-plan__title {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--hig-color-text);
}

.pricing-plan__tag {
  margin-left: var(--hig-spacing-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hig-color-primary);
}

.pricing-plan__price-wrapper {
  display: grid;
  gap: var(--hig-spacing-2);
}

.pricing-plan__price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--hig-spacing-1);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--hig-color-primary);
}

.pricing-plan__price--free {
  color: var(--hig-color-accent);
}

.pricing-plan__currency {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
}

.pricing-plan__period {
  font-size: 1rem;
  color: var(--hig-color-text-secondary);
}

.pricing-plan__note,
.pricing-plan__savings {
  font-size: 0.85rem;
  color: var(--hig-color-text-secondary);
}

.pricing-plan__highlight {
  display: inline-flex;
  align-items: center;
  gap: var(--hig-spacing-2);
  background: var(--hig-color-surface-alt);
  border-radius: var(--hig-radius-medium);
  padding: var(--hig-spacing-2) var(--hig-spacing-3);
  color: var(--hig-color-text-secondary);
}

.pricing-plan__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--hig-spacing-2);
}

.pricing-plan__features li {
  display: inline-flex;
  gap: var(--hig-spacing-2);
  font-size: 0.95rem;
  color: var(--hig-color-text-secondary);
}

.pricing-plan__features i {
  color: var(--hig-color-primary);
}

.pricing-plan__footer {
  display: grid;
  gap: var(--hig-spacing-2);
}


.pricing-comparison {
  padding: var(--hig-spacing-6);
  background: var(--hig-color-surface-alt);
  border-radius: var(--hig-radius-large);
  box-shadow: var(--hig-shadow-quiet);
  display: grid;
  gap: var(--hig-spacing-4);
}

.pricing-comparison__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--hig-spacing-3);
}

.pricing-comparison__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hig-color-text);
}

.pricing-comparison__subtitle {
  margin: 0;
  color: var(--hig-color-text-secondary);
}

.pricing-comparison__table-wrapper {
  overflow-x: auto;
}

.pricing-comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.pricing-comparison__table th,
.pricing-comparison__table td {
  padding: var(--hig-spacing-4);
  border-bottom: 1px solid var(--hig-color-divider);
  vertical-align: middle;
}

.pricing-comparison__table thead th {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hig-color-text-muted);
}

.pricing-comparison__plan {
  display: grid;
  gap: var(--hig-spacing-2);
}

.pricing-comparison__plan-header {
  display: flex;
  align-items: center;
  gap: var(--hig-spacing-2);
}

.pricing-comparison__plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hig-color-text);
}

.pricing-comparison__badge {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--hig-spacing-2);
  border-radius: var(--hig-radius-pill);
  background: rgba(0, 113, 227, 0.15);
  color: var(--hig-color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-comparison__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hig-color-text);
}

.pricing-comparison__price-suffix {
  font-size: 0.9rem;
  color: var(--hig-color-text-secondary);
  margin-left: var(--hig-spacing-1);
}

.pricing-comparison__table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--hig-color-text-secondary);
  width: 220px;
}

.pricing-comparison__table tbody td {
  text-align: left;
  font-size: 0.95rem;
  color: var(--hig-color-text);
}

.pricing-comparison__table tbody tr:last-child th,
.pricing-comparison__table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 991.98px) {
  .pricing-comparison {
    padding: var(--hig-spacing-5);
  }

  .pricing-comparison__table {
    min-width: 100%;
  }
}

.pricing-highlights .pricing-highlight {
  display: grid;
  gap: var(--hig-spacing-3);
  text-align: center;
  padding: var(--hig-spacing-5);
}

.pricing-highlights .pricing-highlight i {
  font-size: 2rem;
  color: var(--hig-color-primary);
}

.pricing-highlights .pricing-highlight h3 {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
}

.pricing-highlights .pricing-highlight p {
  margin: 0;
  color: var(--hig-color-text-secondary);
}

.pricing-faq__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--hig-spacing-3);
  margin-bottom: var(--hig-spacing-3);
}

.pricing-faq__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.pricing-faq__subtitle {
  margin: 0;
  color: var(--hig-color-text-secondary);
}

.pricing-faq .accordion-item {
  border: none;
}

.pricing-faq .accordion-button {
  font-weight: 600;
  border: none;
  box-shadow: none;
  padding: var(--hig-spacing-3) var(--hig-spacing-4);
}

.pricing-faq .accordion-button:not(.collapsed) {
  color: var(--hig-color-primary);
  background: rgba(0, 113, 227, 0.08);
}

.pricing-faq .accordion-body {
  color: var(--hig-color-text-secondary);
}

@media (max-width: 991.98px) {
  .pricing-hero {
    grid-template-columns: 1fr;
  }

  .pricing-billing {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-hero__sparkline .sparkline-bar {
    transition: none;
  }
}
