/* ==========================================================================
   Mogiana Engenharia — Topografia — LP direta
   Design system: grafite escuro · verde de marca #028053 · off-white
   Mecanismo central: grid de pontos GPS RTK -> linha de divisa se retificando
   (tracejada/vermelha -> sólida/verde) -> carimbo de protocolo de cartório
   ========================================================================== */

:root {
  --bg: #10201A;
  --bg-deep: #0B1712;
  --bg-soft: #16281F;
  --paper: #F5F4EF;
  --paper-line: #E3E0D4;
  --ink: #142019;
  --ink-muted: rgba(20, 32, 25, 0.62);
  --text: #F5F4EF;
  --muted: rgba(245, 244, 239, 0.64);
  --green: #028053;
  --green-light: #05A868;
  --green-deep: #026A45; /* white text on #028053→#026A45 stays ≥4.9:1 */
  --green-dim: rgba(2, 128, 83, 0.18);
  --red: #C1432E;
  --stroke: rgba(245, 244, 239, 0.12);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.container--narrow { width: min(760px, 92vw); margin-inline: auto; }

[id] { scroll-margin-top: var(--header-h); }

::selection { background: rgba(2, 128, 83, 0.35); color: #fff; }

/* ==========================================================================
   Film grain
   ========================================================================== */
.grain {
  position: fixed; inset: -100px; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 10px); }
  40% { transform: translate(20px, -25px); }
  60% { transform: translate(-15px, 30px); }
  80% { transform: translate(25px, 5px); }
}


/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
/* Blur lives on a pseudo-element: backdrop-filter on .header itself would make it the
   containing block of the fixed mobile menu panel, shrinking the panel to 78px. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(16, 32, 26, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.4s ease;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled { border-bottom-color: var(--stroke); }
/* Sem JS/CDN ninguém liga is-scrolled: header sempre opaco */
.no-js .header::before { opacity: 1; }
.no-js .header { border-bottom-color: var(--stroke); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 46px; width: auto; border-radius: 8px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 0.86rem; font-weight: 500; color: var(--muted);
  transition: color 0.25s ease; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--green-light); transition: width 0.3s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__mobile { display: none; margin-left: auto; }
.nav__burger {
  display: flex; flex-direction: column; gap: 6px; padding: 10px; cursor: pointer;
  list-style: none; position: relative; z-index: 101;
}
.nav__burger::-webkit-details-marker { display: none; }
.nav__burger i { width: 24px; height: 2px; background: var(--text); display: block; transition: transform .3s ease, opacity .3s ease; }
.nav__mobile[open] .nav__burger i:first-child { transform: translateY(4px) rotate(45deg); }
.nav__mobile[open] .nav__burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile-panel {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(11, 23, 18, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav__mobile[open] .nav__mobile-panel { display: flex; align-items: center; justify-content: center; }
.nav__mobile-panel nav { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.nav__mobile-panel a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--muted); }
.nav__mobile-panel a:hover { color: var(--text); }
.nav__mobile-cta { color: var(--green-light) !important; font-size: 1.05rem !important; margin-top: 12px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 15px 30px; border-radius: 999px;
  border: 1px solid var(--stroke);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn span { transition: transform 0.3s ease; }
.btn:hover span { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 32px rgba(2, 128, 83, 0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(2, 128, 83, 0.55); }
.btn--ghost { background: rgba(245,244,239,0.05); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(245,244,239,0.3); transform: translateY(-2px); }
.btn--small { padding: 10px 22px; font-size: 0.82rem; background: rgba(245,244,239,0.06); }
.btn--small:hover { border-color: var(--green-light); }
.btn--big { padding: 20px 44px; font-size: 1.1rem; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; }

.cta-micro { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.cta-micro--paper { color: var(--ink-muted); }

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 16px;
}
.section-eyebrow--paper { color: var(--green); }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.14; letter-spacing: -0.015em;
  margin-bottom: 34px; max-width: 18ch;
}
.section-title--paper { color: var(--ink); }

/* ==========================================================================
   Bloco 1 — Abertura
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--bg-deep); }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(245,244,239,0.14) 1.2px, transparent 1.2px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, black 20%, transparent 78%);
}
/* Foto aérea de fundo; a animação do terreno (em .hero__inner, z-index 2) é desenhada por cima dela */
.hero__foto { position: absolute; inset: 0; z-index: 0; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero__foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,23,18,0.95) 0%, rgba(11,23,18,0.82) 42%, rgba(11,23,18,0.35) 100%);
}
.hero__inner {
  position: relative; z-index: 2; padding-top: var(--header-h);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__title-accent { color: var(--green-light); }
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.22rem); font-weight: 500; margin-bottom: 30px; }
.hero__trust { margin-top: 26px; font-size: 0.84rem; color: var(--muted); border-top: 1px solid var(--stroke); padding-top: 16px; max-width: 520px; }

