/* ==========================================================================
   EvoluChat — landing page
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

.landing main {
  overflow-x: clip;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.site-header .brand {
  margin-right: auto;
}

.site-nav {
  display: none;
}

.site-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.site-nav-links a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav-links a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.site-nav-actions {
  display: flex;
  gap: 8px;
}

.header-cta-mobile {
  display: inline-flex;
}

.nav-toggle {
  display: inline-flex;
}

/* Menu aberto no celular */
.site-nav.is-open {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.site-nav.is-open .site-nav-actions .btn {
  flex: 1;
}

@media (min-width: 960px) {
  .site-nav,
  .site-nav.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav-links {
    flex-direction: row;
    gap: 2px;
  }

  .site-nav-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .header-cta-mobile,
  .nav-toggle {
    display: none;
  }
}

/* ---------- Seções ---------- */
.section {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 96px 0;
  }
}

.section-soft {
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head.is-center {
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (min-width: 960px) {
  .section-head {
    margin-bottom: 56px;
  }
}

/* ---------- Recursos ---------- */
.feature-grid {
  display: grid;
  gap: 16px;
  list-style: none;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.feature-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--brand-100);
  color: var(--brand);
}

.feature-card p {
  color: var(--text-2);
  font-size: 15px;
}

.feature-tag {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- Como funciona ---------- */
.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
}

.step p {
  color: var(--text-2);
  font-size: 15px;
}

.step-path {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Planos ---------- */
.cycle-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.cycle-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 100%;
}

.cycle-switch .segmented {
  justify-content: center;
}

.cycle-note {
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.pricing-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

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

.price-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.price-flag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.price-tagline {
  margin-top: -12px;
  color: var(--muted);
  font-size: 15px;
}

.price-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 104px;
}

.price-old {
  color: var(--muted);
  font-size: 14px;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
}

.price-number {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-per {
  font-size: 15px;
  color: var(--muted);
}

.price-billing {
  font-size: 13px;
  color: var(--muted);
}

.price-saving {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
}

.price-trial {
  margin-top: -8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 14px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}

.price-features .icon {
  margin-top: 1px;
  color: var(--brand);
}

.price-features li.is-excluded {
  color: var(--muted);
}

.price-features li.is-excluded .icon {
  color: var(--muted-2);
}

/* Plano em destaque: inversão de cor (sem faixas coloridas) */
.price-card.is-featured {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.price-card.is-featured .price-name,
.price-card.is-featured .price-value,
.price-card.is-featured .price-features li {
  color: #fff;
}

.price-card.is-featured .price-tagline,
.price-card.is-featured .price-per,
.price-card.is-featured .price-billing,
.price-card.is-featured .price-old,
.price-card.is-featured .price-trial {
  color: #c9d4f2;
}

.price-card.is-featured .price-features {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.price-card.is-featured .price-features .icon {
  color: #fff;
}

.price-card.is-featured .price-features li.is-excluded {
  color: #b7c4ea;
}

.price-card.is-featured .price-features li.is-excluded .icon {
  color: #8fa2d8;
}

.price-card.is-featured .badge-success {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.price-card.is-featured .btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

/* Adicional */
.addon-card {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px dashed var(--brand-300);
  border-radius: var(--radius-xl);
  background: var(--brand-50);
}

@media (min-width: 768px) {
  .addon-card {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }
}

.addon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand-200);
}

.addon-text p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15px;
}

.addon-price {
  text-align: left;
}

@media (min-width: 768px) {
  .addon-price {
    text-align: right;
  }
}

.addon-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.addon-per {
  color: var(--muted);
  font-size: 14px;
}

.addon-unit {
  color: var(--muted);
  font-size: 13px;
}

/* Tabela comparativa */
.compare {
  margin-top: 72px;
}

.compare-head {
  margin-bottom: 20px;
}

.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 620px;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.compare-table thead th {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-subtle);
}

.compare-table thead th:first-child {
  border-top-left-radius: var(--radius-xl);
}

.compare-table thead th:last-child {
  border-top-right-radius: var(--radius-xl);
}

.compare-table th[scope='row'],
.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
}

.compare-table thead th:first-child {
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 13px;
}

.compare-table td.is-featured,
.compare-table th.is-featured {
  background: var(--brand-50);
}

.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table tfoot td,
.compare-table tfoot th {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.cmp-check {
  display: inline-flex;
  color: var(--brand);
}

.cmp-cross {
  display: inline-flex;
  color: var(--muted-2);
}

.pricing-footnote {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Perguntas ---------- */
.faq-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .faq-layout .section-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    margin-bottom: 0;
  }
}

.faq {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  font-size: inherit;
}

.faq-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
}

.faq-button:hover {
  color: var(--brand);
}

.faq-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.faq-button .icon {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.faq-button[aria-expanded='true'] .icon {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-a {
  padding: 0 4px 24px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.faq-a p + p {
  margin-top: 10px;
}

/* ---------- CTA final ---------- */
.cta-band {
  padding: 24px 0 72px;
}

@media (min-width: 960px) {
  .cta-band {
    padding: 32px 0 96px;
  }
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 56px 24px;
  border-radius: 32px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(59, 92, 204, 0.55) 0%, rgba(59, 92, 204, 0) 60%), var(--brand);
  color: #fff;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-inner {
    padding: 80px 48px;
  }
}

.cta-title {
  max-width: 760px;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.cta-text {
  max-width: 560px;
  color: #d5ddf5;
  font-size: 17px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.cta-inner .btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
}

.footer-brand p {
  max-width: 320px;
  margin-top: 12px;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer-links a,
.footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}

.footer-links a:hover,
.footer-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-links .icon {
  margin-right: 6px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer-legal a {
  color: var(--text-2);
  font-weight: 500;
}

/* ---------- Modal "Fale com vendas" ---------- */
.lead-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 8px;
  text-align: center;
}

.lead-success .state-icon {
  background: var(--success-bg);
  color: var(--success-ink);
}
