/* Base comum dos 5 sites de prévia. Cada site define os tokens em :root no próprio css/site.css:
   --fundo --tinta --suave --marca --marca-2 --linha --cartao --fonte-titulo --fonte-texto --raio */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font-family: var(--fonte-texto); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
/* máscara das linhas do SplitText: respiro para acento de maiúscula e descendente não serem cortados */
.linha-mask { padding-block: 0.16em 0.08em; margin-block: -0.16em -0.08em; }
.wrap { width: min(1280px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 3px; border-radius: 4px; }

/* Faixa da prévia: deixa claro que é uma proposta, não o site oficial */
.previa { position: relative; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px 44px 8px 16px; background: #0d0d0d; color: #f2f2f2; font: 500 13px/1.35 var(--fonte-texto); text-align: center; }
.previa b { color: #fff; }
.previa a { text-decoration: underline; text-underline-offset: 3px; }
.previa button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }

/* Barra de progresso */
.progresso { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--marca); transform-origin: 0 50%; transform: scaleX(0); z-index: 80; pointer-events: none; }

/* Cabeçalho que esconde */
[data-cabecalho] { transition: transform .45s cubic-bezier(.2,.7,.2,1), background-color .3s, box-shadow .3s, backdrop-filter .3s; }
[data-cabecalho].escondido { transform: translateY(-110%); }

/* Botão base */
.botao { --b-fundo: var(--marca); --b-tinta: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .95em 1.5em; border-radius: 999px; background: var(--b-fundo); color: var(--b-tinta); font-weight: 650; font-size: .98rem; line-height: 1; border: 1px solid transparent; cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .25s, color .25s, box-shadow .3s; white-space: nowrap; will-change: transform; }
.botao:hover { box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--b-fundo) 70%, transparent); }
.botao--vazado { --b-fundo: transparent; --b-tinta: currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.botao--vazado:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.botao svg { width: 1.15em; height: 1.15em; flex: none; }

/* Marquee */
.marquee { display: flex; overflow: clip; user-select: none; gap: var(--gap-marquee, 3rem); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__faixa { display: flex; flex: none; gap: var(--gap-marquee, 3rem); min-width: 100%; justify-content: space-around; align-items: center; animation: marquee var(--vel, 38s) linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap-marquee, 3rem))); } }

/* Grão sutil por cima */
.grao::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grao 1.2s steps(6) infinite; }
@keyframes grao { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / .86); backdrop-filter: blur(6px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; view-transition-name: foto-aberta; }
.lightbox-fechar { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 24px; cursor: pointer; }

/* Formulário: estado de enviado */
[data-form-ok] { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--raio, 14px); background: color-mix(in srgb, var(--marca) 10%, transparent); border: 1px solid color-mix(in srgb, var(--marca) 35%, transparent); }
[data-form-ok][hidden] { display: none; }
form.enviado .campos { opacity: .55; }

/* Sem animação: tudo visível */
.sem-animacao [data-reveal], .sem-animacao [data-reveal-item] { opacity: 1 !important; transform: none !important; visibility: visible !important; }

