/* Evolunia: estilos compartilhados (home e páginas legais). Mobile-first. */

/* ---------- Fontes (hospedadas no próprio site) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --azul: #001030;
  --azul-3: #1A2B57;          /* linhas sobre o azul */
  --violeta: #6723CE;
  --ciano: #18E2F5;
  --tinta: #001030;
  --tinta-2: #43506B;         /* texto secundário sobre claro (AA) */
  --claro-2: #C3CCE0;         /* texto secundário sobre o azul (AA) */
  --papel: #F5F3EE;
  --branco: #FFFFFF;
  --linha: #DCDFE7;

  --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topo-h: 4rem;
  --raio: 14px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --secao-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violeta); outline-offset: 3px; border-radius: 4px; }
.secao--escura :focus-visible { outline-color: var(--ciano); }
main section[id] { scroll-margin-top: var(--topo-h); }

.sem-quebra { white-space: nowrap; }
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.pular {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  background: var(--azul); color: var(--branco); font-weight: 700; text-decoration: none; border-radius: 8px;
}
.pular:focus { top: .5rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn__icone { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn--whats { background: var(--violeta); color: var(--branco); }
.btn--whats:hover { background: #5419AE; }
.secao--escura .btn--whats { background: var(--ciano); color: var(--azul); }
.secao--escura .btn--whats:hover { background: var(--branco); }
.btn--grande { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
@media (max-width: 24em) { .btn--grande { padding-inline: 1.125rem; font-size: 1rem; } }
.btn--linha { border-color: currentColor; color: inherit; }
.btn--linha:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Topo (cabeçalho) ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--linha);
}
.topo__barra { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topo-h); }
.topo__marca { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.topo__marca img { width: auto; height: 30px; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px; padding: 0;
  background: none; border: 0; border-radius: 10px; color: var(--azul); cursor: pointer;
}
.menu-toggle__icone { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.menu-toggle__icone--fechar,
.menu-toggle[aria-expanded="true"] .menu-toggle__icone--abrir { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icone--fechar { display: block; }

.menu__lista { list-style: none; }
.menu__lista a {
  display: flex; align-items: center; min-height: 52px;
  font-weight: 700; font-size: 1.125rem; text-decoration: none;
  border-bottom: 1px solid var(--linha);
}
.menu__cta { width: 100%; margin-top: 1.25rem; }

@media (max-width: 63.99em) {
  /* Com JavaScript (menu.js põe .js no <html>): menu recolhido atrás do ☰. */
  .js .menu { display: none; }
  .js .menu.aberto {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - var(--topo-h)); overflow-y: auto;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--branco);
    border-bottom: 1px solid var(--linha);
    box-shadow: 0 24px 40px -24px rgba(0, 16, 48, .35);
  }
  /* Sem JavaScript: sem ☰; os links ficam visíveis numa segunda linha do topo. */
  html:not(.js) .topo { position: static; }
  html:not(.js) .topo__barra { flex-wrap: wrap; gap: 0 1rem; padding-bottom: .25rem; }
  html:not(.js) .menu-toggle,
  html:not(.js) .menu__cta { display: none; }
  html:not(.js) .menu { width: 100%; }
  html:not(.js) .menu__lista { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  html:not(.js) .menu__lista a { min-height: 44px; font-size: 1rem; border: 0; }
}

/* ---------- Herói ---------- */
.secao--escura { background: var(--azul); color: var(--branco); }
.heroi { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 7rem); position: relative; overflow: hidden; }
.heroi::before { /* fio de luz discreto, sem blobs */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ciano) 40%, var(--violeta) 70%, transparent);
  opacity: .6;
}
.heroi__grade { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.sobretitulo {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violeta);
}
.sobretitulo span { font-variant-numeric: tabular-nums; color: var(--tinta-2); }
.sobretitulo span::after { content: ""; display: inline-block; width: 1.75rem; height: 2px; margin-left: .75rem; vertical-align: middle; background: currentColor; opacity: .5; }
.sobretitulo--claro { color: var(--ciano); }
.sobretitulo--claro span { color: var(--claro-2); }

