/* PDV Para Todos - Home: estilos das seções abaixo da dobra.
   Carregado de forma assíncrona (media=print + onload) para manter o
   CSS crítico inline mínimo e o LCP < 2,5s em 4G. Os tokens (--g900,
   --yellow etc.) vêm do :root do CSS crítico inline. */

/* ================= Demos (stories) ================= */
.demo-wrap { position: relative; }
.demo-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 16px; margin: 0 -20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.demo-track::-webkit-scrollbar { display: none; }
.demo-card {
    scroll-snap-align: center; flex: 0 0 min(236px, 66vw);
    background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
    padding: 18px 16px; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
    transition: transform .15s ease, border-color .15s ease;
}
.demo-card:active { transform: scale(.98); }
.demo-card.hl { border-color: var(--ring, var(--green)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring, var(--green)) 22%, transparent), var(--shadow); }
.demo-ring { width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: conic-gradient(from 20deg, var(--ring, var(--green)), var(--yellow), var(--ring, var(--green))); }
.demo-ring i { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.55rem; }
.demo-card strong { font-family: var(--fd); font-size: 1rem; }
.demo-card p { margin: 0; color: var(--muted); font-size: .84rem; flex: 1; }
.demo-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .88rem; color: var(--g800); }
.swipe-hint { text-align: center; color: var(--muted); font-size: .78rem; font-weight: 600; margin-top: 0; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #CFCABB; transition: all .2s; }
.dots i.on { background: var(--green); width: 20px; border-radius: 4px; }
.demo-note { display: flex; justify-content: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: .84rem; font-weight: 600; text-align: center; }
.demo-nav { display: none; }
.demo-side { display: contents; }

/* ================= Calculadora ================= */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.calc-grid { display: grid; }
.calc-form { padding: 22px 20px; display: grid; gap: 16px; }
.calc-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--g900); }
.calc-field input[type="number"] {
    width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px;
    padding: 10px 14px; font-size: 1.05rem; font-family: var(--fb); font-weight: 600; color: var(--ink);
    background: #FCFBF8;
}
.calc-field input[type="number"]:focus { outline: 2px solid var(--green); border-color: var(--green); }
.calc-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.calc-switch { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--g900); }
.calc-switch input { position: absolute; opacity: 0; }
.calc-switch i { width: 52px; height: 30px; border-radius: 999px; background: #D8D4C8; position: relative; transition: background .2s ease; flex: none; }
.calc-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s ease; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.calc-switch input:checked + i { background: var(--green); }
.calc-switch input:checked + i::after { left: 25px; }
.calc-delivery { display: none; gap: 16px; }
.calc-delivery.on { display: grid; }
.calc-out { background: linear-gradient(150deg, var(--g900) 0%, var(--g800) 100%); color: #fff; padding: 26px 20px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.calc-out small { text-transform: uppercase; letter-spacing: .07em; font-weight: 800; font-size: .72rem; color: #BFDCCE; }
.calc-out strong { font-family: var(--fd); font-weight: 800; font-size: clamp(2rem, 9vw, 3rem); color: var(--yellow); line-height: 1.05; }
.calc-out span { color: rgba(255,255,255,.8); font-size: .85rem; }
.calc-out .btn { margin-top: 12px; }
.calc-foot { font-size: .74rem; color: rgba(255,255,255,.6); margin-top: 6px; }

/* ================= 3 passos ================= */
.steps { display: grid; gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.step-n { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--g800); color: var(--yellow); font-family: var(--fd); font-weight: 800; font-size: 1.2rem; }
.step strong { font-family: var(--fd); font-size: 1rem; display: block; margin-bottom: 4px; color: var(--g900); }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
.steps-shot { display: none; }

/* ================= Offline ================= */
.off { background: radial-gradient(700px 380px at 90% 0%, rgba(15,164,99,.22) 0%, transparent 60%), linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 75%, #123A78 100%); border-radius: 24px; color: #fff; padding: 34px 22px; display: grid; gap: 22px; }
.off-ic { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.off h2 { font-size: clamp(1.35rem, 5vw, 1.85rem); font-weight: 800; margin-top: 16px; }
.off p { color: rgba(255,255,255,.84); margin: 12px 0 0; }
.off-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.off-badges span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 13px; font-size: .78rem; font-weight: 700; }
.off-flow { display: grid; gap: 10px; }
.off-flow div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 15px; font-size: .86rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }

/* ================= Por que é grátis ================= */
.free { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.free-top { background: linear-gradient(150deg, var(--g900) 0%, var(--g800) 100%); color: #fff; padding: 30px 22px; text-align: center; }
.free-top .price { font-family: var(--fd); font-weight: 800; font-size: clamp(2.3rem, 9vw, 3.2rem); color: var(--yellow); line-height: 1; }
.free-top .price small { font-size: .38em; font-weight: 700; vertical-align: super; }
.free-top p { margin: 10px auto 0; color: rgba(255,255,255,.87); max-width: 32rem; font-size: .95rem; }
.free-cols { display: grid; }
.free-col { padding: 22px; border-top: 1px solid var(--line); }
.free-col h3 { font-size: 1rem; font-weight: 800; color: var(--g900); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.free-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.free-col li { display: flex; gap: 9px; align-items: flex-start; font-size: .89rem; color: var(--muted); }
.free-col li svg { flex: none; color: var(--green); margin-top: 3px; }
.free-cta { padding: 8px 22px 26px; text-align: center; }
.free-cta small { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: .8rem; }
.free-cta a.lnk { color: var(--g800); font-weight: 700; }
.seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.seal { display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); border: 1px solid #BFE5D2; color: var(--g800); font-weight: 800; font-size: .82rem; padding: 9px 14px; border-radius: 999px; }
.seal svg { color: var(--green); }

/* ================= Prova social ================= */
.live { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; width: fit-content; font-weight: 700; font-size: .9rem; color: var(--g900); margin-bottom: 18px; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: liveBlink 1.6s ease-in-out infinite; }
@keyframes liveBlink { 50% { opacity: .35; } }
.video-slot { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--g950); aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; color: #fff; margin-bottom: 22px; }
.video-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.video-slot .vs-in { position: relative; z-index: 1; padding: 18px; }
.video-slot .vs-play { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px dashed rgba(255,255,255,.5); display: grid; place-items: center; margin: 0 auto 10px; font-size: 1.4rem; }
.video-slot strong { font-family: var(--fd); display: block; }
.video-slot span { font-size: .8rem; color: rgba(255,255,255,.75); }

.testi-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 16px; margin: 0 -20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.testi-track::-webkit-scrollbar { display: none; }
.testi { scroll-snap-align: center; flex: 0 0 min(320px, 84vw); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.testi-stars { color: var(--yellow-deep); letter-spacing: 3px; font-size: 1rem; }
.testi blockquote { margin: 0; font-size: .94rem; flex: 1; }
.testi footer strong { font-family: var(--fd); display: block; font-size: .92rem; }
.testi footer span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.testi-ph { border: 2px dashed #C9C4B4; box-shadow: none; background: #FCFBF7; }
.testi-ph blockquote, .testi-ph footer strong, .testi-ph footer span { color: #A39F8F; }
.testi-ph-tag { align-self: flex-start; background: #EFECE0; color: #8A8574; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }

.brmap { display: none; margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.brmap.on { display: block; }
.brmap h3 { font-size: 1rem; font-weight: 800; color: var(--g900); margin-bottom: 4px; }
.brmap p { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.brmap svg { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.brmap .st { fill: #D9D4C6; }
.brmap .st-on { fill: var(--green); animation: mapPulse 2.4s ease-in-out infinite; }
@keyframes mapPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ================= WhatsApp bloco ================= */
.wab { background: linear-gradient(150deg, #0B3D24 0%, var(--wa-dark) 100%); border-radius: 24px; color: #fff; padding: 32px 22px; text-align: center; }
.wab h2 { font-size: clamp(1.3rem, 5vw, 1.75rem); font-weight: 800; }
.wab p { color: rgba(255,255,255,.86); max-width: 34rem; margin: 12px auto 20px; font-size: .94rem; }
.wab .btn { max-width: 22rem; width: 100%; }
.wab small { display: block; margin-top: 12px; color: rgba(255,255,255,.7); font-weight: 600; font-size: .78rem; }

/* ================= FAQ ================= */
.faq { display: grid; gap: 10px; max-width: 46rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--fd); font-weight: 700; font-size: .96rem; color: var(--g900); display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--green); font-weight: 600; flex: none; transition: transform .2s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: .92rem; }

/* ================= CTA final ================= */
.final { background: radial-gradient(800px 400px at 15% 0%, rgba(15,164,99,.28) 0%, transparent 60%), linear-gradient(160deg, var(--g950) 0%, var(--g800) 100%); border-radius: 24px; color: #fff; padding: 38px 22px; text-align: center; }
.final h2 { font-size: clamp(1.5rem, 5.6vw, 2.1rem); font-weight: 800; max-width: 28rem; margin: 0 auto; }
.final .seals { margin: 18px 0 22px; }
.final .seal { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #FFE9AE; }
.final .seal svg { color: var(--yellow); }
.final .btn { max-width: 22rem; width: 100%; }
.final-login { margin-top: 14px; font-size: .9rem; }
.final-login a { color: #fff; font-weight: 700; }

/* ================= Footer ================= */
.ftr { background: var(--g950); color: rgba(255,255,255,.78); padding: 42px 0 30px; margin-top: 52px; }
.ftr-grid { display: grid; gap: 24px; }
.ftr h3 { color: #fff; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.ftr-col strong { display: block; color: #fff; font-family: var(--fd); font-size: .9rem; margin-bottom: 10px; }
.ftr-col a { display: block; color: rgba(255,255,255,.72); text-decoration: none; font-size: .9rem; padding: 5px 0; }
.ftr-col a:hover { color: var(--yellow); }
.ftr p { font-size: .86rem; margin: 10px 0 0; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px; font-size: .8rem; }

/* ================= PWA banner ================= */
.pwa { position: fixed; left: 12px; right: 12px; bottom: calc(88px + var(--sab)); z-index: 65; background: var(--navy-deep); color: #fff; border-radius: 16px; padding: 14px 16px; display: none; align-items: center; gap: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.35); max-width: 480px; margin: 0 auto; }
.pwa.on { display: flex; }
.pwa .emoji { font-size: 1.5rem; }
.pwa div { flex: 1; min-width: 0; }
.pwa strong { font-family: var(--fd); font-size: .9rem; display: block; }
.pwa span { font-size: .76rem; color: rgba(255,255,255,.75); }
.pwa .btn { padding: 9px 14px; min-height: 42px; font-size: .84rem; }
.pwa-x { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.1rem; cursor: pointer; padding: 8px; }

/* ================= Desktop (>=1024px) ================= */
@media (min-width: 1024px) {
    .sec { padding: 72px 0; }
    .demo-side { display: grid; grid-template-columns: .9fr 1.4fr; gap: 40px; align-items: center; }
    .demo-wrap { min-width: 0; }
    .demo-track { padding: 6px 4px 16px; margin: 0; }
    .demo-nav { display: grid; place-items: center; position: absolute; top: 40%; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; z-index: 2; font-size: 1.1rem; color: var(--g800); }
    .demo-nav.prev { left: -14px; }
    .demo-nav.next { right: -14px; }
    .swipe-hint { display: none; }
    .calc-grid { grid-template-columns: 1.05fr .95fr; }
    .calc-form { padding: 30px; }
    .calc-out { padding: 30px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .step { flex-direction: column; }
    .steps-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
    .steps-shot { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
    .off { grid-template-columns: 1.2fr .8fr; padding: 48px; }
    .free-cols { grid-template-columns: repeat(3, 1fr); }
    .free-col + .free-col { border-left: 1px solid var(--line); }
    .social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
    .ftr-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
    .pwa { left: auto; right: 24px; bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .live i, .brmap .st-on { animation: none; }
    .demo-card, .dots i { transition: none; }
}
