/* =========================================================
   Cloud para Supermercado — estilos
   Navy profundo + verde de operação. Sem dependências.
   Animação: entrada em cascata por seção, transform/opacity only.
   ========================================================= */

/* Inter variable, subset latin (cobre o português), servida localmente:
   sem dependência do Google Fonts e sem requisição a terceiros */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
}

:root {
  --ink:        #0a1420;
  --ink-2:      #46586a;
  --ink-3:      #6c7d8d;
  --line:       #e4eaf0;
  --line-soft:  #eef3f7;
  --bg:         #ffffff;
  --bg-alt:     #f5f8fb;

  --navy:       #071420;
  --navy-2:     #0d2334;
  --navy-3:     #16394f;

  --brand:      #00a86b;
  --brand-2:    #22d68f;
  --brand-dark: #046b46;
  --brand-soft: #e6f7f0;

  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  24px;

  --shadow-sm:  0 1px 2px rgba(7,20,32,.06), 0 4px 12px rgba(7,20,32,.05);
  --shadow-md:  0 2px 6px rgba(7,20,32,.07), 0 14px 34px rgba(7,20,32,.09);
  --shadow-lg:  0 30px 70px rgba(7,20,32,.18);

  --wrap:       1180px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease:       cubic-bezier(.22,.68,.28,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
button { font: inherit; }

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--ink);
}
h1 { font-size: clamp(2.35rem, 1.2rem + 4vw, 4.4rem); letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.3vw, 2.9rem); }
h3 { font-size: 1.14rem; letter-spacing: -.02em; }
p  { margin: 0 0 1rem; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand-dark); margin: 0 0 .8rem;
}
.eyebrow-light { color: var(--brand-2); }

.grad {
  background: linear-gradient(94deg, #22d68f 10%, #7ce7c0 60%, #bff5df 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.linklike {
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; font-weight: 600;
}

/* =========================================================
   ANIMAÇÃO DE ENTRADA
   ========================================================= */
/* o estado inicial escondido só existe quando há JS para revelar:
   sem script, a página aparece inteira normalmente */
.anim {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .anim                   { opacity: 0; will-change: opacity, transform; }
.js .anim[data-anim="up"]   { transform: translate3d(0, 26px, 0); }
.js .anim[data-anim="left"] { transform: translate3d(-26px, 0, 0); }
.js .anim[data-anim="scale"]{ transform: scale(.965); }
.js .anim.is-in { opacity: 1; transform: none; will-change: auto; }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-weight: 650; letter-spacing: -.01em; text-decoration: none;
  padding: .72rem 1.35rem; font-size: .96rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm  { padding: .55rem 1.05rem; font-size: .89rem; }
.btn-lg  { padding: .95rem 1.9rem; font-size: 1.03rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #04231a; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px rgba(0,168,107,.32);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45), transparent 70%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .75s var(--ease); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 34px rgba(0,168,107,.45); }

.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink-3); background: var(--bg-alt); }

.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.05); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.12); }

.btn-ghost { color: rgba(255,255,255,.86); border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.45); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(7,20,32,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(7,20,32,.96);
  border-bottom-color: rgba(255,255,255,.1);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }

/* o header não pode estourar a viewport em nenhuma largura: quando a barra de
   rolagem faz a media query e o clientWidth divergirem, o breakpoint sozinho
   não segura e o menu escapa para fora da tela. Por isso a marca cede espaço. */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { flex: 0 0 auto; }
.nav-toggle { flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--brand-2); flex: 0 0 auto; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
.brand-text { font-size: 1.03rem; letter-spacing: -.03em; font-weight: 500; line-height: 1.1; }
.brand-text strong { font-weight: 800; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; color: rgba(255,255,255,.75); font-size: .93rem; font-weight: 550;
  text-decoration: none; padding: .35rem 0; transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand-2); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-mobile { border-top: 1px solid rgba(255,255,255,.08); background: var(--navy); }