.heroi h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.04; }
.heroi h1 em { font-style: normal; color: var(--ciano); }
.pt { margin-left: -.08em; } /* a pontuação da fonte em 800 tem recuo largo à esquerda */
.heroi__lide { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--claro-2); }
.heroi__acoes { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2.25rem; }

/* Conversa simulada */
.conversa {
  margin: 0; max-width: 30rem; width: 100%; justify-self: center;
  background: #ECEFF5; color: var(--tinta);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.conversa__topo {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1.125rem; background: var(--branco); border-bottom: 1px solid var(--linha);
}
.conversa__nome { font-weight: 800; line-height: 1.2; }
.conversa__status { font-size: .8125rem; color: var(--tinta-2); line-height: 1.3; }
.conversa__fio { list-style: none; display: flex; flex-direction: column; gap: .5rem; padding: 1.125rem; }
.msg {
  max-width: 86%; padding: .625rem .875rem;
  font-size: .9375rem; line-height: 1.45;
  border-radius: 16px; box-shadow: 0 1px 1px rgba(0, 16, 48, .08);
}
.msg--equipe { align-self: flex-end; background: #D4F5F9; border-bottom-right-radius: 4px; }
.msg--agente { align-self: flex-start; background: var(--branco); border-bottom-left-radius: 4px; }
.msg__cartao {
  display: block; margin-bottom: .5rem; padding: .5rem .75rem;
  background: #F3EEFC; border-left: 3px solid var(--violeta); border-radius: 6px;
  font-size: .875rem;
}
.msg__cartao strong { display: block; color: var(--violeta); }
.conversa__aviso {
  align-self: center; margin-block: .25rem;
  padding: .2rem .75rem; border-radius: 999px;
  background: rgba(0, 16, 48, .07);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-2);
}
.conversa__legenda { padding: 0 1.125rem 1rem; font-size: .75rem; color: var(--tinta-2); }

/* Avatares de iniciais */
.avatar {
  flex: none; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-weight: 800; font-size: 1rem; line-height: 1;
}
.avatar--grande { width: 64px; height: 64px; font-size: 1.625rem; }
.avatar--violeta { background: var(--violeta); color: var(--branco); }
.avatar--ciano { background: var(--ciano); color: var(--azul); }
.avatar--azul { background: var(--azul); color: var(--ciano); }
.avatar--marca { background: var(--branco); border: 1px solid var(--linha); }

/* ---------- Seções ---------- */
.secao { padding-block: var(--secao-y); }
.secao--papel { background: var(--papel); }
.secao__cabeca { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 44rem; }
.secao h2 { font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem); letter-spacing: -0.03em; }
.secao__lide { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--tinta-2); }
.secao--escura .secao__lide { color: var(--claro-2); }

.duas-colunas { display: grid; gap: 0 4rem; }
.duas-colunas > .secao__cabeca { margin-bottom: 2rem; }

/* Áreas */
.areas { list-style: none; display: grid; gap: 1.25rem; }
.area {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio);
}
.area__nome { font-size: 1.375rem; letter-spacing: -0.02em; }
.area__nome::before {
  content: ""; display: block; width: 2rem; height: 3px; margin-bottom: 1rem; background: var(--violeta);
}
.area__funcao { font-weight: 600; line-height: 1.5; }
.area__tarefas { list-style: none; margin-top: auto; border-top: 1px solid var(--linha); }
.area__tarefas li {
  position: relative; padding: .7rem 0 .7rem 1.5rem;
  font-size: .9375rem; color: var(--tinta-2); border-bottom: 1px solid var(--linha);
}
.area__tarefas li:last-child { border-bottom: 0; padding-bottom: 0; }
.area__tarefas li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem;
  width: .625rem; height: 2px; background: var(--violeta);
}
.area--destaque { background: var(--azul); border-color: var(--azul); color: var(--branco); }
.area--destaque .area__nome::before { background: var(--ciano); }
.area--destaque .area__tarefas { border-top-color: rgba(255,255,255,.18); }
.area--destaque .area__tarefas li { color: var(--claro-2); border-bottom-color: rgba(255,255,255,.18); }
.area--destaque .area__tarefas li::before { background: var(--ciano); }

