/* ==========================================================================
   SEÇÕES I — pilha de cartas, hero, faixas cruzadas, resultados, produto 3D
   ========================================================================== */

/* ---------- Pilha de cartas: cada seção gruda e a próxima desliza por cima ---------- */
.stack { position: relative; z-index: 1; }
.panel { position: relative; min-height: 100vh; }
@supports (min-height: 100svh) { .panel { min-height: 100svh; } }
.js .panel[data-panel] { position: sticky; top: 0; }
/* Seção mais alta que a tela: gruda pela base (rola inteira antes de ser coberta) */
@supports (top: min(0px, calc(100svh - 1px))) {
  .js .panel[data-panel] { top: min(0px, calc(100svh - var(--ph, 100svh))); }
}
.stack.is-measuring .panel[data-panel] { position: relative !important; top: auto !important; }

.hero { z-index: 1; }
.metrics { z-index: 2; }
.product { z-index: 3; }
.journey { z-index: 4; }
.final { z-index: 5; }

.panel + .panel { border-radius: var(--radius-panel) var(--radius-panel) 0 0; box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, .55); }
.panel-inner {
  position: relative;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 56px) 0 clamp(64px, 8vw, 104px);
}
.panel.is-covered > .panel-inner { visibility: hidden; }   /* totalmente coberta: não pinta */
.panel-shade {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #050606;
  opacity: 0;
  border-radius: inherit;
  pointer-events: none;
}

.panel--ink { background: var(--ink); color: var(--paper); }
.panel--orange, .panel--paper {
  --fg: var(--ink);
  --fg-2: rgba(15, 17, 17, .72);
  --fg-3: rgba(15, 17, 17, .5);
  --line: rgba(15, 17, 17, .2);
  color: var(--ink);
}
.panel--orange { background: var(--orange); }
.panel--paper { background: var(--paper); }
.panel--ink .display .serif { color: var(--orange); }
.panel--paper .display .serif, .panel--paper .index b { color: var(--orange-deep); }
.panel--orange .index b { color: var(--ink); }

/* ---------- 01 · HERO ---------- */
.hero .panel-inner { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 24px); padding-bottom: 72px; }
.hero-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.layer { position: absolute; will-change: transform; }
.layer > div { will-change: transform; }
.ghost-word {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 70%;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 232, 220, .1);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.layer--word { left: -3vw; bottom: -3vw; }
.layer--word .ghost-word { font-size: 38vw; }
.art-box { display: block; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.layer--box { width: clamp(150px, 16vw, 250px); }
.layer--box .art-box { height: clamp(156px, 16.7vw, 260px); }
.layer--box2 { width: clamp(70px, 7vw, 110px); }
.layer--box2 .art-box { height: clamp(73px, 7.3vw, 115px); }

.float { animation: float 7s ease-in-out infinite; }
.float--slow { animation-duration: 9s; animation-delay: -2s; }
.float--alt { animation-duration: 8s; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, calc(-14px * var(--motion)), 0) rotate(calc(2deg * var(--motion))); }
}

.ship-label {
  width: 210px;
  padding: 12px 14px 10px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-8deg);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7);
}
.sl-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 9.5px; border-bottom: 1px solid rgba(15, 17, 17, .18); }
.sl-row span:first-child { opacity: .55; }
.ship-label .barcode { width: 100%; height: 38px; margin: 10px 0 6px; color: var(--ink); }
.sl-code { font-size: 9.5px; text-align: center; }

/* Cena: mobile só a palavra-fantasma; tablet ganha 1 caixa; desktop, a cena completa */
.layer--box, .layer--box2, .layer--label { display: none; }
@media (min-width: 700px) {
  .layer--box { display: block; top: calc(var(--header-h) + 8px); right: 4%; }
}
@media (min-width: 1100px) {
  .layer--box { top: 8%; right: auto; left: 50%; }
  .layer--box2 { display: block; bottom: 11%; left: 56%; }
}
/* Etiqueta só onde sobra espaço entre o texto (máx. 560px) e o ingresso */
@media (min-width: 1280px) {
  .layer--label { display: block; top: 53%; left: 49%; }
}

.hero-grid { position: relative; z-index: 1; display: grid; gap: 44px; align-items: end; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; }
}
.kicker { display: flex; align-items: center; gap: 10px; color: var(--fg-2); margin-bottom: 22px; }

