/* pricing.css — Preços, tabela comparativa e FAQ */

/* === TOGGLE MENSAL/ANUAL === */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}

.toggle-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--transition);
}

.toggle-label.active { color: var(--text-1); font-weight: 600; }

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}

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

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-track::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--text-3);
  border-radius: var(--radius-full);
  transition: left var(--transition), background var(--transition);
}

.toggle-switch input:checked + .toggle-track {
  background: var(--accent-dim);
  border-color: rgba(192,57,43,0.3);
}

.toggle-switch input:checked + .toggle-track::before {
  left: calc(100% - 23px);
  background: var(--accent);
}

.toggle-annual-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(46,204,113,0.12);
  color: #2ECC71;
  border: 1px solid rgba(46,204,113,0.2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}

.toggle-annual-badge.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === CARDS DE PLANO === */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
  margin-bottom: clamp(56px, 8vw, 96px);
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  position: relative;
}

.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 4px;
}

.pricing-card-desc {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-bottom: 24px;
}

.pricing-price-wrap {
  margin-bottom: 24px;
}

.pricing-price-currency {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.6;
}

.pricing-price-value {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--text-1);
  line-height: 1;
  transition: all 0.3s var(--ease);
}

.pricing-price-period {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-left: 4px;
}

.pricing-features-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.5;
}

.pricing-feature-item .check {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  flex-shrink: 0;
}

.pricing-feature-item .check.yes {
  background: rgba(46,204,113,0.12);
  color: #2ECC71;
  border: 1px solid rgba(46,204,113,0.2);
  font-size: 0.7rem;
}

.pricing-feature-item .check.no {
  background: var(--bg-surface-2);
  color: var(--text-4);
  border: 1px solid var(--border);
  font-size: 0.7rem;
}

/* === TABELA COMPARATIVA === */
.comparison-section {
  margin-top: clamp(48px, 8vw, 80px);
}

.comparison-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table thead th {
  padding: 16px 20px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-1);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th:first-child {
  text-align: left;
  width: 40%;
}

.comparison-table thead th.col-featured {
  background: var(--accent-dim);
  color: var(--accent);
  border-top: 2px solid var(--accent);
}

.comparison-table tbody tr {
  transition: background var(--transition);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--bg-surface);
}

.comparison-table tbody tr:hover { background: var(--bg-surface-2); }

.comparison-table tbody td {
  padding: 14px 20px;
  font-size: var(--text-sm);
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

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

.comparison-table tbody td.col-featured { background: rgba(192,57,43,0.03); }

.check-yes { color: #2ECC71; font-size: 1.1rem; }
.check-no  { color: var(--text-4); font-size: 1.1rem; }
.check-text { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; color: var(--accent); }

.comparison-table .section-row td {
  background: var(--bg-surface-2) !important;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 20px;
}

/* === FAQ === */
.faq-section {
  padding-top: clamp(48px, 8vw, 80px);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--border-hover); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-1);
  transition: color var(--transition);
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover { color: var(--text-1); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--transition), color var(--transition);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.7;
}

/* === PLANO ÚNICO === */
.pricing-grid--single {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.pricing-card--single {
  max-width: 720px;
  width: 100%;
}

.pricing-cents {
  font-size: 0.52em;
  vertical-align: baseline;
}

.pricing-price-note {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: -12px;
  margin-bottom: 24px;
}

.link-text {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-text:hover { opacity: 0.8; }

.pricing-feature-group-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 16px;
  margin-bottom: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  list-style: none;
  padding-left: 0;
}

.pricing-features-list .pricing-feature-group-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

@media (min-width: 560px) {
  .pricing-features-list--grouped {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .pricing-features-list--grouped .pricing-feature-group-label {
    grid-column: 1 / -1;
  }
}

/* === COMPARATIVO VS CONCORRENTES === */
.vs-competitors-section {
  margin-top: clamp(48px, 8vw, 80px);
}

.vs-competitors-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.vs-competitors-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 8px;
}

.vs-competitors-subtitle {
  font-size: var(--text-sm);
  color: var(--text-3);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

.vs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.vs-table thead th {
  padding: 16px 20px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-1);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.vs-table thead th:first-child {
  text-align: left;
  width: 35%;
}

.vs-table thead th.col-blakk {
  background: var(--accent-dim);
  color: var(--accent);
  border-top: 2px solid var(--accent);
}

.vs-table tbody tr:nth-child(even) { background: var(--bg-surface); }
.vs-table tbody tr:hover { background: var(--bg-surface-2); }

.vs-table tbody td {
  padding: 14px 20px;
  font-size: var(--text-sm);
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

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

.vs-table tbody td.col-blakk {
  background: rgba(192,57,43,0.03);
  font-weight: 600;
}

.vs-table .section-row td {
  background: var(--bg-surface-2) !important;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 20px;
}

.vs-win { color: #2ECC71; font-weight: 700; }
.vs-lose { color: var(--text-3); }

.vs-price-highlight {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent);
  font-size: var(--text-base);
}

.vs-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-4);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

/* === DESKTOP === */
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
