/* Synergy Ecosys · site v2 (direção A "Manifesto Vivo")
   Tokens do Brand Manifesto: cores p.3, gradiente do logo p.4, expressões Quiet/Flow/Living Detail p.5. */

@font-face { font-family: "Mulish"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(../fonts/mulish-normal-latin.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(../fonts/mulish-italic-latin.woff2) format("woff2"); }

:root {
  --night: #04071A;
  --midnight: #15184C;
  --silver-white: #EBECF2;
  --silver: #B5B7C1;
  --violet: #5200A2;
  --ember: #F3400C;
  --ember-ink: #C2330A;  /* ember legível sobre fundo claro */
  --ink: #0B0E24;
  --ink-soft: #4A4E66;
  --paper: #F4F5F8;
  --grad: linear-gradient(135deg, #55C9F5 0%, #2878F0 35%, #31209C 70%, #B654C4 100%);
  --font: "Mulish", "Segoe UI", system-ui, sans-serif;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --max: 1200px;
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--silver-white); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--silver-white); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ember); margin: 0 0 20px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.08; font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; font-weight: 300; }
h1 strong, h2 strong { font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--silver); max-width: 34em; margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { color: var(--ember); }

/* logo: lockup oficial em vetor, extraído do Brand Manifesto p.4 (símbolo em gradiente B4) */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; font: 600 15px/1 var(--font); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 0 0 1px rgba(182,84,196,.35), 0 10px 40px -10px rgba(82,0,162,.8); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(182,84,196,.6), 0 14px 50px -10px rgba(82,0,162,1); }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.link-arrow { color: var(--silver-white); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(235,236,242,.3); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--silver-white); }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(180deg, rgba(4,7,26,.85), rgba(4,7,26,0)); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(4,7,26,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: rgba(181,183,193,.12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.nav a:hover { color: var(--silver-white); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; place-items: center; background: none; border: 1px solid rgba(181,183,193,.3); color: var(--silver-white); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }

.mobile-menu { position: fixed; inset: 0; z-index: 80; background: rgba(4,7,26,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gr) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gl); display: flex; flex-direction: column; gap: 8px; }
.mobile-menu .close { align-self: flex-end; }
.mobile-menu a:not(.btn) { font-size: 30px; font-weight: 300; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(181,183,193,.12); }
.mobile-menu .btn { margin-top: auto; }

/* hero (Quiet) */
.hero { position: relative; overflow: hidden; min-height: min(100svh, 900px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-media img { animation: drift 16s ease-in-out infinite alternate; transform-origin: 80% 40%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.03); } }
.hero.paused .hero-media img { animation-play-state: paused; }
/* hero Flow: sobreposição leve, só para firmar o texto à esquerda e emendar no preto da seção seguinte */
/* versão mais leve: menos saturação, dobras recuadas para a direita, mais área calma no texto */
.hero-media img, .hero-media video { filter: saturate(.78) brightness(.82); }
/* O pulso de luz do hero vive no campo WebGL (.flow-canvas). A versão em CSS foi removida:
   ela usava a própria imagem do hero como máscara, o que baixava o arquivo uma terceira vez
   e mantinha uma camada do tamanho da tela composta a cada quadro. Sem WebGL vale o drift leve. */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,7,26,.82) 0%, rgba(4,7,26,.7) 34%, rgba(4,7,26,.25) 58%, rgba(4,7,26,0) 75%), linear-gradient(0deg, var(--night) 0%, rgba(4,7,26,0) 22%), linear-gradient(180deg, rgba(4,7,26,.5) 0%, rgba(4,7,26,0) 16%); }
.hero .eyebrow { color: #FFB49A; }
.hero .lead { color: var(--silver-white); text-shadow: 0 1px 18px rgba(4,7,26,.7); }
.hero .link-arrow { text-shadow: 0 1px 14px rgba(4,7,26,.8); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: calc(var(--header-h) + 64px) 96px; }
.hero-copy { max-width: 640px; display: grid; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.pause { position: absolute; z-index: 2; right: var(--gr); bottom: 28px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(235,236,242,.3); background: rgba(4,7,26,.5); color: var(--silver-white); cursor: pointer; display: grid; place-items: center; }
.pause svg { width: 14px; height: 14px; }

/* A Virada: trecho fixo com scrub */
.virada { position: relative; height: 200vh; }
.virada-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); }
/* ---------- campo único (hero + Virada) ----------
   .flow-bg fica preso à tela (sticky) com margem negativa: hero e Virada rolam POR CIMA dele.
   Só aparece quando o WebGL está pronto (.flow-live); senão vale a imagem própria do hero. */
.flow { position: relative; }
.flow-bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; display: none; background: var(--night); }
.flow-live .flow-bg { display: block; }
.flow-live .hero-media { display: none; }
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flow-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,7,26,.82) 0%, rgba(4,7,26,.7) 34%, rgba(4,7,26,.25) 58%, rgba(4,7,26,0) 75%), linear-gradient(0deg, var(--night) 0%, rgba(4,7,26,0) 14%), linear-gradient(180deg, rgba(4,7,26,.5) 0%, rgba(4,7,26,0) 16%); }
.flow-live .hero, .flow-live .virada-stage { background: transparent; }
.hero, .virada { position: relative; z-index: 1; }
@media (max-width: 900px) {
  /* celular: texto do hero no alto e da Virada embaixo, então escurece as duas pontas */
  .flow-bg::after { background: linear-gradient(180deg, rgba(4,7,26,.72) 0%, rgba(4,7,26,.45) 45%, rgba(4,7,26,.35) 62%, rgba(4,7,26,.75) 88%, var(--night) 100%); }
}

