/* v3 — seções de conversão + sistema de motion (obrigatório em todos os dispositivos) */
:root { --blood: #E0414C; --blood-900: #7C1D25; --ease-snap: cubic-bezier(.7, 0, .2, 1); }

/* Barra de progresso de leitura */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 50; background: linear-gradient(90deg, var(--gold), #FFD77A); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Hero v3 ---------- */
.hero { min-height: min(100svh, 980px); display: flex; align-items: center; }
.hero .wrap { width: min(100% - 2.5rem, var(--wrap)); }
.alert-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(224, 65, 76, .14); color: #FFB4B9; font: 700 .82rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.alert-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 0 rgba(224, 65, 76, .7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(224, 65, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 65, 76, 0); } }
.kinetic { font-size: clamp(2.7rem, 1.6rem + 5vw, 5.6rem); font-weight: 700; line-height: .98; letter-spacing: -.025em; margin-top: 1.1rem; max-width: 12ch; }
.kinetic .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.kinetic .w > span { display: inline-block; transform: translateY(105%); animation: wordUp .8s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes wordUp { to { transform: none; } }
.kinetic .hl { color: var(--gold); position: relative; }
.kinetic .scribble { position: absolute; left: -2%; right: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; }
.kinetic .scribble path { fill: none; stroke: var(--blood); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1s var(--ease-out) 1.35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead strong { color: var(--cream); }

/* Etiqueta que "sangra" */
.bleed-tag { justify-self: center; width: min(100%, 380px); position: relative; transform-origin: 50% 0; animation: hang 1.8s var(--ease-swing) .4s both, idle 6s ease-in-out 2.4s infinite; }
@keyframes idle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg); } }
.bleed-tag .card { position: relative; background: var(--cream); color: var(--ink); border-radius: 26px; padding: 2.4rem 1.6rem 1.6rem; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7); clip-path: polygon(50% 0, 100% 15%, 100% 100%, 0 100%, 0 15%); }
.bleed-tag .hole { position: absolute; top: 34px; left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: var(--petrol); display: grid; place-items: center; }
.bleed-tag .hole::after { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); }
.bleed-tag .string { position: absolute; left: 50%; bottom: 100%; width: 3px; height: 70px; background: var(--gold); transform-origin: bottom; transform: rotate(8deg); border-radius: 2px; }
.bleed-tag .rows { margin-top: 3.4rem; display: grid; gap: .55rem; font-variant-numeric: tabular-nums; }
.bleed-tag .row { display: flex; justify-content: space-between; font-size: .98rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); padding-bottom: .45rem; }
.bleed-tag .row b { color: var(--ink); }
.bleed-tag .verdict-big { margin-top: 1rem; text-align: center; }
.bleed-tag .verdict-big small { display: block; font: 600 .8rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bleed-tag .verdict-big .v { font: 700 3.3rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ok); transition: color .4s; }
.bleed-tag .verdict-big .v.bad { color: var(--blood); animation: thud .5s var(--ease-swing); }
@keyframes thud { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.bleed-tag .hidden-cost { max-height: 0; opacity: 0; overflow: hidden; padding-bottom: 0; border-bottom-color: transparent; transition: max-height .6s var(--ease-out), opacity .6s, padding .6s; }
.bleed-tag .hidden-cost.on { max-height: 3em; opacity: 1; padding-bottom: .45rem; border-bottom-color: var(--line); }
.bleed-tag .hidden-cost b { color: var(--blood); }
.bleed-tag .stamp { display: block; width: max-content; margin: .9rem auto 0; transform: rotate(-6deg) scale(2.2); opacity: 0; border: 3px solid var(--blood); color: var(--blood); border-radius: 8px; padding: .3rem .7rem; font: 700 1rem var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.bleed-tag .stamp.on { animation: stamp .45s var(--ease-snap) forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-6deg) scale(1); } }

