/* Notinha. Mundo do cupom térmico: papel claro, verde escuro, âmbar só no scanner e na ação.
   A ousadia fica na abertura (celular em 3D lendo a nota). O resto é quieto. Tema único. */
:root {
  --pine-deep: #0F2621;
  --pine: #173B33;
  --paper: #F4F5F1;
  --card: #FFFFFF;
  --ink: #14302A;
  --muted: #55635D;
  --line: #DDE2D9;
  --amber: #F2B01E;
  --up: #B4321F;
  --up-bg: #FBEAE5;
  --down: #1A6498;
  --down-bg: #E6F0F8;
  --on-dark-muted: #B9CBC4;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--mono); font-stretch: 75%; font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.num { font-family: var(--mono); font-stretch: 75%; font-variant-numeric: tabular-nums; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 16px; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; box-shadow: 0 6px 0 #B98207; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #B98207; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #B98207; }
.btn svg { width: 20px; height: 20px; }

/* Abertura */
.hero { position: relative; background: var(--pine-deep); color: #FFFFFF; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%); pointer-events: none; }
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 8px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--mono); font-stretch: 75%; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo svg { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.top-link { font-size: 14px; font-weight: 700; color: var(--on-dark-muted); text-decoration: none; padding: 10px 0; }
.top-link:hover { color: #FFFFFF; }
.hero-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px 32px; align-items: center; padding: 28px 0 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-stretch: 75%; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--on-dark-muted); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 6px 12px; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1.8s ease-in-out infinite; }
.hero h1 { font-size: clamp(36px, 6vw, 66px); overflow-wrap: anywhere; }
.hero h1 mark { background: none; color: var(--amber); }
.hero .lead { font-size: clamp(17px, 2.1vw, 20px); color: #D5E0DB; max-width: 46ch; }
.cta-note { font-size: 14px; color: var(--on-dark-muted); }
.cta-note b { color: #FFFFFF; font-weight: 700; }

/* Cena 3D */
.stage { position: relative; height: 640px; perspective: 1700px; perspective-origin: 50% 45%; min-width: 0; }
.stage::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(560px, 120%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(242,176,30,0.20), transparent 62%); pointer-events: none; }
.scale { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: scale(var(--s, 1)); transform-style: preserve-3d; }
.rig { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -22deg)); will-change: transform; }
.glow { display: none; }
.shadow { position: absolute; left: -150px; top: -270px; width: 320px; height: 600px; border-radius: 60px; background: rgba(0,0,0,0.5); filter: blur(34px); transform: translateZ(-70px) translate(46px, 56px); }