.virada-text { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; }
.virada-text .wrap { width: 100%; }
.virada-lines { position: relative; max-width: 520px; min-height: 260px; margin: 0; padding: 0; list-style: none; }
.virada-lines li { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-40%); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; font-weight: 300; opacity: 0; transition: opacity .5s, transform .5s; }
.virada-lines li.on { opacity: 1; transform: translateY(-50%); }
.virada-lines strong { font-weight: 700; }
.progress { position: absolute; z-index: 3; left: var(--gl); bottom: 40px; display: flex; gap: 8px; }
.progress i { width: 34px; height: 3px; border-radius: 3px; background: rgba(235,236,242,.2); overflow: hidden; position: relative; }
.progress b { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.skip { position: absolute; z-index: 3; right: var(--gr); bottom: 32px; font-size: 13px; color: var(--silver); }

/* versão estática (movimento reduzido, Save-Data, conexão lenta) */
.virada-static { display: none; }
.virada-static figure { margin: 0; position: relative; }
.virada-static img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.virada-static figcaption { position: absolute; left: var(--gl); right: var(--gr); bottom: 32px; font-size: clamp(22px, 3vw, 40px); font-weight: 300; max-width: 18em; text-shadow: 0 2px 20px rgba(4,7,26,.9); }
.is-static .virada { display: none; }
.is-static .virada-static { display: block; }

/* o brilho fica no contêiner: se ficar junto da máscara na imagem, ele é cortado e desenha um retângulo */
/* conjunto = rastro de luz (camada de baixo) + asas (camada de cima, que bate).
   Proporções vêm do recorte: asas em left 58,14% · top 0 · largura 41,09% do conjunto. */
.borboleta { position: fixed; left: 0; top: 0; z-index: 40; width: 700px; aspect-ratio: 1032 / 1053; pointer-events: none; opacity: 0; filter: drop-shadow(0 0 22px rgba(85,201,245,.3)); --rastro: 1; transform-origin: 10% 36%; }
/* espelhada: voa da direita para a esquerda, com o rastro saindo para trás (à direita) */
.borboleta .bf-inner { position: absolute; inset: 0; transform: scaleX(-1); }
/* asas: WebP animado com folga para as asas abertas (571x589); mesma escala e posição do corpo de antes */
.borboleta .asas { left: 55.90%; top: 0; width: 55.34%; transform-origin: 78% 72%; }
/* o bater de asas vem do WebP animado (vídeo real recortado); o giro simulado foi removido */
.is-static .borboleta { display: none; }

/* seções */
section.block { padding-block: clamp(90px, 14vw, 160px); }
.pergunta h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 15em; }
.sinais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 64px 0 0; padding: 0; list-style: none; }
.sinais li { border-top: 1px solid rgba(181,183,193,.25); padding-top: 20px; font-size: 20px; line-height: 1.4; }
.sinais span { display: block; color: var(--silver); font-size: 15px; margin-top: 8px; }

/* will-change só enquanto voa */
.borboleta.voando { will-change: transform, opacity; }

/* =====================================================================
   SEÇÕES (estado final consolidado)
   Ritmo: 3 Pergunta (clara) · 4 Método (escura) · 5 Frentes (clara) · 6 O que muda (azul)
          7 Citação (clara) · 8 Para quem (escura quente) · 9 Contato (violeta) · rodapé
   Imagens alternam de lado: esq, dir, esq, dir, esq.
   ===================================================================== */
section.block { padding-block: clamp(90px, 14vw, 160px); }

/* fim da Virada: a sobreposição escura do campo some e a frase vira texto escuro */
.flow-bg::after { opacity: calc(1 - var(--claro, 0)); }
.virada .virada-lines li { transition: opacity .5s, transform .5s, color .4s; }
.virada.claro .virada-lines li { color: var(--ink); }
.virada.claro .skip { color: var(--ink-soft); }
.virada-static figure:last-child figcaption { color: var(--ink); text-shadow: none; }
.borboleta.sobre-claro { filter: drop-shadow(0 0 18px rgba(40,120,240,.35)); }

