/* ==========================================================================
   ONCALLALERT - PRICING MODULE
   Pricing Grid, Plan Cards, Comparison Matrix, Legacy vs Flat Comparison
   LOC: ~260 lines (Max target <= 500)
   ========================================================================== */

#pricing {
  background: linear-gradient(180deg, transparent 0%, rgba(12, 16, 26, 0.5) 50%, transparent 100%);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto 3rem;
}

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

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

/* Featured 50 Users Tier */
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.9) 0%, rgba(12, 16, 28, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: var(--shadow-cyan), var(--shadow-md);
  transform: scale(1.02);
}

/* 4th Tier: Managed Cloud (Direct from oncallalert.dev) */
.pricing-card.managed {
  background: linear-gradient(180deg, rgba(28, 18, 48, 0.9) 0%, rgba(14, 10, 26, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.2);
}

.pricing-card.managed:hover {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.35);
}

.pricing-badge-pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  color: #07090e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
}

.pricing-badge-pill.coming-soon {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.45);
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 40px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0.4rem;
}

.plan-currency {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.plan-price-num {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.plan-billing-cycle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-notice {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  margin-bottom: 1.8rem;
  font-weight: 600;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.8rem;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.plan-feature-item strong {
  color: var(--text-primary);
}

.plan-feature-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature-icon.check {
  color: var(--success);
}

.plan-feature-icon.cross {
  color: var(--text-dim);
}

.plan-feature-item.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.plan-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.plan-cta-btn.solid {
  background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  color: #07090e;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35);
  border: none;
}

.plan-cta-btn.solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.55);
}

.plan-cta-btn.managed-btn {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.35);
}

.plan-cta-btn.managed-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.55);
  filter: brightness(1.1);
}

.plan-cta-btn.outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.plan-cta-btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.4);
}

.pricing-footer-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.pricing-footer-note strong {
  color: var(--accent-cyan);
}

/* Plan Matrix Comparison Table */
.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 1140px;
  margin: 3.5rem auto 0;
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th, .matrix-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.matrix-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.matrix-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.matrix-table td:not(:first-child) {
  text-align: center;
  color: var(--text-secondary);
}

.matrix-highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Comparison Section: Legacy SaaS vs Flat */
#comparison {
  padding: 5rem 0;
}

.vs-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.vs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
}

.vs-card.oca {
  background: linear-gradient(180deg, rgba(16, 24, 42, 0.9) 0%, rgba(10, 14, 26, 0.95) 100%);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 8px 32px rgba(0, 242, 254, 0.15);
}

.vs-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.vs-tag.legacy { color: #f87171; }
.vs-tag.oca { color: var(--accent-cyan); }

.vs-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.vs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vs-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
