/* =========================================================================
   CRIANDO WEB — Processos, dashboards e relatórios com IA
   Camada de complemento. Carregar SEMPRE depois de assets/style.css (Makka).
   Aqui existem: a troca da fonte de display por Poppins, os componentes que
   o Template Kit Makka não tem (marca, ilustrações, mural de clientes,
   antes/depois, passos, planos, FAQ, CTA de WhatsApp, barra mobile) e os
   overrides que trocam foto de banco de imagem por painel sólido.
   As cores continuam sendo só os tokens do kit.
   ========================================================================= */

/* =========================================================================
   TIPOGRAFIA — Poppins em tudo que é título/display (o kit usa Yantramanav).
   Poppins é mais largo e tem x-height maior, então a escala do kit é
   reduzida aqui para o texto continuar cabendo nas mesmas caixas.
   ========================================================================= */
.t-big-hero, .t-h1, .t-h2, .t-h3, .t-h4, .t-h5, .t-h6,
.badge, .btn, .nav a, .t-header,
.stat strong, .stat span, .stats-bar strong,
.footer-cols h3,
.step-card__n, .step-card__tag,
.faq summary, .case-card__sector, .case-row__key,
.ba-card__tag, .sector-chips li, .tools-row li, .svc-win b,
.clients-note, .wa-points, .il-h, .il-k {
  font-family: Poppins, "Golos Text", -apple-system, "Segoe UI", sans-serif;
}

