/* Promoção Halloween + Black Friday (05/11/2026, pedido da Profa. Eleonora).
   Seções injetadas por /promo.js por cima do espelho do Framer: o Framer redesenha a página
   no navegador, então nada disto vai dentro do HTML dele. Validade: até 27/11/2026. */

/* Esconde os 3 planos antigos do Framer; a seção #oferta continua existindo (âncora dos menus). */
#oferta > *:not(.fr4-promo) { display: none !important; }
#oferta { padding: 0 !important; background: #0B1E54 !important; }

.fr4-promo, .fr4-hw { --navy: #0B1E54; --noite: #070d2b; --laranja: #F2A31A; --azul-btn: #1C4C93;
  --titulo: "Mighty Swifta Regular", "Mighty Swifta Regular Placeholder", system-ui, sans-serif;
  --texto: "Rethink Sans", "Rethink Sans Placeholder", system-ui, sans-serif;
  box-sizing: border-box; font-family: var(--texto); color: #fff; }
.fr4-promo *, .fr4-hw * { box-sizing: border-box; }

/* ───────── Seção Halloween ───────── */
/* Emenda com a seção de cima ("Por que 98%..."): ela termina com cantos arredondados e o branco da página
   aparecia nas pontas. Aqui os cantos somem e o Halloween começa no mesmo azul, descendo em degradê até o
   roxo. :has() pega a seção logo antes, sem mexer na classe que o Framer controla. */
*:has(+ [data-fr4="halloween"]) { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
[data-fr4="halloween"] { margin-top: -1px; } /* some a linha fina de arredondamento entre as duas seções */
.fr4-hw { position: relative; overflow: hidden; width: 100%;
  background:
    radial-gradient(90% 70% at 85% 70%, rgba(92,40,140,.55) 0%, rgba(92,40,140,0) 70%),
    linear-gradient(180deg, #221656 0%, #1e1550 18%, #1d1449 38%, #1a0f3d 60%, var(--noite) 100%);
  padding: clamp(150px, 17vw, 210px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 104px);
  --w: clamp(260px, 27vw, 390px); --tx: 0px; --topo: 30px; --hx: .725; --bw: 92px;
  padding-left: max(clamp(20px, 5vw, 64px), calc(var(--tx) + var(--w) * .55)); } /* texto começa depois da árvore */
.fr4-hw-in { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.fr4-hw-selo { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(242,163,26,.14); color: var(--laranja); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.fr4-hw-selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); box-shadow: 0 0 0 0 rgba(242,163,26,.6); animation: fr4-pisca 1.6s infinite; }
.fr4-hw h2 { font-family: var(--titulo); font-weight: 400; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; margin: 18px 0 0; letter-spacing: -.01em; }
.fr4-hw h2 em { font-style: normal; color: var(--laranja); }
.fr4-hw-oferta { margin: 22px 0 0; font-size: clamp(19px, 2vw, 23px); font-weight: 600; line-height: 1.4; }
.fr4-hw-oferta b { color: var(--laranja); }
.fr4-hw p.fr4-hw-txt { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: #c9c3e6; max-width: 54ch; }

.fr4-hw-tempo { margin-top: 28px; }
.fr4-hw-tempo > span { display: block; font-family: var(--titulo); font-size: 24px; color: #fff; margin-bottom: 12px; }
.fr4-relogio { display: flex; gap: 10px; flex-wrap: wrap; }
.fr4-relogio div { min-width: 74px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); text-align: center; }
.fr4-relogio b { display: block; font-family: var(--titulo); font-weight: 400; font-size: 34px; line-height: 1; color: var(--laranja); font-variant-numeric: tabular-nums; }
.fr4-relogio small { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #a9a3cf; }

.fr4-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; min-height: 60px; padding: 0 30px;
  border-radius: 8px; background: var(--laranja); color: #120b00 !important; text-decoration: none; font-family: var(--titulo); font-size: 21px;
  box-shadow: 0 14px 34px -14px rgba(242,163,26,.75); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .3s; }
.fr4-btn:hover { transform: translateY(-3px); background: #ffb733; box-shadow: 0 20px 40px -14px rgba(242,163,26,.85); }
.fr4-btn svg { transition: transform .3s; } .fr4-btn:hover svg { transform: translateX(4px); }
.fr4-btn.azul { background: var(--azul-btn); color: #fff !important; box-shadow: 0 14px 30px -16px rgba(28,76,147,.9); }
.fr4-btn.azul:hover { background: #2559a8; }

/* Ilustração (vetor próprio, sem foto) */
.fr4-hw-arte { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.fr4-hw-arte svg { width: 100%; height: 100%; overflow: visible; }
.fr4-lua { animation: fr4-brilho 5s ease-in-out infinite; transform-origin: center; }
.fr4-abobora { animation: fr4-balanca 4s ease-in-out infinite; transform-origin: 230px 400px; }
.fr4-olho, .fr4-boca { animation: fr4-chama 1.8s ease-in-out infinite; }
.fr4-morcego { animation: fr4-voa 7s ease-in-out infinite; }
.fr4-morcego.b2 { animation-duration: 9s; animation-delay: -3s; }
.fr4-morcego.b3 { animation-duration: 8s; animation-delay: -5s; }
.fr4-asa { animation: fr4-bate .35s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.fr4-estrela { animation: fr4-pisca-estrela 3s ease-in-out infinite; }
.fr4-estrela:nth-of-type(2n) { animation-delay: -1.2s; } .fr4-estrela:nth-of-type(3n) { animation-delay: -2.1s; }

@keyframes fr4-pisca { 0% { box-shadow: 0 0 0 0 rgba(242,163,26,.6); } 70% { box-shadow: 0 0 0 10px rgba(242,163,26,0); } 100% { box-shadow: 0 0 0 0 rgba(242,163,26,0); } }
@keyframes fr4-brilho { 0%, 100% { opacity: .95; } 50% { opacity: 1; filter: drop-shadow(0 0 28px rgba(255,214,140,.55)); } }
@keyframes fr4-balanca { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes fr4-chama { 0%, 100% { opacity: 1; } 45% { opacity: .75; } 55% { opacity: .95; } }
@keyframes fr4-voa { 0% { transform: translate(0, 0); } 25% { transform: translate(-18px, -14px); } 50% { transform: translate(8px, -26px); } 75% { transform: translate(20px, -8px); } 100% { transform: translate(0, 0); } }
@keyframes fr4-bate { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
@keyframes fr4-pisca-estrela { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ───────── Novo bloco de preço (dentro de #oferta) ───────── */
.fr4-promo { width: 100%; background: var(--navy); padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 64px); text-align: center; }
.fr4-promo-rotulo { font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: #cfd8ff; }
.fr4-promo h2 { font-family: var(--titulo); font-weight: 400; font-size: clamp(44px, 6vw, 66px); line-height: 1.05; margin: 10px 0 0; }
.fr4-promo h2 em { font-style: normal; color: var(--laranja); }
.fr4-cartao { position: relative; max-width: 560px; margin: 40px auto 0; padding: 36px clamp(22px, 4vw, 40px) 32px; border-radius: 24px; text-align: left;
  background: #050a24; box-shadow: 0 0 0 2px var(--laranja), 0 40px 80px -40px rgba(0,0,0,.8); }
.fr4-faixa { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 8px 18px; border-radius: 999px;
  background: var(--laranja); color: #120b00; font-weight: 700; font-size: 15px; }
.fr4-cartao h3 { font-family: var(--titulo); font-weight: 400; font-size: clamp(30px, 4vw, 38px); color: var(--laranja); margin: 6px 0 0; line-height: 1.05; }
.fr4-cartao .fr4-sub { margin: 8px 0 0; font-size: 17px; line-height: 1.45; color: #a7adbe; }
.fr4-precos { display: grid; gap: 12px; margin-top: 24px; }
.fr4-preco { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.05); }
.fr4-preco b { font-family: var(--titulo); font-weight: 400; font-size: clamp(36px, 5vw, 48px); line-height: 1; }
.fr4-preco span { font-size: 16px; color: #c4c8d4; }
.fr4-preco.segundo { background: rgba(242,163,26,.1); box-shadow: inset 0 0 0 1px rgba(242,163,26,.35); }
.fr4-preco.segundo b { color: var(--laranja); }
.fr4-desc { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(242,163,26,.18); color: var(--laranja); font-size: 14px; font-weight: 700; vertical-align: middle; }
.fr4-validade { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 16px; color: #e8d7b5; }
.fr4-cartao .fr4-btn { width: 100%; margin-top: 22px; }
.fr4-inclui { margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.1); list-style: none; display: grid; gap: 12px; }
.fr4-inclui li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.4; color: #c4c8d4; }
.fr4-inclui li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #1C4C93 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }

/* entrada ao rolar */
.fr4-anima { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.75,.2,1); }
.fr4-anima.fr4-visto { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .fr4-hw-in { grid-template-columns: 1fr; }
  .fr4-hw-arte { max-width: 300px; order: -1; }
  .fr4-hw h2 { font-size: clamp(38px, 10vw, 52px); }
  .fr4-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fr4-hw *, .fr4-promo * { animation: none !important; }
  .fr4-anima { opacity: 1; transform: none; transition: none; }
}

/* fantasminha espiando atrás da abóbora */
.fr4-fantasma { animation: fr4-espia 4.5s ease-in-out infinite; transform-box: view-box; }
@keyframes fr4-espia { 0%, 100% { transform: translate(0, 10px); } 40%, 60% { transform: translate(6px, -22px); } }
.fr4-abobora-p { animation: fr4-balanca 3.4s ease-in-out -1s infinite; transform-origin: 70px 440px; }

/* ───────── Morcego pendurado (06/11/2026) ─────────
   Fica de cabeça para baixo no topo da seção (= borda de baixo da seção anterior). Dormindo: olhos fechados,
   "zzz", balançando de leve. .fr4-acordado (posto pelo promo.js quando a seção está na tela): abre os olhos,
   sacode e fala. Tirar a classe ao sair faz tudo recomeçar na volta. */
.fr4-pendurado { position: absolute; top: calc(var(--topo) + var(--w) * .072); left: calc(var(--tx) + var(--w) * var(--hx) - var(--bw) / 2); z-index: 2; width: var(--bw); pointer-events: none; }
.fr4-morcego-p { filter: drop-shadow(0 0 7px rgba(170,140,255,.45)); display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 0; animation: fr4-balanco 4s ease-in-out infinite; }
.fr4-mp-olhos { transform-box: fill-box; transform-origin: center; transform: scaleY(.12); transition: transform .35s ease .2s; }
.fr4-mp-asa-e, .fr4-mp-asa-d { transform-box: fill-box; transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.fr4-mp-asa-e { transform-origin: right top; } .fr4-mp-asa-d { transform-origin: left top; }
.fr4-zzz { position: absolute; left: 70%; top: 56px; font-family: var(--titulo); color: #c9c3e6; transition: opacity .3s; }
.fr4-zzz i { position: absolute; font-style: normal; opacity: 0; animation: fr4-zzz 3s ease-in-out infinite; }
.fr4-zzz i:nth-child(1) { font-size: 16px; } .fr4-zzz i:nth-child(2) { font-size: 20px; animation-delay: 1s; } .fr4-zzz i:nth-child(3) { font-size: 24px; animation-delay: 2s; }
@keyframes fr4-zzz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(26px, 36px); } }
@keyframes fr4-balanco { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* acordado */
.fr4-acordado .fr4-mp-olhos { transform: scaleY(1); }
.fr4-acordado .fr4-zzz { opacity: 0; }
.fr4-acordado .fr4-morcego-p { animation: fr4-acorda .9s cubic-bezier(.3,1.5,.5,1) .15s, fr4-balanco 3.2s ease-in-out 1.1s infinite; }
.fr4-acordado .fr4-mp-asa-e { transform: rotate(18deg); } .fr4-acordado .fr4-mp-asa-d { transform: rotate(-18deg); }
.fr4-acordado .fr4-mp-olhos { animation: fr4-pisca-olho 4s ease-in-out 2.4s infinite; }
@keyframes fr4-acorda { 0% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.06); } 50% { transform: rotate(12deg); } 75% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
@keyframes fr4-pisca-olho { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* balão: as 3 frases ocupam a mesma célula da grade, então o balão tem o tamanho da maior */
.fr4-balao { position: absolute; left: calc(100% + 6px); top: 66px; display: grid; width: max-content; max-width: 210px; padding: 10px 16px;
  border-radius: 16px 16px 16px 4px; background: #fff; color: #1b1030; font-family: var(--titulo); font-size: 18px; line-height: 1.2; text-align: center;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); opacity: 0; transform: translateX(-6px) scale(.85); transform-origin: left center; transition: opacity .25s, transform .25s; }
.fr4-balao::after { content: ""; position: absolute; left: -9px; top: 16px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.fr4-balao { pointer-events: auto; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: opacity .25s, transform .25s, scale .15s ease; }
.fr4-balao:hover { box-shadow: 0 0 0 3px rgba(242,163,26,.45), 0 14px 30px -14px rgba(0,0,0,.6); }
.fr4-balao:active { scale: .94; }
.fr4-balao:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; }
@keyframes fr4-toque { 0% { scale: .9; } 60% { scale: 1.06; } 100% { scale: 1; } }
/* as frases ocupam a mesma célula da grade: o balão tem o tamanho da maior; o promo.js marca a .ativa */
.fr4-balao span { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .35s ease; }
.fr4-balao span.ativa { opacity: 1; transform: none; }
.fr4-balao span:nth-child(2), .fr4-balao span:nth-child(3) { color: #c96a00; }
.fr4-pontos { grid-area: 2 / 1; display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.fr4-pontos i { width: 7px; height: 7px; border-radius: 50%; background: #d9d3ea; transition: background .25s, width .25s; }
.fr4-pontos i.ativo { width: 18px; border-radius: 4px; background: var(--laranja); }
.fr4-acordado .fr4-balao { animation: fr4-balao-entra .5s cubic-bezier(.3,1.4,.5,1) .9s forwards; }
.fr4-acordado .fr4-balao.fr4-tocou { animation: fr4-balao-entra .5s cubic-bezier(.3,1.4,.5,1) .9s forwards, fr4-toque .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes fr4-balao-entra { to { opacity: 1; transform: none; } }

/* fora da tela, nada da seção roda */
.fr4-hw:not(.fr4-na-tela), .fr4-hw:not(.fr4-na-tela) * { animation-play-state: paused !important; }

@media (max-width: 860px) { .fr4-hw { --w: 230px; --tx: -22px; --hx: .56; --bw: 76px; padding-left: clamp(20px, 5vw, 64px); }
  .fr4-arvore { -webkit-mask-image: linear-gradient(#000 0 360px, transparent 500px); mask-image: linear-gradient(#000 0 360px, transparent 500px); } /* no celular a árvore some antes do texto */ .fr4-balao { font-size: 16px; max-width: 220px; top: 52px; } .fr4-zzz { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
  .fr4-acordado .fr4-balao { opacity: 1; transform: none; }
  .fr4-zzz { display: none; }
}

/* ───────── Árvore seca + divisão escorrendo (09/11/2026) ─────────
   Divisão: a seção de cima "escorre" para dentro do Halloween (gotas no mesmo azul #0B1E54), por isso o
   Halloween agora começa num roxo. Árvore no canto esquerdo, atrás do texto; o morcego pendura no galho de cima
   (posição dele vem de --w/--tx/--hx, os mesmos números da árvore). Volta ao estado anterior: tag git antes-arvore-20261109 (sem árvore) ou antes-gotas-20261109 (gotas paradas). */
.fr4-gotas { position: absolute; top: 0; left: 0; width: 100%; height: 130px; z-index: 1; pointer-events: none; overflow: visible;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.3)); }
/* cada gota estica devagar (o pingo vai se formando), solta o pingo e encolhe com um tremidinho de líquido */
.fr4-g-corpo { transform-box: fill-box; transform-origin: 50% 0; animation: fr4-escorre var(--dur) cubic-bezier(.45,0,.55,1) var(--atraso) infinite; }
.fr4-g-pingo { transform-box: fill-box; opacity: 0; animation: fr4-pinga var(--dur) var(--atraso) infinite; }
@keyframes fr4-escorre { 0% { transform: scaleY(1); } 50% { transform: scaleY(1.85); } 56% { transform: scaleY(1.05); }
  62% { transform: scaleY(1.22); } 70% { transform: scaleY(.96); } 80%, 100% { transform: scaleY(1); } }
@keyframes fr4-pinga { 0%, 44% { opacity: 0; transform: translateY(0); }
  48% { opacity: 1; transform: translateY(calc(var(--cai) * .8)); animation-timing-function: cubic-bezier(.5,0,1,1); }
  51% { opacity: 1; transform: translateY(var(--cai)); }
  72% { opacity: 0; transform: translateY(calc(var(--cai) + 90px)); } 100% { opacity: 0; } }
@media (max-width: 860px) { .fr4-g-x { display: none; } }
@media (prefers-reduced-motion: reduce) { .fr4-g-corpo, .fr4-g-pingo { animation: none; } }
.fr4-arvore { position: absolute; top: var(--topo); left: var(--tx); width: var(--w); height: auto; z-index: 0; pointer-events: none; overflow: visible; }
.fr4-folha-cai { transform-box: view-box; animation: fr4-cai 11s linear infinite; opacity: 0; }
.fr4-folha-cai.f2 { animation-duration: 14s; animation-delay: -6s; }
@keyframes fr4-cai { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 8% { opacity: 1; }
  25% { transform: translate(28px, 90px) rotate(40deg); } 50% { transform: translate(-6px, 190px) rotate(-10deg); }
  75% { transform: translate(30px, 290px) rotate(50deg); opacity: .9; } 100% { opacity: 0; transform: translate(4px, 400px) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .fr4-folha-cai { display: none; } }
