/* =====================================================================
   TIRZEC — store-fx.css  ·  EFEITOS premium (linguagem do template)
   Carrega DEPOIS de store.css. Aditivo e reversível.
   Estados que escondem conteúdo SÓ existem sob html.fx-ready (fail-safe:
   sem JS, tudo visível). html.fx-reduce desliga movimento.
   Easing do template: cubic-bezier(0.16,1,0.3,1)  (= --st-ease de store.css)
   ===================================================================== */

:root {
  --fx-ease: var(--st-ease, cubic-bezier(0.16, 1, 0.3, 1));
  --fx-spring: var(--st-spring, cubic-bezier(0.34, 1.4, 0.64, 1));
}

/* ---------------------------------------------------------------------
   1) SCROLL-REVEAL  (fade + subida, escalonado — assinatura do template)
   --------------------------------------------------------------------- */
/* Valores fiéis ao template: fade + scale(.96) + subida, ease-out-soft. */
html.fx-ready .fx-reveal {
  opacity: 0;
  transform: translateY(34px) scale(.965);
  transition:
    opacity .66s var(--fx-ease),
    transform .66s var(--fx-ease);
  transition-delay: var(--fx-delay, 0ms);
  will-change: opacity, transform;
}
html.fx-ready .fx-reveal.fx-in {
  opacity: 1;
  transform: none;
}
html.fx-reduce .fx-reveal,
html.fx-reduce .fx-reveal.fx-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---------------------------------------------------------------------
   2) TILT 3D  (hero-card e vídeo). O lift entra no MESMO transform via
   --fx-lift para não brigar com os :hover translateY do store.css.
   --------------------------------------------------------------------- */
html.fx-ready .fx-tilt {
  transform:
    perspective(1000px)
    translateY(var(--fx-lift, 0px))
    rotateX(var(--fx-rx, 0deg))
    rotateY(var(--fx-ry, 0deg));
  transition: transform .3s var(--fx-ease), box-shadow .35s var(--fx-ease);
  transform-style: preserve-3d;
}
html.fx-reduce .fx-tilt { transform: none !important; }

/* ---------------------------------------------------------------------
   3) AURORA dourada no HERO  (profundidade viva por trás do conteúdo)
   Camada decorativa, pointer-events:none, atrás de tudo.
   --------------------------------------------------------------------- */
.hero-section { position: relative; overflow: hidden; isolation: isolate; }
.hero-section::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 18% 12%, rgba(226,182,74,.28), transparent 62%),
    radial-gradient(42% 40% at 88% 8%,  rgba(200,153,47,.22), transparent 60%),
    radial-gradient(52% 46% at 70% 96%, rgba(243,217,138,.20), transparent 66%);
  filter: blur(6px);
  animation: fx-aurora 18s ease-in-out infinite alternate;
}
.hero-section > * { position: relative; z-index: 1; }
@keyframes fx-aurora {
  0%   { transform: translate3d(0,0,0)      scale(1);    opacity: .9; }
  50%  { transform: translate3d(2%,-1.5%,0) scale(1.06); opacity: 1;  }
  100% { transform: translate3d(-2%,1%,0)   scale(1.03); opacity: .85;}
}

/* Grade sutil (dot grid) atrás do hero — leitura "tech/premium" do template */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20,16,8,.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  opacity: .6;
}

/* ---------------------------------------------------------------------
   4) PRODUTO no hero — flutuação leve + brilho ao redor (depth)
   --------------------------------------------------------------------- */
.hero-product-card .product-image-box { position: relative; }
html.fx-ready:not(.fx-reduce) .hero-product-card .product-image-box img {
  animation: fx-float 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes fx-float {
  0%, 100% { transform: translateY(0) rotate(-.2deg); }
  50%      { transform: translateY(-9px) rotate(.2deg); }
}
.hero-product-card .product-image-box::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6%;
  width: 62%; height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20,16,8,.22), transparent 78%);
  filter: blur(4px);
  z-index: -1;
  animation: fx-shadow 6s ease-in-out infinite;
}
@keyframes fx-shadow {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: .55; }
  50%      { transform: translateX(-50%) scale(.86);  opacity: .32; }
}

/* ---------------------------------------------------------------------
   5) CTA — varredura de brilho (shimmer) periódica + no hover
   --------------------------------------------------------------------- */
.btn-cta-main, .btn-submit-action, #btnSubmitOrder, .btn-select-plan,
.btn-comprar-header, .btn-msb-buy {
  position: relative;
  overflow: hidden;
}
.btn-cta-main::after, .btn-submit-action::after, #btnSubmitOrder::after,
.btn-select-plan::after, .btn-comprar-header::after, .btn-msb-buy::after {
  content: "";
  position: absolute;
  top: 0; left: -140%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
html.fx-ready:not(.fx-reduce) .btn-cta-main::after,
html.fx-ready:not(.fx-reduce) #btnSubmitOrder::after {
  animation: fx-sheen 4.6s ease-in-out infinite;
}
.btn-cta-main:hover::after, .btn-submit-action:hover::after, #btnSubmitOrder:hover::after,
.btn-select-plan:hover::after, .btn-comprar-header:hover::after, .btn-msb-buy:hover::after {
  animation: fx-sheen-once .8s var(--fx-ease) forwards;
}
@keyframes fx-sheen {
  0%, 72% { left: -140%; }
  86%     { left: 140%;  }
  100%    { left: 140%;  }
}
@keyframes fx-sheen-once {
  from { left: -140%; }
  to   { left: 140%;  }
}

