.pricing-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-header-inner {
  max-width: 1180px;
  margin: auto;
  min-height: 70px;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111827;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;

  display: grid;
  place-items: center;

  background: #111827;
  color: #ffffff;

  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.pricing-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pricing-header nav a {
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.pricing-header nav a:hover {
  color: #2563eb;
}

.pricing-page {
  max-width: 1180px;
  margin: auto;
  padding: 50px 20px 70px;
}

.pricing-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 35px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;

  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.pricing-hero h1 {
  margin: 0 0 14px;

  color: #111827;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
}

.pricing-hero p {
  margin: 0 auto 26px;
  max-width: 650px;

  color: #6b7280;
  line-height: 1.6;
}

.billing-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 4px;
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background: #f8fafc;
}

.billing-btn {
  border: 0;
  border-radius: 7px;

  padding: 10px 18px;

  background: transparent;
  color: #4b5563;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.billing-btn.active {
  background: #2563eb;
  color: #ffffff;
}

.billing-btn span {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 600;
}

.current-subscription {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-bottom: 30px;
  padding: 20px 22px;

  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.status-label {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.current-subscription h2 {
  margin: 5px 0;
  color: #111827;
  font-size: 20px;
}

.current-subscription p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.manage-subscription {
  flex-shrink: 0;

  padding: 10px 16px;

  border: 1px solid #2563eb;
  border-radius: 8px;

  color: #2563eb;
  background: #ffffff;

  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.plans-section {
  min-height: 300px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: 25px 21px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;

  box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
}

.plan-card.popular {
  border: 2px solid #2563eb;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);

  padding: 5px 12px;

  border-radius: 20px;

  background: #2563eb;
  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.plan-name {
  margin: 0 0 7px;
  color: #111827;
  font-size: 21px;
}

.plan-description {
  min-height: 42px;
  margin: 0 0 18px;

  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.plan-price {
  margin-bottom: 20px;
}

.plan-price strong {
  color: #111827;
  font-size: 34px;
}

.plan-price span {
  color: #6b7280;
  font-size: 13px;
}

.plan-features {
  flex: 1;
  margin: 0 0 22px;
  padding: 0;

  list-style: none;
}

.plan-features li {
  position: relative;

  padding: 8px 0 8px 23px;

  color: #374151;
  font-size: 13px;
  line-height: 1.4;

  border-bottom: 1px solid #f1f5f9;
}

.plan-features li::before {
  content: "✓";

  position: absolute;
  left: 0;
  top: 8px;

  color: #16a34a;
  font-weight: 800;
}

.plan-button {
  width: 100%;
  min-height: 45px;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.plan-button.primary {
  border: 0;
  background: #2563eb;
  color: #ffffff;
}

.plan-button.primary:hover {
  background: #1d4ed8;
}

.plan-button.secondary {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
}

.plan-button.current {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
  cursor: default;
}

.loading-card {
  grid-column: 1 / -1;

  min-height: 220px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;

  color: #6b7280;
}

.loading-spinner {
  width: 30px;
  height: 30px;

  margin-bottom: 12px;

  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;

  animation: pricingSpin .8s linear infinite;
}

@keyframes pricingSpin {
  to {
    transform: rotate(360deg);
  }
}

.pricing-message {
  margin-bottom: 18px;
  padding: 12px 15px;

  border-radius: 8px;

  font-size: 14px;
}

.pricing-message.error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.comparison-section {
  margin-top: 65px;
}

.section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 30px;
}

.section-heading p {
  margin: 0;
  color: #6b7280;
}

.comparison-table-wrap {
  overflow-x: auto;

  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

#comparisonTable {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

#comparisonTable th,
#comparisonTable td {
  padding: 14px 15px;
  border-bottom: 1px solid #eef2f7;

  text-align: center;
  font-size: 13px;
}

#comparisonTable th {
  background: #f8fafc;
  color: #374151;
  font-weight: 800;
}

#comparisonTable th:first-child,
#comparisonTable td:first-child {
  text-align: left;
}

#comparisonTable td {
  color: #4b5563;
}

.pricing-note {
  margin: 55px auto 0;
  padding: 30px;
  max-width: 700px;

  text-align: center;

  border-radius: 14px;
  background: #f8fafc;
}

.pricing-note h2 {
  margin: 0 0 8px;
  color: #111827;
}

.pricing-note p {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.5;
}

.pricing-note a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.pricing-footer {
  padding: 25px 20px;

  border-top: 1px solid #e5e7eb;

  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

.pricing-footer p {
  margin: 0 0 8px;
}

.pricing-footer div {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.pricing-footer a {
  color: #6b7280;
  text-decoration: none;
}

.pricing-footer a:hover {
  color: #2563eb;
}

@media (max-width: 1050px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .pricing-header-inner {
    min-height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .pricing-page {
    padding-top: 35px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .current-subscription {
    flex-direction: column;
    align-items: flex-start;
  }

  .manage-subscription {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .pricing-hero h1 {
    font-size: 31px;
  }

  .billing-switch {
    width: 100%;
    box-sizing: border-box;
  }

  .billing-btn {
    flex: 1;
  }
}