/* Benefícios */
.beneficios { list-style: none; counter-reset: b; border-top: 2px solid var(--azul); }
.beneficios li {
  counter-increment: b;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 1rem;
  padding: 1.5rem 0; border-bottom: 1px solid #D8D4CA;
}
.beneficios li::before {
  content: counter(b, decimal-leading-zero);
  grid-row: span 2; padding-top: .2rem;
  font-size: .875rem; font-weight: 800; color: var(--violeta); font-variant-numeric: tabular-nums;
}
.beneficios h3 { margin-bottom: .375rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); letter-spacing: -0.02em; }
.beneficios p { color: var(--tinta-2); }

/* Passos */
.passos { list-style: none; counter-reset: p; display: grid; gap: 1.25rem; }
.passo {
  counter-increment: p; position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--linha); border-radius: var(--raio);
}
.passo::before {
  content: counter(p);
  display: block; margin-bottom: 1rem;
  font-size: clamp(3rem, 2.4rem + 2.5vw, 4.5rem); font-weight: 800; line-height: .9; letter-spacing: -0.05em;
  color: var(--violeta);
}
.passo__prazo {
  position: absolute; top: clamp(1.5rem, 3vw, 2.25rem); right: clamp(1.5rem, 3vw, 2.25rem);
  padding: .25rem .75rem; border-radius: 999px;
  background: var(--papel); font-size: .8125rem; font-weight: 700; color: var(--tinta);
}
.passo h3 { font-size: 1.375rem; margin-bottom: .625rem; }
.passo p:last-child { color: var(--tinta-2); }

/* Segurança */
.secao--escura h2 { color: var(--branco); }
.garantias { list-style: none; display: grid; gap: 1px; background: var(--azul-3); border: 1px solid var(--azul-3); border-radius: var(--raio); overflow: hidden; }
.garantia { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--azul); }
.garantia__icone { margin-bottom: 1.25rem; fill: none; stroke: var(--ciano); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.garantia h3 { font-size: 1.25rem; margin-bottom: .625rem; }
.garantia p { color: var(--claro-2); font-size: 1rem; }

/* Acessos */
/* FAQ */
.faq { border-top: 2px solid var(--azul); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: 1rem 0;
  font-weight: 700; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.35;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--violeta), var(--violeta)) center / 12px 2px no-repeat,
    linear-gradient(var(--violeta), var(--violeta)) center / 2px 12px no-repeat,
    #F0EAFB;
  transition: transform .2s;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--branco), var(--branco)) center / 12px 2px no-repeat,
    var(--violeta);
}
.faq details p { padding: 0 2.75rem 1.5rem 0; color: var(--tinta-2); max-width: 44rem; }

/* Chamada final */
.chamada { padding-block: var(--secao-y); background: var(--azul); }
.chamada__caixa { text-align: center; display: flex; flex-direction: column; align-items: center; }
.chamada h2 { max-width: 40rem; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); letter-spacing: -0.035em; }
.chamada p { max-width: 34rem; margin: 1.25rem 0 2.25rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--claro-2); }