/* ---------------------------------------------------------------------
   6) PLANO em destaque — halo dourado pulsante (chama atenção p/ conversão)
   --------------------------------------------------------------------- */
html.fx-ready:not(.fx-reduce) .plan-card.featured,
html.fx-ready:not(.fx-reduce) .plan-card.destaque,
html.fx-ready:not(.fx-reduce) .plan-card.popular {
  animation: fx-halo 3.4s ease-in-out infinite;
}
@keyframes fx-halo {
  0%, 100% { box-shadow: 0 0 0 4px #fffdf5, 0 0 0 5px rgba(200,153,47,.30), 0 31px 44px rgba(154,116,32,.14); }
  50%      { box-shadow: 0 0 0 4px #fffdf5, 0 0 0 6px rgba(200,153,47,.55), 0 34px 56px rgba(154,116,32,.24); }
}

/* ---------------------------------------------------------------------
   7) SEÇÃO — título com acento dourado que "desenha" ao revelar
   --------------------------------------------------------------------- */
.section-title-wrap { position: relative; }
.section-title-wrap h2 { position: relative; display: inline-block; }
html.fx-ready .section-title-wrap.fx-in h2::after,
html.fx-ready .section-title-wrap h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -12px;
  height: 4px; width: 0;
  border-radius: 100px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--tz-gold-2), var(--tz-gold-deep));
  transition: width .8s var(--fx-ease) .15s;
}
html.fx-ready .section-title-wrap.fx-in h2::after { width: 68px; }
html.fx-reduce .section-title-wrap h2::after { width: 68px; transition: none; }

/* ---------------------------------------------------------------------
   8) "ANÁLISE" animada — barras/medidores que preenchem ao revelar
   (componente pronto; use .tz-analysis no HTML)
   --------------------------------------------------------------------- */