.menu-mobile ul { list-style: none; margin: 0; padding: .5rem 24px 1rem; }
.menu-mobile a { display: block; padding: .8rem 0; color: rgba(255,255,255,.85); font-weight: 550; border-bottom: 1px solid rgba(255,255,255,.07); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(168deg, #061220 0%, #0b2233 55%, #071926 100%);
  color: #fff;
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

/* manchas de luz em movimento lento */
.hero-aurora { position: absolute; inset: -20% -10% -30%; z-index: -1; pointer-events: none; filter: blur(60px); }
.hero-aurora span { position: absolute; display: block; border-radius: 50%; opacity: .5; }
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; top: -6%; right: -4%; background: radial-gradient(circle, rgba(34,214,143,.5), transparent 65%); animation: drift1 22s ease-in-out infinite; }
.hero-aurora span:nth-child(2) { width: 38vw; height: 38vw; bottom: -12%; left: -6%; background: radial-gradient(circle, rgba(38,124,175,.5), transparent 65%); animation: drift2 27s ease-in-out infinite; }
.hero-aurora span:nth-child(3) { width: 26vw; height: 26vw; top: 34%; left: 42%; background: radial-gradient(circle, rgba(0,168,107,.35), transparent 65%); animation: drift3 19s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-5%,6%,0) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(7%,-5%,0) scale(.92); } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(4%,-7%,0); } }

.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .eyebrow { color: var(--brand-2); }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.2rem; }
.hero-note { font-size: .9rem; color: rgba(255,255,255,.5); margin: 0; letter-spacing: .01em; }

/* diagrama animado */
.hero-visual { position: relative; }
.diagrama { width: 100%; height: auto; overflow: visible; }
.node-label { fill: rgba(255,255,255,.55); font-size: 13px; font-family: var(--font); font-weight: 500; }
.node-label.bright { fill: rgba(255,255,255,.85); font-size: 14px; }

.cloud-node ellipse { stroke-width: 1.4; }
.cloud-node .halo ellipse { transform-origin: 230px 112px; animation: halo 3.6s ease-out infinite; }
@keyframes halo {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}

.pulso {
  stroke-dasharray: 34 300;
  stroke-dashoffset: 334;
  animation: correr 3.2s linear infinite;
}
.pulso.p2 { animation-delay: 1.1s; }
.pulso.p3 { animation-delay: 2.1s; }
@keyframes correr { to { stroke-dashoffset: 0; } }