/* ---------- 3 · O ponto de partida: árvore Living_Detail_01 à esquerda, dissolvida no branco ---------- */
.pergunta { position: relative; background: #FDFDFE; color: var(--ink); }
.pergunta::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; pointer-events: none; transform: scaleX(-1);
  background: var(--art) right center / cover no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.pergunta .wrap { position: relative; z-index: 1; }
.pergunta .eyebrow { color: var(--ember-ink); }
.pergunta h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 15em; }
.sinais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 64px 0 0; padding: 0; list-style: none; }
.sinais li { border-top: 1px solid rgba(11,14,36,.16); padding-top: 20px; font-size: 20px; line-height: 1.4; }
.sinais span { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
/* âncora no pé da seção: marca onde a borboleta sai da tela pela esquerda */
.pouso { position: absolute; width: 1px; height: 1px; bottom: 40px; left: max(var(--gl), calc((100% - var(--max)) / 2 + 20px)); pointer-events: none; }

/* ---------- 4 · Como trabalhamos: Quiet gerado a partir da Quiet_03 (fita fina na base) ---------- */
.metodo { position: relative; background: #0B0B3F var(--art) center bottom / cover no-repeat; color: var(--silver-white); }
.metodo .wrap { position: relative; }
.metodo .lead { color: rgba(235,236,242,.82); margin-top: 20px; }
.passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 56px 0 0; padding: 0; list-style: none; }
.passo { background: rgba(12,10,60,.55); border: 1px solid rgba(235,236,242,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 20px; padding: 28px 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.passo .n { font-size: 13px; font-weight: 700; color: var(--ember); letter-spacing: .12em; }
.passo h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.passo p { margin: 0; color: var(--silver); font-size: 15px; }

/* ---------- 5 · O que entregamos: veias Living Detail à direita, suaves ---------- */
.frentes { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); }
.frentes .bg { position: absolute; inset: 0; background: var(--art) 70% center / cover no-repeat; }
.frentes .bg::after { content: ""; position: absolute; inset: 0; background: rgba(244,245,248,.86); }
.frentes .wrap { position: relative; }
.frentes .eyebrow { color: var(--ember-ink); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.frente { border-radius: 24px; padding: 34px 30px; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 20px 40px -24px rgba(21,24,76,.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.frente h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.frente p { margin: 0; color: var(--ink-soft); }
.frente ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.frente li::before { content: "· "; color: var(--ember-ink); font-weight: 700; }

/* ---------- 6 · O que muda: arco Quiet_01 à esquerda, texto à direita ---------- */
.muda { position: relative; }
.muda::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.muda .wrap { position: relative; z-index: 1; }
.muda .eyebrow { color: #FFE2D6; }
.muda h2 { font-size: clamp(34px, 4.4vw, 58px); }
.muda h2 .grad-text { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.compromisso { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.35); }
.compromisso li { padding: 22px 20px 0 0; font-size: 18px; min-width: 0; }
.compromisso li::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-bottom: 14px; }

/* ---------- 7 · Palavra do fundador: pena Living_Detail_03 entrando pela direita ---------- */
.citacao { position: relative; overflow: hidden; background: #FEFEFE var(--art) right center / min(52%, 760px) auto no-repeat; color: var(--ink); }
.citacao .wrap { position: relative; }
.citacao figure { margin: 0; }
.citacao blockquote { margin: 0; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; font-weight: 300; max-width: min(15em, 56vw); }
.citacao blockquote p { margin: 0; }
.citacao blockquote strong { color: var(--violet); }
.citacao figcaption { margin-top: 24px; color: var(--ink-soft); font-size: 15px; letter-spacing: .08em; }

/* ---------- 8 · Para quem: leque Living_Detail_05 (versão larga gerada) à esquerda ---------- */
.paraquem { background: #121A66 var(--art) left bottom / cover no-repeat; color: var(--silver-white); }
.paraquem .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: start; }
.paraquem .wrap > * { grid-column: 2; }
.paraquem .eyebrow { color: var(--ember); }
.paraquem .texto { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 300; max-width: 22em; }
.paraquem .texto strong { color: #E6C8FF; }

/* ---------- 9 · Próximo passo: folhas (versão larga gerada da Living_Detail_02) ---------- */
.cta { position: relative; overflow: hidden; background: #120860 var(--art) left center / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,6,60,.78) 0%, rgba(10,6,60,.55) 45%, rgba(10,6,60,.12) 70%); }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta .eyebrow { color: #fff; }
.cta h2 { font-size: clamp(34px, 4.2vw, 56px); }
.cta .lead { color: rgba(235,236,242,.88); margin-top: 20px; }


.form { background: rgba(4,7,26,.62); border: 1px solid rgba(235,236,242,.18); border-radius: 24px; padding: 32px; display: grid; gap: 16px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.field label em { font-style: normal; font-weight: 400; color: var(--silver); }
.field input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid rgba(181,183,193,.3); background: rgba(21,24,76,.6); color: var(--silver-white); padding: 0 14px; font: 400 16px var(--font); }
.field input:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--ember); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; margin-top: 6px; }
.form-status { margin: 0; font-size: 14px; color: var(--silver-white); min-height: 1.2em; }
.form-status.error { color: #FF9C7D; }
.wa { margin: 0; font-size: 14px; color: var(--silver); text-align: center; }
.wa a { color: var(--silver-white); font-weight: 700; }

footer { padding-block: 64px calc(48px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
footer p { margin: 14px 0 0; color: var(--silver); font-size: 15px; max-width: 24em; }
footer h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
footer ul a { text-decoration: none; }
footer ul a:hover { text-decoration: underline; }
footer .base { grid-column: 1 / -1; border-top: 1px solid rgba(181,183,193,.12); padding-top: 24px; margin-top: 16px; font-size: 13px; color: var(--silver); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- desktop (901px+): imagens até o meio da página ---------- */
@media (min-width: 901px) {
  /* árvore preenche a metade esquerda e dissolve perto do centro (o pseudo é espelhado) */
  .pergunta::before { width: 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); }
  /* veias preenchem a metade direita, suaves */
  .frentes .bg { inset: 0 0 0 50%; background-position: right center; opacity: .45; filter: contrast(.75) brightness(1.08);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-composite: intersect; }
  .frentes .bg::after { display: none; }
  /* O que muda: imagem larga pela altura à esquerda; o resto recebe o degradê da borda da imagem (sem emenda) */
  .muda { background: var(--art) left center / auto 100% no-repeat,
                      linear-gradient(180deg, #3380DA 0%, #317ED6 25%, #2F73C8 50%, #2263BD 75%, #235CB6 100%); }
  .muda::before { background: linear-gradient(270deg, rgba(8,40,120,.35) 0%, rgba(8,40,120,.1) 50%, rgba(8,40,120,0) 70%); }
  .muda .wrap { display: grid; grid-template-columns: 1fr 1fr; }
  .muda .wrap > * { grid-column: 2; }
  .muda h2 { font-size: clamp(32px, 3.4vw, 48px); }
  .compromisso { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}


/* tablet e mobile */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .hero { min-height: 100svh; align-items: flex-start; }
  .hero .wrap { padding-block: calc(var(--header-h) + 40px) 280px; }
  .hero-media img { object-position: center bottom; }
  .hero-media::after { background: linear-gradient(180deg, rgba(4,7,26,.75) 0%, rgba(4,7,26,.7) 50%, rgba(4,7,26,.5) 66%, rgba(4,7,26,.1) 84%, var(--night) 100%); }
  .sinais, .cards3, .compromisso { grid-template-columns: 1fr; }
  .compromisso li { padding-bottom: 6px; }
  .passos { grid-template-columns: 1fr 1fr; }
  .cta .wrap, footer .wrap { grid-template-columns: 1fr; }
  .virada { height: 180vh; }
  .virada-text { align-items: flex-end; padding-bottom: 110px; }
  .virada-lines { min-height: 190px; }
  .virada-lines li { font-size: 26px; top: auto; bottom: 0; transform: translateY(10%); }
  .virada-lines li.on { transform: translateY(0); }
}
@media (max-width: 560px) {
  .passos, .row2 { grid-template-columns: 1fr; }
  .header-actions .btn-small { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .form { padding: 24px 20px; }
  .virada-static img { aspect-ratio: 9 / 14; }
}

/* ---------- celular (até 900px): imagens na base, abaixo do texto ---------- */
@media (max-width: 900px) {
  .pergunta::before { width: 100%; top: 30%; opacity: .55;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%); }
  .metodo { background-size: 240% auto; background-position: 35% bottom; }
  .muda::before { background: linear-gradient(180deg, rgba(8,40,120,.35) 0%, rgba(8,40,120,.15) 55%, rgba(8,40,120,0) 70%); }
  /* section.block.* para vencer o padding padrão das seções, sem !important */
  section.block.muda { padding-bottom: 380px;
    background: linear-gradient(180deg, #2B6CC6 0, #2B6CC6 calc(100% - 470px), rgba(43,108,198,0) calc(100% - 300px)),
                var(--art) left bottom / 230% auto no-repeat, #2B6CC6; }
  .compromisso li { padding-bottom: 6px; }
  .citacao { background-size: 75% auto; background-position: right 12%; }
  .citacao blockquote { max-width: none; }
  section.block.paraquem { padding-bottom: 250px; background: #152F76 var(--art) left bottom / 175% auto no-repeat; }
  .paraquem .wrap { grid-template-columns: 1fr; }
  .paraquem .wrap > * { grid-column: auto; }
  .paraquem .texto { max-width: none; }
  .cta { background-size: auto 100%; background-position: 20% center; }
  .cta::before { background: rgba(10,6,60,.72); }
  /* alvos de toque de 44px */
  footer ul a, .wa a, .skip, .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
  footer ul { gap: 0; }
  /* O que muda: ponto ao lado do texto e linha fina entre os itens (a coluna única deixava o ponto solto) */
  .compromisso { margin-top: 36px; }
  .compromisso li { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 17px; line-height: 1.4; }
  .compromisso li::before { flex: none; margin: 0; transform: translateY(-2px); }
  /* Como trabalhamos: etapas mais compactas */
  .passos { gap: 12px; margin-top: 36px; }
  .passo { padding: 20px; gap: 6px; border-radius: 16px; }
  .passo h3 { font-size: 18px; }
  /* citação: a pena desce para baixo do texto, sem ficar atrás da frase */
  section.block.citacao { padding-bottom: min(56vw, 280px); background-size: 72% auto; background-position: right bottom; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .virada-lines li { transition: none; }
}

/* ---------- conversão ---------- */
/* CTA no meio da página, depois das frentes */
.cta-inline { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-inline p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); }
/* privacidade logo abaixo do botão do formulário */
.form-privacy { margin: -6px 0 0; font-size: 13px; color: var(--silver); text-align: center; }

/* ---------- rastro da borboleta: a imagem original (luz) no escuro; a versão "luz sobre branco" no claro ---------- */


/* ---------- perspectiva do conjunto ----------
   O movimento é feito em JS (Web Animations) para variar com a velocidade do voo.
   Corpo da borboleta no conjunto (sem espelhar): ~93% x 36%; o rastro desce até a ponta (~5% x 95%). */
.borboleta .bf-inner { perspective: 1100px; }

/* ---------- nascimento da borboleta: clarão de luz no ponto onde ela surge ---------- */
.borboleta .bf-flash { position: absolute; left: 89%; top: 36%; width: 95%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(var(--flash-s, .2)); opacity: var(--flash, 0);
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, #fff 0%, rgba(214,238,255,.95) 12%, rgba(120,190,255,.6) 30%, rgba(140,110,255,.25) 52%, rgba(120,90,240,0) 72%); }
.borboleta.sobre-claro .bf-flash { mix-blend-mode: normal; }

/* ---------- desempenho: só a versão ativa do rastro é renderizada; brilho do conjunto sem filtro por quadro ---------- */
.borboleta, .borboleta.sobre-claro { filter: none; }
.borboleta .asas { will-change: transform; }

/* asas: tira de 28 quadros decodificada uma vez (mais leve que WebP animado); tempo marcado por quadro */
.borboleta .asas-sprite { position: absolute; display: block; aspect-ratio: 571 / 589;
  background: var(--asas-art, none) 0 0 / 2800% 100% no-repeat;
  animation: vooAsas .98s steps(1, end) infinite; }
@keyframes vooAsas { 0.00% { background-position: 0.0000% 0; } 5.88% { background-position: 3.7037% 0; } 11.76% { background-position: 7.4074% 0; } 17.65% { background-position: 11.1111% 0; } 23.53% { background-position: 14.8148% 0; } 29.41% { background-position: 18.5185% 0; } 35.29% { background-position: 22.2222% 0; } 39.22% { background-position: 25.9259% 0; } 41.18% { background-position: 29.6296% 0; } 43.14% { background-position: 33.3333% 0; } 45.10% { background-position: 37.0370% 0; } 47.06% { background-position: 40.7407% 0; } 49.02% { background-position: 44.4444% 0; } 50.98% { background-position: 48.1481% 0; } 52.94% { background-position: 51.8519% 0; } 54.90% { background-position: 55.5556% 0; } 56.86% { background-position: 59.2593% 0; } 58.82% { background-position: 62.9630% 0; } 60.78% { background-position: 66.6667% 0; } 62.75% { background-position: 70.3704% 0; } 64.71% { background-position: 74.0741% 0; } 66.67% { background-position: 77.7778% 0; } 68.63% { background-position: 81.4815% 0; } 72.55% { background-position: 85.1852% 0; } 76.47% { background-position: 88.8889% 0; } 82.35% { background-position: 92.5926% 0; } 88.24% { background-position: 96.2963% 0; } 94.12% { background-position: 100.0000% 0; } 100% { background-position: 0% 0; } }

.borboleta .asas-sprite { opacity: var(--asas-o, 1); }

/* =====================================================================
   PÁGINAS DE SERVIÇO (/servicos/ e /servicos/<slug>/) · mesmos tokens, mesmo ritmo claro/escuro
   hero escuro (Flow) · para quem claro · o que inclui escuro (Quiet) · etapas claro · FAQ escuro · relacionados claro · CTA violeta
   ===================================================================== */
.footer-title { margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); font-weight: 600; }
footer ul + .footer-title { margin-top: 28px; }
footer li { color: var(--silver); }

.page-hero { position: relative; padding-block: calc(var(--header-h) + clamp(56px, 9vw, 120px)) clamp(72px, 10vw, 128px);
  background: linear-gradient(90deg, var(--night) 30%, rgba(4,7,26,.72) 62%, rgba(4,7,26,.35) 100%), var(--hero-art) right center / cover no-repeat var(--night); }
.page-hero h1 { max-width: 15em; font-size: clamp(36px, 4.8vw, 64px); }
.page-hero .lead { margin-top: 24px; }
.page-hero .hero-actions { margin-top: 40px; }
.breadcrumb ol { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--silver); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--silver-white); }

.page-claro { background: #FDFDFE; color: var(--ink); }
.page-claro .eyebrow, .page-relacionados .eyebrow { color: var(--ember-ink); }
.page-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-texto { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink-soft); }
.page-servico .passos { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.page-etapas { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: etapa; }
.page-etapas li { counter-increment: etapa; border-top: 1px solid rgba(11,14,36,.16); padding-top: 20px; color: var(--ink-soft); font-size: 16px; min-width: 0; }
.page-etapas li::before { content: counter(etapa, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ember-ink); margin-bottom: 12px; }
.page-etapas strong { display: block; color: var(--ink); font-size: 19px; font-weight: 600; margin-bottom: 6px; }

.page-faq { background: var(--night); }
.faq-lista { margin-top: 48px; border-top: 1px solid rgba(181,183,193,.18); max-width: 56em; }
.faq-item { border-bottom: 1px solid rgba(181,183,193,.18); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.35; }
.faq-item summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(181,183,193,.3); color: var(--ember); font-size: 20px; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover h3 { color: #fff; }
.faq-item p { margin: 0 0 26px; color: var(--silver); max-width: 44em; }

.page-relacionados { background: var(--paper); color: var(--ink); }
.rel-lista { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rel-lista a { display: flex; justify-content: space-between; gap: 16px; height: 100%; padding: 24px 26px; border-radius: 20px; background: #fff; border: 1px solid rgba(11,14,36,.08); box-shadow: 0 16px 32px -24px rgba(21,24,76,.35); text-decoration: none; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.rel-lista a span { color: var(--ember-ink); }
.rel-lista a:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -22px rgba(21,24,76,.45); }

.page-cta-acoes { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }

/* hub /servicos/: três frentes, cada uma com seus serviços */
.grupos { display: grid; gap: clamp(56px, 8vw, 96px); }
.frente-grupo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 6vw, 80px); align-items: start; }
.frente-grupo h2 { font-weight: 600; }
.frente-grupo > p { grid-column: 1; margin: 0; color: var(--ink-soft); }
.svc-lista { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-lista a { display: grid; gap: 6px; padding: 22px 24px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(11,14,36,.06); text-decoration: none; transition: background .2s, transform .2s; }
.svc-lista a:hover { background: #EEF0F6; transform: translateX(3px); }
.svc-lista strong { font-size: 19px; font-weight: 600; }
.svc-lista strong::after { content: " →"; color: var(--ember-ink); }
.svc-lista span { color: var(--ink-soft); font-size: 15px; }

/* FAQ da home: clara, entre "Para quem" (escura) e o contato (violeta), mantendo a alternância */
.faq-home { background: #FDFDFE var(--art) right bottom / auto 100% no-repeat; color: var(--ink); }
.faq-home .faq-lista { max-width: min(56em, 60%); }
@media (max-width: 900px) {
  /* celular: a seda fica embaixo, depois da lista */
  section.block.faq-home { padding-bottom: min(110vw, 460px); background-size: 100% auto; background-position: center bottom; }
  .faq-home .faq-lista { max-width: none; }
}
.faq-home .eyebrow { color: var(--ember-ink); }
.faq-home .faq-lista, .faq-home .faq-item { border-color: rgba(11,14,36,.12); }
.faq-home .faq-item summary::after { border-color: rgba(11,14,36,.2); color: var(--ember-ink); }
.faq-home .faq-item summary:hover h3 { color: var(--violet); }
.faq-home .faq-item p { color: var(--ink-soft); }

/* cards das frentes na home: itens com página própria viram links discretos */
.frente li a { text-decoration: none; border-bottom: 1px solid rgba(82,0,162,.25); transition: border-color .2s, color .2s; }
.frente li a:hover { color: var(--violet); border-color: var(--violet); }
.frentes .link-arrow, .page-claro .link-arrow { color: var(--ink); border-color: rgba(11,14,36,.3); }
.frentes .link-arrow:hover { border-color: var(--ink); }
.footer-title a { text-decoration: none; }

@media (max-width: 900px) {
  .page-hero { background: linear-gradient(180deg, rgba(4,7,26,.88) 0%, rgba(4,7,26,.8) 60%, var(--night) 100%), var(--hero-art-m) center bottom / cover no-repeat var(--night); }
  .page-cols, .frente-grupo { grid-template-columns: 1fr; }
  .svc-lista { grid-column: 1; grid-row: auto; }
  .page-etapas { grid-template-columns: 1fr 1fr; }
  .rel-lista { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-etapas { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after, .rel-lista a, .svc-lista a { transition: none; }
}


/* rastro: partículas desenhadas no canvas pelo site.js, sob as asas,
   com a ponta brilhante saindo do corpo. O esmaecimento já vem nos quadros (sem máscara CSS, que custaria a cada quadro).
   Sem o drop-shadow do conjunto: o brilho já está no rastro e o filtro seria recalculado a cada redesenho. */
.borboleta .rastro-filme { position: absolute; left: 18%; top: 4%; width: 100%; height: auto; aspect-ratio: 1; opacity: 0; pointer-events: none; transform: rotate(17deg); transform-origin: 71.8% 34%;
  will-change: transform; }
.borboleta.rastro-filme-on .rastro-filme { opacity: var(--rastro, 1); }
.borboleta.rastro-filme-on { filter: none; }

/* ---------- celular: Como trabalhamos, O que muda e Perguntas (só até 900px; desktop intocado) ---------- */
@media (max-width: 900px) {
  /* Como trabalhamos: linha do tempo vertical no lugar das 4 caixas iguais */
  section.block.metodo { padding-bottom: 160px; }
  .metodo .passos { position: relative; gap: 0; margin-top: 44px; padding-left: 30px; }
  .metodo .passos::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 12px; width: 1px;
    background: linear-gradient(180deg, var(--ember) 0%, rgba(235,236,242,.35) 35%, rgba(235,236,242,.12) 100%); }
  .metodo .passo { position: relative; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 0 0 30px; gap: 6px; }
  .metodo .passo:last-child { padding-bottom: 0; }
  .metodo .passo::before { content: ""; position: absolute; left: -30px; top: 3px; width: 11px; height: 11px; border-radius: 50%;
    background: #0B0B3F; border: 2px solid var(--ember); box-sizing: border-box; }
  .metodo .passo .n { font-size: 12px; }
  .metodo .passo h3 { font-size: 20px; }
  .metodo .passo p { font-size: 16px; line-height: 1.5; color: rgba(235,236,242,.78); }

  /* O que muda: arte do planeta mais baixa e emendada no azul; lista com mais presença */
  section.block.muda { padding-bottom: 250px;
    background: linear-gradient(180deg, #2B6CC6 0, #2B6CC6 calc(100% - 330px), rgba(43,108,198,0) calc(100% - 170px)),
                var(--art) left bottom / 200% auto no-repeat, #2B6CC6; }
  .muda .compromisso li { font-size: 18px; font-weight: 500; padding: 18px 0; }

  /* Perguntas: faixa de seda menor, mostrando a parte de mais relevo, sem o branco vazio */
  section.block.faq-home { padding-bottom: 230px; background-size: 150% auto; background-position: 85% bottom; }
}

/* ---------- celular, rodada 2 (só até 900px; desktop intocado) ---------- */
@media (max-width: 900px) {
  /* Como trabalhamos: a faixa de luz fica em pé, à direita, acompanhando a linha do tempo */
  section.block.metodo { position: relative; padding-bottom: 90px; background: #0B0B3F var(--art) right -95px center / auto 100% no-repeat; }
  section.block.metodo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(11,11,63,.72) 0%, rgba(11,11,63,.4) 50%, rgba(11,11,63,0) 72%); }
  .metodo .wrap { position: relative; z-index: 1; }

  /* O que entregamos: veias mais visíveis e cartões destacados do fundo */
  .frentes .bg { opacity: 1; filter: none; }
  .frentes .bg::after { display: block; background: rgba(244,245,248,.55); }
  .frentes .card, .frentes .cards3 > * { background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(20,24,76,.1); }

  /* O que muda: a faixa de luz sobe para logo abaixo da lista */
  section.block.muda { padding-bottom: 230px;
    background: linear-gradient(180deg, #2B6CC6 0, #2B6CC6 calc(100% - 400px), rgba(43,108,198,0) calc(100% - 250px)),
                var(--art) left bottom / 240% auto no-repeat, #2B6CC6; }

  /* Palavra do fundador: a pena em cima, grande, e a frase abaixo */
  section.block.citacao { padding-top: min(60vw, 330px); padding-bottom: 80px; background-size: 115% auto; background-position: 30% 24px; }

  /* Para quem: imagem cobre a seção inteira (uma cor só), texto sobre a parte escura */
  section.block.paraquem { position: relative; padding-bottom: 300px; background: #13104C var(--art) left bottom / cover no-repeat; }
  section.block.paraquem::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(19,16,76,.85) 0%, rgba(19,16,76,.55) 40%, rgba(19,16,76,0) 70%); }
  .paraquem .wrap { position: relative; }

  /* Próximo passo: folhas no topo, atrás do título, escurecendo até o formulário */
  .cta { background-size: 170% auto; background-position: left top; background-color: #120860; }
  .cta::before { background: linear-gradient(180deg, rgba(10,6,60,.3) 0%, rgba(10,6,60,.7) 30%, rgba(18,8,96,.95) 55%, #120860 75%); }
}

/* ---------- celular, ajustes da validação de 09/11 (só até 900px; desktop intocado) ---------- */
@media (max-width: 900px) {
  /* cabeçalho: sólido sobre as seções claras (o translúcido virava faixa cinza) */
  .site-header.scrolled { background: rgba(4,7,26,.95); }
  /* botão do topo: uma linha só e 44px de altura */
  .header-actions .btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; white-space: nowrap; }

  /* toques: links de serviço e títulos do rodapé com área de 44px */
  .frente ul { gap: 0; }
  .frente li { display: flex; align-items: center; gap: 4px; min-height: 44px; }
  .frente li a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0;
    text-decoration: underline; text-decoration-color: rgba(82,0,162,.3); text-underline-offset: 4px; }
  .footer-title a { display: inline-flex; align-items: center; min-height: 44px; }

  /* texto sobre a faixa de luz: opaco e com sombra suave, a luz continua onde está */
  .metodo h2, .metodo .lead, .metodo .passo h3, .metodo .passo p { text-shadow: 0 1px 14px rgba(11,11,63,.9), 0 0 2px rgba(11,11,63,.6); }
  .metodo .lead, .metodo .passo p { color: rgba(235,236,242,.95); }
  .muda .compromisso li { text-shadow: 0 1px 12px rgba(18,52,140,.75); }
  /* etiqueta "O que muda": branca para passar de 4,5:1 sobre o azul */
  .muda .eyebrow { color: #fff; }

  /* fim da Virada: some com as barrinhas e o "Pular" quando o fundo fica branco (a tela parecia travada) */
  .virada.claro .progress, .virada.claro .skip { opacity: 0; pointer-events: none; transition: opacity .4s; }
}
@media (max-width: 374px) {
  .logo img { height: 34px; }
  .header-actions .btn-small { padding: 0 12px; font-size: 13px; }
}

/* =====================================================================
   ARTES DE FUNDO · carregamento sob demanda
   Cada seção guarda a própria arte em --art. O valor nasce "none", e o site.js
   troca para a imagem quando a seção se aproxima da tela (classe .bg-on).
   Antes disso as nove artes baixavam juntas no carregamento, mesmo as que
   estavam a dez telas de distância. O hero das páginas de serviço não entra
   nessa regra: ele aparece de primeira e carrega junto com a página.
   ===================================================================== */
.pergunta, .metodo, .frentes, .muda, .citacao, .paraquem, .cta, .faq-home { --art: none; }

.pergunta.bg-on { --art: url(../img/living-arvore.webp); }
.metodo.bg-on { --art: url(../img/quiet-metodo.webp); }
.frentes.bg-on { --art: url(../img/living-1920.webp); }
.muda.bg-on { --art: url(../img/quiet-muda-wide-esq.webp); }
.citacao.bg-on { --art: url(../img/living-pena.webp); }
.paraquem.bg-on { --art: url(../img/living-leque-wide-esq.webp); }
.cta.bg-on { --art: url(../img/living-folhas-esq.webp); }
.faq-home.bg-on { --art: url(../img/flow-faq.webp); }
@media (max-width: 900px) { .metodo.bg-on { --art: url(../img/quiet-metodo-vertical.webp); } }

:root { --hero-art: url(../img/hero-1920.webp); --hero-art-m: url(../img/hero-mobile.webp); }

/* AVIF onde o navegador aceita: as mesmas artes com cerca de 40% do peso do WebP */
@supports (background-image: image-set(url(../img/flow-faq.avif) type("image/avif"))) {
  .pergunta.bg-on { --art: image-set(url(../img/living-arvore.avif) type("image/avif"), url(../img/living-arvore.webp) type("image/webp")); }
  .metodo.bg-on { --art: image-set(url(../img/quiet-metodo.avif) type("image/avif"), url(../img/quiet-metodo.webp) type("image/webp")); }
  .frentes.bg-on { --art: image-set(url(../img/living-1920.avif) type("image/avif"), url(../img/living-1920.webp) type("image/webp")); }
  .muda.bg-on { --art: image-set(url(../img/quiet-muda-wide-esq.avif) type("image/avif"), url(../img/quiet-muda-wide-esq.webp) type("image/webp")); }
  .citacao.bg-on { --art: image-set(url(../img/living-pena.avif) type("image/avif"), url(../img/living-pena.webp) type("image/webp")); }
  .paraquem.bg-on { --art: image-set(url(../img/living-leque-wide-esq.avif) type("image/avif"), url(../img/living-leque-wide-esq.webp) type("image/webp")); }
  .cta.bg-on { --art: image-set(url(../img/living-folhas-esq.avif) type("image/avif"), url(../img/living-folhas-esq.webp) type("image/webp")); }
  .faq-home.bg-on { --art: image-set(url(../img/flow-faq.avif) type("image/avif"), url(../img/flow-faq.webp) type("image/webp")); }
  @media (max-width: 900px) { .metodo.bg-on { --art: image-set(url(../img/quiet-metodo-vertical.avif) type("image/avif"), url(../img/quiet-metodo-vertical.webp) type("image/webp")); } }
  :root { --hero-art: image-set(url(../img/hero-1920.avif) type("image/avif"), url(../img/hero-1920.webp) type("image/webp"));
          --hero-art-m: image-set(url(../img/hero-mobile.avif) type("image/avif"), url(../img/hero-mobile.webp) type("image/webp")); }
}

/* =====================================================================
   ONDA 2 · correções que antes só existiam no celular, agora em toda largura
   ===================================================================== */

/* cabeçalho sólido ao rolar: o translúcido com desfoque virava uma faixa cinza
   sobre as seções claras (Ponto de partida, O que entregamos, Citação, Perguntas) */
.site-header.scrolled { background: rgba(4,7,26,.95); }

/* fim da Virada: quando o campo clareia, as barrinhas e o "Pular" somem.
   Sobre o branco eles ficavam flutuando soltos e a tela parecia travada. */
.virada.claro .progress, .virada.claro .skip { opacity: 0; pointer-events: none; transition: opacity .4s; }

/* Como trabalhamos: os cartões 03 e 04 caem sobre a parte clara da faixa de luz.
   A sombra de texto devolve o contraste sem apagar a arte. */
.metodo h2, .metodo .lead, .metodo .passo h3, .metodo .passo p { text-shadow: 0 1px 14px rgba(11,11,63,.9), 0 0 2px rgba(11,11,63,.6); }
.metodo .lead, .metodo .passo p { color: rgba(235,236,242,.95); }
.metodo .passo { background: rgba(12,10,60,.72); }
.muda .eyebrow { color: #fff; }

/* a borboleta é decorativa: nunca passa por cima do texto que ela sobrevoa */
.borboleta { mix-blend-mode: normal; }

/* rodapé no celular: duas colunas. Em coluna única os dezesseis links com área
   de toque de 44px ocupavam duas telas e meia sozinhos. */
@media (max-width: 900px) {
  footer .wrap { gap: 28px 20px; }
  footer ul a { min-height: 40px; }
  footer p { font-size: 14px; }
  /* os títulos das colunas alinham entre si: o link "Serviços" ganhava 44px de altura
     e empurrava a lista para baixo do vizinho */
  .footer-title { display: flex; align-items: center; min-height: 32px; margin-bottom: 4px; }
  .footer-title a { min-height: 32px; }
}
/* duas colunas só onde os nomes dos serviços cabem em uma ou duas linhas */
@media (min-width: 560px) and (max-width: 900px) {
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}

/* WhatsApp sempre ao alcance no celular: antes o único link estava dentro do
   formulário, no fim de treze telas de rolagem. */
.wa-fixo { display: none; position: fixed; z-index: 45; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 999px; background: #1EBE5D; color: #fff;
  box-shadow: 0 6px 24px -6px rgba(0,0,0,.6); place-items: center; text-decoration: none; }
.wa-fixo svg { width: 30px; height: 30px; }
@media (max-width: 900px) { .wa-fixo { display: grid; } }
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .wa-fixo { transition: transform .2s; }
  .wa-fixo:active { transform: scale(.94); }
}

/* formulário: erro no campo que falhou, em vez de uma frase única listando todos */
.form textarea { width: 100%; min-height: 76px; border-radius: 12px; border: 1px solid rgba(181,183,193,.3);
  background: rgba(21,24,76,.6); color: var(--silver-white); padding: 12px 14px; font: 400 16px/1.4 var(--font); resize: vertical; }
.form textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.field-erro { margin: 0; font-size: 13px; color: #FF9C7D; min-height: 0; }
.field-erro:empty { display: none; }

/* a tira de asas (300 KB) entra junto com a Virada, não no carregamento inicial */
.borboleta.asas-on { --asas-art: url(../img/borboleta-voo-sprite.webp); }
