/* Pricing page styles (BEM) */
:root {
  --pricing-bg: transparent;
  --pricing-card-bg: #ffffff;
  --pricing-text: #0f172a;
  --pricing-muted: #475569;
  --pricing-accent: #0071E3;
  --pricing-accent-2: #16a34a;
  --pricing-border: #e5e7eb;
  --pricing-border-strong: #cbd5e1;
  --pricing-focus: #0071E3;
  --pricing-header: #f3f4f6;
  --pricing-row: #f9fafb;
}

.pricing {
  background: var(--pricing-bg);
  color: var(--pricing-text);
  padding: 48px 16px 64px;
}

.pricing__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Comparison table */
.pricing__comparison { margin-top: 40px; }
.pricing__table-title { font-size: 2rem; margin: 0; padding: 22px 28px; border-bottom: 1px solid var(--pricing-border); }
.pricing__table-wrap { overflow-x: auto; border: 1px solid var(--pricing-border); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

.pricing__table { width: 100%; border-collapse: collapse; min-width: 920px; }
.pricing__th, .pricing__td { padding: 18px 28px; border-bottom: 1px solid var(--pricing-border); text-align: left; }
.pricing__th { background: #fff; color: #667085; font-size: 1.1rem; font-weight: 700; vertical-align: bottom; }
.pricing__th--feature { width: 32%; }
.pricing__th--plan { text-align: center; width: 17%; }
.pricing__th-name { display: block; color: #667085; font-size: 1.1rem; line-height: 1.15; font-weight: 700; }
.pricing__th-sub { display: block; margin-top: 4px; color: #667085; font-size: 1rem; line-height: 1.2; font-weight: 700; }
.pricing__td { font-size: 1.1rem; font-weight: 600; color: #1f2a44; background: #fff; }
.pricing__td--feature { width: 32%; font-size: 1rem; }
.pricing__feature-name { display: block; font-size: 1.15rem; line-height: 1.2; font-weight: 800; color: #1f2a44; }
.pricing__feature-note { display: block; margin-top: 4px; color: #98a2b3; font-size: 1rem; font-weight: 600; }
.pricing__td--center { text-align: center; vertical-align: middle; }
.pricing__value { font-size: 2rem; line-height: 1; font-weight: 700; color: #1f2a44; }

.pricing__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}
.pricing__icon--on { background: #4ecb7d; color: #fff; }
.pricing__icon--off { background: #d0d5dd; color: #fff; }

.pricing__unlimited { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.pricing__unlimited-label { color: #98a2b3; font-size: 1rem; font-weight: 600; }

.pricing__support-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #3b82f6;
  font-size: 1rem;
  font-weight: 700;
}
.pricing__support-badge--priority {
  background: #e7f7ed;
  color: #22c55e;
}

.pricing__table tbody tr:last-child .pricing__td,
.pricing__table tbody tr:last-child .pricing__td--feature {
  border-bottom: 0;
}

/* FAQ */
.pricing__faq { margin-top: 36px; }
.pricing__faq-title { margin: 0 0 14px; font-size: 1.75rem; line-height: 1.2; color: #0f172a; }
.pricing__faq-list { display: grid; gap: 10px; }
.pricing__faq-item {
  background: #fff;
  border: 1px solid var(--pricing-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.pricing__faq-item:hover { border-color: #dbe0e6; box-shadow: 0 6px 18px rgba(2, 6, 23, .05); }
.pricing__faq-item[open] { border-color: #d1d5db; box-shadow: 0 10px 30px rgba(2, 6, 23, .08); }
.pricing__faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 1.06rem;
  font-weight: 600;
  color: #0f172a;
}
.pricing__faq-q::-webkit-details-marker { display: none; }
.pricing__faq-q::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0071E3;
  box-shadow: 0 0 0 4px rgba(0,113,227,.12);
  flex-shrink: 0;
}
.pricing__faq-q::after {
  content: "";
  margin-left: auto;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230071E3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  transition: transform .2s ease;
}
.pricing__faq-item[open] > .pricing__faq-q::after { transform: rotate(180deg); }
.pricing__faq-a {
  padding: 8px 18px 16px 40px;
  color: #475569;
  line-height: 1.6;
  border-top: 1px solid #eef2f7;
}
.pricing__faq-a p { margin: 0; }

/* Accessibility helper */
.sr-only { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