.t-big-hero { font-size: 58px; font-weight: 800; line-height: 1.06em; letter-spacing: -.035em; }
.t-h1       { font-size: 46px; font-weight: 700; line-height: 1.08em; letter-spacing: -.03em; }
.t-h2       { font-size: 38px; font-weight: 700; line-height: 1.12em; letter-spacing: -.025em; }
.t-h3       { font-size: 30px; font-weight: 700; line-height: 1.15em; letter-spacing: -.02em; }
.t-h4       { font-size: 23px; font-weight: 600; line-height: 1.3em;  letter-spacing: -.015em; }
.t-h5       { font-size: 19px; font-weight: 600; line-height: 1.3em;  letter-spacing: -.012em; }
.t-h6       { font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.badge      { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; padding: 6px 14px 4px; }
.btn        { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.btn--lg    { font-size: 17px; font-weight: 600; }
.nav a      { font-size: 15.5px; font-weight: 500; }
.stat strong      { font-size: 38px; font-weight: 700; letter-spacing: -.03em; }
.stat span        { font-size: 12.5px; font-weight: 500; letter-spacing: .05em; }
.stats-bar strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.faq summary      { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.footer-cols h3   { font-size: 17px; font-weight: 600; }

/* Destaque: a palavra-chave do título ganha o azul da marca */
.hl { color: var(--button); }
.why .hl, .value__inner .hl, .wa-cta .hl, .clients .hl { color: #8fa4ff; }

/* ---------- Marca ------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; object-fit: contain; display: block; }
.site-footer .brand img { height: 32px; }

/* =========================================================================
   HERO
   ========================================================================= */
/* O kit reserva espaço abaixo do hero para a foto recortada do template.
   Aqui quem faz a transição é o painel branco — a folga viraria buraco. */
.hero { margin-bottom: 0; }
.hero .container { padding-bottom: 0; }
.hero-copy { width: 1080px; }
.hero-copy h1 { text-wrap: balance; }
.hero-copy .lead {
  font-family: "Golos Text", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55em;
  letter-spacing: 0;
  max-width: 800px;
}

.hero-points {
  display: grid;
  grid-auto-flow: column;
  gap: 12px 26px;
  justify-content: center;
  text-align: left;
  margin-top: 4px;
}
.hero-points li { display: flex; gap: 9px; align-items: flex-start; color: var(--heading); font-size: 15px; }
.hero-points svg { width: 19px; height: 19px; flex: none; fill: var(--button); margin-top: 1px; }

.hero-panel {
  width: 100%;
  padding: 2.2em 2em 2.6em;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .1);
}

/* --- cenas ilustradas --------------------------------------------------- */
/* width explícita: como item flex com margin-inline auto, o figure não estica */
.scene { width: 100%; max-width: 1040px; margin-inline: auto; }
.scene svg { width: 100%; height: auto; display: block; }
.scene .scene__narrow { display: none; }
.scene__caption {
  margin-top: 16px;
  text-align: center;
  color: var(--body);
  font-size: 15px;
}

/* --- tokens de desenho compartilhados pelas ilustrações SVG ------------- */
.il-card   { fill: #fff; stroke: var(--line); stroke-width: 1.4; }
.il-tile   { fill: #f5f6fc; }
.il-line   { fill: none; stroke: var(--line); stroke-width: 1.6; }
.il-blue   { fill: var(--button); }
.il-blue-s { fill: none; stroke: var(--button); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-dark   { fill: var(--dark-bg); }
.il-core   { fill: var(--xdark-bg); stroke: rgba(255, 255, 255, .22); stroke-width: 1.4; }
.il-soft   { fill: #dfe4ff; }
.il-green  { fill: #25a35a; }
.il-red    { fill: var(--accent-3); }
.il-ghost  { fill: #eceef5; }
/* o tamanho de cada texto vem do atributo font-size no próprio SVG */
.il-t      { font-family: "Golos Text", sans-serif; fill: var(--heading); }
.il-t--mut { fill: var(--body); }
.il-t--w   { fill: #fff; }
.il-t--b   { fill: var(--button); }
.il-t--g   { fill: #1f8d4e; }
.il-h      { font-weight: 600; fill: var(--heading); }
.il-h--w   { fill: #fff; }
.il-k      { font-weight: 700; fill: var(--heading); letter-spacing: -.02em; }
.il-k--b   { fill: var(--button); }

/* flutuação suave dos cartões */
@keyframes cw-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.scene .float    { animation: cw-float 5.5s ease-in-out infinite; }
.scene .float--b { animation-duration: 6.8s; animation-delay: -1.4s; }
.scene .float--c { animation-duration: 6.1s; animation-delay: -2.7s; }
.scene .float--d { animation-duration: 7.4s; animation-delay: -3.6s; }

/* pulso do núcleo de IA */
@keyframes cw-pulse { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: .06; transform: scale(1.25); } }
.scene .pulse { animation: cw-pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

/* barras do gráfico crescendo */
@keyframes cw-grow { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
.scene .bars rect { transform-origin: 50% 100%; transform-box: fill-box; animation: cw-grow 1s cubic-bezier(.2,.8,.3,1) both; }
.scene .bars rect:nth-child(2)  { animation-delay: .05s; }
.scene .bars rect:nth-child(3)  { animation-delay: .10s; }
.scene .bars rect:nth-child(4)  { animation-delay: .15s; }
.scene .bars rect:nth-child(5)  { animation-delay: .20s; }
.scene .bars rect:nth-child(6)  { animation-delay: .25s; }
.scene .bars rect:nth-child(7)  { animation-delay: .30s; }
.scene .bars rect:nth-child(8)  { animation-delay: .35s; }
.scene .bars rect:nth-child(9)  { animation-delay: .40s; }
.scene .bars rect:nth-child(10) { animation-delay: .45s; }
.scene .bars rect:nth-child(11) { animation-delay: .50s; }
.scene .bars rect:nth-child(12) { animation-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  .scene .float, .scene .pulse, .scene .bars rect { animation: none; }
}

/* =========================================================================
   EMPRESAS ATENDIDAS — mural de logos
   Cada logo veio num fundo e num estilo diferente (uma branca, uma laranja,
   uma preta sobre creme, uma vetorial). Todas foram convertidas para
   monocromático branco em assets/clientes/ e vão sobre a faixa escura —
   é o único jeito de funcionarem juntas sem virar colcha de retalhos.
   ========================================================================= */
.clients { padding: 4.5em 1em 5.5em; background: var(--dark-bg); }
.clients::before { background: url("dot_map_2.png") center center / contain no-repeat; opacity: .16; }
.clients .section-head h2 { color: #fff; }
.clients .section-head p { color: var(--w60); }

.clients-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: .5em;
  border: 1px solid var(--w20);
  border-radius: 20px;
  overflow: hidden;
  background: var(--w20);
}
.clients-wall li {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 26px 20px;
  background: #052a76;
  transition: background-color .4s;
}
.clients-wall li:hover { background: #063590; }
.clients-wall img {
  height: var(--h, 34px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: .74;
  transition: opacity .4s, transform .4s;
}
.clients-wall li:hover img { opacity: 1; transform: scale(1.05); }
.clients-note {
  padding-top: 1.6em;
  text-align: center;
  color: var(--w60);
  font-size: 14px;
  font-weight: 500;
}

/* =========================================================================
   ANTES × DEPOIS
   ========================================================================= */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: 1em; align-items: stretch; }
.ba-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 2em;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.ba-card--next { background: var(--dark-bg); box-shadow: 0 10px 40px rgba(2, 34, 97, .28); }
.ba-card__tag {
  align-self: flex-start;
  padding: 6px 14px 5px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.ba-card--now .ba-card__tag  { background: var(--light-bg); color: var(--heading); }
.ba-card--next .ba-card__tag { background: rgba(255, 255, 255, .16); color: #fff; }
.ba-card h3 { color: var(--heading); }
.ba-card--next h3 { color: #fff; }
.ba-list { display: grid; gap: 12px; }
.ba-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--body); }
.ba-card--next .ba-list li { color: var(--w60); }
.ba-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.ba-card--now .ba-list svg  { fill: var(--accent-3); }
.ba-card--next .ba-list svg { fill: #4ade9a; }
.ba-card .scene { margin-top: auto; padding-top: 6px; }

/* =========================================================================
   SOLUÇÕES — cartão do kit + rótulo de resultado
   ========================================================================= */
.svc-card .ico { width: 64px; height: 64px; object-fit: contain; }
.svc-win {
  align-self: stretch;
  margin-top: auto;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--xlight-bg);
  color: var(--heading);
  font-size: 14.5px;
  line-height: 1.35;
}
.svc-win svg { width: 18px; height: 18px; flex: none; fill: var(--button); margin-top: 1px; }
.svc-win b { font-weight: 600; }

/* =========================================================================
   ONDE A GENTE SE CONECTA
   ========================================================================= */
.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding-top: 1em;
}
.tools-row li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--heading);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  transition: box-shadow .3s, transform .3s;
}
.tools-row li:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.tools-row img { width: 30px; height: 30px; flex: none; object-fit: contain; }
.tools-row .dot {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--xlight-bg);
  color: var(--button);
}
.tools-row .dot svg { width: 18px; height: 18px; fill: currentColor; }
.tools-note { padding-top: 1.6em; text-align: center; color: var(--body); }

/* =========================================================================
   PASSOS DO PROCESSO
   ========================================================================= */
.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2em;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.step-card__n { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--line); }
.step-card h3 { color: var(--heading); }
.step-card p { color: var(--body); }
.step-card__tag {
  align-self: flex-start;
  padding: 5px 12px 4px;
  border-radius: 30px;
  background: var(--xlight-bg);
  color: var(--button);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* =========================================================================
   EXEMPLOS PRÁTICOS
   ========================================================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); padding-top: 1em; }

.case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2em;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.case-card__sector { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--body); }
.case-card h3 { color: var(--heading); }
.case-row { display: flex; gap: 16px; }
.case-row__key {
  flex: none;
  width: 78px;
  padding-top: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--button);
}
.case-row--now .case-row__key { color: var(--body); }
.case-row p { color: var(--body); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { max-width: 900px; margin-inline: auto; padding-top: 1em; }
.faq details {
  margin-bottom: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 1.4em 1.6em;
  cursor: pointer;
  list-style: none;
  line-height: 1.3;
  color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; fill: var(--button); transition: transform .3s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__answer { padding: 0 1.6em 1.5em; color: var(--body); }

/* =========================================================================
   CTA FINAL — só WhatsApp
   ========================================================================= */
.wa-cta {
  max-width: 780px;
  margin-inline: auto;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  text-align: center;
}
.wa-cta h2, .wa-cta p { color: #fff; }
.wa-cta p { max-width: 640px; }

.btn--wa-big {
  gap: 12px;
  padding: 20px 40px;
  border-radius: 60px;
  background: #25d366;
  color: #04250f;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 14px 40px rgba(37, 211, 102, .32);
  transition: background-color .3s, transform .3s, box-shadow .3s;
}
.btn--wa-big svg { width: 30px; height: 30px; fill: currentColor; }
.btn--wa-big:hover {
  background: #1fbe5a;
  color: #04250f;
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(37, 211, 102, .42);
}

.wa-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  padding-top: 4px;
}
.wa-points li { display: flex; gap: 9px; align-items: center; color: var(--w60); font-size: 14.5px; font-weight: 500; }
.wa-points svg { width: 19px; height: 19px; flex: none; fill: #4ade9a; }

.wa-alt { color: var(--w60); font-size: 14px; }
.wa-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   OVERRIDES — troca de foto de banco por painel sólido do kit
   ========================================================================= */
.value__media--plain { background: var(--smooth-dark); }
.value__media--plain::before { background: url("dot_map_2.png") center center / cover no-repeat; opacity: .22; }
.value__media--plain .scene { width: 80%; max-width: 520px; }
.why--plain { background: var(--dark-bg); }
.why--plain::before { background: url("dot_map_2.png") center center / contain no-repeat; opacity: .18; }
.cta--plain { background: var(--dark-bg); }
.cta--plain::before { background: url("dot_map_2.png") center center / contain no-repeat; opacity: .18; }
/* o kit não dá respiro lateral nesta seção */
.cta--plain .container { max-width: var(--container); padding-inline: 1em; }

/* =========================================================================
   BARRA FIXA MOBILE
   ========================================================================= */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; gap: 9px; background: #25d366; color: #04250f; font-weight: 700; }
.mobile-bar .btn:hover { background: #1fbe5a; color: #04250f; }
.mobile-bar .btn svg { width: 20px; height: 20px; }

/* ---------- Acessibilidade ---------------------------------------------- */
:focus-visible { outline: 2px solid var(--button); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   RESPONSIVO (breakpoints do kit)
   ========================================================================= */
@media (max-width: 1024px) {
  .t-big-hero { font-size: 50px; }
  .t-h1 { font-size: 36px; }
  .t-h2 { font-size: 30px; }
  .t-h3 { font-size: 25px; }
  .t-h4 { font-size: 20px; }
  .t-h5 { font-size: 18px; }
  .t-h6, .badge { font-size: 12px; }
  .btn { font-size: 14px; }
  .btn--lg { font-size: 16px; }
  .stat strong { font-size: 30px; }
  .stats-bar strong { font-size: 15px; }
  .faq summary { font-size: 18px; }

  .hero { margin-bottom: 0; }
  .hero-copy .lead { font-size: 17px; }
  .hero-points { grid-auto-flow: row; justify-content: start; max-width: 440px; margin-inline: auto; }
  .clients-wall { grid-template-columns: repeat(3, 1fr); }
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
  .value__media--plain .scene { width: 86%; }
  .btn--wa-big { font-size: 18px; padding: 18px 32px; }
  .btn--wa-big svg { width: 26px; height: 26px; }
}

@media (max-width: 767px) {
  .t-big-hero { font-size: 33px; letter-spacing: -.025em; }
  .t-h1 { font-size: 28px; }
  .t-h2 { font-size: 24px; }
  .t-h3 { font-size: 20px; }
  .t-h4 { font-size: 18px; }
  .t-h5 { font-size: 17px; }
  .t-h6, .badge { font-size: 11px; letter-spacing: .06em; }
  .faq summary { font-size: 16px; padding: 1.1em 1.2em; }

  .brand img { height: 26px; }
  .hero { margin-bottom: 0; }
  .hero-copy .lead { font-size: 15.5px; }
  .hero-panel { padding: 1.2em 1em 1.4em; border-radius: 14px 14px 0 0; }
  .scene .scene__wide { display: none; }
  .scene .scene__narrow { display: block; }

  .clients { padding: 3em 1em 3.5em; }
  .clients-wall { grid-template-columns: repeat(2, 1fr); }
  .clients-wall li { min-height: 104px; padding: 18px 14px; }
  .clients-wall img { height: calc(var(--h, 34px) * .82); }

  .grid-2, .ba { grid-template-columns: 1fr; }
  .step-card, .case-card, .ba-card { padding: 1.5em; }
  .step-card__n { font-size: 32px; }
  .faq__answer { padding: 0 1.2em 1.2em; }
  .case-row { flex-direction: column; gap: 4px; }
  .case-row__key { width: auto; }
  .tools-row li { font-size: 14px; padding: 10px 16px 10px 10px; }
  .tools-row img, .tools-row .dot { width: 26px; height: 26px; }
  .value__media--plain .scene { width: 100%; max-width: 420px; }

  .wa-cta { padding: 0; gap: 16px; }
  .btn--wa-big { width: 100%; font-size: 17px; padding: 17px 20px; }
  .wa-points { flex-direction: column; align-items: flex-start; gap: 9px; max-width: 320px; margin-inline: auto; }
  .wa-points li { align-items: flex-start; text-align: left; }
  .wa-points svg { margin-top: 2px; }
}