/* Faixa dupla: nichos + erros */
.marquee.rev { animation-direction: reverse; animation-duration: 46s; }
.marquee.err span { color: #FFB4B9; }
.marquee.err span::after { color: var(--blood); content: "✕"; }

/* ---------- Scrollytelling: o preço sangrando ---------- */
.bleed { position: relative; height: 420vh; background: var(--petrol-900); color: var(--cream); }
.bleed-stage { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.bleed-stage .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.bleed .eyebrow { color: var(--gold); }
.bleed h2 { font-size: var(--step-3); margin-top: .6rem; }
.bleed-copy p.step-msg { margin-top: 1.2rem; font-size: var(--step-1); line-height: 1.45; color: rgba(250, 243, 227, .85); min-height: 4.4em; }
.bleed-copy p.step-msg b { color: var(--gold); }
.money { font: 700 clamp(4rem, 2.6rem + 7vw, 8.5rem)/.9 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--cream); transition: color .3s; }
.money.low { color: #FFB4B9; }
.money.zero { color: var(--blood); }
.money-label { font: 600 .9rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: rgba(250, 243, 227, .6); margin-bottom: .8rem; }
.bar { margin-top: 1.6rem; height: 64px; display: flex; border-radius: 14px; overflow: hidden; background: rgba(250, 243, 227, .08); }
.bar .seg { height: 100%; width: 0; display: grid; place-items: center; font: 700 .78rem var(--f-display); color: var(--petrol-900); white-space: nowrap; overflow: hidden; transition: width .5s var(--ease-out); }
.bar .seg:nth-child(1) { background: #F7D9A0; } .bar .seg:nth-child(2) { background: #F2C27A; } .bar .seg:nth-child(3) { background: #E99A5B; }
.bar .seg:nth-child(4) { background: #E07656; } .bar .seg:nth-child(5) { background: var(--blood); color: #fff; }
.bar .left { flex: 1; background: var(--ok); }
.legend { display: grid; gap: .5rem; margin-top: 1.3rem; }
.legend li { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(250, 243, 227, .1); opacity: .25; transform: translateX(-10px); transition: opacity .4s, transform .4s var(--ease-out); font-variant-numeric: tabular-nums; }
.legend li.on { opacity: 1; transform: none; }
.legend li b { color: #FFB4B9; }
.legend { padding: 0; margin-bottom: 0; }
.bleed-dots { display: flex; gap: .4rem; margin-top: 1.2rem; }
.bleed-dots i { width: 26px; height: 4px; border-radius: 2px; background: rgba(250, 243, 227, .2); transition: background .3s; }
.bleed-dots i.on { background: var(--gold); }

/* ---------- Calculadora do prejuízo ---------- */
.loss { background: #1B0D10; color: var(--cream); position: relative; overflow: hidden; }
.loss::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(224, 65, 76, .22), transparent 70%); pointer-events: none; }
.loss .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.loss .eyebrow { color: #FF8A92; }
.loss h2 { font-size: var(--step-3); margin-top: .6rem; }
.loss .sliders { display: grid; gap: 1.6rem; margin-top: 2rem; }
.loss .range label { color: var(--cream); font-weight: 600; }
.loss .range output { color: #FF8A92; }
.loss input[type="range"] { accent-color: var(--blood); }
.loss-out { text-align: center; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(224, 65, 76, .35); border-radius: 26px; background: rgba(224, 65, 76, .06); }
.loss-out small { display: block; font: 600 .9rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: rgba(250, 243, 227, .65); }
.loss-out .lost { font: 700 clamp(3.2rem, 2rem + 6vw, 6.8rem)/1 var(--f-display); color: var(--blood); font-variant-numeric: tabular-nums; margin: .7rem 0; text-shadow: 0 10px 40px rgba(224, 65, 76, .35); }
.loss-out .per { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; color: rgba(250, 243, 227, .8); font-variant-numeric: tabular-nums; }
.loss-out .per b { display: block; font: 700 1.5rem var(--f-display); color: var(--cream); }
.loss-out .note { margin-top: 1.2rem; font-size: .9rem; color: rgba(250, 243, 227, .6); }
.loss-out .btn { margin-top: 1.4rem; }

/* ---------- Produto: telas 3D ---------- */
.screens { position: relative; perspective: 1400px; height: 470px; }
.screen { position: absolute; width: 88%; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65); transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.screen .sheet-bar { background: #EEF1F0; }
.screen.s1 { top: 0; left: 0; transform: rotateY(14deg) rotateX(6deg) translateZ(-60px); }
.screen.s2 { top: 120px; left: 9%; transform: rotateY(14deg) rotateX(6deg) translateZ(0); }
.screen.s3 { top: 250px; left: 18%; transform: rotateY(14deg) rotateX(6deg) translateZ(60px); }
.screens.tilt .screen { transition: transform .15s linear; }
.screens .float { animation: floaty 7s ease-in-out infinite; }
.screens .s2.float { animation-delay: -2.3s; } .screens .s3.float { animation-delay: -4.6s; }
@keyframes floaty { 50% { translate: 0 -10px; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: .8rem; }
.kpi { border: 1px solid #E6EAE9; border-radius: 10px; padding: .6rem; }
.kpi small { font-size: .7rem; color: var(--ink-2); display: block; }
.kpi b { font: 700 1.15rem var(--f-display); color: var(--petrol); font-variant-numeric: tabular-nums; }
.kpi b.g { color: var(--ok); }
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding: 0 .8rem .8rem; }
.minibars i { flex: 1; background: var(--petrol); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease-out); }
.minibars i:nth-child(odd) { background: var(--gold); }
.in .minibars i, .minibars.in i { transform: scaleY(1); }

/* Stack da oferta */
.stack li { position: relative; }
.stack .tagline { display: inline-block; margin-left: .5rem; font: 700 .7rem var(--f-display); letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--petrol-900); padding: .2rem .45rem; border-radius: 5px; vertical-align: middle; }
.stack .bonus .ico { background: var(--gold); color: var(--petrol-900); }

/* Comparativo */
.versus { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.versus > div { padding: clamp(1.2rem, 3vw, 2.2rem); }
.versus .bad { background: #FBEDEE; }
.versus .good { background: #E8F4EE; }
.versus h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.versus .bad h3 { color: var(--blood-900); } .versus .good h3 { color: #13513a; }
.versus ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.versus li { display: grid; grid-template-columns: 26px 1fr; gap: .5rem; line-height: 1.4; }
.versus .bad li::before { content: "✕"; color: var(--blood); font-weight: 700; }
.versus .good li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* Preço: âncora riscada + queda */
/* Âncora honesta: preço de concorrente DESTACADO (nunca riscado, pois não é o nosso preço "de") */
.buybox .anchor-hl { position: relative; display: inline-block; color: var(--ink); font-weight: 700; white-space: nowrap; }
.buybox .anchor-hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 6px; background: rgba(242, 179, 61, .55); border-radius: 3px; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out) .3s; }
.buybox.in .anchor-hl::after { transform: scaleX(1); }
.buybox .anchor { position: relative; z-index: 0; }
.buybox .now { display: inline-block; }
.buybox.in .now { animation: drop .9s var(--ease-swing) .7s both; }
@keyframes drop { 0% { transform: translateY(-40px) scale(1.15); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.per-day { margin: .4rem 0 0 auto; max-width: 30ch; font-weight: 600; color: var(--ok); }
@media (max-width: 960px) { .per-day { margin-left: 0; } }

/* Botão com brilho */
.btn.shine { position: relative; overflow: hidden; isolation: isolate; }
.btn.shine::after { content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; z-index: -1; }
@keyframes shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.btn.pulse { animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 179, 61, .55), 0 10px 24px -12px rgba(201, 138, 18, .9); } 60% { box-shadow: 0 0 0 16px rgba(242, 179, 61, 0), 0 10px 24px -12px rgba(201, 138, 18, .9); } }

/* Selo de garantia girando */
.seal-ring { position: relative; flex: none; width: 92px; height: 92px; }
.seal-ring svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.seal-ring text { font: 700 10.5px var(--f-display); letter-spacing: .22em; fill: var(--petrol); text-transform: uppercase; }
.seal-ring .core { position: absolute; inset: 20px; border-radius: 50%; background: var(--petrol); color: var(--gold); display: grid; place-items: center; text-align: center; font: 700 1.05rem/1 var(--f-display); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Revelações com variação (um sistema, três verbos) */
.js .reveal.from-left { transform: translateX(-26px); }
.js .reveal.scale { transform: scale(.94); }
.js .reveal.in.from-left, .js .reveal.in.scale { transform: none; }
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.stagger.in > * { opacity: 1; transform: none; }

/* Final com contador pessoal */
.final .daily { display: inline-block; margin-top: .6rem; color: #FFB4B9; font-weight: 700; }

/* CTA flutuante desktop */
@media (min-width: 641px) {
  .sticky-cta { display: flex; left: auto; right: 1.25rem; bottom: 1.25rem; border-radius: 18px; padding: .7rem .7rem .7rem 1.1rem; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); transform: translateY(160%); }
}

@media (max-width: 960px) {
  .bleed-stage .wrap, .loss .wrap { grid-template-columns: 1fr; }
  .bleed { height: 480vh; }
  .bleed-stage .wrap { gap: 1rem; }
  .bleed-copy p.step-msg { min-height: 3.6em; margin-top: .6rem; font-size: var(--step-0); }
  .legend { display: none; }
  .bar { height: 46px; }
  .screens { height: 400px; margin-top: 1rem; }
  .bleed-tag { order: -1; width: min(100%, 330px); }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .bleed-tag { display: block; justify-self: center; width: min(92%, 320px); margin-top: .5rem; }
  .versus { grid-template-columns: 1fr; }
  .screens { height: 330px; }
  .screen { width: 96%; font-size: .7rem; }
  .screen.s2 { top: 95px; left: 2%; } .screen.s3 { top: 195px; left: 4%; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .money { font-size: clamp(3.4rem, 18vw, 5rem); }
}

/* Sliders próprios: trilho preenche até o polegar (--p definido pelo JS) */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 34px; background: transparent; --p: 50%; --fill: var(--gold-700); --rest: #E6DDC8; cursor: pointer; }
.loss input[type="range"] { --fill: var(--blood); --rest: rgba(250, 243, 227, .16); }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--fill) var(--p), var(--rest) var(--p)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--fill) var(--p), var(--rest) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--fill); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45); transition: transform .15s var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--fill); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(242, 179, 61, .45); }
.range-top { gap: 1rem; } .range-top output { flex: none; }

/* Telas do produto: herdam o estilo de planilha */
.screen { color: var(--ink); font-size: .82rem; }
.screen table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.screen th, .screen td { border: 1px solid #E6EAE9; padding: .45rem .55rem; text-align: left; white-space: nowrap; }
.screen th { background: var(--petrol); color: var(--cream); font-weight: 600; }
.screen td.in { background: #FFF5CC; }
.screen td.out { font-weight: 700; color: var(--ok); }
.screen td.out.warn { color: var(--blood); }
.screens { height: 520px; }
.screen.s2 { top: 175px; } .screen.s3 { top: 330px; }
@media (max-width: 960px) { .screens { height: 460px; } }
@media (max-width: 640px) { .screens { height: 400px; } .screen.s2 { top: 140px; } .screen.s3 { top: 265px; } }

/* Etiqueta: valores nunca quebram; no mobile vem DEPOIS da promessa e do CTA */
.bleed-tag .row { gap: .8rem; } .bleed-tag .row b { white-space: nowrap; }
@media (max-width: 960px) { .bleed-tag { order: 0; margin-top: 3.2rem; } }
@media (max-width: 640px) { .bleed-tag .row { font-size: .9rem; } .bleed-tag .verdict-big .v { font-size: 2.8rem; } }
.btn { text-align: center; }
