
/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --fundo: #f5f6f8;
  --fundo-2: #ebedf2;
  --texto: #1d2140;
  --texto-suave: #5a5f78;
  --marinho: #262b57;
  --acento: #b8995c;
  --acento-texto: #1d2140;
  --marcacao: #b23a2f;
  --linha: rgb(29 33 64 / 0.14);
  --painel: rgb(255 255 255 / 0.72);
  --mistura: multiply;

  --fonte-titulo: "Cormorant Garamond", Georgia, serif;
  --fonte-texto: "Hanken Grotesk", system-ui, sans-serif;
  --fonte-rotulo: "IBM Plex Mono", ui-monospace, monospace;

  --raio: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --largura: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 clamp(16px, 1.05vw, 18px)/1.65 var(--fonte-texto);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Textura de papel milimetrado, bem discreta */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgb(29 33 64 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(29 33 64 / .035) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; color: var(--marinho); }
h1 { font-size: clamp(38px, 6vw, 86px); font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 54px); }
h3 { font-size: clamp(20px, 1.8vw, 25px); font-weight: 600; }
p { margin: 0 0 1em; color: var(--texto-suave); text-wrap: pretty; }

/* ── Topo ────────────────────────────────────────────────────────────── */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s, box-shadow .4s;
}
.topo.rolou { background: rgb(245 246 248 / .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linha); }
.marca { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.marca-logo { height: 36px; width: auto; }
.marca-texto { font-family: var(--fonte-titulo); font-size: 21px; font-weight: 600; letter-spacing: .01em; color: #f5f6f8; transition: color .4s var(--ease); }
.topo.rolou .marca-texto { color: var(--marinho); }
.marca-sub { font-family: var(--fonte-rotulo); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--acento); }
.menu { display: flex; gap: 30px; align-items: center; font-size: 14px; letter-spacing: .02em; }
.menu a { text-decoration: none; opacity: 1; color: var(--texto); display: inline-flex; align-items: center; border-radius: 999px; transition: transform .18s ease-out, box-shadow .18s ease-out; }
.menu a:hover, .menu a:focus-visible { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 16px rgb(184 153 92 / .35); outline: none; }

.menu a:not(.menu-cta) {
  position: relative; font-family: var(--fonte-rotulo); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: #f5f6f8; padding-bottom: 5px;
  transition: color .4s var(--ease), transform .18s ease-out, box-shadow .18s ease-out;
}
.topo.rolou .menu a:not(.menu-cta) { color: var(--marinho); }
.menu a:not(.menu-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acento);
  transform: scaleX(.4); transform-origin: left; transition: transform .25s var(--ease);
}
.menu a:not(.menu-cta):hover::after, .menu a:not(.menu-cta):focus-visible::after { transform: scaleX(1); }
.menu a.menu-cta { border: 1px solid #f5f6f8; color: #f5f6f8; padding: 9px 16px; border-radius: 999px; opacity: 1 !important; animation: pulso-cta 6s ease-in-out infinite; transition: color .4s var(--ease), border-color .4s var(--ease), transform .18s ease-out, box-shadow .18s ease-out; }
.topo.rolou .menu a.menu-cta { border-color: var(--marinho); color: var(--texto); }
.menu-cta:hover, .menu-cta:focus-visible { box-shadow: 0 8px 22px rgb(184 153 92 / .45), 0 0 0 3px rgb(184 153 92 / .25); animation-play-state: paused; }
.menu-cta:active { transform: scale(.97); }
@keyframes pulso-cta { 0%, 88%, 100% { box-shadow: 0 0 0 0 rgb(184 153 92 / 0); } 94% { box-shadow: 0 0 0 9px rgb(184 153 92 / .32); } }

.icone-lupa { width: 0; height: 16px; opacity: 0; overflow: hidden; transform: translateX(-6px) scale(.5); transition: width .18s ease-out, opacity .18s ease-out, transform .18s ease-out, margin-right .18s ease-out; }
.menu-cta:hover .icone-lupa, .menu-cta:focus-visible .icone-lupa { width: 16px; opacity: 1; transform: translateX(0) scale(1); margin-right: 6px; }
.texto-cta { transition: letter-spacing .18s ease-out; }
.menu-cta:hover .texto-cta, .menu-cta:focus-visible .texto-cta { letter-spacing: .03em; }

@media (max-width: 760px) { .menu a:not(.menu-cta) { display: none; } }

/* ── Abertura: assinatura que se desenha na rolagem ─────────────────────*/
.cine { position: relative; height: var(--altura, 400vh); background: var(--marinho); }
.cine-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.cine-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.cine-lavagem { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 23 48 / .55), rgb(20 23 48 / .3) 45%, rgb(20 23 48 / .8)); }
.cine-regua {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cine-assinatura { position: relative; width: min(84vw, 1100px); aspect-ratio: 1000 / 420; align-self: end; margin-bottom: 4vh; filter: drop-shadow(0 2px 10px rgb(0 0 0 / .35)); }
.cine-assinatura svg { width: 100%; height: 100%; overflow: visible; }
/* stroke-dasharray/dashoffset calculados em app.js via getTotalLength() */
.traco {
  fill: none; stroke: var(--acento); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
}
.traco--fina { stroke: rgb(245 246 248 / .55); stroke-width: 1.4; }
.cine-lupa { opacity: 0; transition: opacity .6s var(--ease); transform-origin: center; }
.cine-lupa circle.aro { fill: none; stroke: rgb(245 246 248 / .9); stroke-width: 3; }
.cine-lupa line { stroke: rgb(245 246 248 / .9); stroke-width: 4; stroke-linecap: round; }
.cine-vinheta {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(38 43 87 / 0) 55%, var(--marinho) 100%);
}
.momento {
  position: absolute; inset: auto var(--gutter) 12vh; max-width: 620px; color: #f5f6f8;
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
  pointer-events: none;
}
.momento.ativo { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.momento--direita { left: auto; right: var(--gutter); }
.momento--centro { left: 50%; right: auto; transform: translate(-50%, 24px); text-align: center; width: min(620px, calc(100% - 2 * var(--gutter))); }
.momento--centro.ativo { transform: translate(-50%, 0); }
.painel.painel--vidro { background: rgb(245 246 248 / .1); border-color: rgb(245 246 248 / .22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.painel--vidro h1, .painel--vidro p, .painel--vidro .destaque { color: #f5f6f8; }
.titulo-abertura { margin-bottom: .3em; }
.apoio { font-size: clamp(15px, 1.2vw, 19px); margin: 0; color: rgb(245 246 248 / .78) !important; }
.destaque { font-family: var(--fonte-titulo); font-size: clamp(23px, 2.6vw, 38px); line-height: 1.22; margin: 0 0 .6em; }
.destaque:last-child { margin: 0; }
.cine-dica {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font: 500 11px var(--fonte-rotulo); letter-spacing: .28em; text-transform: uppercase; opacity: .65; color: #f5f6f8;
  transition: opacity .5s;
}
.cine-dica span { width: 1px; height: 36px; background: linear-gradient(#f5f6f8, transparent); animation: dica 2s var(--ease) infinite; }
@keyframes dica { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cine.andou .cine-dica { opacity: 0; }

/* ── Painéis ─────────────────────────────────────────────────────────── */
.painel {
  position: relative;
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: clamp(24px, 3.2vw, 46px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.painel > :last-child { margin-bottom: 0; }
.rotulo { display: block; font: 500 12px var(--fonte-rotulo); letter-spacing: .3em; color: var(--acento); margin-bottom: 18px; }

/* ── Seções ──────────────────────────────────────────────────────────── */
.secao {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; padding: 16vh var(--gutter);
  display: grid; align-content: center;
}
.secao--alterna { background: var(--fundo-2); }
.secao-grade { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 40px; align-items: center; }
.secao-grade--direita { grid-template-columns: 1fr minmax(0, 560px); }
.secao-grade--direita > .painel { grid-column: 2; }
.secao--larga { gap: 28px; justify-items: center; }
.painel--cabecalho { width: 100%; max-width: var(--largura); text-align: center; }
.painel--cabecalho .rotulo { margin-inline: auto; }

/* Arte técnica (SVG), ocupa o lado oposto ao painel de texto — usada só onde não há foto */
.arte-tecnica { display: grid; place-items: center; padding: 20px; }
.arte-tecnica svg { width: 100%; max-width: 440px; height: auto; }

/* Arte fotográfica: a imagem se dissolve no fundo, nunca aparece como retângulo */
.arte {
  position: absolute; z-index: -1; pointer-events: none;
  object-fit: cover; mix-blend-mode: var(--mistura);
}
.arte--direita, .arte--esquerda { top: 0; bottom: 0; width: 62vw; height: 100%; opacity: .96; }
.arte--direita {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 42%, transparent 97%), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(to left, #000 42%, transparent 97%), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.arte--esquerda {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 42%, transparent 97%), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(to right, #000 42%, transparent 97%), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.arte--fundo {
  inset: 0; width: 100%; height: 100%; opacity: .45;
  -webkit-mask-image: radial-gradient(closest-side, #000 32%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: radial-gradient(closest-side, #000 32%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.arte--suave { opacity: .22; }
.arte[data-parallax] { will-change: transform; }

.cartoes { width: 100%; max-width: var(--largura); display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.cartao h3 { margin-bottom: .3em; }
.cartao { transition: transform .4s var(--ease), border-color .4s; }
.cartao:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acento) 55%, transparent); }
.cartao--imagem { background: none; border: 0; padding: 0; overflow: hidden; border-radius: var(--raio); box-shadow: 0 10px 30px rgb(29 33 64 / .14); }
.cartao--imagem:hover { border-color: transparent; box-shadow: 0 16px 36px rgb(29 33 64 / .22); }
.cartao--imagem img { border-radius: var(--raio); }
.prazo { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--fonte-rotulo); letter-spacing: .08em; color: var(--marinho); background: color-mix(in srgb, var(--acento) 22%, transparent); border-radius: 999px; padding: 6px 12px; margin-bottom: 14px; }

.lista-limpa { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.lista-limpa li { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; color: var(--texto-suave); }
.lista-limpa li::before { content: "—"; color: var(--acento); font-weight: 600; }

.passos { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: p; display: grid; gap: 22px; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.passos li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--fonte-titulo); color: var(--acento); font-size: 24px; font-weight: 600; }
.passos strong { font-weight: 600; color: var(--texto); }
.passos span { color: var(--texto-suave); }

.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .duas-colunas { grid-template-columns: 1fr; } }

.painel--cotejo { padding: clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: center; }
.painel--cotejo .lupa-interativa { width: 170px; height: 170px; }
@media (max-width: 760px) { .painel--cotejo .lupa-interativa { width: 120px; height: 120px; } }

/* Lupa interativa: lente de aumento de verdade, usada no hero e no cotejo */
.cotejo { position: relative; touch-action: none; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--linha); background: #fff; }
.cotejo svg, .cotejo img { width: 100%; height: auto; display: block; }
.cotejo.ativa { cursor: none; }

.lupa-interativa {
  position: absolute; left: 0; top: 0; width: 150px; height: 150px; border-radius: 50%;
  pointer-events: none; z-index: 45;
  border: 3px solid var(--acento);
  box-shadow: 0 0 0 1px var(--marinho), 0 12px 28px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .35);
  background-repeat: no-repeat;
  opacity: 0; transform: scale(.6);
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.lupa-interativa::after {
  content: ""; position: absolute; width: 52px; height: 9px; right: -32px; bottom: -4px;
  background: linear-gradient(90deg, var(--marinho), var(--acento));
  border-radius: 6px; transform: rotate(45deg); transform-origin: left center;
  box-shadow: 0 2px 6px rgb(0 0 0 / .35);
}
.lupa-interativa.ativa { opacity: 1; transform: scale(1); }
.cotejo-dica { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font: 500 11px var(--fonte-rotulo); letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); background: rgb(255 255 255 / .85); padding: 7px 14px; border-radius: 999px; pointer-events: none; }
.cotejo.ativa .cotejo-dica { opacity: 0; }

/* FAQ */
.faq { width: 100%; max-width: 820px; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--linha); border-radius: var(--raio); background: var(--painel); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--marinho); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--fonte-titulo); font-size: 24px; color: var(--acento); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; }

/* ── Contato ─────────────────────────────────────────────────────────── */
.secao--contato { justify-items: center; }
.painel--form { width: 100%; max-width: 760px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.campo { display: grid; gap: 6px; }
.campo--inteiro { grid-column: 1 / -1; }
.campo label { font-size: 13px; letter-spacing: .02em; color: var(--texto-suave); }
.campo input, .campo textarea, .campo select {
  width: 100%; font: inherit; color: var(--texto);
  background: #fff; border: 1px solid var(--linha); border-radius: 10px;
  padding: 13px 15px; transition: border-color .3s, background .3s; resize: vertical;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--acento); }
.campo.erro input { border-color: var(--marcacao); }
.pote { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; }
.form-status.ok { color: #2f6b4f; }
.form-status.falha { color: var(--marcacao); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ── Botões ──────────────────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--fonte-texto); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--marinho); border: 0; border-radius: 999px;
  padding: 16px 28px; transition: transform .4s var(--ease), filter .3s;
}
.botao:hover { transform: translateY(-2px); filter: brightness(1.12); }
.botao[disabled] { opacity: .6; cursor: progress; }
.painel--vidro .botao { background: var(--acento); color: var(--acento-texto); }

/* ── WhatsApp flutuante ──────────────────────────────────────────────── */
.whats {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgb(29 33 64 / .3);
  transform: scale(0); transition: transform .5s var(--ease);
}
.whats.visivel { transform: scale(1); }
.whats:hover { transform: scale(1.07); }
.whats svg { width: 28px; height: 28px; }
.whats::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulso 2.6s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ── Rodapé ──────────────────────────────────────────────────────────── */
.rodape { padding: 0 var(--gutter) 40px; background: var(--fundo-2); }
.rodape-painel { max-width: var(--largura); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--texto-suave); padding: 26px 0; }

/* ── Revelar ao rolar ────────────────────────────────────────────────── */
.revelar { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.revelar.visto { opacity: 1; transform: none; }

/* ── Celular ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .secao { padding: 12vh var(--gutter); min-height: auto; }
  .secao-grade, .secao-grade--direita { grid-template-columns: 1fr; }
  .secao-grade--direita > .painel { grid-column: 1; }
  .arte-tecnica { order: -1; padding: 0 0 8px; }
  .momento, .momento--direita { left: var(--gutter); right: var(--gutter); bottom: 9vh; }
  .lupa-interativa { width: 110px; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar, .momento:first-of-type { opacity: 1; transform: none; filter: none; }
  .cine { height: 100svh; }
  .momento:not(:first-of-type), .cine-dica { display: none; }
  .traco { stroke-dashoffset: 0; }
}
