/* =========================================================
   CUPOM VERDE
   Só é carregado nessa página. Aqui o verde é a cor da marca Cupom Verde (selo do logo, topo, números e "Baixe agora");
   o resto segue o azul e o papel do site. Animações suaves, desligadas com "Pausar animações" e com movimento reduzido.
   ========================================================= */

:root {
    --cv-900: #0a3d24;
    --cv-800: #0d5a33;
    --cv-700: #11793f;
    --cv-600: #1a9650;
    --cv-500: #2db564;
    --cv-200: #bfe8cf;
    --cv-100: #def4e6;
    --cv-50: #f0faf3;
    --cv-folha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M6 58C4 28 26 6 58 6c2 32-20 54-52 52z' fill='%23ffffff'/%3E%3Cpath d='M8 56 42 22' stroke='%230d5a33' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* ---------- Topo verde ---------- */
.page-head.cv-head {
    position: relative; overflow: hidden; border-bottom: 0;
    background:
        radial-gradient(70% 120% at 88% 10%, rgba(45, 181, 100, .55) 0%, transparent 60%),
        radial-gradient(60% 90% at 5% 110%, rgba(10, 61, 36, .7) 0%, transparent 65%),
        linear-gradient(135deg, var(--cv-800) 0%, var(--cv-700) 55%, var(--cv-600) 100%);
}
.cv-head .container { position: relative; z-index: 1; padding-top: clamp(34px, 5vw, 64px); padding-bottom: clamp(30px, 4.4vw, 56px); }
.cv-head h1 { color: var(--white); text-shadow: 0 2px 18px rgba(4, 40, 22, .35); }
.cv-head .page-head-tag { color: var(--cv-200); }
.cv-head p { color: #e6f7ec; }
.cv-head-grade { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px clamp(24px, 5vw, 64px); align-items: center; }

.cv-chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cv-chips li {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: calc(15px * var(--a11y-fs, 1)); line-height: 1;
    color: var(--white); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px);
}
.cv-chips i { color: var(--cv-200); }

/* Selo do logo: o logo é creme e transparente, então vive sobre verde */
.cv-marca {
    position: relative; display: grid; place-items: center; width: clamp(150px, 17vw, 210px); aspect-ratio: 1;
    border-radius: var(--r-xl); border: 3px solid rgba(255, 255, 255, .38);
    background: linear-gradient(150deg, var(--cv-500) 0%, var(--cv-700) 48%, var(--cv-900) 100%);
    box-shadow: 0 26px 40px -22px rgba(2, 36, 19, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
    animation: cv-flutua 6.5s ease-in-out infinite;
}
.cv-marca::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 9px); }
.cv-marca::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .55); pointer-events: none; animation: cv-onda 3.6s ease-out infinite; }
.cv-marca img { position: absolute; inset: 22px; display: block; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; filter: drop-shadow(0 3px 6px rgba(3, 40, 20, .35)); }

/* Folhas que caem devagar (só enfeite, no topo e no "Baixe agora") */
.cv-folhas { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cv-folhas i { position: absolute; top: -12%; display: block; width: var(--t, 30px); aspect-ratio: 1; background: var(--cv-folha) center / contain no-repeat; opacity: .2; animation: cv-cair var(--v, 18s) linear var(--a, 0s) infinite; }
.cv-folhas i:nth-child(1) { left: 6%;  --t: 26px; --v: 17s; --a: -3s; }
.cv-folhas i:nth-child(2) { left: 19%; --t: 40px; --v: 23s; --a: -11s; opacity: .14; }
.cv-folhas i:nth-child(3) { left: 38%; --t: 22px; --v: 15s; --a: -7s; }
.cv-folhas i:nth-child(4) { left: 57%; --t: 34px; --v: 21s; --a: -1s; opacity: .16; }
.cv-folhas i:nth-child(5) { left: 74%; --t: 24px; --v: 16s; --a: -9s; }
.cv-folhas i:nth-child(6) { left: 90%; --t: 38px; --v: 25s; --a: -14s; opacity: .13; }

/* ---------- Introdução ---------- */
.cv-lema { margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; color: var(--cv-800); }
.cv-lema::after { content: ""; display: block; width: 74px; height: 6px; margin-top: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--cv-500), var(--cv-700)); }
.cv-intro p + p { margin-top: 14px; }
.cv-intro strong { color: var(--cv-700); }