/* Terreno que se desenha sozinho (CSS puro, roda uma vez) */
.terreno { width: 100%; max-width: 520px; justify-self: end; }
.terreno__linha { fill: none; stroke: var(--green-light); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: desenhar 1.8s 0.9s cubic-bezier(.6,.1,.3,1) forwards; }
.terreno__ponto { fill: var(--green-light); opacity: 0; animation: surgir 0.4s ease forwards; }
.terreno__ponto:nth-of-type(1) { animation-delay: 0.1s; } .terreno__ponto:nth-of-type(2) { animation-delay: 0.2s; }
.terreno__ponto:nth-of-type(3) { animation-delay: 0.3s; } .terreno__ponto:nth-of-type(4) { animation-delay: 0.4s; }
.terreno__ponto:nth-of-type(5) { animation-delay: 0.5s; } .terreno__ponto:nth-of-type(6) { animation-delay: 0.6s; }
.terreno__ponto:nth-of-type(7) { animation-delay: 0.7s; }
.terreno__selo { opacity: 0; transform-origin: 300px 60px; animation: carimbar 0.5s 2.8s cubic-bezier(.3,1.6,.5,1) forwards; }
.terreno__selo text { fill: var(--green-light); font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; }
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes surgir { to { opacity: 1; } }
@keyframes carimbar { from { opacity: 0; transform: scale(0.6) rotate(-10deg); } to { opacity: 1; transform: scale(1) rotate(-6deg); } }

/* ==========================================================================
   Mecanismo — pinned scroll story
   ========================================================================== */
.mecanismo { position: relative; background: var(--bg-deep); }
.mecanismo__pin { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14vh 0 8vh; }
.js:not(.reduced) .mecanismo__pin { height: 100svh; padding: 0; }

.mecanismo__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.js:not(.reduced) .mecanismo__canvas { display: block; }

.mecanismo__static { display: block; width: min(480px, 82vw); margin: 4vh auto; opacity: 0.9; }
.js:not(.reduced) .mecanismo__static { display: none; }

.mecanismo__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 26%, transparent 58%, rgba(11,23,18,0.92) 100%);
  display: none;
}
.js:not(.reduced) .mecanismo__overlay { display: block; }

.mecanismo__head { position: relative; z-index: 2; padding-top: 4vh; }
.js:not(.reduced) .mecanismo__head { position: absolute; top: max(10vh, 90px); left: 50%; transform: translateX(-50%); width: min(1200px, 92vw); padding-top: 0; }
.mecanismo__head .section-title { margin-bottom: 10px; font-size: clamp(1.5rem, 3vw, 2.4rem); }
/* Desktop: keep the head block in the left 40vw; main.js draws the plot in the right half. */
@media (min-width: 769px) {
  .js:not(.reduced) .mecanismo__head .section-title,
  .js:not(.reduced) .mecanismo__lead { max-width: 40vw; }
}
.mecanismo__lead { color: var(--muted); font-size: 1rem; max-width: 560px; }

