/* =========================================================
   A Santa em números — anel 3D de cartões guiado pela rolagem
   (reinterpretação de "Made for you. Without limits." de sybiosme.com)
   Tamanhos do anel (--W, --H, --R, --persp) e do painel final vêm de js/numeros.js.
   ========================================================= */
.num {
  position: relative; z-index: 3;
  height: 680svh;                                  /* ~6 telas de "pin": frase, 5 números e o encerramento */
  margin-top: clamp(20px, 3cqw, 40px);
  background: var(--blue);
  color: var(--cream);
  border-radius: clamp(28px, 3.5cqw, 51px);       /* arredondada na chegada e no fim (o encerramento vermelho termina em curva, como o azul do topo) */
  overflow: clip;                                  /* arredonda sem quebrar o sticky */
  --W: 480px; --H: 320px; --R: 660px; --persp: 1700px;
}
.num__stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--blue);
}
.num__stage::before {                              /* luz suave no centro, como o fundo da referência */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 48% at 50% 46%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%);
}
.num__stage::after {                               /* encerramento: o vermelho abre em círculo a partir do painel */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--red);
  clip-path: circle(var(--wash, 0px) at 50% var(--wash-y, 50%));
}
.num__scene {
  position: absolute; inset: 0; z-index: 1;
  perspective: var(--persp);
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
}

/* frase de abertura: no centro do anel; os cartões passam na frente dela */
.num__phrase {
  position: absolute; left: 50%; top: 47%;
  margin: 0;
  width: max-content; max-width: 92vw;
  transform: translate3d(-50%, -50%, calc(-1 * var(--R)));
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6.6cqw, 104px); line-height: .9; letter-spacing: -.005em;
  text-align: center;
  color: var(--cream);
  opacity: var(--phrase-o, 1);
}
.num__line { display: block; }
.num__phrase .w { display: inline-block; opacity: var(--wo, 0); transform: translateY(calc((1 - var(--wo, 0)) * .35em)); filter: blur(calc((1 - var(--wo, 0)) * 8px)); }
.num__dot { color: var(--red); }