.phone { position: absolute; left: -150px; top: -305px; width: 300px; height: 610px; transform-style: preserve-3d; transform: translateZ(40px); }
.slice { position: absolute; inset: 0; border-radius: 46px; background: #0B1D19; border: 1px solid #1C3A33; }
.phone-face { position: absolute; inset: 0; border-radius: 46px; background: #0A1A16; padding: 10px; box-shadow: inset 0 0 0 2px #2D4D45; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #1B2925; isolation: isolate; transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(#fff, #000); }

.cam { position: absolute; inset: 0; background: linear-gradient(160deg, #26342F, #151F1C); }
.cam-paper { position: absolute; left: 40px; top: 64px; width: 200px; height: 620px; background: #FBFBF7; color: #2A2A2A; padding: 14px 16px; font-family: var(--mono); font-stretch: 75%; font-size: 8.5px; line-height: 1.9; transform: translate(var(--dx, 0px), var(--dy, 0px)); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.cam-paper b { display: block; text-align: center; font-size: 10px; }
.cam-paper .ln { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed #D8D8D0; }
.qr { position: absolute; left: 18px; top: 300px; width: 104px; height: 104px; background: #FFFFFF; }
.qr svg { display: block; width: 100%; height: 100%; }
.frame { position: absolute; left: var(--fx, 55px); top: var(--fy, 163px); width: var(--fs, 170px); height: var(--fs, 170px); transition: left .55s cubic-bezier(.3,1.45,.5,1), top .55s cubic-bezier(.3,1.45,.5,1), width .55s cubic-bezier(.3,1.45,.5,1), height .55s cubic-bezier(.3,1.45,.5,1); animation: pulse 1.8s ease-in-out infinite; }
.frame i { position: absolute; width: 30px; height: 30px; border: 0 solid var(--amber); }
.frame .tl { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 16px; }
.frame .tr { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 16px; }
.frame .bl { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 16px; }
.frame .br { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 16px; }
.frame .ok { position: absolute; inset: 0; border-radius: 16px; background: rgba(242,176,30,0.9); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.8); transition: opacity .22s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.frame .ok svg { width: 44px; height: 44px; color: var(--ink); }
.demo.is-locked .frame { animation: none; }
.demo.is-locked .frame .ok { opacity: 1; transform: scale(1); }
.cam-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper); color: var(--ink); border-radius: 22px 22px 0 0; padding: 18px 18px 26px; display: flex; flex-direction: column; gap: 4px; }
.cam-sheet strong { font-size: 15px; font-weight: 800; line-height: 1.25; }
.cam-sheet span { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.result { position: absolute; inset: 0; background: var(--paper); color: var(--ink); padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 10px; transform: translateY(103%); transition: transform .65s cubic-bezier(.2,.9,.2,1); }
.demo.is-result .result { transform: translateY(0); }
.result h4 { margin: 0; font-family: var(--body); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.result small { font-size: 10.5px; color: var(--muted); }
.total { background: var(--pine); color: #FFFFFF; border-radius: 16px; padding: 14px; display: flex; justify-content: space-between; align-items: flex-end; }
.total span { font-size: 10.5px; color: var(--on-dark-muted); display: block; }
.total .num { font-size: 21px; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.total em { font-style: normal; white-space: nowrap; font-size: 9.5px; font-weight: 800; background: var(--amber); color: var(--ink); border-radius: 999px; padding: 4px 8px; }
.list { background: #FFFFFF; border: 1px solid #E1E5DD; border-radius: 14px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.9,.2,1); transition-delay: calc(var(--i) * 90ms + 250ms); }
.item + .item { border-top: 1px solid #ECEFE9; }
.demo.is-result .item { opacity: 1; transform: none; }
.item b { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.item small { font-family: var(--mono); font-stretch: 75%; font-size: 9px; }
.item .r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-family: var(--mono); font-stretch: 75%; font-size: 12px; font-weight: 700; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-family: var(--body); font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.delta svg { width: 10px; height: 10px; flex: none; }
.delta.up { color: var(--up); background: var(--up-bg); }
.delta.down { color: var(--down); background: var(--down-bg); }

/* Tira de papel em 3D: quatro trechos que se curvam no mesmo sentido, como papel saindo da impressora */
.paper3d { position: absolute; left: 78px; top: -330px; width: 190px; transform-style: preserve-3d; transform: translateZ(-150px) rotateZ(7deg) rotateY(8deg); animation: sway 7s ease-in-out infinite alternate; }
.seg { position: relative; width: 190px; height: 118px; background: #FBFBF7; color: #33403B; transform-style: preserve-3d; transform-origin: 50% 0; padding: 8px 14px 0; font-family: var(--mono); font-stretch: 75%; font-size: 8.5px; line-height: 1.85; background-image: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.07)); outline: 1px solid transparent; }
.seg .seg { position: absolute; left: 0; top: calc(100% - 0.5px); animation: curl 6s ease-in-out infinite alternate; }
.seg .ln { display: flex; justify-content: space-between; border-bottom: 1px dashed #D8D8D0; }
.zig { position: absolute; left: 0; right: 0; top: calc(100% - 0.5px); height: 10px; background: linear-gradient(135deg, #FBFBF7 50%, transparent 50%) 0 0 / 14px 10px repeat-x, linear-gradient(225deg, #FBFBF7 50%, transparent 50%) 0 0 / 14px 10px repeat-x; }

.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: #FFFFFF; color: var(--ink); border-radius: 16px; padding: 10px 14px; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 18px 40px rgba(0,0,0,0.35); animation: bob 5s ease-in-out infinite; }
.chip small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.chip-a { left: -236px; top: -150px; --z: 90px; }
.stage.narrow .chip-a { left: -206px; top: -196px; }
.stage.narrow .chip-b { left: 36px; top: 176px; }
.stage.narrow .paper3d { left: 56px; }
.chip-b { left: 96px; top: 150px; --z: 120px; animation-delay: -2.4s; }

/* Fita de preços */
.ticker { background: var(--amber); color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; padding: 12px 0; }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: tick 40s linear infinite; font-family: var(--mono); font-stretch: 75%; font-size: 14px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; }
.ticker-track svg { width: 12px; height: 12px; }

/* Seções */
section { padding: 84px 0; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 30ch; margin-bottom: 40px; }
.head h2 { font-size: clamp(30px, 4.8vw, 50px); }
.head p { color: var(--muted); max-width: 52ch; }
.kicker { font-family: var(--mono); font-stretch: 75%; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 6px 6px 0 var(--ink); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--mono); font-stretch: 75%; font-weight: 800; font-size: 15px; color: var(--muted); }
.step h3 { font-size: 26px; }
.step p { color: var(--muted); font-size: 16px; }
.step .art { height: 120px; border-radius: 14px; background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.step .art svg { width: 100%; height: 100%; }

/* Inflação pessoal */
.dark { background: var(--pine-deep); color: #FFFFFF; }
.dark .head p, .dark .kicker { color: var(--on-dark-muted); }
.infl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px 48px; align-items: center; }
.infl .head { margin-bottom: 0; max-width: 24ch; }
.big { font-family: var(--mono); font-stretch: 75%; font-weight: 800; font-size: clamp(56px, 11vw, 120px); letter-spacing: -0.06em; line-height: 0.95; color: var(--amber); }
.chart-card { background: var(--pine); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chart-card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-muted); }
.chart-card .cap b { color: #FFFFFF; font-size: 16px; }
.chart-card svg { display: block; width: 100%; height: auto; }
.line { stroke-dasharray: var(--len, 2000); stroke-dashoffset: 0; }
.replay .line { animation: draw 1.8s cubic-bezier(.6,.05,.2,1) both; }
.replay .pt { animation: pop .4s ease-out both; animation-delay: calc(var(--k) * 0.3s + 0.2s); }
.end-dot { transform-origin: center; transform-box: fill-box; animation: beat 1.8s ease-in-out infinite; }
.fine { font-size: 12.5px; color: var(--on-dark-muted); }

/* Recursos */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; perspective: 1200px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .25s ease, box-shadow .25s ease; transform-style: preserve-3d; }
.card:hover { box-shadow: 0 24px 50px rgba(20,48,42,0.14); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--pine); color: var(--amber); display: flex; align-items: center; justify-content: center; transform: translateZ(30px); }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 16px; }

/* Cupom de situação */
.cupom { max-width: 560px; margin: 0 auto; background: #FBFBF7; border: 1px solid var(--line); padding: 30px 26px 44px; font-family: var(--mono); font-stretch: 75%; font-size: 13.5px; line-height: 1.9; -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%); filter: drop-shadow(0 18px 30px rgba(20,48,42,0.12)); }
.cupom h3 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.cupom .center { text-align: center; color: var(--muted); font-size: 12px; }
.cupom hr { border: 0; border-top: 1.5px dashed #BFC6BC; margin: 14px 0; }
.cupom .ln { display: flex; justify-content: space-between; gap: 14px; }
.cupom .ln span:last-child { font-weight: 800; white-space: nowrap; }
.cupom .sub { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }

/* Perguntas */
.faq { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 800; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--mono); font-size: 22px; font-weight: 500; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 20px; max-width: 62ch; }

/* Chamada final e rodapé */
.final { text-align: left; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.final h2 { font-size: clamp(34px, 6.4vw, 72px); max-width: 16ch; }
.final h2 mark { background: none; color: var(--amber); }
footer { background: var(--pine-deep); color: var(--on-dark-muted); border-top: 1px solid rgba(255,255,255,0.12); padding: 26px 0 40px; font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot a { font-weight: 700; color: #FFFFFF; }

/* Entrada ao rolar: o estado de repouso é sempre visível */
.rise.in { animation: rise .7s cubic-bezier(.2,.9,.2,1) backwards; animation-delay: calc(var(--d, 0) * 90ms); }

@keyframes blink { 50% { opacity: 0.25; } }
@keyframes pulse { 50% { transform: scale(1.05); } }
@keyframes bob { 0%, 100% { transform: translateZ(var(--z)) translateY(0); } 50% { transform: translateZ(var(--z)) translateY(-12px); } }
@keyframes curl { from { transform: rotateX(calc(var(--a) * 0.45)); } to { transform: rotateX(var(--a)); } }
@keyframes sway { from { transform: translateZ(-150px) rotateZ(7deg) rotateY(8deg); } to { transform: translateZ(-150px) rotateZ(5deg) rotateY(13deg); } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes draw { from { stroke-dashoffset: var(--len, 2000); } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes beat { 50% { transform: scale(1.35); } }
@keyframes rise { from { transform: translateY(30px); opacity: 0.25; } to { transform: none; opacity: 1; } }
.pt { transform-origin: center; transform-box: fill-box; }
.chip { transform: translateZ(var(--z)); }

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero-grid { padding-bottom: 40px; }
  .step { box-shadow: 4px 4px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