.mecanismo__steps { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; padding: 6vh 4vw; }
.mecanismo__step { max-width: 560px; display: flex; gap: 14px; align-items: baseline; }
.mecanismo__num { font-family: var(--font-display); font-weight: 700; color: var(--green-light); font-size: 0.85rem; letter-spacing: 0.15em; flex-shrink: 0; }
.mecanismo__step p { color: var(--text); font-size: 1rem; }
.mecanismo__step strong { color: var(--green-light); }

.js:not(.reduced) .mecanismo__steps { position: relative; height: 0; padding: 0; }
.js:not(.reduced) .mecanismo__step {
  position: absolute; bottom: 13vh; left: 4vw; right: 4vw; max-width: 520px;
  opacity: 0; visibility: hidden;
}

.mecanismo__stamp { display: none; }
.js:not(.reduced) .mecanismo__stamp {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; right: 6vw; bottom: 30vh; z-index: 3; opacity: 0;
  color: var(--green-light);
}
.mecanismo__stamp svg { width: 74px; height: 74px; }
.mecanismo__stamp span { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }

.mecanismo__progress {
  display: none; position: absolute; right: 4vw; bottom: 12vh; z-index: 2;
  width: 3px; height: 110px; border-radius: 3px; background: rgba(245,244,239,0.14); overflow: hidden;
}
.js:not(.reduced) .mecanismo__progress { display: block; }
.mecanismo__progress i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--green), var(--green-light));
  transform: scaleY(0); transform-origin: top;
}