.loja rect { transition: fill .3s; }
.loja { animation: flutuar 6s ease-in-out infinite; transform-origin: center; }
.loja.l-2 { animation-delay: -2s; }
.loja.l-3 { animation-delay: -4s; }
@keyframes flutuar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.blink { animation: piscar 2s ease-in-out infinite; }
@keyframes piscar { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.badge-uptime { animation: flutuar 7s ease-in-out infinite; animation-delay: -3s; }

/* números */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: clamp(2.5rem, 2rem + 3vw, 4rem) 0 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); overflow: hidden;
}
.stat { display: flex; flex-direction: column; background: rgba(7,20,32,.5); padding: 1.5rem 1.35rem; margin: 0; transition: background-color .3s; }
.stat:hover { background: rgba(34,214,143,.07); }
.stat dt { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.35; }
.stat dd { margin: 0 0 .2rem; }
.stat-num {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 800; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =========================================================
   FAIXA DE LOGOS (marquee)
   ========================================================= */
.logos-band {
  background: linear-gradient(180deg, #071420, #0a1c2a);
  color: #fff; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
  border-top: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.band-title { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); text-align: center; margin-bottom: .6rem; }
.band-sub { text-align: center; color: rgba(255,255,255,.55); max-width: 56ch; margin: 0 auto 2.6rem; font-size: .98rem; }

.marquee {
  position: relative; overflow: hidden; padding: .5rem 0 2.2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
/* o espaçamento vive no padding do item, não no gap: assim a lista duplicada
   mede exatamente o dobro e o translate de -50% fecha o loop sem salto */
.marquee-track {
  display: flex; align-items: center;
  list-style: none; margin: 0; padding: 0; width: max-content;
  animation: correia 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes correia { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

.marquee-track li { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 60px; padding-inline: 2.4rem; }
.marquee-track img {
  max-height: 34px; max-width: 150px; width: auto; height: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .58;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
/* o hover só ganha brilho: alguns logotipos oficiais são versões pretas e
   sumiriam no fundo escuro se a cor original voltasse */
.marquee-track li:hover img { opacity: 1; transform: scale(1.08); }
/* logos linkados para os sites das parceiras (reciprocidade do pedido de
   backlink); o <a> não pode introduzir caixa própria e desalinhar a correia */
.marquee-track a { display: flex; align-items: center; justify-content: center; }
.marquee-track a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 6px; border-radius: 6px; }
.marquee-track a:focus-visible img { opacity: 1; }
.marquee-track img.is-icon { max-height: 46px; max-width: 46px; }
.marquee-track img.is-tall { max-height: 54px; }

.band-foot { text-align: center; color: rgba(255,255,255,.42); font-size: .84rem; max-width: 74ch; margin: 0 auto; }
.band-foot .linklike { color: rgba(255,255,255,.8); }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.6rem); }
.section-lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-2); margin-bottom: 0; }

/* ícones */
.ico {
  width: 34px; height: 34px; display: block; margin-bottom: 1.1rem;
  fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s var(--ease), stroke .3s;
}
.ico-sm { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; stroke-width: 1.7; }

/* cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cards-2x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.card, .feat {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover, .feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe0d9; }
.card:hover .ico, .feat:hover .ico { transform: translateY(-3px) scale(1.06); }
.card h3, .feat h3 { margin-bottom: .5rem; }
.card p, .feat p { color: var(--ink-2); font-size: .97rem; margin: 0; }

.feat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.feat:hover::before { transform: scaleX(1); }

/* luz que segue o mouse */
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(0,168,107,.09), transparent 65%);
  transition: opacity .35s var(--ease);
}
.spot:hover::after { opacity: 1; }

/* dores */
.pains { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.pains-title { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.55rem); margin-bottom: 1.6rem; }
.pain-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.6rem; }
.pain-grid li {
  display: flex; align-items: flex-start; gap: .85rem;
  color: var(--ink-2); font-size: .97rem; line-height: 1.5;
  padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: #fff;
  border: 1px solid var(--line-soft); transition: border-color .3s, transform .3s var(--ease);
}
.pain-grid li:hover { border-color: var(--line); transform: translateX(3px); }
.pain-grid strong { color: var(--ink); font-weight: 700; }
.pain-grid .ico-sm { stroke: var(--ink-3); margin-top: .1rem; }

/* frase de posicionamento */
.quote-banner {
  margin: clamp(3rem, 2rem + 3vw, 5rem) 0 0; padding: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem);
  border-radius: var(--radius-lg); text-align: center;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(34,214,143,.18), transparent 60%),
    linear-gradient(150deg, var(--navy-2), var(--navy));
  box-shadow: var(--shadow-lg);
}
.quote-banner p {
  margin: 0; color: #fff; font-weight: 750; letter-spacing: -.03em;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.15rem); line-height: 1.28;
}

/* segmentos */
.segments { margin-top: clamp(2.8rem, 2rem + 2vw, 4rem); }
.segments h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); margin-bottom: 1.2rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.chips li {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .55rem 1.15rem; font-size: .92rem; font-weight: 550; color: var(--ink-2);
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.chips li:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand-dark); }

