/* ─── PRICING PAGE CSS ────────────────────────────────── */

.pricing-hero { position: relative; overflow: hidden; background: var(--bg); }

.pricing-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

/* ─── PLAN CARDS ─────────────────────────────────────── */
.plan-cards-section { padding: 0 0 80px; background: var(--bg); }

.pricing-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.pricing-card-full {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px 40px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card-full:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border);
}

.pricing-card-full.featured {
  background: linear-gradient(160deg, #ffffff 0%, #fcfcfd 100%);
  border-color: var(--purple);
  box-shadow: 0 30px 60px -15px rgba(80, 40, 200, 0.15);
}

/* Staggered load for cards */
.pricing-grid-full .pricing-card-full:nth-child(1) { transition-delay: 0.1s; }
.pricing-grid-full .pricing-card-full:nth-child(2) { transition-delay: 0.2s; }
.pricing-grid-full .pricing-card-full:nth-child(3) { transition-delay: 0.3s; }

.trust-grid .trust-item:nth-child(1) { transition-delay: 0.1s; }
.trust-grid .trust-item:nth-child(2) { transition-delay: 0.15s; }
.trust-grid .trust-item:nth-child(3) { transition-delay: 0.2s; }
.trust-grid .trust-item:nth-child(4) { transition-delay: 0.25s; }
.trust-grid .trust-item:nth-child(5) { transition-delay: 0.3s; }
.trust-grid .trust-item:nth-child(6) { transition-delay: 0.35s; }


.plan-header { margin-bottom: 24px; }

.plan-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.pricing-card-full .plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-tagline {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.plan-price-block { margin-bottom: 28px; }

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-card-full .currency { font-size: 1.4rem; font-weight: 700; padding-bottom: 6px; color: var(--text-primary); }
.pricing-card-full .amount { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; color: var(--text-primary); line-height: 1; }
.pricing-card-full .period { font-size: .85rem; color: var(--text-secondary); padding-bottom: 8px; }

.plan-price-custom { margin-bottom: 6px; }
.amount-custom { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.billed-note { font-size: .8rem; color: var(--text-muted); }

.plan-limits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.limit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-secondary);
}

.limit-icon { font-size: 1rem; }

.plan-features-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

.plan-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-secondary);
}

.plan-feature-list li::before { content: '✓'; font-weight: 700; font-size: .85rem; }
.plan-feature-list li.yes::before { color: #10b981; }
.plan-feature-list li.no { color: var(--text-muted); text-decoration: line-through; opacity: .5; }
.plan-feature-list li.no::before { content: '✗'; color: var(--text-muted); }

.pricing-card-full .popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-btn);
  color: #fff;
  border-radius: 100px;
  padding: 6px 20px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
}

/* ─── COMPARISON TABLE ───────────────────────────────── */
.compare-section { padding: 80px 0; background: var(--bg-2); }

.compare-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 700px;
}

.compare-table thead tr {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
}

.compare-table th {
  padding: 20px 24px;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.compare-table th.feature-col { text-align: left; width: 38%; }

.compare-table th.featured-col {
  color: var(--purple);
  background: #fcfcfd;
  position: relative;
}

.compare-table td {
  padding: 14px 24px;
  font-size: .875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.compare-table td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
}

.compare-table td.featured-col { background: #fcfcfd; }

.compare-table tr:hover { background: #fcfcfd; }

.compare-table tr.category-row td {
  background: #f8f9fa;
  color: var(--text-primary);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: left;
  border-top: 1px solid var(--border-light);
}

.compare-table .check { color: #10b981; font-size: 1rem; font-weight: 700; }
.compare-table .x { color: var(--text-muted); font-size: 1rem; }

.popular-chip {
  display: inline-block;
  background: var(--grad-btn);
  color: #fff;
  border-radius: 100px;
  padding: 2px 10px;
  font-size: .7rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}

/* ─── ADD-ONS ────────────────────────────────────────── */
.addons-section { padding: 80px 0; background: var(--bg); }

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.addon-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

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

.addon-icon { font-size: 2.2rem; margin-bottom: 14px; }

.addon-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }

.addon-card p { font-size: .85rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }

.addon-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--violet);
}

.addon-price span { font-size: .8rem; font-weight: 500; color: var(--text-muted); }

/* ─── TRUST ──────────────────────────────────────────── */
.trust-section { padding: 72px 0; background: var(--bg-2); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.trust-icon { font-size: 1.8rem; flex-shrink: 0; }
.trust-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.trust-item p { font-size: .855rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── PRICING FAQ ─────────────────────────────────────── */
.pricing-faq-section { padding: 80px 0; background: var(--bg); }

.faq-list-compact { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item-c {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q-c {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: inherit;
  text-align: left;
  transition: var(--transition);
}

.faq-q-c:hover { color: var(--violet); }

.faq-q-c.active { color: var(--violet); }

.faq-arrow { font-size: .9rem; color: var(--text-secondary); transition: transform .3s ease; }
.faq-q-c.active .faq-arrow { transform: rotate(180deg); color: var(--violet); }

.faq-a-c {
  max-height: 0;
  overflow: hidden;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding: 0 20px;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-a-c.open { max-height: 300px; padding: 0 20px 18px; }

.pricing-grid-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── BILLING TOGGLE ───────────────────────────────── */
.billing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: opacity 0.3s ease;
}

.discount-badge {
  background: rgba(37, 211, 102, 0.1);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  margin-left: 8px;
  border: 1px solid rgba(16,185,129,0.2);
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e2e8f0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider { background-color: var(--purple); }
input:checked + .slider:before { transform: translateX(26px); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-grid-full, .pricing-grid-dual { grid-template-columns: 1fr; gap: 24px; max-width: 450px; }
  .pricing-card-full.featured { transform: none; }
  .addons-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .addons-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
