/* ============================================
   SGL - Plans Page Styles
   ============================================ */

.plans-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent-dark));
  padding: calc(var(--navbar-height) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.plans-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  padding: 8px 20px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.toggle-label {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
}

.toggle-label.active { color: white; }

.toggle-save {
  background: var(--secondary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 999px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider { background: var(--secondary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* PLANS SECTION */
.plans-section {
  background: var(--gray-50);
  padding: 3rem 0 5rem;
}

.plans-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.plan-full-card {
  background: white;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.plan-full-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.plan-full-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-8px);
}

.pfc-popular-tag {
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 40px;
  transform: rotate(45deg);
  letter-spacing: 0.1em;
  z-index: 1;
}

.pfc-header {
  padding: 2rem;
  text-align: center;
  position: relative;
}

.pfc-header.blue { background: linear-gradient(135deg, rgba(21,101,192,0.08), rgba(0,188,212,0.05)); }
.pfc-header.purple { background: linear-gradient(135deg, rgba(21,101,192,0.12), rgba(124,58,237,0.08)); }
.pfc-header.gold { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(180,83,9,0.05)); }

.pfc-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.pfc-header.gold .pfc-icon { color: #B45309; }
.pfc-header.purple .pfc-icon { color: #7C3AED; }

.pfc-type {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.pfc-desc {
  font-size: 13px;
  color: var(--gray-500);
}

.pfc-body {
  padding: 1.5rem 2rem 2rem;
}

.pfc-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
}

.pfc-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-500);
}

.pfc-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  transition: var(--transition);
}

.pfc-period {
  font-size: 14px;
  color: var(--gray-500);
}

.pfc-billed {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  min-height: 20px;
  margin-bottom: 1.25rem;
}

.pfc-btn {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
}

.pfc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pfc-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-700);
}

.pfc-features li.yes i { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.pfc-features li.no { opacity: 0.4; text-decoration: line-through; }
.pfc-features li.no i { color: var(--gray-400); flex-shrink: 0; margin-top: 2px; }

/* COMPARE TABLE */
.compare-section {
  margin-bottom: 4rem;
}

.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

.compare-table th {
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-100);
  background: var(--gray-50);
}

.compare-table th:first-child { text-align: left; }

.compare-table th.featured-col {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.compare-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  color: var(--gray-700);
}

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

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--gray-50); }

.compare-table td.featured-col {
  background: rgba(21,101,192,0.03);
  font-weight: 600;
  color: var(--primary);
}

.check-icon { color: var(--success); font-size: 16px; }
.x-icon { color: var(--gray-300); font-size: 14px; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--primary-lighter); box-shadow: var(--shadow-md); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-800);
  gap: 12px;
}

.faq-toggle {
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem;
}

.faq-item.open .faq-toggle { transform: rotate(180deg); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .plans-full-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .plan-full-card.featured { transform: none; }
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}