/* ---------- Rodapé ---------- */
.rodape {
  padding: 3.5rem 0 calc(6rem + env(safe-area-inset-bottom));
  background: var(--branco); color: var(--tinta-2); font-size: .9375rem;
  border-top: 1px solid var(--linha);
}
.rodape__grade { display: grid; gap: 2rem; }
.rodape__logo {
  display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .75rem;
}
.rodape__logo img { width: auto; height: 30px; }
.rodape__marca p { max-width: 22rem; }
.rodape__dados { font-style: normal; display: grid; gap: .75rem; }
.rodape__dados strong { color: var(--tinta); font-weight: 700; }
.rodape__links { list-style: none; }
.rodape__links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--tinta); font-weight: 600; text-decoration: none;
}
.rodape__links a:hover { color: var(--violeta); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Botão flutuante (celular) ---------- */
.whats-flutuante {
  position: fixed; z-index: 40;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 60px; height: 60px;
  background: var(--violeta); color: var(--branco); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 12px 24px -6px rgba(0, 16, 48, .5);
  transition: opacity .2s, visibility .2s;
}
.whats-flutuante--recolhido { visibility: hidden; opacity: 0; }
html:not(.js) .whats-flutuante { display: none; } /* sem JS não dá para evitar que cubra um CTA */
.whats-flutuante svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ---------- Documento legal (privacidade, termos) ---------- */
.texto-legal { max-width: 70ch; margin-inline: auto; counter-reset: cl; }
.texto-legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.texto-legal h2 { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); margin: 2.75rem 0 .875rem; letter-spacing: -0.01em; scroll-margin-top: calc(var(--topo-h) + 1rem); }
.texto-legal p, .texto-legal ul, .texto-legal ol { margin-bottom: 1rem; }
.texto-legal ul, .texto-legal ol { padding-left: 1.5rem; }
.texto-legal li { margin-bottom: .5rem; }
.texto-legal li::marker { color: var(--violeta); }
.texto-legal a { color: var(--violeta); font-weight: 600; text-underline-offset: 3px; }
/* Páginas legais: URLs e e-mails longos quebram em vez de gerar rolagem horizontal. */
.texto-legal { overflow-wrap: anywhere; }

/* ---------- Telas médias ---------- */
@media (min-width: 48em) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area--destaque { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 1rem 2.5rem; align-items: start; }
  .area--destaque .area__tarefas { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .passos { grid-template-columns: repeat(2, 1fr); }
  .garantias { grid-template-columns: repeat(2, 1fr); }
  .rodape__grade { grid-template-columns: 1.2fr 1.4fr 1fr; gap: 3rem; }
  .rodape { padding-bottom: 3.5rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 64em) {
  :root { --topo-h: 4.75rem; }
  .topo__marca img { height: 34px; }
  .menu-toggle { display: none; }
  .menu, .menu.aberto {
    display: flex; align-items: center; gap: 1.5rem;
    position: static; max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  .menu__lista { display: flex; gap: .25rem; }
  .menu__lista a {
    min-height: 44px; padding: 0 .875rem; font-size: .9375rem; font-weight: 600;
    border: 0; border-radius: 999px; color: var(--tinta-2);
  }
  .menu__lista a:hover { color: var(--tinta); background: var(--papel); }
  .menu__cta { width: auto; margin: 0; min-height: 44px; padding: .5rem 1.15rem; font-size: .9375rem; }
  .whats-flutuante { display: none; }

  .heroi__grade { grid-template-columns: 1.15fr .85fr; }
  .conversa { justify-self: end; }
  .duas-colunas { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .duas-colunas > .secao__cabeca { position: sticky; top: calc(var(--topo-h) + 2rem); margin-bottom: 0; }
}

@media (min-width: 80em) {
  .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .conversa__fio > li { animation: surge .5s cubic-bezier(.2, .7, .2, 1) both; }
  .conversa__fio > li:nth-child(2) { animation-delay: .5s; }
  .conversa__fio > li:nth-child(3) { animation-delay: 1.1s; }
  .conversa__fio > li:nth-child(4) { animation-delay: 1.5s; }
  .conversa__fio > li:nth-child(5) { animation-delay: 2.1s; }
  .conversa__fio > li:nth-child(6) { animation-delay: 2.6s; }
  .btn:active { transform: translateY(1px); }
}
@keyframes surge { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