.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: clamp(54px, 15vw, 128px);
  line-height: .9;
  letter-spacing: -.045em;
}
@media (min-width: 1100px) { .hero-title { font-size: clamp(56px, 8.6vw, 150px); } }
.hero-title .line { display: block; overflow: hidden; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.hero-title .line-in { display: block; }
.js .hero-title .line-in { transform: translate3d(0, 112%, 0); transition: transform 1.4s var(--ease) var(--d, 0s); }
.is-loaded .hero-title .line-in { transform: none; }

/* "real" riscado à mão → "dólar." */
.strike { position: relative; display: inline-block; text-decoration: none; transition: color .6s ease 1.6s; }
.is-loaded .strike, html:not(.js) .strike { color: var(--fg-3); }
.strike-mark { position: absolute; left: -5%; top: 34%; width: 110%; height: .36em; overflow: visible; }
.strike-mark path { fill: none; stroke: var(--orange); stroke-width: 11; stroke-linecap: round; }
.js .strike-mark { transform: scaleX(0); transform-origin: left center; transition: transform .8s var(--ease-io) 1.1s; }
.is-loaded .strike-mark { transform: none; }
.hero-title .accent { display: inline-block; color: var(--orange); font-size: 1.12em; line-height: .8; letter-spacing: -.02em; }
.js .hero-title .accent { opacity: 0; transform: translate3d(0, .25em, 0) rotate(-4deg); transition: opacity .8s ease 1.55s, transform 1.2s var(--spring) 1.55s; }
.is-loaded .hero-title .accent { opacity: 1; transform: none; }

.hero-bottom { display: grid; gap: 24px; max-width: 560px; margin-top: 30px; }
.hero-sub { max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }

.hero-ticket { width: 100%; max-width: 440px; }
@media (min-width: 1100px) { .hero-ticket { justify-self: end; } }

.scroll-cue { position: absolute; left: max(var(--gutter), env(safe-area-inset-left)); bottom: 24px; display: none; align-items: center; gap: 12px; color: var(--fg-3); }
@media (min-width: 1100px) and (min-height: 700px) { .scroll-cue { display: flex; } }
.scroll-cue i { position: relative; width: 56px; height: 1px; background: rgba(239, 232, 220, .2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: var(--orange); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { transform: translateX(350%); } }

/* ---------- Faixas cruzadas (ticker) ---------- */
/* Contêiner recortado: as faixas giradas não podem vazar pelas laterais
   (causaria rolagem horizontal e "zoom out" automático no celular) */
.bands { position: absolute; left: 0; right: 0; top: -96px; height: 172px; z-index: 6; overflow: hidden; pointer-events: none; }
.band { position: absolute; left: -4%; width: 108%; height: 50px; display: flex; align-items: center; overflow: hidden; }
.band--a { top: 66px; z-index: 2; background: var(--ink); color: var(--paper); transform: rotate(-2deg); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
.band--b { top: 88px; z-index: 1; background: var(--paper); color: var(--ink); transform: rotate(1.4deg); }
.band-track { display: flex; width: max-content; animation: marquee 60s linear infinite; will-change: transform; }
.band-track--rev { animation-direction: reverse; }
.band-group { display: flex; flex: none; }
.band-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; white-space: nowrap; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.band-item time { opacity: .5; }
.band-item b { font-weight: 500; color: var(--orange); }
.band--b .band-item b { color: var(--orange-deep); }
.band-item::after { content: "///"; margin-left: 20px; opacity: .3; }
.bands.is-paused .band-track, .bands.is-offscreen .band-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.band-toggle {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  top: 16px;
  z-index: 3;
  pointer-events: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
}
.band-toggle .icon-play { display: none; }
.bands.is-paused .icon-play { display: block; }
.bands.is-paused .icon-pause { display: none; }

/* ---------- 02 · RESULTADOS (bloco laranja) ---------- */
.metrics .panel-inner { padding-top: calc(var(--header-h) + 80px); }
.panel-head { margin-bottom: clamp(32px, 5vw, 64px); }
@media (min-width: 1100px) {
  .panel-head { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: end; }
  .panel-head .index { margin-bottom: .9em; }
}
.stats { border-top: 1.5px solid var(--ink); }
.stat { display: grid; gap: 10px 32px; align-items: end; padding: clamp(14px, 2vw, 22px) 0; border-bottom: 1.5px solid var(--ink); }
@media (min-width: 760px) { .stat { grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); } }
.stat-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: clamp(64px, 13vw, 190px);
  line-height: .82;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.unit { font-size: .38em; font-stretch: 90%; letter-spacing: -.02em; vertical-align: .95em; margin-right: .05em; }
.unit--end { font-size: .5em; vertical-align: baseline; margin: 0 0 0 .04em; }
.stat-cap { display: flex; gap: 12px; max-width: 340px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.35; }
.stat-cap .mono { font-size: 11px; padding-top: 3px; opacity: .6; }
.metrics-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.fineprint { font-size: 11px; color: var(--fg-2); }
.seal--metrics { flex: none; width: 96px; height: 96px; color: var(--ink); }
.seal--metrics .seal-rot { animation-duration: 26s; }
.seal-mid { font: 900 34px var(--f-display); fill: var(--ink); }

/* ---------- 03 · PRODUTO (card 3D em camadas) ---------- */
.product { overflow: hidden; }
.ghost-word--fba { position: absolute; right: -3vw; top: 12%; font-size: 32vw; -webkit-text-stroke-color: rgba(239, 232, 220, .07); pointer-events: none; }
.product-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.lead { margin-top: 24px; max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); color: var(--fg-2); text-wrap: pretty; }
.notes { max-width: 560px; margin-top: 36px; border-top: 1px solid var(--line); }
.notes li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notes .mono { padding-top: 4px; color: var(--orange); }
.notes h3 { margin-bottom: 4px; font-family: var(--f-display); font-weight: 700; font-stretch: 95%; font-size: 19px; letter-spacing: -.01em; }
.notes p { font-size: 15px; color: var(--fg-2); }

.tilt-scene { -webkit-perspective: 1200px; perspective: 1200px; padding: 48px 6% 40px 10%; }
.tilt-card {
  --mx: 50%; --my: 50%;
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
  will-change: transform;
}
.tilt-card.is-tilting { transition: transform .12s linear; }
.tilt-card.is-idle { animation: idleTilt 8s ease-in-out infinite; }
.tilt-card.is-idle.is-paused { animation-play-state: paused; }
@keyframes idleTilt {
  0%, 100% { transform: rotateX(calc(7deg * var(--motion))) rotateY(calc(-10deg * var(--motion))); }
  50% { transform: rotateX(calc(-4deg * var(--motion))) rotateY(calc(9deg * var(--motion))); }
}
.t-box {
  position: absolute;
  left: 14%; right: -10%; top: 12%; bottom: -8%;
  border-radius: 8px;
  background: linear-gradient(135deg, #C9A06F, #A47444);
  transform: translateZ(-110px) rotate(4deg);
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .6);
}
.t-box::before { content: ""; position: absolute; top: 0; bottom: 0; left: 42%; width: 16%; background: rgba(235, 203, 153, .55); }
.t-box-print { position: absolute; right: 12px; bottom: 12px; font-size: 10px; color: rgba(60, 38, 16, .75); }
.t-label {
  position: absolute;
  left: -12%; top: -10%;
  width: 54%;
  padding: 12px 12px 10px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  transform: translateZ(-50px) rotate(-7deg);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7);
}
.t-label .barcode { width: 100%; height: 40px; color: var(--ink); }
.t-label .mono { margin-top: 4px; font-size: 10px; }
.fnsku-name { margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.25; }
.fnsku-cond { opacity: .6; }
.t-dash {
  position: relative;
  padding: 22px;
  border-radius: 16px;
  background: var(--ink-2);
  border: 1px solid rgba(239, 232, 220, .12);
  color: var(--paper);
  transform: translateZ(40px);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.tilt-shine { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 190, 90, .14), transparent 45%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.tilt-card.is-tilting .tilt-shine { opacity: 1; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.dash-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.dash-meta { margin-top: 4px; font-size: 10.5px; color: var(--fg-3); }
.dash-delta { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(16, 185, 129, .12); color: var(--green-2); font-size: 11px; white-space: nowrap; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 16px; border-radius: 10px; overflow: hidden; background: rgba(239, 232, 220, .1); }
.dash-kpis > div { padding: 12px; background: var(--ink-2); }
.dash-kpis small { display: block; font-size: 9.5px; color: var(--fg-3); white-space: nowrap; }
.dash-kpis strong { font: 800 clamp(17px, 2vw, 22px)/1.1 var(--f-display); font-stretch: 85%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-chart { height: 76px; margin-bottom: 14px; }
.dash-chart svg { width: 100%; height: 100%; }
.spark-line { vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tilt-scene.is-in .spark-line { animation: draw 2s var(--ease) .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-breakdown { display: grid; margin-bottom: 18px; font-size: 13px; }
.dash-breakdown .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(239, 232, 220, .12); font-variant-numeric: tabular-nums; }
.dash-breakdown .muted { color: var(--fg-3); }
.dash-breakdown .total { padding-top: 10px; border-bottom: 0; font-size: 15px; font-weight: 800; }
.dash-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ring { --p: 0; --c: var(--orange); position: relative; width: 68px; height: 68px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(239, 232, 220, .08) 0); }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ink-2); }
.ring span, .ring small { position: relative; line-height: 1.1; }
.ring span { font: 800 15px var(--f-display); }
.ring small { font-size: 10px; color: var(--fg-3); }
.ring--green { --c: var(--green); }
.dash-disclaimer { flex: 1 1 140px; font-size: 11px; line-height: 1.4; color: var(--fg-3); }
@media (max-width: 520px) {
  .tilt-scene { padding: 40px 2% 32px 6%; }
  .t-label { left: -4%; width: 60%; }
  .t-box { right: -4%; }
}