/* etapas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 15px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: var(--brand-2);
  font-weight: 800; font-size: 1.2rem;
}
.step h3 { margin: 0 0 .25rem; }
.step p { color: var(--ink-2); font-size: .97rem; margin: 0; }

.cta-inline {
  margin-top: clamp(2.2rem, 1.5rem + 2vw, 3.2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: var(--brand-soft); border: 1px solid #cdece0; border-radius: var(--radius-lg);
  padding: 1.9rem 2.1rem;
}
.cta-inline h3 { margin-bottom: .25rem; font-size: 1.28rem; }
.cta-inline p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* faq */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.6rem; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.faq details:hover { border-color: #cfe0d9; }
.faq details[open] { border-color: #b9ded0; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; margin: 0; font-size: 1.05rem; font-weight: 650; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.6rem; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .3s var(--ease), border-color .3s;
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--brand); }
.faq-body { padding: 0 0 1.4rem; animation: abrir .35s var(--ease); }
.faq-body p { color: var(--ink-2); margin: 0; font-size: .99rem; }
@keyframes abrir { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* cta final */
.cta-final { padding: clamp(3rem, 2rem + 3vw, 5.5rem) 0; }
.cta-box {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 85% 5%, rgba(34,214,143,.24), transparent 60%),
    linear-gradient(150deg, var(--navy-2), var(--navy));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.6rem, 1.8rem + 3vw, 4.5rem);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-box p { color: rgba(255,255,255,.72); max-width: 54ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: clamp(3rem, 2rem + 2vw, 4rem) 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.5); max-width: 40ch; margin-top: 1rem; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a, .footer-col .linklike { color: rgba(255,255,255,.65); font-size: .93rem; text-decoration: none; font-weight: 400; }
.footer-col a:hover, .footer-col .linklike:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); margin: 0; }

/* whatsapp flutuante */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.whats-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.6); animation: onda 2.6s ease-out infinite;
}
@keyframes onda { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.whats-float svg { width: 30px; height: 30px; position: relative; }
.whats-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(37,211,102,.55); }

/* =========================================================
   MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(4,12,20,.62); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 660px; padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  box-shadow: var(--shadow-lg); animation: pop .3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--bg-alt); color: var(--ink-2); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.modal-close:hover { background: var(--line); transform: rotate(90deg); }
.modal-head { margin-bottom: 1.6rem; }
.modal-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .4rem; }
.modal-head p { color: var(--ink-2); font-size: .96rem; margin: 0; }

.lead-form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .38rem; }
/* `display` de autor vence o [hidden] do user-agent: sem isto, todo
   elemento com class .field + hidden aparece mesmo escondido. */