.tz-analysis {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  box-shadow: 0 0 0 4px #ffffff, 0 11px 34px rgba(118,125,165,.14);
  border: 1px solid var(--tz-hairline, rgba(20,16,8,.09));
}
.tz-metric-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-weight: 700; color: var(--tz-ink, #16130c);
}
.tz-metric-head .tz-metric-val {
  font-weight: 800; color: var(--tz-gold-deep, #9a7420);
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.tz-bar {
  height: 12px; border-radius: 100px;
  background: rgba(20,16,8,.08);
  overflow: hidden; margin-top: 8px;
}
.tz-bar-fill {
  height: 100%; width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--tz-gold-2, #e2b64a), var(--tz-gold-deep, #9a7420));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  transition: width 1.2s var(--fx-ease);
}
html.fx-reduce .tz-bar-fill { transition: none; }

/* Banda "ANÁLISE" da ampola — números que contam + barras que preenchem */
.tz-proof-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 4px;
}
.tz-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}
@media (max-width: 900px) { .tz-proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tz-proof-grid { grid-template-columns: 1fr; } }
.tz-proof-card {
  padding: 24px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  border: 1px solid var(--tz-hairline, rgba(20,16,8,.09));
  box-shadow: 0 0 0 4px #ffffff, 0 11px 34px rgba(118,125,165,.14);
  transition: transform .35s var(--fx-ease), box-shadow .35s var(--fx-ease);
}
.tz-proof-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 4px #ffffff, 0 22px 44px rgba(140,150,169,.2);
}
.tz-proof-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--tz-gold-soft, #fbf3df); color: var(--tz-gold-deep, #9a7420);
  box-shadow: 0 12px 33.8px rgba(109,125,166,.12), 0 2px 2px rgba(109,125,166,.2);
}
.tz-proof-ico svg { width: 22px; height: 22px; }
.tz-proof-num {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1;
  letter-spacing: -1px;
  color: var(--tz-gold-deep, #9a7420);
  font-variant-numeric: tabular-nums;
}
.tz-proof-num span { font-variant-numeric: tabular-nums; }
.tz-proof-suffix { font-size: .55em; margin-left: 2px; color: var(--tz-gold, #c8992f); }
.tz-proof-label {
  margin-top: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--tz-ink, #16130c);
  opacity: .82;
}

/* ---------------------------------------------------------------------
   9) VÍDEO NATIVO — toca NA PÁGINA (sem Instagram). Card com poster + play.
   --------------------------------------------------------------------- */
.tz-video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 12;
  background: linear-gradient(160deg, #241a08 0%, var(--tz-ink, #16130c) 45%, #0c0a07 100%);
  box-shadow: 0 0 0 4px #ffffff, 0 11px 34px rgba(118,125,165,.16);
  cursor: pointer;
  transition: transform .35s var(--fx-ease), box-shadow .35s var(--fx-ease);
}
.tz-video-card:hover {
  box-shadow: 0 0 0 4px #ffffff, 0 22px 44px rgba(140,150,169,.22);
}
/* capa desenhada: glow dourado no centro + escurecido embaixo p/ ler o texto */
.tz-video-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% 40%, rgba(226,182,74,.16), transparent 70%),
    radial-gradient(140% 90% at 50% 125%, rgba(0,0,0,.42), transparent 62%);
}
.tz-video-card.is-playing::before { opacity: 0; }
.tz-video-card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0c0a07;
}
.tz-video-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity .4s var(--fx-ease);
}
.tz-video-card.is-playing .tz-video-poster,
.tz-video-card.is-playing .tz-video-overlay { opacity: 0; pointer-events: none; }
.tz-video-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(12,10,7,.15) 0%, transparent 30%, rgba(12,10,7,.72) 100%);
  color: #fff;
  transition: opacity .4s var(--fx-ease);
}
.tz-video-badge {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(200,153,47,.92); color: var(--tz-ink, #16130c);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
}
.tz-video-play {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  transform: translate(-50%,-50%);
  width: 68px; height: 68px; border-radius: 50%;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--tz-gold-2, #e2b64a), var(--tz-gold-deep, #9a7420));
  color: var(--tz-ink, #16130c);
  box-shadow: 0 10px 30px -8px rgba(200,153,47,.7), 0 0 0 8px rgba(255,255,255,.12);
  transition: transform .22s var(--fx-spring), box-shadow .22s var(--fx-ease);
}
.tz-video-play svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.tz-video-card:hover .tz-video-play { transform: translate(-50%,-50%) scale(1.08); }
html.fx-ready:not(.fx-reduce) .tz-video-play::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(200,153,47,.5);
  animation: fx-pulse 2.2s ease-out infinite;
}
@keyframes fx-pulse {
  0%   { transform: scale(.9);  opacity: .8; }
  100% { transform: scale(1.5); opacity: 0;  }
}
.tz-video-title { font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.tz-video-sub   { font-size: 12.5px; opacity: .85; color: var(--tz-gold-lite, #f3d98a); }
.tz-video-meta  { font-size: 11px; opacity: .8; }

.tz-videos-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 640px) {
  .tz-videos-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   11) CHIPS FLUTUANTES no hero (assinatura do template: cards de "análise"
   flutuando ao redor do produto). white-ring shadow + float suave.
   --------------------------------------------------------------------- */
.tz-hero-chip {
  position: absolute;
  z-index: 6;
  background: #fff;
  border-radius: 14px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tz-ink, #16130c);
  box-shadow: 0 0 0 3px #fff, 0 15px 28px rgba(95,119,179,.18), 0 2px 2px rgba(95,119,179,.22);
}
html.fx-ready:not(.fx-reduce) .tz-hero-chip { animation: fx-float 6s ease-in-out infinite; }
.tz-chip-rating  { top: 6%;  left: -26px; animation-delay: .3s; }
.tz-chip-rating .tz-chip-stars { color: var(--tz-gold-2, #e2b64a); letter-spacing: 1px; font-size: 13px; }
.tz-chip-rating-txt { display: flex; flex-direction: column; line-height: 1.05; }
.tz-chip-rating-txt b { font-size: 15px; }
.tz-chip-rating-txt span { font-size: 10.5px; opacity: .6; font-weight: 600; }
.tz-chip-analysis {
  bottom: 12%; left: -34px;
  flex-direction: column; align-items: stretch; gap: 7px;
  min-width: 168px; animation-delay: 1.1s;
}
.tz-chip-analysis-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tz-chip-analysis-head b { color: var(--tz-gold-deep, #9a7420); font-size: 14px; }
.tz-chip-analysis .tz-bar { margin-top: 0; height: 8px; }
.tz-chip-secure { top: 18%; right: -20px; animation-delay: .7s; color: var(--tz-gold-deep, #9a7420); }
.tz-chip-secure svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .tz-chip-rating  { left: 8px;  top: 4px; }
  .tz-chip-analysis{ left: 8px;  bottom: 8px; }
  .tz-chip-secure  { right: 8px; top: 12px; }
}
@media (max-width: 560px) {
  .tz-chip-analysis { display: none; }
  .tz-hero-chip { font-size: 11.5px; padding: 8px 10px; }
}

/* ---------------------------------------------------------------------
   12) MICRO — ícones de feature saltam levemente ao revelar a seção
   --------------------------------------------------------------------- */
html.fx-ready:not(.fx-reduce) .hf-card.fx-in .hf-icon,
html.fx-ready:not(.fx-reduce) .qp-item.fx-in .qp-icon {
  animation: fx-pop .5s var(--fx-spring) both;
}
@keyframes fx-pop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