.mecanismo__resolve { padding: 6vh 0 12vh; }
.mecanismo__step p { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.3; }
.mecanismo__num { font-size: 0.95rem; }
@media (max-width: 768px) {
  .js:not(.reduced) .mecanismo__step { bottom: 15vh; left: 6vw; right: 6vw; }
  .mecanismo__progress { display: none !important; }
  .mecanismo__stamp { right: 6vw; bottom: 32vh; }
  .mecanismo__stamp svg { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .mecanismo__canvas { display: none !important; }
  .mecanismo__static { display: block !important; }
  .js .mecanismo__pin { height: auto !important; padding: 14vh 0 8vh !important; }
  .js .mecanismo__step { position: relative !important; opacity: 1 !important; visibility: visible !important; bottom: auto !important; left: auto !important; right: auto !important; }
  .js .mecanismo__steps { height: auto !important; padding: 6vh 4vw !important; }
  .js .mecanismo__overlay, .js .mecanismo__stamp, .js .mecanismo__progress { display: none !important; }
}

/* ==========================================================================
   Espaços marcados (foto, vídeo, depoimento a receber)
   Normal: vazio some. Apresentação (?apresentacao=1, precisa de JS): moldura com a dica.
   ========================================================================== */
.slot { display: none; margin: 0; }
.slot--filled { display: block; }
.slot--filled img, .slot--filled video { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
/* data-modo só existe se o JS inline do <head> rodou; não depende do CDN */
html[data-modo="apresentacao"] .slot { display: flex; }
html[data-modo="apresentacao"] .slot:not(.slot--filled) {
  align-items: center; justify-content: center; text-align: center;
  min-height: 160px; padding: 22px; border-radius: 16px;
  border: 2px dashed var(--green-light); background: rgba(5,168,104,0.08);
}
.slot__hint { font-size: 0.9rem; color: var(--text); max-width: 32ch; }
.slot__hint b { display: block; font-family: var(--font-display); color: var(--green-light); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; margin-bottom: 6px; }
.slot--paper .slot__hint { color: var(--ink); }
.slot--paper .slot__hint b { color: var(--green); }
html[data-modo="apresentacao"] .slot--paper:not(.slot--filled) { border-color: var(--green); background: rgba(2,128,83,0.06); }

/* ==========================================================================
   Bloco 3 — O que chega na sua mão
   ========================================================================== */
.entrega { background: var(--paper); color: var(--ink); padding: 14vh 0; }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 28px; }
.doc-card { background: #fff; border: 1px solid var(--paper-line); border-radius: 18px; padding: 22px; box-shadow: 0 20px 50px rgba(16,32,26,0.08); }
.doc-card svg { width: 100%; height: auto; display: block; margin-bottom: 16px; }
.doc-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.docs .slot { min-height: 100%; }
.entrega__preco { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 26px; }
.entrega .slot[data-slot="planta-real"] { margin-bottom: 26px; }

/* ==========================================================================
   Bloco 4 — Serviços
   ========================================================================== */
.servicos { padding: 14vh 0; background: var(--bg); }
.servicos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.servico { background: rgba(245,244,239,0.04); border: 1px solid var(--stroke); border-radius: 20px; padding: 18px 18px 26px; }
.servico__media { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; overflow: hidden; }
.servico__media .slot { width: 100%; height: 100%; min-height: 0; }
/* Foto provisória (IA): ocupa o cartão enquanto a foto real não chega; some quando o slot é preenchido */
.servico__media { position: relative; }
.provisoria { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.servico__media:has(.provisoria) .servico__icon { display: none; }
.servico__media:has(.slot--filled) .provisoria { display: none; }
html[data-modo="apresentacao"] .servico__media .slot:not(.slot--filled) {
  position: absolute; inset: 0; z-index: 1; background: rgba(11,23,18,0.66);
}
.servico__icon { width: 62%; height: auto; }
.servico__media:has(.slot--filled) .servico__icon,
html[data-modo="apresentacao"] .servico__icon { display: none; }
.servico h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.servico p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .servicos__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Bloco 5 — Quem faz
   ========================================================================== */
.quem { padding: 14vh 0; background: var(--bg-deep); }
.quem__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.quem__video { flex: 1 1 360px; min-height: 260px; }
.quem__creds { flex: 1 1 360px; display: grid; gap: 14px; }
.quem__creds li { background: rgba(245,244,239,0.04); border: 1px solid var(--stroke); border-radius: 18px; padding: 22px 24px; }
.quem__creds b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--green-light); margin-bottom: 4px; }
.quem__creds span { color: var(--muted); font-size: 0.95rem; }
.quem__depo { margin-top: 24px; }
/* Sem o vídeo ao lado (modo normal), as 3 credenciais ficam lado a lado */
@media (min-width: 901px) { html:not([data-modo="apresentacao"]) .quem__row:has(.quem__video:not(.slot--filled)) .quem__creds { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Bloco 6 — Perguntas e fechamento
   ========================================================================== */
.perguntas { padding: 14vh 0; background: var(--bg-deep); }
.faq__list { display: flex; flex-direction: column; }
.facc { border-bottom: 1px solid var(--stroke); padding: 6px 0; }
.facc:first-child { border-top: 1px solid var(--stroke); }
.facc summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 4px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem); color: var(--text);
}
.facc summary::-webkit-details-marker { display: none; }
.facc summary i { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.facc summary i::before, .facc summary i::after { content: ""; position: absolute; background: var(--green-light); border-radius: 2px; transition: transform 0.3s ease; }
.facc summary i::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.facc summary i::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.facc[open] summary i::after { transform: rotate(90deg); opacity: 0; }
.facc p { color: var(--muted); font-size: 0.96rem; padding: 0 4px 22px; max-width: 68ch; }

.fechamento { padding: 16vh 0; text-align: center; background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 70%, #01452D 100%); }
.fechamento__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1.14; letter-spacing: -0.015em; max-width: 22ch; margin: 0 auto 30px; color: #fff; }
.btn--light { background: #fff; color: var(--green-deep); border-color: transparent; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.btn--light:hover { transform: translateY(-2px); }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer { border-top: 1px solid var(--stroke); padding: 56px 0 32px; background: var(--bg-deep); }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer .nav__logo img { height: 58px; }
.footer__tagline { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-light); margin-top: 16px; }
.footer__contact { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.footer__contact a { color: var(--text); display: inline-block; padding: 4px 0; }
.footer__contact a:hover { color: var(--green-light); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 0.8rem; }

/* ==========================================================================
   Floating CTA (desktop) + sticky bar (mobile)
   ========================================================================== */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 12px 40px rgba(2, 128, 83, 0.5);
  transform: translateY(140px); visibility: hidden;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, visibility 0s linear 0.5s;
}
.float-cta.is-visible { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.float-cta:hover { box-shadow: 0 16px 52px rgba(2, 128, 83, 0.65); }

.mobile-cta-bar {
  display: none;
}

/* ==========================================================================
   Reveal defaults — only hidden once JS confirms it can animate them back in
   ========================================================================== */
.js:not(.reduced) [data-reveal] { opacity: 0; transform: translateY(36px); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; padding-top: calc(var(--header-h) + 3vh); padding-bottom: 12vh; }
  .terreno { justify-self: center; max-width: 380px; }
  .hero__foto::after { background: linear-gradient(180deg, rgba(11,23,18,0.95) 0%, rgba(11,23,18,0.8) 55%, rgba(11,23,18,0.45) 100%); }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav .btn--small { display: none; }
  .nav__mobile { display: block; }
  .float-cta { display: none; }
  .mobile-cta-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
    padding: 16px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(0,0,0,0.28);
  }
  .footer { padding-bottom: 110px; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .btn--big { padding: 16px 30px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .terreno__linha { animation: none; stroke-dashoffset: 0; }
  .terreno__ponto, .terreno__selo { animation: none; opacity: 1; }
  .terreno__selo { transform: rotate(-6deg); }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   V2 (29/09) — tema claro, logo sem fundo, foto da abertura em quadro,
   "Como funciona" sem tela vazia e legendas mais altas.
   Tudo o que muda em relação à V1 está neste bloco.
   ========================================================================== */
:root {
  --bg: #F5F4EF;
  --bg-deep: #ECEAE2;
  --bg-soft: #FFFFFF;
  --text: #142019;
  --muted: rgba(20, 32, 25, 0.68);
  --stroke: rgba(20, 32, 25, 0.12);
  --green-light: #027048; /* verde de destaque em texto: contraste ≥ 5:1 no papel */
  /* cores do desenho em canvas do "Como funciona" (lidas pelo main.js) */
  --cv-bg: #ECEAE2;
  --cv-grid: rgba(20, 32, 25, 0.07);
  --cv-cross: rgba(20, 32, 25, 0.45);
  --cv-point: #028053;
}

/* Cabeçalho claro com logo horizontal sem fundo */
.header::before { background: rgba(245, 244, 239, 0.92); }
.nav__logo img { height: 40px; border-radius: 0; }
.nav__mobile-panel { background: rgba(245, 244, 239, 0.98); }
.btn--ghost { background: rgba(20, 32, 25, 0.04); }
.btn--ghost:hover { border-color: rgba(20, 32, 25, 0.3); }
.btn--small { background: rgba(20, 32, 25, 0.04); }

/* Abertura: papel com grade de pontos; foto num quadro, terreno desenhado por cima */
.hero { background: var(--bg); }
.hero__grid { background-image: radial-gradient(rgba(20, 32, 25, 0.12) 1.2px, transparent 1.2px); }
.hero__visual { position: relative; width: 100%; max-width: 560px; justify-self: end; aspect-ratio: 4 / 3; }
.hero__foto { position: absolute; inset: 0; z-index: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(20, 32, 25, 0.18); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero__foto::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.28) 100%); }
.hero__visual .terreno { position: absolute; inset: 8% 6%; width: 88%; height: 84%; max-width: none; z-index: 2; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); z-index: 3; }
.hero__visual .terreno__linha { stroke: #FFFFFF; stroke-width: 3; }
.hero__visual .terreno__ponto { fill: #FFFFFF; }
.hero__visual .terreno__selo rect { stroke: #FFFFFF; fill: rgba(2, 128, 83, 0.85); }
.hero__visual .terreno__selo text { fill: #FFFFFF; }

/* Como funciona: papel mais escuro, degradês claros */
.mecanismo { background: var(--bg-deep); }
.mecanismo__overlay { background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 26%, transparent 60%, rgba(236, 234, 226, 0.9) 100%); }
.mecanismo__progress { background: rgba(20, 32, 25, 0.12); }
/* Legendas mais altas: o contêiner ocupa a seção inteira, então top/bottom medem a tela */
.js:not(.reduced) .mecanismo__steps { position: absolute; inset: 0; width: auto; height: auto; margin: 0; pointer-events: none; z-index: 2; }
/* No computador sobem para perto do meio da tela */
.js:not(.reduced) .mecanismo__step { bottom: 30vh; left: calc((100% - min(1200px, 92vw)) / 2); }
/* Carimbo no centro da área medida (o main.js centraliza com xPercent/yPercent) */
.js:not(.reduced) .mecanismo__stamp { right: auto; bottom: auto; left: 73%; top: 48%; }

/* Seções alternando papel e branco */
.entrega { background: #FFFFFF; }
.doc-card { background: var(--bg); }
.servicos { background: var(--bg); }
.servico { background: #FFFFFF; box-shadow: 0 14px 40px rgba(20, 32, 25, 0.06); }
.servico__media { background: var(--bg-deep); }
html[data-modo="apresentacao"] .servico__media .slot:not(.slot--filled) { background: rgba(245, 244, 239, 0.88); }
.quem { background: #FFFFFF; }
.quem__creds li { background: var(--bg); }
.perguntas { background: var(--bg); }

/* Rodapé continua grafite, com o logo branco sem fundo */
.footer { background: #10201A; border-top: 0; color: #F5F4EF; }
.footer .nav__logo img { height: 96px; }
.footer__tagline { color: #05A868; }
.footer__contact { color: rgba(245, 244, 239, 0.66); }
.footer__contact a { color: #F5F4EF; }
.footer__contact a:hover { color: #05A868; }
.footer__bottom { border-top-color: rgba(245, 244, 239, 0.12); color: rgba(245, 244, 239, 0.66); }

@media (max-width: 900px) {
  .hero__inner { padding-bottom: 6vh; }
  .hero__visual { justify-self: center; max-width: 480px; }
}
@media (max-width: 768px) {
  .nav__logo img { height: 34px; }
  /* Celular: legenda logo abaixo do desenho (o main.js centraliza o desenho em 44% da altura) */
  .js:not(.reduced) .mecanismo__step { bottom: auto; top: calc(44% + 30vw + 18px); left: 4vw; right: 4vw; }
  .js:not(.reduced) .mecanismo__stamp { right: auto; bottom: auto; left: 50%; top: 44%; }
}

/* ==========================================================================
   30/09 — material real do site atual: foto de campo + logos atendidos
   ========================================================================== */
.clientes { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--stroke); }
.clientes__titulo {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.clientes__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.clientes__logos li { display: flex; align-items: center; }
/* Logos originais são brancos (feitos para fundo escuro): viram grafite sobre o fundo claro */
.clientes__logos img { height: 38px; width: auto; filter: brightness(0) opacity(0.62); transition: filter 0.3s ease; }
.clientes__logos li:hover img { filter: brightness(0) opacity(0.9); }
@media (max-width: 600px) { .clientes__logos { gap: 18px 28px; } .clientes__logos img { height: 30px; } }

/* 30/09 — Como funciona no computador: legenda dos passos mais alta e maior (pedido do Gustavo) */
@media (min-width: 901px) {
  .js:not(.reduced) .mecanismo__step { top: 40vh; bottom: auto; max-width: 640px; gap: 18px; }
  .js:not(.reduced) .mecanismo__step p { font-size: clamp(1.75rem, 2.3vw, 2.3rem); line-height: 1.22; }
  .js:not(.reduced) .mecanismo__num { font-size: 1.05rem; }
}

/* 30/09 — Trilha dos 5 passos em símbolos, abaixo da legenda (só computador, modo animado) */
.mecanismo__trilha { display: none; }
@media (min-width: 901px) {
  .js:not(.reduced) .mecanismo__trilha {
    display: flex; justify-content: space-between; position: absolute; z-index: 2; pointer-events: none;
    top: calc(40vh + 130px); left: calc((100% - min(1200px, 92vw)) / 2); width: min(620px, 44vw); margin: 0; padding: 0;
  }
  .js:not(.reduced) .mecanismo__trilha::before {
    content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 2px; background: var(--stroke);
  }
  .mecanismo__trilha li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 52px; }
  .trilha__icone {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg-soft); border: 1.5px solid var(--stroke); color: var(--muted);
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  }
  .trilha__icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .trilha__rotulo { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.35s ease; }
  .mecanismo__trilha li.is-feito .trilha__icone { border-color: var(--green); color: var(--green); }
  .mecanismo__trilha li.is-ativo .trilha__icone {
    background: linear-gradient(135deg, var(--green), var(--green-deep)); border-color: transparent; color: #FFFFFF;
    transform: scale(1.1); box-shadow: 0 10px 26px rgba(2, 128, 83, 0.35);
  }
  .mecanismo__trilha li.is-ativo .trilha__rotulo { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) { .mecanismo__trilha { display: none !important; } }

/* 30/09 — Quem faz v3 (prova primeiro): título, apoio, logos em destaque, faixa de números */
.quem__titulo { max-width: 22ch; }
.quem__apoio { max-width: 62ch; font-size: 1.08rem; line-height: 1.6; color: var(--muted); margin: -12px 0 40px; }
.quem .clientes { margin-top: 0; padding-top: 0; border-top: none; }
.quem .clientes__logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quem .clientes__logos li { justify-content: center; height: 104px; padding: 0 18px; background: var(--bg); border: 1px solid var(--stroke); border-radius: 16px; }
.quem .clientes__logos img { height: 52px; max-width: 100%; object-fit: contain; }
.quem__numeros { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.quem__numeros li { padding: 22px 24px 22px 0; }
.quem__numeros li + li { padding-left: 24px; border-left: 1px solid var(--stroke); }
.quem__numeros b { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; color: var(--green-light); line-height: 1.15; }
.quem__numeros span { color: var(--muted); font-size: 0.95rem; }
.quem .quem__video, .quem .quem__depo { margin-top: 24px; }
.quem__cta { margin-top: 32px; }
@media (max-width: 900px) {
  .quem .clientes__logos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quem .clientes__logos li { height: 76px; padding: 0 12px; }
  .quem .clientes__logos img { height: 34px; }
  .quem__numeros { grid-template-columns: 1fr; }
  .quem__numeros li, .quem__numeros li + li { padding: 16px 0; border-left: none; }
  .quem__numeros li + li { border-top: 1px solid var(--stroke); }
}

/* 30/09 — Logos em carrossel infinito (2ª lista = cópia decorativa que fecha o laço) */
.quem .clientes__janela {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.quem .clientes__trilho { display: flex; width: max-content; animation: logosRolam 40s linear infinite; }
.quem .clientes__janela:hover .clientes__trilho { animation-play-state: paused; }
.quem .clientes__trilho .clientes__logos { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; }
.quem .clientes__trilho .clientes__logos li { width: 210px; flex-shrink: 0; }
@keyframes logosRolam { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 900px) {
  .quem .clientes__trilho { animation-duration: 30s; }
  .quem .clientes__trilho .clientes__logos { gap: 10px; padding-right: 10px; }
  .quem .clientes__trilho .clientes__logos li { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .quem .clientes__janela { -webkit-mask-image: none; mask-image: none; }
  .quem .clientes__trilho { animation: none; width: auto; }
  .quem .clientes__logos[aria-hidden="true"] { display: none; }
  .quem .clientes__trilho .clientes__logos { display: grid; grid-template-columns: repeat(4, 1fr); padding-right: 0; width: 100%; }
  .quem .clientes__trilho .clientes__logos li { width: auto; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .quem .clientes__trilho .clientes__logos { grid-template-columns: repeat(2, 1fr); }
}

/* 30/09 — Celular: foto da abertura na primeira tela (ordem: etiqueta, título, subtítulo, foto, botão) */
@media (max-width: 600px) {
  .hero__inner { gap: 0; padding-top: calc(var(--header-h) + 12px); padding-bottom: 5vh; }
  .hero__text { display: contents; }
  .hero__eyebrow { order: 1; font-size: 0.66rem; letter-spacing: 0.18em; margin-bottom: 8px; }
  .hero__title { order: 2; font-size: clamp(1.5rem, 6.6vw, 1.85rem); line-height: 1.12; margin-bottom: 8px; }
  .hero__sub { order: 3; font-size: 0.95rem; margin-bottom: 12px; }
  .hero__visual { order: 4; aspect-ratio: 2 / 1; width: 100%; max-width: none; margin-bottom: 14px; }
  .hero .btn--primary { order: 5; justify-self: start; }
  .hero__trust { order: 6; margin-top: 14px; }
}

/* 30/09 — Celular: trilha dos passos compacta, logo acima da barra do WhatsApp */
@media (max-width: 900px) {
  .js:not(.reduced) .mecanismo__trilha {
    display: flex; justify-content: space-between; position: absolute; z-index: 2; pointer-events: none;
    left: 4vw; right: 4vw; bottom: 76px; margin: 0; padding: 0;
  }
  .js:not(.reduced) .mecanismo__trilha::before { content: ""; position: absolute; top: 20px; left: 24px; right: 24px; height: 2px; background: var(--stroke); }
  .mecanismo__trilha li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; text-align: center; }
  .trilha__icone {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg-soft); border: 1.5px solid var(--stroke); color: var(--muted);
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
  }
  .trilha__icone svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .trilha__rotulo { font-family: var(--font-display); font-size: 0.66rem; font-weight: 600; line-height: 1.2; color: var(--muted); }
  .mecanismo__trilha li.is-feito .trilha__icone { border-color: var(--green); color: var(--green); }
  .mecanismo__trilha li.is-ativo .trilha__icone { background: linear-gradient(135deg, var(--green), var(--green-deep)); border-color: transparent; color: #FFFFFF; transform: scale(1.1); }
  .mecanismo__trilha li.is-ativo .trilha__rotulo { color: var(--text); }
}
/* (correções 30/09) cópia do laço some de verdade com "reduzir movimento"; abertura do celular sem faixa vazia */
@media (prefers-reduced-motion: reduce) { .quem .clientes__trilho .clientes__logos[aria-hidden="true"] { display: none; } }
@media (max-width: 600px) { .hero { min-height: auto; } }

/* 30/09 tarde — celular: botão da abertura na largura toda, menos vão antes de "Quem faz", números lado a lado */
@media (max-width: 600px) {
  .hero .btn--primary { justify-self: stretch; width: 100%; justify-content: center; }
  .servicos { padding-bottom: 44px; }
  .quem { padding-top: 44px; }
}
@media (max-width: 900px) {
  .quem__numeros { grid-template-columns: repeat(3, 1fr); }
  .quem__numeros li, .quem__numeros li + li { padding: 14px 6px; border-top: none; }
  .quem__numeros li:first-child { padding-left: 0; }
  .quem__numeros li + li { border-left: 1px solid var(--stroke); padding-left: 10px; }
  .quem__numeros b { font-size: clamp(0.82rem, 3.9vw, 1.05rem); line-height: 1.2; }
  .quem__numeros span { display: block; font-size: 0.72rem; line-height: 1.3; margin-top: 2px; }
}

/* V3 (02/10): o desenho usa as coordenadas da foto (960x720) e acompanha o corte do object-fit: cover */
.hero__visual .terreno { inset: 0; width: 100%; height: 100%; }
.hero__visual .terreno__linha { stroke-width: 7; }
.hero__visual .terreno__selo { transform-origin: 775px 292px; }
.hero__visual .terreno__selo text { font-size: 28px; }