[hidden] { display: none !important; }
.field label { font-size: .89rem; font-weight: 650; color: var(--ink); }
.field label span { color: var(--brand-dark); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: .78rem .9rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #a9b6c2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,168,107,.14);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2346586a' stroke-width='2' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }

.error { color: #c02626; font-size: .82rem; margin: 0; }
.field.invalid input, .field.invalid select { border-color: #e08a8a; box-shadow: 0 0 0 4px rgba(192,38,38,.09); }

/* ---------- páginas legais ---------- */
.wrap-narrow { max-width: 760px; }
.legal { padding-top: clamp(5rem, 4rem + 6vw, 8rem); }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: .8rem; }
.legal h2 {
  font-size: 1.28rem; margin: 2.4rem 0 .7rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
}
.legal h3 { font-size: 1.02rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.legal p { color: var(--ink-2); margin: 0 0 .9rem; }
.legal .lede { color: var(--ink-2); font-size: 1.06rem; }
.legal-date { font-size: .84rem; color: var(--ink-3); margin-bottom: 1rem !important; }
.legal-list { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--ink-2); }
.legal-list li { margin-bottom: .45rem; }
.legal a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-back { margin-top: 2.6rem !important; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.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;
}

/* ---------- etapas do formulário ---------- */
.steps-bar {
  height: 3px; background: var(--line-soft); border-radius: 3px;
  overflow: hidden; margin-bottom: .5rem;
}
.steps-fill {
  display: block; height: 100%; width: 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 3px; transition: width .45s var(--ease);
}
.steps-count {
  font-size: .78rem; color: var(--ink-3); margin: 0 0 1rem;
  letter-spacing: .02em; text-transform: uppercase; font-weight: 650;
}

/* nome próprio: `.step` já é usado pelas etapas da seção Migração,
   com grid de 56px 1fr, e herdaria as colunas erradas aqui. */
.form-step { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.form-step[hidden] { display: none; }
.form-step:not([hidden]) { animation: passo .38s var(--ease) both; }
@keyframes passo { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.form-step-actions { display: flex; gap: .75rem; align-items: center; }
.form-step-actions .btn-primary { flex: 1; }

/* ---------- campo de CNPJ ---------- */
.field-cnpj { position: relative; }
.field label .opt {
  color: var(--ink-3); font-weight: 500; font-size: .8rem;
  text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.cnpj-flag {
  position: absolute; right: .9rem; top: 2.15rem;
  font-size: .78rem; font-weight: 650; pointer-events: none;
}
.cnpj-flag.is-loading { color: var(--ink-3); }
.cnpj-flag.is-ok { color: var(--brand-dark); }
.cnpj-flag.is-ok::before { content: "✓ "; }

.form-foot { text-align: center; font-size: .82rem; color: var(--ink-3); margin: -.3rem 0 0; line-height: 1.55; }
.form-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.form-foot a:hover { color: var(--brand-dark); }
.form-status { font-size: .9rem; margin: 0; text-align: center; }
.form-status.is-error { color: #c02626; }

.form-success { text-align: center; padding: 1rem 0 .5rem; animation: pop .35s var(--ease); }
.form-success[hidden] { display: none; }
.success-mark {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 1.2rem;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700;
}
.form-success h3 { font-size: 1.4rem; outline: none; }
.form-success p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 1.6rem; }

body.modal-open { overflow: hidden; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1040px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; flex: 0 1 auto; min-width: 0; }
  .header-inner { gap: .8rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .cards-3, .cards-2x3 { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hide-mobile { display: none; }
  /* 16px é o mínimo que impede o Safari do iPhone de dar zoom ao focar o campo */
  .field input, .field select, .field textarea { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .cards-2x3, .pain-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-step-actions { flex-direction: column-reverse; align-items: stretch; }
  /* blur grande é caro em celular intermediário; menos raio, mesmo efeito */
  .hero-aurora { filter: blur(38px); }
  .hero-aurora span:nth-child(3) { display: none; }
  .step { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.3rem 1.4rem; }
  .step-num { width: 40px; height: 40px; border-radius: 13px; font-size: 1.05rem; }
  .step:hover { transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .marquee-track li { padding-inline: 1.6rem; }
  .whats-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .whats-float svg { width: 26px; height: 26px; }
  .modal { padding: 2vh 12px; }
}

@media (max-width: 520px) {
  /* em telas estreitas o CTA do topo dá lugar ao menu; a conversão fica
     no hero, no WhatsApp flutuante e nos CTAs de cada seção */
  .header-cta { display: none; }
  .brand-text { font-size: .95rem; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  /* iPhone SE e telas estreitas: menos respiro lateral para o texto caber */
  .wrap { padding-inline: 16px; }
  .card, .feat { padding: 1.4rem 1.3rem; }
  .faq details { padding-inline: 1.2rem; }
  .modal-panel { padding: 1.5rem 1.2rem; }
  .chips li { font-size: .86rem; padding: .45rem .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .anim { opacity: 1 !important; transform: none !important; }
  /* sem a correia rodando, os logos viram uma grade centralizada */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
}

@media print {
  .site-header, .whats-float, .modal, .hero-actions, .cta-actions, .hero-aurora { display: none !important; }
  .anim { opacity: 1 !important; transform: none !important; }
  body { color: #000; }
}