/* Títulos de seção ganham uma folha */
.cv-pagina .section-title { color: var(--cv-800); display: flex; align-items: center; gap: 12px; }
.cv-pagina .section-title::before {
    content: "\f06c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: .6em; line-height: 1; color: var(--cv-500);
    width: auto; height: auto; background: none; border-radius: 0; transform-origin: 50% 100%; animation: cv-balanca 5.5s ease-in-out infinite;
}
.cv-cpf h2 { color: var(--cv-800); }

/* ---------- Cupom Verde em números ---------- */
.cv-numeros-painel {
    position: relative; overflow: hidden; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-xl);
    background: linear-gradient(160deg, var(--cv-50) 0%, var(--cv-100) 100%); border: 1px solid var(--cv-200);
}
.cv-numeros-painel::before { content: ""; position: absolute; right: -40px; bottom: -50px; width: 260px; aspect-ratio: 1; background: var(--cv-folha) center / contain no-repeat; opacity: .5; filter: hue-rotate(0deg) saturate(.6); transform: rotate(-18deg); mix-blend-mode: soft-light; pointer-events: none; }
.cv-numeros-painel .section-title { margin-top: 0; }
.cv-numeros { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cv-numero {
    position: relative; display: grid; align-content: start; gap: 2px; padding: 22px 20px 20px; overflow: hidden;
    background: var(--white); border: 1px solid var(--cv-200); border-radius: var(--r-xl); box-shadow: 0 14px 24px -20px rgba(8, 70, 38, .55);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cv-numero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--cv-500), var(--cv-700)); }