/* WhatsApp flutuante */
.wa-flutuante { position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 70; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa-cor, var(--marca, #25d366)); color: var(--wa-tinta, #fff); box-shadow: 0 14px 34px -10px rgb(0 0 0 / .45); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.wa-flutuante:hover { transform: scale(1.07) rotate(-6deg); }
.wa-flutuante svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== Camada mobile comum (14/10, "otimize eles pra mobile") ===== */
@media (max-width: 640px) {
  /* iPhone não dá zoom ao tocar no campo */
  input:not([type=radio]):not([type=checkbox]), select, textarea { font-size: 16px !important; }
  /* WhatsApp vira barra fixa no rodapé: não tampa texto e converte melhor que a bolinha */
  .wa-flutuante { background: var(--wa-cor, var(--marca, #25d366)); color: var(--wa-tinta, #fff); left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; height: 54px; border-radius: 16px; display: flex; gap: 10px; justify-content: center; align-items: center; font: 700 16px/1 var(--fonte-texto); letter-spacing: 0; }
  .wa-flutuante::after { content: attr(aria-label); }
  .wa-flutuante:hover { transform: none; }
  .wa-flutuante svg { width: 24px; height: 24px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* alvos de toque */
  .botao { min-height: 48px; }
  .link-seta { min-height: 44px; align-items: center; }
  input[type=radio], input[type=checkbox] { width: 22px; height: 22px; }
  .radios label { min-height: 40px; }
  /* alvos de toque do menu, filtros e títulos com link */
  [data-menu] a, nav a { min-height: 48px; display: flex; align-items: center; }
  button:not(.oferta__x):not(.lightbox-fechar):not([data-menu-botao]) { min-height: 44px; }
  h2 a, h3 a, h4 a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  input[type=range] { min-height: 32px; }
  /* nada de rotação/escala que vaza da tela */
  .faixa { transform: none !important; }
  /* textos longos sem estourar */
  h1, h2, h3, p, li, dd { overflow-wrap: break-word; }
  .botao { white-space: normal; text-align: center; line-height: 1.15; }
  /* contadores e números grandes não quebram no meio */
  [data-count] { white-space: nowrap; }
  .lightbox img { max-height: 80vh; }
  .previa { padding-right: 40px; }
}
@media (max-width: 380px) { .wrap { width: calc(100% - 28px); } }

/* ===== Popup da oferta com contador (48 h) ===== */
.oferta { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.oferta[hidden] { display: none !important; }
.oferta__fundo { position: absolute; inset: 0; background: rgb(8 8 10 / .72); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.oferta__caixa { position: relative; width: min(440px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 30px 26px 24px; border-radius: 26px; background: #0f0f12; color: #f5f5f2; text-align: center; font-family: var(--fonte-texto); box-shadow: 0 40px 120px -30px rgb(0 0 0 / .8), inset 0 0 0 1px rgb(255 255 255 / .08); transform: translateY(30px) scale(.96); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.oferta.aberta .oferta__fundo { opacity: 1; }
.oferta.aberta .oferta__caixa { transform: none; opacity: 1; }
.oferta__x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); color: inherit; font-size: 22px; cursor: pointer; }
.oferta__selo { display: inline-block; margin: 0 0 12px; padding: .35em .8em; border-radius: 999px; background: rgb(255 255 255 / .08); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: inherit; }
.oferta h2, .autodestruido h2 { font-family: var(--fonte-texto); font-size: 22px; font-weight: 700; letter-spacing: -.01em; text-transform: none; font-stretch: 100%; line-height: 1.2; margin: 0; color: inherit; }
.oferta__relogio { display: flex; justify-content: center; align-items: baseline; gap: 4px; margin: 14px 0 2px; font: 800 clamp(44px, 13vw, 60px)/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; color: #ff5a4d; }
.oferta[data-fase="1"] .oferta__relogio { color: #ffcc4d; }
.oferta__relogio i { font-style: normal; opacity: .5; }
.oferta__legenda { display: flex; justify-content: center; gap: 46px; margin: 0 0 16px; font-size: 12px; opacity: .55; text-transform: uppercase; letter-spacing: .08em; }
.oferta__fase { margin: 0 0 6px; font-size: 15px; opacity: .9; }
.oferta__preco { margin: 0 0 14px; font-size: 15px; }
.oferta__preco s { opacity: .5; }
.oferta__preco strong { font-size: 30px; letter-spacing: -.02em; }
.oferta__preco small { opacity: .6; }
.oferta__cupom { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 14px; padding: 8px 14px; border: 1.5px dashed rgb(255 255 255 / .35); border-radius: 12px; background: transparent; color: inherit; font: 500 14px var(--fonte-texto); cursor: pointer; }
.oferta__cupom b { font-size: 17px; letter-spacing: .08em; }
.oferta__cupom span { font-size: 12px; opacity: .6; }
.oferta__comprar { display: flex; align-items: center; justify-content: center; min-height: 54px; width: 100%; padding: 14px 18px; border-radius: 14px; background: var(--oferta-botao, #25d366); color: var(--oferta-tinta, #08130b); font: 700 17px var(--fonte-texto); text-decoration: none; box-shadow: 0 16px 36px -14px var(--oferta-botao, #25d366); }
.oferta__miudo { margin: 12px 0 8px; font-size: 12.5px; opacity: .6; line-height: 1.45; }
.oferta__duvida { display: inline-flex; min-height: 40px; align-items: center; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; color: inherit; }
.oferta-pilula { position: fixed; left: clamp(12px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 71; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; background: #0f0f12; color: #f5f5f2; font: 600 14px var(--fonte-texto); font-variant-numeric: tabular-nums; box-shadow: 0 14px 34px -12px rgb(0 0 0 / .55); cursor: pointer; }
.oferta-pilula[hidden] { display: none !important; }
.oferta-pilula__ponto { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4d; animation: pulso-oferta 1.2s infinite; }
@keyframes pulso-oferta { 50% { opacity: .25; } }
.autodestruido { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgb(8 8 10 / .94); backdrop-filter: blur(14px) grayscale(1); color: #f5f5f2; text-align: center; font-family: var(--fonte-texto); }
.autodestruido > div { width: min(460px, 100%); }
.autodestruido h2 { font-size: 32px; margin: 0 0 10px; }
.autodestruido p { opacity: .75; margin: 0 0 20px; }
.site-destruido body > *:not(.autodestruido) { filter: grayscale(1) blur(2px); }
@media (max-width: 640px) {
  .oferta-pilula { left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); justify-content: center; }
  .oferta__caixa { padding: 26px 18px 20px; }
  .oferta__legenda { gap: 38px; }
}

/* Nivelamento: abaixo de N5 a seção de trilho vira carrossel com scroll-snap também no desktop */
html:not([data-nivel="5"]) .hscroll-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 1rem; }
html:not([data-nivel="5"]) .hscroll-track > * { scroll-snap-align: start; }