/* o anel: centro do cilindro atrás da frase, levemente inclinado (como o da referência) */
.num__ring {
  list-style: none; margin: 0; padding: 0;
  position: absolute; left: 50%; top: 47%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--R))) rotateX(var(--tx, -7deg)) rotateZ(var(--tz, -5deg));
}
.num__card {
  position: absolute;
  left: calc(var(--W) * -.5); top: calc(var(--H) * -.5);
  width: var(--W); height: var(--H);
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.num__face {                                       /* só o indicador e a legenda, centralizados */
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--W) * .05);
  padding: calc(var(--W) * .06);
  border-radius: calc(var(--W) * .045);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(10, 20, 80, .55);
}
.num__face::before {                               /* moldura tracejada interna */
  content: ""; position: absolute; inset: calc(var(--W) * .018);
  border: 1.5px dashed currentColor; opacity: .3;
  border-radius: calc(var(--W) * .032);
  pointer-events: none;
}
.num__card--cream .num__face { background: var(--cream); color: var(--blue); }
.num__card--red .num__face { background: var(--red); color: var(--cream); }
.num__value {
  position: relative; z-index: 1;
  display: flex; align-items: baseline; justify-content: center; flex-wrap: nowrap; gap: .08em;
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  line-height: .82; letter-spacing: -.01em;
  white-space: nowrap;
}
.num__big { font-size: calc(var(--W) * .25); }
.num__big--long { font-size: calc(var(--W) * .21); }          /* +60.000 e +300.000 cabem com folga */
.num__unit { font-size: calc(var(--W) * .09); text-transform: uppercase; }
.num__card--cream .num__unit { color: var(--red); }
.num__text {                                       /* legenda em destaque, abaixo do número */
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--W) * .026);
  max-width: 88%;
  margin: 0;
  font-size: calc(var(--W) * .036); font-weight: 700; line-height: 1.35;
  letter-spacing: .12em; text-transform: uppercase;
}
.num__text::before { content: ""; width: calc(var(--W) * .07); height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.num__card--cream .num__text { color: var(--red); }
.num__google {                                     /* logotipo Google com as 5 estrelas */
  position: relative; z-index: 1;
  width: calc(var(--W) * .44); height: auto;
}

/* o "espaço reservado": o próximo cartão é o evento do visitante */
.num__card--slot .num__face {
  background: var(--cream); color: var(--blue);
  align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.num__card--slot .num__face::before { border-width: 2px; opacity: .55; }
.num__slot-mark { width: 14px; height: 14px; background: var(--red); rotate: 45deg; }
.num__slot-text {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: calc(var(--W) * .075); line-height: .95; text-transform: uppercase;
}
.num__slot-text em { font-style: normal; color: var(--red); }

/* encerramento: o espaço reservado cresce e vira o convite */
.num__final {
  position: absolute; left: 50%; top: 47%;
  width: var(--fw, var(--W)); height: var(--fh, var(--H));
  translate: -50% -50%;
  display: grid; place-items: center;
  background: var(--cream); color: var(--blue);
  border-radius: var(--fr, calc(var(--W) * .045));
  box-shadow: 0 50px 100px -40px rgba(60, 10, 10, .5);
  opacity: 0; visibility: hidden;
  z-index: 5;
}
.num__final::before {
  content: ""; position: absolute; inset: clamp(8px, 1cqw, 14px);
  border: 2px dashed currentColor; opacity: .5;
  border-radius: calc(var(--fr, 22px) - 8px);
  pointer-events: none;
}
/* durante o crescimento o painel ainda mostra o texto do espaço reservado; depois troca pelo convite */
.num__final > * { grid-area: 1 / 1; }
.num__final-slot {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  opacity: var(--slot-o, 1);
  pointer-events: none;
}
.num__final-in {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 24px;
  opacity: var(--final-o, 0);
  transform: translateY(calc((1 - var(--final-o, 0)) * 24px));
}
.num__final-title {
  margin: 16px 0 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(46px, 8.4cqw, 132px); line-height: .86; text-transform: uppercase;
  color: var(--blue);
}
.num__final-title span { color: var(--red); }
.num__actions {                                    /* mesmo par do card "Vamos brindar no seu evento?" */
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: clamp(26px, 3cqw, 40px);
}
.num__cta {
  width: auto; height: 52px; margin-top: 0; padding: 0 34px;
  font-size: 14px; letter-spacing: .08em;
}
.num__cta--ghost {                                 /* secundário: contorno azul, enche de azul no hover */
  background: transparent; color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--blue);
  transition: transform .35s var(--ease-spring, ease), background .3s, color .3s;
}
.num__cta--ghost:hover, .num__cta--ghost:focus-visible { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(23, 55, 195, .3); }
.num__cta--ghost::before { display: none; }

/* celular e tablet estreito: cartões em retrato, anel mais fechado (os vizinhos aparecem nas bordas) */
@media (max-width: 767px) {
  .num { height: 720svh; }
  .num__phrase { font-size: clamp(34px, 10.5vw, 48px); top: 45%; }
  .num__ring, .num__final { top: 48%; }
  .num__text { font-size: 13px; max-width: 86%; letter-spacing: .1em; }
  .num__big { font-size: calc(var(--W) * .3); }
  .num__big--long { font-size: calc(var(--W) * .21); }
  .num__unit { font-size: calc(var(--W) * .1); }
  .num__slot-text { font-size: calc(var(--W) * .1); }
  .num__final-title { font-size: clamp(40px, 12.5vw, 60px); }
  .num__actions { flex-direction: column; align-items: stretch; width: min(100%, 300px); }
  .num__cta { height: 48px; padding: 0 22px; font-size: 13px; justify-content: center; }
}

/* movimento reduzido: tudo visível em sequência, sem anel */
.num.is-static { height: auto; --W: 320px; --H: auto; }
.num.is-static .num__stage::after { content: none; }
.num.is-static .num__stage { position: relative; height: auto; overflow: visible; padding: 110px 16px 80px; }
.num.is-static .num__scene { position: relative; perspective: none; }
.num.is-static .num__phrase { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 50px; max-width: 100%; width: auto; }
.num.is-static .num__phrase .w { opacity: 1; transform: none; filter: none; }
.num.is-static .num__ring { position: relative; left: auto; top: auto; width: auto; height: auto; transform: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 1040px; margin: 0 auto; }
.num.is-static .num__card { position: relative; left: auto; top: auto; width: min(320px, 100%); height: auto; transform: none !important; opacity: 1 !important; }
.num.is-static .num__face { height: auto; min-height: 220px; gap: 18px; }
.num.is-static .num__card--slot, .num.is-static .num__final-slot { display: none; }
.num.is-static .num__final { position: relative; left: auto; top: auto; translate: none; width: auto; height: auto; min-height: 60vh; margin: 50px auto 0; max-width: 1040px; padding: 60px 0; opacity: 1; visibility: visible; --final-o: 1; --fr: 28px; }