.cv-numero:hover { transform: translateY(-5px); box-shadow: 0 22px 30px -20px rgba(8, 70, 38, .6); }
.cv-numero-icone { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: linear-gradient(145deg, var(--cv-100), var(--cv-200)); color: var(--cv-700); font-size: calc(21px * var(--a11y-fs, 1)); }
.cv-numero:hover .cv-numero-icone { animation: cv-balanca .7s ease; }
.cv-numero-valor { font-family: var(--font-display); font-weight: 800; font-size: calc(clamp(27px, 4.4vw, 40px) * var(--a11y-fs, 1)); line-height: 1; letter-spacing: .01em; color: var(--cv-800); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cv-numero-valor small { font-family: var(--font-body); font-size: calc(14px * var(--a11y-fs, 1)); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.cv-numero-rotulo { margin-top: 4px; font-size: calc(16px * var(--a11y-fs, 1)); font-weight: 600; line-height: 1.25; color: var(--blue-ink); }
.cv-numero-nota { font-size: calc(13.5px * var(--a11y-fs, 1)); color: var(--muted); }

/* ---------- Cupom fiscal impresso / CPF ---------- */
.inst-caixa.cv-impresso { background: linear-gradient(165deg, var(--cv-50) 0%, var(--white) 70%); border-color: var(--cv-200); }
.cv-impresso h2 { color: var(--cv-800); }
.cv-rs { margin: 4px 0 20px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cv-rs li {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: var(--white); cursor: default;
    background: linear-gradient(135deg, var(--cv-600), var(--cv-800)); box-shadow: 0 10px 16px -12px rgba(8, 70, 38, .8);
    font-family: var(--font-display); font-weight: 800; font-size: calc(22px * var(--a11y-fs, 1)); line-height: 1; text-transform: uppercase; transition: transform .2s ease;
}
.cv-rs li:hover { transform: translateY(-3px) rotate(-1.5deg); }
.cv-rs i { font-size: .8em; opacity: .9; }
.cv-curiosidade { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; }
.cv-curiosidade .inst-card-icone { flex: none; background: var(--cv-100); color: var(--cv-700); }
.cv-curiosidade p { margin: 0; }

.inst-caixa.cv-cpf { border-left: 6px solid var(--cv-500); }
.cv-resposta { margin: 0 0 14px; }
.cv-resposta strong { color: var(--cv-700); font-family: var(--font-display); font-size: calc(30px * var(--a11y-fs, 1)); text-transform: uppercase; }

/* ---------- Baixe agora ---------- */
.inst-caixa.cv-baixe {
    position: relative; overflow: hidden; text-align: center; color: #e6f7ec; border: 0;
    background:
        radial-gradient(60% 120% at 85% 0%, rgba(45, 181, 100, .5) 0%, transparent 60%),
        linear-gradient(140deg, var(--cv-900) 0%, var(--cv-800) 50%, var(--cv-700) 100%);
}
.cv-baixe > *:not(.cv-folhas) { position: relative; z-index: 1; }
.cv-baixe h2 { margin-bottom: 10px; color: var(--white); }
.cv-baixe p { color: #e6f7ec; }
.cv-baixe strong { color: var(--white); }
.cv-app {
    display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 14px; padding: 17px; border-radius: 24px;
    background: linear-gradient(145deg, var(--cv-500), var(--cv-800) 85%); border: 3px solid rgba(255, 255, 255, .4);
    box-shadow: 0 18px 28px -16px rgba(0, 0, 0, .65); animation: cv-flutua 6s ease-in-out infinite;
}
.cv-app img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cv-lojas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 6px; }
.cv-loja {
    display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 22px; border-radius: var(--r-lg); text-decoration: none;
    background: #052a19; color: var(--white); border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; line-height: 1.1; transition: background-color .15s, transform .15s;
}
.cv-loja i { font-size: calc(26px * var(--a11y-fs, 1)); }
.cv-loja small { display: block; font-size: calc(12px * var(--a11y-fs, 1)); font-weight: 500; opacity: .85; }
.cv-loja strong { display: block; font-size: calc(19px * var(--a11y-fs, 1)); }
a.cv-loja:hover, a.cv-loja:focus-visible { background: #0b4a2b; color: var(--white); transform: translateY(-2px); }
.cv-sem-link { background: rgba(255, 255, 255, .12); color: var(--white); border: 2px dashed rgba(255, 255, 255, .4); }
.cv-apoio { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: calc(15px * var(--a11y-fs, 1)); color: #cfeedd; }
.cv-apoio strong { color: var(--white); }

/* ---------- Entrada suave ao rolar (só com JavaScript e sem "movimento reduzido") ---------- */
.cv-js .cv-rev { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; transition-delay: var(--d, 0s); }
.cv-js .cv-rev.cv-visivel { opacity: 1; transform: none; }
.cv-js .cv-numero.cv-rev.cv-visivel:hover { transform: translateY(-5px); }

/* ---------- Movimento ---------- */
@keyframes cv-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes cv-onda { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.22); opacity: 0; } }
@keyframes cv-cair {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    25% { transform: translate3d(22px, 30vh, 0) rotate(70deg); }
    50% { transform: translate3d(-18px, 60vh, 0) rotate(150deg); }
    75% { transform: translate3d(20px, 90vh, 0) rotate(230deg); }
    100% { transform: translate3d(-6px, 120vh, 0) rotate(320deg); }
}
@keyframes cv-balanca { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.08); } 60% { transform: rotate(9deg) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
    .cv-marca, .cv-marca::after, .cv-app, .cv-folhas i, .cv-numero, .cv-rs li, .cv-loja { animation: none !important; transition: none !important; }
    .cv-folhas i { top: 12%; }
    a.cv-loja:hover, .cv-numero:hover, .cv-rs li:hover { transform: none; }
}
html.a11y-pausar .cv-marca::after { opacity: 0; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 640px) {
    .cv-head-grade { grid-template-columns: minmax(0, 1fr); }
    .cv-marca { width: 132px; order: -1; }
    .cv-marca img { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); }
}
@media (max-width: 560px) { .cv-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .cv-numero { padding: 18px 14px 16px; } }

/* ---------- Alto contraste ---------- */
html.a11y-contraste .cv-folhas { display: none; }
html.a11y-contraste .cv-marca, html.a11y-contraste .cv-app, html.a11y-contraste .cv-rs li, html.a11y-contraste .cv-loja, html.a11y-contraste .cv-numero, html.a11y-contraste .cv-chips li { border: 2px solid #fff !important; }
