/* Proposta Pronta — camada visual: fundos animados, botões flutuantes, movimento */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ================= BOTÕES ================= */
.btn { position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, filter .2s; will-change: transform; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(180deg, #24715b 0%, #1a5242 100%); box-shadow: 0 12px 26px -12px rgba(29, 92, 74, .9), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.18); }
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(29, 92, 74, .95), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.18); }
.btn-amber { background: linear-gradient(180deg, #f6c260 0%, #e29d33 55%, #d88d22 100%); color: #1b1408; box-shadow: 0 14px 30px -12px rgba(226, 162, 59, .95), 0 0 0 1px rgba(255, 214, 140, .35), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(120, 70, 0, .22); }
.btn-amber:hover { background: linear-gradient(180deg, #f9cb70 0%, #e6a43b 55%, #dc9228 100%); box-shadow: 0 22px 40px -14px rgba(226, 162, 59, 1), 0 0 0 1px rgba(255, 214, 140, .5), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(120, 70, 0, .22); }
.btn-wa { background: linear-gradient(180deg, #2bc067 0%, #1a9a4c 100%); box-shadow: 0 12px 26px -12px rgba(31, 168, 85, .95), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.15); }
.btn-ghost { background: rgba(255,255,255,.7); backdrop-filter: blur(6px); box-shadow: 0 8px 20px -14px rgba(22,33,28,.5); }
.btn-ghost:hover { background: #fff; }
/* brilho que atravessa */
.btn-amber::after, .btn-primary::after, .btn-wa::after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); animation: shine 4.8s ease-in-out infinite; }
.btn-primary::after, .btn-wa::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); animation-duration: 6.5s; }
@keyframes shine { 0%, 62% { left: -60%; } 82%, 100% { left: 130%; } }
/* flutuar */
.float { animation: bob 3.6s ease-in-out infinite; }
.float:hover { animation-play-state: paused; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.glow { position: relative; isolation: isolate; display: inline-block; }
.hero-cta .glow { display: block; }
@media (min-width: 860px) { .hero-cta .glow { display: inline-block; } }
.glow::before { content: ''; position: absolute; inset: -6px; border-radius: 20px; background: radial-gradient(closest-side, rgba(242, 178, 70, .55), transparent); filter: blur(14px); z-index: -2; animation: pulse 3.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .45; transform: scale(.96); } 50% { opacity: .9; transform: scale(1.04); } }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ================= HERO: aurora + papel milimetrado + folhas ================= */
.hero { position: relative; isolation: isolate; background: #0f1813; }
.fx-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora span:nth-child(1) { width: 620px; height: 620px; left: -180px; top: -220px; background: radial-gradient(circle, #1f7a5e, transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 540px; height: 540px; right: -160px; top: 10%; background: radial-gradient(circle, #e2a23b, transparent 62%); opacity: .32; animation: drift2 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 520px; height: 520px; left: 30%; bottom: -300px; background: radial-gradient(circle, #2c5f8a, transparent 65%); opacity: .35; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(160px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 160px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-120px, -140px) scale(1.2); } }
.gridlines { position: absolute; inset: -40px; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%); animation: pan 40s linear infinite; }
@keyframes pan { to { transform: translate(120px, 120px); } }
.grain { position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.floaters .paper { position: absolute; width: 74px; height: 98px; border-radius: 6px; background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(2px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); animation: paperfloat var(--d, 14s) ease-in-out infinite; animation-delay: var(--delay, 0s); translate: 0 var(--py, 0px); }
.floaters .paper::before { content: ''; position: absolute; left: 10px; right: 10px; top: 12px; height: 6px; border-radius: 3px; background: rgba(226,162,59,.55); box-shadow: 0 14px 0 -1px rgba(255,255,255,.18), 0 26px 0 -1px rgba(255,255,255,.14), 0 38px 0 -1px rgba(255,255,255,.14), 0 50px 0 -1px rgba(255,255,255,.1); }
.floaters .paper::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 26px; height: 8px; border-radius: 3px; background: rgba(31, 122, 94, .8); }
@keyframes paperfloat { 0%, 100% { transform: translateY(0) rotate(var(--r, -8deg)); } 50% { transform: translateY(-26px) rotate(calc(var(--r, -8deg) * -1)); } }

/* ================= HERO: cena comparação ================= */
.compare { position: relative; perspective: 1100px; }
.cmp-pdf { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.mini-doc { position: relative; animation: docfloat 6s ease-in-out infinite; box-shadow: 0 40px 70px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06); }
@keyframes docfloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: -.6deg; } }
.mini-doc::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 48%, transparent 60%); transform: translateX(-120%); }
.compare.play .mini-doc::after { animation: sheen 1.4s 2.3s ease-out both; }
@keyframes sheen { to { transform: translateX(120%); } }
.cmp-wa .wa-chat { animation: docfloat 7s .8s ease-in-out infinite; box-shadow: 0 30px 50px -28px rgba(0,0,0,.8); }

/* sequência animada */
.compare .wa-bubble, .compare .wa-meta, .compare .typing { opacity: 0; transform: translateY(8px) scale(.96); }
.compare .typing { align-self: flex-end; display: flex; gap: 4px; padding: 9px 11px; background: #005c4b; border-radius: 8px 0 8px 8px; }
.compare .typing i { width: 6px; height: 6px; border-radius: 50%; background: #9fd8c8; animation: dots 1s infinite; }
.compare .typing i:nth-child(2) { animation-delay: .15s; } .compare .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.compare.play .typing { animation: typingShow 1.1s .1s both; }
@keyframes typingShow { 0% { opacity: 0; } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; height: 0; padding: 0; margin: -3px 0; } }
.compare.play .wa-bubble:nth-of-type(2) { animation: pop .4s 1.1s cubic-bezier(.2,1.4,.4,1) both; }
.compare.play .wa-bubble:nth-of-type(3) { animation: pop .4s 1.7s cubic-bezier(.2,1.4,.4,1) both; }
.compare.play .wa-meta { animation: pop .4s 2.1s both; }
@keyframes pop { to { opacity: 1; transform: none; } }
.compare .doc .blk { transition: none; }
.compare.play .doc .blk { animation: rowIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1.2s + var(--i, 0) * 90ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(14px); } }
.compare.play .d-total { animation: totalPop .6s calc(1.2s + var(--i, 0) * 90ms + .2s) cubic-bezier(.2,1.5,.4,1) both; }
@keyframes totalPop { from { transform: scale(.6); opacity: 0; } }
.stamp { position: absolute; z-index: 3; right: 6%; top: 34%; padding: 4px 12px; border: 3px solid #1f8a5c; color: #1f8a5c; border-radius: 8px; font: 800 clamp(13px, 3.4vw, 22px)/1.1 var(--font); letter-spacing: .12em; background: rgba(255,255,255,.75); transform: rotate(-14deg) scale(2.4); opacity: 0; pointer-events: none; box-shadow: 0 0 0 3px rgba(31,138,92,.12) inset; }
.compare.play .stamp { animation: stamp .45s 3.2s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.4); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }
.compare .shake { animation: none; }
.compare.play .cmp-pdf .mini-doc { animation: docfloat 6s ease-in-out infinite, thud .25s 3.4s ease-out; }
@keyframes thud { 50% { scale: .985; } }
.flow-arrow { display: none; }

/* ================= faixa de profissões ================= */
.marquee { overflow: hidden; background: #0f1813; color: #f3efe6; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 34px; animation: marquee 34s linear infinite; }
.marquee span { white-space: nowrap; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 34px; opacity: .9; }
.marquee span::after { content: '✦'; color: var(--amber); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= seções claras ================= */
.lp main { position: relative; }
.lp .sec:not(.sec-dark):not(.final) { position: relative; isolation: isolate; }
.lp .sec:not(.sec-dark):not(.final)::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(22,33,28,.09) 1px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.sec-dark, .final { position: relative; isolation: isolate; overflow: hidden; }
.sec-dark::after, .final::after { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -160px; background: radial-gradient(circle, rgba(226,162,59,.28), transparent 65%); filter: blur(30px); animation: drift2 20s ease-in-out infinite alternate; }
.final::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(31,122,94,.55), transparent 65%); filter: blur(40px); animation: drift1 24s ease-in-out infinite alternate; }

.pain { transition: transform .3s, background .3s; border-radius: 10px; padding-left: 10px; padding-right: 10px; margin: 0 -10px; }
.pain:hover { background: rgba(255,255,255,.6); transform: translateX(4px); }
.pain b { display: flex; gap: 10px; align-items: baseline; }
.pain b::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(179,65,47,.15); animation: pulse 2.6s ease-in-out infinite; }

