/* Pricing Page Styles */
/* Matches SciTeX dark theme design system */

/* Hide stray Django template tags from linter-reformatted base template */
body
  > :first-child:not(.mobile-notice-banner):not(header):not(main):not(footer) {
  display: none !important;
}
body
  > :last-child:not(.cookie-consent-banner):not(header):not(main):not(footer) {
  display: none !important;
}

.pricing-hero {
  background: linear-gradient(
    135deg,
    var(--scitex-color-01) 0%,
    var(--scitex-color-02) 50%,
    var(--scitex-color-03) 100%
  );
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.pricing-hero h1 {
  color: white;
  font-weight: 700;
}

.pricing-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

/* Pricing Cards */
.pricing-card {
  background: var(--color-canvas-default);
  border: 1px solid var(--color-border-default);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--scitex-color-04);
}

.pricing-card.featured {
  border: 2px solid var(--scitex-color-04);
  background: linear-gradient(
    180deg,
    var(--color-canvas-default) 0%,
    var(--color-canvas-subtle) 100%
  );
}

.pricing-card.enterprise {
  background: linear-gradient(
    135deg,
    var(--color-canvas-default) 0%,
    rgba(var(--scitex-color-01-rgb, 74, 107, 175), 0.1) 100%
  );
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    var(--scitex-color-04) 0%,
    var(--scitex-color-05) 100%
  );
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Pricing Header */
.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-default);
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg-default);
  margin-bottom: 0.5rem;
}

.plan-price {
  margin-bottom: 0.75rem;
}

.plan-price .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--scitex-color-04);
}

.plan-price .period {
  font-size: 1rem;
  color: var(--color-fg-muted);
}

.plan-description {
  font-size: 0.9rem;
  color: var(--color-fg-muted);
  margin: 0;
}

/* Pricing Features */
.pricing-features {
  flex: 1;
  padding-bottom: 1.5rem;
}

.features-intro {
  font-size: 0.85rem;
  color: var(--scitex-color-04);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--color-fg-default);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li i {
  color: var(--status-success);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Pricing CTA */
.pricing-cta {
  text-align: center;
  margin-top: auto;
}

.pricing-cta .btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
}

.pricing-cta .btn-primary {
  background: linear-gradient(
    135deg,
    var(--scitex-color-04) 0%,
    var(--scitex-color-05) 100%
  );
  border: none;
}

.pricing-cta .btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--scitex-color-05) 0%,
    var(--scitex-color-04) 100%
  );
  transform: scale(1.02);
}

.pricing-cta .btn-outline-primary {
  border-color: var(--scitex-color-04);
  color: var(--scitex-color-04);
}

.pricing-cta .btn-outline-primary:hover {
  background: var(--scitex-color-04);
  color: white;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--color-fg-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  background: var(--color-canvas-default);
  border: 1px solid var(--color-border-default);
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border-default);
}

.comparison-table th {
  background: var(--color-canvas-subtle);
  color: var(--color-fg-default);
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table td {
  color: var(--color-fg-default);
  font-size: 0.9rem;
}

.comparison-table .featured-col {
  background: rgba(var(--scitex-color-04-rgb, 100, 150, 200), 0.08);
}

.comparison-table th.featured-col {
  background: var(--scitex-color-04);
  color: white;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--color-canvas-subtle);
}

/* Section Header Rows */
.comparison-table tr.section-header {
  background: var(--color-canvas-subtle);
}

.comparison-table tr.section-header:hover {
  background: var(--color-canvas-subtle);
}

.comparison-table tr.section-header td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  border-bottom: 1px solid var(--color-border-default);
}

.comparison-table tr.section-header td i {
  margin-right: 0.5rem;
  color: var(--scitex-color-04);
}

/* Strikethrough pricing */
.comparison-table s,
.plan-price s {
  color: var(--color-fg-muted);
  text-decoration: line-through;
  margin-right: 0.25rem;
}

/* Semantic Colors for Feature Availability */
.comparison-table .text-success {
  color: var(--status-success) !important;
}

.comparison-table .text-muted {
  color: var(--status-error) !important;
  opacity: 0.6;
}

.comparison-table .fa-check {
  color: var(--status-success);
}

.comparison-table .fa-times {
  color: var(--status-error);
  opacity: 0.6;
}

/* Highlight unlimited/limited values */
.comparison-table td:contains("Unlimited") {
  color: var(--status-success);
}

.comparison-table .value-unlimited {
  color: var(--status-success);
  font-weight: 500;
}

.comparison-table .value-limited {
  color: var(--status-warning);
}

.comparison-table .value-custom {
  color: var(--scitex-color-04);
  font-style: italic;
}

/* Philosophy Section */
.pricing-philosophy {
  background: var(--color-canvas-subtle);
  border-radius: 12px;
  padding: 3rem;
}

.pricing-philosophy h2 {
  color: var(--color-fg-default);
}

.philosophy-card {
  background: var(--color-canvas-default);
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.philosophy-icon {
  font-size: 2rem;
  color: var(--status-success);
  margin-bottom: 1rem;
}

.philosophy-card h4 {
  color: var(--color-fg-default);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.philosophy-card p {
  color: var(--color-fg-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* FAQ Section */
.faq-section-title {
  color: var(--color-fg-default);
}

.faq-item {
  background: var(--color-canvas-default);
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h5 {
  color: var(--color-fg-default);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item h5 i {
  color: var(--status-warning);
}

.faq-item p {
  color: var(--color-fg-muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CTA Section */
.pricing-cta-section {
  background: linear-gradient(
    135deg,
    var(--scitex-color-01) 0%,
    var(--scitex-color-02) 50%,
    var(--scitex-color-03) 100%
  );
  color: white;
  padding: 4rem 0;
  margin-top: 3rem;
}

.pricing-cta-section h2 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-cta-section .lead {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-cta-section .btn-light {
  background: white;
  color: var(--scitex-color-01);
  font-weight: 600;
}

.pricing-cta-section .btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.pricing-cta-section .btn-outline-light {
  border-color: white;
  color: white;
}

.pricing-cta-section .btn-outline-light:hover {
  background: white;
  color: var(--scitex-color-01);
}

/* Responsive */
@media (max-width: 991px) {
  .pricing-card {
    margin-bottom: 2rem;
  }

  .pricing-card.featured {
    order: -1;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 767px) {
  .pricing-hero {
    padding: 3rem 0;
  }

  .pricing-hero h1 {
    font-size: 2rem;
  }

  .pricing-philosophy {
    padding: 2rem 1rem;
  }

  .plan-price .price {
    font-size: 2rem;
  }
}
