/* app/assets/stylesheets/pricing.css */
/* Modern High-End Styling for SBeeChamp Pricing Page */

:root {
  --pricing-bg: #f8fafc;
  --brand-navy: #07379d;
  --brand-navy-dark: #052669;
  --honey-gold: #f59e0b;
  --honey-light: #fef3c7;
  --honey-border: #fcd34d;
  --ultra-cyan: #0284c7;
  --ultra-sky: #38bdf8;
  --ultra-ice: #f0f9ff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-border: #e2e8f0;
}

.pricing-page-wrapper {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: 3rem 1.25rem 6rem 1.25rem;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
}

/* Ambient Glow Orbs */
.pricing-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-amber {
  top: 5%;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, transparent 70%);
}

.glow-cyan {
  top: 15%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
}

.pricing-main-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

/* ================= HEADER ================= */
.pricing-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
  position: relative;
}

.pricing-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.pricing-main-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #07379d;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  letter-spacing: -0.025em;
}

.pricing-subtitle {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.pricing-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 auto;
  width: fit-content;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

/* ================= PRICING CARDS GRID ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 5rem;
  padding-top: 1.25rem; /* Extra room so top badges never get cut off */
}

.pricing-card {
  position: relative;
  border-radius: 1.75rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow: visible !important; /* CRITICAL: Never slice floating badges */
  opacity: 0;
  transform: translateY(25px);
}

.pricing-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

.card-badge-container {
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 25;
  pointer-events: none;
}

.card-inner {
  padding: 2.25rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Plan Headers */
.plan-header-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.plan-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.free-icon {
  background: #f1f5f9;
  color: #059669;
  border: 1px solid #e2e8f0;
}

.premium-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
  border: 1px solid #fcd34d;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.ultra-icon {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
  border: 1.5px solid #7dd3fc;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.plan-naming {
  display: flex;
  flex-direction: column;
}

.plan-level-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  line-height: 1.2;
}

.plan-pitch {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
  min-height: 48px;
}

/* Price Box */
.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.price-period {
  display: flex;
  flex-direction: column;
}

.currency-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.period-tag {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* Stats Grid */
.plan-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
}

.stat-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.stat-pill-premium {
  background: #fffbeb;
  border-color: #fde68a;
}

.stat-pill-ultra {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.card-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0 0 1.5rem 0;
}

/* Features List */
.plan-features {
  flex: 1;
  margin-bottom: 2rem;
}

.features-header {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 1.1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #334155;
}

.feature-check {
  font-size: 0.95rem;
  color: #10b981;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.feature-cross {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.feature-disabled {
  color: #94a3b8 !important;
  text-decoration: line-through;
  opacity: 0.75;
}

.feature-highlight {
  font-weight: 600;
  color: #0f172a;
}

/* Ultra Special Highlight Box */
.ultra-special-pill {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1.5px solid #7dd3fc;
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #0369a1;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

.ultra-special-pill .special-icon {
  font-size: 1.15rem;
  color: #0284c7;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.ultra-special-pill .special-text strong {
  display: block;
  font-size: 0.92rem;
  color: #0c4a6e;
  margin-bottom: 0.15rem;
}

.ultra-special-pill .special-text span {
  display: block;
  font-size: 0.82rem;
  color: #0369a1;
  line-height: 1.35;
}

/* Actions */
.card-action {
  margin-top: auto;
  width: 100%;
}

.btn-plan {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.95rem 1.5rem;
  border-radius: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.btn-free-action {
  background: #f1f5f9;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}

.btn-free-action:hover {
  background: #e2e8f0;
  color: #07379d;
  transform: translateY(-2px);
}

.btn-current {
  background: #f8fafc;
  color: #475569;
  border: 1.5px dashed #cbd5e1;
  cursor: default;
  opacity: 0.9;
}

.btn-included {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  cursor: default;
}

/* ================= SPECIAL: PLAN PREMIUM ================= */
.premium-card {
  border: 2px solid #f59e0b;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.18), 0 8px 12px -6px rgba(245, 158, 11, 0.08);
  transform: translateY(0) scale(1.02);
}

.premium-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 45px -5px rgba(245, 158, 11, 0.25);
}

.popular-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 0.4rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-premium-action {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-premium-action:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ================= SPECIAL: PLAN ULTRA ================= */
.ultra-card {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border: 2px solid #0284c7;
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.18), 0 8px 12px -6px rgba(2, 132, 199, 0.08);
  transform: translateY(0) scale(1.02);
}

.ultra-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #0369a1;
  box-shadow: 0 25px 45px -5px rgba(2, 132, 199, 0.28);
}

.elite-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(125, 211, 252, 0.6);
  color: #ffffff;
  padding: 0.4rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-ultra-action {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-ultra-action:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-ultra-current {
  background: #f0f9ff;
  border: 1.5px dashed #0284c7;
  color: #0369a1;
  cursor: default;
}

/* ================= COMPARISON TABLE ================= */
.pricing-comparison-section {
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.comparison-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.comparison-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 0 0 0.5rem 0;
}

.comparison-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  margin: 0;
}

.comparison-table-wrapper {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.feature-col {
  width: 40%;
}

.plan-col {
  width: 20%;
  text-align: center;
}

.comparison-table td:not(.feature-name) {
  text-align: center;
  font-size: 0.95rem;
}

.table-plan-badge {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.free-badge { color: #059669; }
.premium-badge { color: #d97706; }
.ultra-badge { color: #0284c7; }

.table-plan-price {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.table-category-row td {
  background: #f1f5f9;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
  padding: 0.85rem 1.5rem;
}

.feature-name {
  display: flex;
  flex-direction: column;
}

.feature-name span {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.feature-name small {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.highlight-col {
  background: rgba(254, 243, 199, 0.25);
}

.ultra-col {
  background: rgba(240, 249, 255, 0.45);
}

.badge-exclusive {
  background: #0284c7;
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 0.3rem;
  display: inline-block;
}

.table-badge-preview {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.premium-badge-preview {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.ultra-badge-preview {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* ================= FAQ SECTION ================= */
.pricing-faq-section {
  max-width: 860px;
  margin: 0 auto 5rem auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 0.75rem 0 0.5rem 0;
}

.faq-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  margin: 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.faq-question {
  padding: 1.25rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: #f59e0b;
}

.faq-answer {
  padding: 0 1.75rem 1.5rem 1.75rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

.faq-answer code {
  background: #f1f5f9;
  color: #07379d;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ================= BOTTOM CTA ================= */
.pricing-bottom-cta {
  background: linear-gradient(135deg, #07379d 0%, #1e1b4b 60%, #312e81 100%);
  border-radius: 2rem;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(7, 55, 157, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bottom-cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}

.bottom-cta-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

.bottom-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
  color: #ffffff;
}

.btn-cta-ultra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cta-ultra:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 2.5rem;
  }

  .premium-card,
  .ultra-card {
    transform: none;
  }

  .premium-card:hover,
  .ultra-card:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .pricing-page-wrapper {
    padding: 2rem 1rem 4rem 1rem;
  }

  .pricing-main-title {
    font-size: 2.1rem;
  }

  .pricing-subtitle {
    font-size: 1rem;
  }

  .pricing-trust-bar {
    border-radius: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .card-inner {
    padding: 1.75rem 1.25rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .bottom-cta-title {
    font-size: 1.65rem;
  }
}