.howto li > span { position: relative; box-shadow: 0 10px 24px -10px rgba(226,162,59,.9); }
.howto li > span::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(226,162,59,.5); animation: ring 2.8s ease-out infinite; }
.howto li:nth-child(2) > span::after { animation-delay: .9s; } .howto li:nth-child(3) > span::after { animation-delay: 1.8s; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.addon { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; box-shadow: 0 18px 40px -30px rgba(22,33,28,.6); }
.addon:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 50px -30px rgba(22,33,28,.7); }

/* cartão de preço com borda girando */
.price-card { position: relative; isolation: isolate; box-shadow: 0 40px 80px -40px rgba(15,24,19,.9); animation: docfloat 7s ease-in-out infinite; }
.price-card::before { content: ''; position: absolute; inset: -2px; border-radius: 20px; z-index: -2; background: conic-gradient(from var(--ang), #e2a23b, #1f7a5e, #16211c 40%, #16211c 60%, #e2a23b); animation: spin 5s linear infinite; }
.price-card::after { content: ''; position: absolute; inset: 0; border-radius: 18px; z-index: -1; background: radial-gradient(circle at 80% 0%, rgba(226,162,59,.22), transparent 50%), #16211c; }
@keyframes spin { to { --ang: 360deg; } }
.price-card .price { background: linear-gradient(180deg, #fff 30%, #f2c46c); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* leque de documentos */
.feat-layout { display: grid; gap: 34px; }
.fan { position: relative; height: 330px; margin: 0 auto; width: 100%; max-width: 420px; }
.fan .sheetc { position: absolute; left: calc(50% - 105px); top: 10px; width: 210px; height: 297px; animation: docfloat 6s ease-in-out infinite; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -28px rgba(15,24,19,.7), 0 0 0 1px rgba(22,33,28,.06); transform-origin: 50% 120%; transition: transform 1.1s cubic-bezier(.2,.9,.2,1); }
.fan .sheetc .inner { width: 794px; transform: scale(calc(210 / 794)); transform-origin: top left; pointer-events: none; }
.fan .sheetc:nth-child(1) { z-index: 1; } .fan .sheetc:nth-child(2) { z-index: 2; } .fan .sheetc:nth-child(3) { z-index: 3; }
.fan.in .sheetc:nth-child(1) { transform: rotate(-14deg) translateX(-70px); }
.fan.in .sheetc:nth-child(2) { transform: rotate(0deg) translateY(-12px); }
.fan.in .sheetc:nth-child(3) { transform: rotate(14deg) translateX(70px); }
.fan .sheetc:nth-child(2) { animation-delay: -2s; } .fan .sheetc:nth-child(3) { animation-delay: -4s; }
.fan .tag { position: absolute; z-index: 5; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; white-space: nowrap; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }

/* revelar ao rolar */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* CTA fixo flutuante no celular */
.sticky-cta { position: fixed; z-index: 40; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.9,.2,1); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

@media (min-width: 860px) {
  .feat-layout { grid-template-columns: 1fr 420px; align-items: center; }
  .fan { height: 380px; }
  .fan .sheetc { width: 240px; height: 339px; left: calc(50% - 120px); }
  .fan .sheetc .inner { transform: scale(calc(240 / 794)); }
  .sticky-cta { display: none; }
  .flow-arrow { display: block; position: absolute; left: 34%; top: 46%; z-index: 4; width: 54px; height: 54px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(226,162,59,.9); animation: bob 2.4s ease-in-out infinite; }
}

/* ================= APP: fundo e superfícies ================= */
body:not(.lp) { background: radial-gradient(1200px 600px at 100% -10%, rgba(226,162,59,.16), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(31,122,94,.12), transparent 60%), var(--paper); background-attachment: fixed; }
body:not(.lp)::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(22,33,28,.08) 1px, transparent 1.3px); background-size: 22px 22px; }
.app-top { background: rgba(15, 24, 19, .92); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.app-top .brand-mark { animation: bob 4s ease-in-out infinite; box-shadow: 0 6px 16px -6px rgba(226,162,59,.9); }
.tabs { background: rgba(255,253,248,.85); backdrop-filter: blur(10px); }
.card { box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 40px -34px rgba(22,33,28,.55); transition: box-shadow .3s, transform .3s; }
.card:focus-within { box-shadow: 0 0 0 2px var(--green-soft), 0 26px 50px -30px rgba(22,33,28,.55); }
.js .card { animation: cardIn .6s cubic-bezier(.2,.8,.2,1) both; }
.js .card:nth-child(2) { animation-delay: .06s; } .js .card:nth-child(3) { animation-delay: .12s; } .js .card:nth-child(4) { animation-delay: .18s; } .js .card:nth-child(5) { animation-delay: .24s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.presets button, .doc-tabs button, .checks label { transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 6px 14px -12px rgba(22,33,28,.6); }
.presets button:hover, .doc-tabs button:hover, .checks label:hover { transform: translateY(-2px); box-shadow: 0 12px 20px -14px rgba(22,33,28,.7); }
.sheet { box-shadow: 0 40px 70px -40px rgba(15,24,19,.75), 0 0 0 1px rgba(22,33,28,.05); }
.js .sheet { animation: sheetIn .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(20px) rotateX(6deg); } }
.bottom-bar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); border: 1px solid rgba(22,33,28,.08); border-radius: 18px; padding: 8px; background: rgba(255,253,248,.82); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 24px 50px -20px rgba(15,24,19,.55); }
.bottom-bar #bb-pdf { animation: bob 3.6s ease-in-out infinite; }
.totals-box { background: linear-gradient(120deg, #e3eee8, #f3f8f4 60%, #fbefd9); box-shadow: inset 0 0 0 1px rgba(29,92,74,.12); }
.totals-box b { transition: transform .2s; display: inline-block; }
.totals-box b.bump-n { animation: numPop .35s ease-out; }
@keyframes numPop { 50% { transform: scale(1.12); color: #e29d33; } }
.modal { backdrop-filter: blur(4px); }
.modal-box { box-shadow: 0 -20px 60px -20px rgba(0,0,0,.4); }
.bump { transition: transform .2s; }
.bump:hover { transform: translateY(-2px); }
.bump:has(input:checked) { border-style: solid; background: #fff4dd; box-shadow: 0 12px 26px -18px rgba(226,162,59,.9); }
.ok-icon { animation: okPop .6s cubic-bezier(.2,1.6,.4,1) both; box-shadow: 0 0 0 10px rgba(29,92,74,.08); }
@keyframes okPop { from { transform: scale(.3); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall var(--t, 2.4s) cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes fall { to { transform: translate(var(--x, 0), 105vh) rotate(var(--rot, 540deg)); opacity: .9; } }

@media (min-width: 980px) {
  .bottom-bar { left: auto; right: 24px; bottom: 20px; }
}

/* ================= menos movimento ================= */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .compare .wa-bubble, .compare .wa-meta { opacity: 1; transform: none; }
  .compare .typing { display: none; }
  .stamp { opacity: 1; transform: rotate(-14deg); }
  .fan .sheetc:nth-child(1) { transform: rotate(-14deg) translateX(-70px); }
  .fan .sheetc:nth-child(3) { transform: rotate(14deg) translateX(70px); }
  .sticky-cta { transition: none; }
}
.lp main, .lp .marquee { overflow-x: clip; }

.top-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.top-actions .btn-ghost:hover { background: rgba(255,255,255,.16); }
@media (max-width: 859px) {
  .floaters .paper { opacity: .55; width: 54px; height: 72px; }
  .floaters .paper:nth-child(1), .floaters .paper:nth-child(2) { display: none; }
}
@media (min-width: 860px) {
  .feat-layout { grid-template-columns: 1fr 440px; gap: 48px; }
  .feat-layout .feats { grid-template-columns: 1fr; }
}
