/* ==========================================================
   IA para Empresas — estilos
   Mobile first: regras base valem para celular;
   telas maiores ganham ajustes em @media no fim do arquivo.
   ========================================================== */

/* ---------- Paleta e tokens (troque as cores aqui) ---------- */
:root {
  --bg: #0b1020;
  --bg-alt: #0e1428;
  --surface: #151b33;
  --border: #262f52;
  --text: #e8ecff;
  --text-muted: #a9b1d6;
  --brand-blue: #4f8cff;
  --brand-purple: #9b6bff;
  --gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  --accent: var(--brand-blue);       /* bordas e detalhes */
  --accent-strong: #7fa8ff;          /* links, ícones e foco (contraste AA) */
  --on-accent: #0b1020;              /* texto sobre o degradê (≥ 5,3:1) */

  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --header-h: 64px;
  --gutter: 20px;            /* espaço lateral do conteúdo */
  --shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-strong); }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Acessibilidade ---------- */
:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding-block: 64px; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 1.75rem; }
.section-lead { color: var(--text-muted); font-size: 1.0625rem; margin-bottom: 32px; max-width: 60ch; }
.section h2 + .grid, .section h2 + .steps, .section h2 + .faq { margin-top: 28px; }
.grid { display: grid; gap: 16px; }

/* ---------- Seções claras (meio-termo entre escuro e claro) ----------
   Redefine as variáveis só dentro da seção: cards, FAQ e passos se adaptam sozinhos. */
.section-light {
  --bg: #f4f6ff;
  --surface: #ffffff;
  --border: #d9dff5;
  --text: #0b1020;
  --text-muted: #4a5378;
  --accent-strong: #2f64d8;   /* azul escurecido: 5,3:1 sobre branco */
  background: var(--bg);
  color: var(--text);
}
.section-light .card,
.section-light .step,
.section-light .faq details { box-shadow: 0 1px 2px rgb(11 16 32 / 0.04), 0 8px 24px rgb(11 16 32 / 0.06); }

/* ---------- Ícones ---------- */
.icon, .card-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon { width: 20px; height: 20px; }

/* ---------- Logo ---------- */
.logo {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
}
.logo img { height: 28px; width: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; white-space: nowrap; flex-shrink: 0; }
.cta-group { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(11 16 32 / 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgb(0 0 0 / 0.25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-inner .logo { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, rgb(79 140 255 / 0.22), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgb(155 107 255 / 0.10), transparent 70%);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
}
.hero h1 { font-size: 2.25rem; font-weight: 800; max-width: 18ch; }
.accent {
  color: var(--accent-strong);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 52ch; margin-bottom: 28px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 1.125rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card p + p { margin-top: .6em; }
.card p strong { color: var(--text); }
.card-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--accent-strong);
  background: rgb(79 140 255 / 0.12);
}

/* ---------- Onde a IA ajuda (cards de dor → solução → resultado) ---------- */
.pain { display: flex; flex-direction: column; }
.pain h3 { font-size: 1.0625rem; line-height: 1.35; }
.tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.card p.result {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--text);
  font-weight: 600;
}
.result .icon { margin-top: 2px; color: var(--accent-strong); }
/* Carrossel no celular: desliza para o lado, encaixando card a card */
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter));   /* vai até a borda da tela */
  padding: 4px var(--gutter) 12px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel::after { content: ""; flex: 0 0 calc(var(--gutter) - 12px); } /* margem após o último card */
.carousel > li { flex: 0 0 84%; scroll-snap-align: start; }
.swipe-hint {
  margin: -16px 0 16px;
  color: var(--accent-strong);
  font-size: .875rem;
  font-weight: 600;
}
.card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, rgb(79 140 255 / 0.16), rgb(155 107 255 / 0.16)), var(--surface);
  border-color: rgb(155 107 255 / 0.45);
}
.card-cta h3 { font-size: 1.25rem; }
.card-cta p { margin-bottom: 16px; }

/* ---------- Como funciona ---------- */
.steps { display: grid; gap: 16px; counter-reset: passo; }
.step {
  counter-increment: passo;
  position: relative;
  padding: 24px 24px 24px 76px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  content: counter(passo);
  position: absolute;
  left: 24px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--gradient);
}
.step h3 { font-size: 1.125rem; margin-bottom: .3em; }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-strong);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-muted); }

/* ---------- Chamada final ---------- */
.cta-final {
  text-align: center;
  background: radial-gradient(70% 80% at 50% 100%, rgb(79 140 255 / 0.18), transparent 70%), var(--bg);
}
.cta-final .section-lead { margin-inline: auto; }
.cta-final .cta-group { align-items: stretch; }
.social { margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.social a:hover { color: var(--text); }

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 40px 0 96px; /* espaço extra para o botão flutuante não cobrir */
  border-top: 1px solid var(--border);
  font-size: .9375rem;
}
.footer-inner { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.copy { color: var(--text-muted); margin: 0; }

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--gradient);
  box-shadow: var(--shadow);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.06); filter: brightness(1.1); }
.wa-float .icon { width: 28px; height: 28px; }

/* ==========================================================
   Responsividade
   ========================================================== */

/* Tablet (≥ 640px) */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .section { padding-block: 88px; }
  .section h2 { font-size: 2.125rem; }
  .hero { padding: calc(var(--header-h) + 88px) 0 104px; }
  .hero h1 { font-size: 3rem; }
  .lead { font-size: 1.25rem; }
  .cta-group { flex-direction: row; flex-wrap: wrap; }
  .cta-final .cta-group { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .carousel { display: grid; overflow: visible; margin-inline: 0; padding: 0; }
  .carousel > li { flex: none; }
  .carousel::after { content: none; }
  .swipe-hint { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .copy { grid-column: 1 / -1; }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
  .section { padding-block: 112px; }
  .section h2 { font-size: 2.5rem; }
  .hero { padding: calc(var(--header-h) + 120px) 0 136px; }
  .hero h1 { font-size: 3.75rem; }
  .grid { gap: 20px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 76px 24px 28px; }
  .step::before { left: 24px; top: 24px; }
  .wa-float { right: 24px; bottom: 24px; }
}

/* Telas estreitas (≤ 400px): logo e botão do cabeçalho cabem lado a lado */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .logo img { height: 24px; }
  .btn-sm { padding: 8px 12px; font-size: .875rem; }
  .hero h1 { font-size: 2rem; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .wa-float:hover { transform: none; }
}

/* ---------- Página de texto legal (privacidade) ---------- */
.legal { padding-top: calc(var(--header-h) + 48px); }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.25em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.updated { font-size: .875rem; }
