/* ==========================================================================
   SEÇÕES — estilos próprios de cada bloco da página.
   ========================================================================== */

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(26, 20, 19, 0.08);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Aplicado por js/header.js quando a página rola */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 30px rgba(26, 20, 19, 0.12);
}

/* Sem suporte a desfoque: fundo sólido para manter a leitura */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .site-header.is-scrolled {
    background: var(--color-surface);
  }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 46px;
}

.brand__tagline {
  padding-left: 14px;
  border-left: 1px solid #D6CFCB;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-ink-soft);
}

/* Selo de inscrições no cabeçalho */
.site-header__tag {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: #fff;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  animation: header-tag-in 0.6s 0.1s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.site-header__tag b {
  color: #FFC531;
}

.site-header__tag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine-sweep 4.5s 1.5s ease-in-out infinite;
}

.site-header__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF3B47;
  animation: hero-pulse 2s infinite;
}

@keyframes header-tag-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.9); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 59, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0); }
}

/* Brilho que atravessa selos, card e CTA (usado em ::after com overflow: hidden no pai) */
@keyframes shine-sweep {
  0% { transform: translateX(-120%); }
  30%, 100% { transform: translateX(120%); }
}

@media (max-width: 640px) {
  .site-header__inner {
    row-gap: 10px;
  }

  .site-header__tag {
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ---------- Hero (Trilhas de Futuro) ----------
   Linha do tempo da animação (atrasos em segundos):
   0.0 painel vermelho sobe  →  0.2 foto e palavras do título entram juntas
   1.0 traço sob "gratuito" e selos  →  1.35 marca-texto no "R$ 20 por dia"
   1.3 contagem + CTA  →  1.75 card da ajuda de custo aterrissa (conta 0→20 via js/hero.js)
   2.5 final: brilhos, moedas subindo e o CTA "chama" o clique.
   Tudo fica pausado enquanto <html> tiver .js-hero-wait (foto carregando). */
@property --hero-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.hero {
  --hero-bg: #FBF6F0;
  --hero-ink: #1A1311;
  --hero-ink-2: #4A3F3B;
  --hero-muted: #6B5E58;
  --hero-line: #EADFD6;
  --hero-red: #D21F2B;
  --hero-red-dark: #B3121F;
  --hero-yellow: #FFC531;      /* destaque do título, data do selo e card de ajuda de custo */
  --hero-yellow-soft: #FFF1C9;
  --hero-green: #16A34A;
  --hero-green-dark: #0B6635;
  --hero-font-display: "Bricolage Grotesque", sans-serif;
  --hero-font-body: "Figtree", system-ui, sans-serif;
  --hero-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --hero-ease-back: cubic-bezier(0.2, 0.9, 0.3, 1.35);

  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(255, 197, 49, 0.22), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(210, 31, 43, 0.08), transparent 70%),
    var(--hero-bg);
  color: var(--hero-ink);
  font-family: var(--hero-font-body);
  border-bottom: 1px solid var(--hero-line);
}

.js-hero-wait .hero *,
.js-hero-wait .hero *::before,
.js-hero-wait .hero *::after {
  animation-play-state: paused !important;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 5vw, 56px) 0;
}

/* Texto */
.hero__text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: clamp(8px, 3vw, 40px);
}

/* Tamanho também limitado pela altura da tela, para o CTA aparecer sem rolar */
.hero__title {
  font-family: var(--hero-font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: clamp(38px, min(5.2vw, 7.6vh), 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* Cada palavra entra subindo e saindo do desfoque, em cascata (--i) */
.hero__w {
  display: inline-block;
  animation: hero-word 0.8s var(--hero-ease-out) both;
  animation-delay: calc(0.25s + var(--i, 0) * 0.09s);
}

@keyframes hero-word {
  from { opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero__accent {
  position: relative;
  color: var(--hero-red);
}

.hero__scribble {
  position: absolute;
  left: -2%;
  bottom: -0.14em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
  fill: none;
  stroke: var(--hero-red);
  stroke-width: 5;
  stroke-linecap: round;
}

.hero__scribble path {
  stroke-dasharray: 1;
  animation: hero-draw 0.6s 1s ease-out both;
}

@keyframes hero-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* Marca-texto que "pinta" o valor e depois cintila */
.hero__highlight {
  position: relative;
  z-index: 0;
  white-space: nowrap;
  padding: 0 0.08em;
}

.hero__highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 54% -0.06em 4%;
  border-radius: 0.12em;
  background: linear-gradient(100deg, var(--hero-yellow) 0%, var(--hero-yellow) 40%, #FFF0B0 50%, var(--hero-yellow) 60%, var(--hero-yellow) 100%);
  background-size: 250% 100%;
  transform-origin: left center;
  animation:
    hero-marker 0.6s 1.35s cubic-bezier(0.6, 0, 0.2, 1) both,
    hero-marker-shine 3.5s 2.4s ease-in-out infinite;
}

@keyframes hero-marker {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes hero-marker-shine {
  0% { background-position: 100% 0; }
  40%, 100% { background-position: 0 0; }
}

.hero__lead {
  max-width: 520px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--hero-ink-2);
  animation: hero-fade-up 0.7s 1.1s var(--hero-ease-out) both;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Bloco contagem + CTA. Sem transform no slot: o bloco fixo (position: fixed) depende disso */
.hero__dock-slot {
  width: 100%;
  max-width: 560px;
}

.hero__dock {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 26px;
  color: #fff;
  box-shadow: 0 26px 50px -24px rgba(26, 19, 17, 0.75);
  animation: hero-dock-up 0.8s 1.3s var(--hero-ease-back) both;
}

/* Borda luminosa girando (::before) por baixo do fundo escuro (::after) */
.hero__dock::before,
.hero__dock::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
}

.hero__dock::before {
  inset: -3px;
  border-radius: 29px;
  background: conic-gradient(from var(--hero-angle), var(--hero-yellow), var(--hero-red) 20%, var(--hero-yellow) 40%, #fff 50%, var(--hero-yellow) 60%, var(--hero-red) 80%, var(--hero-yellow));
  animation: hero-spin-border 4s linear infinite;
}

.hero__dock::after {
  inset: 0;
  background: linear-gradient(160deg, #2A1E1B, var(--hero-ink) 60%);
}

@keyframes hero-spin-border {
  to { --hero-angle: 360deg; }
}

@keyframes hero-dock-up {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* Modo barra fixa (js/hero-dock.js) */
.hero__dock.is-docked {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 860px;
  margin-inline: auto;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 22px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.55);
  animation: hero-dock-in 0.55s var(--hero-ease-back) both;
}

.hero__dock.is-docked::before {
  border-radius: 25px;
}

.hero__dock.is-returned {
  animation: hero-dock-return 0.45s var(--hero-ease-out) both;
}

@keyframes hero-dock-in {
  from { opacity: 0; transform: translateY(120%); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-dock-return {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Contagem regressiva */
.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 2px 4px 0;
}

.countdown__label {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hero-yellow);
}

.countdown__label svg {
  flex-shrink: 0;
  animation: countdown-shake 2s 2.5s ease-in-out infinite;
}

@keyframes countdown-shake {
  0%, 80%, 100% { rotate: 0deg; }
  84% { rotate: -14deg; }
  88% { rotate: 12deg; }
  92% { rotate: -8deg; }
  96% { rotate: 4deg; }
}

.countdown__units {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  perspective: 240px;
  animation: hero-pop 0.5s var(--hero-ease-back) both;
  animation-delay: calc(1.5s + var(--i, 0) * 0.08s);
}

@keyframes hero-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

.countdown__unit b {
  display: block;
  width: 100%;
  padding: 6px 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 50%, #F1EAE6 50%);
  color: var(--hero-red);
  font-family: var(--hero-font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.countdown__unit--sec b {
  background: linear-gradient(180deg, var(--hero-yellow) 50%, #F5B700 50%);
  color: var(--hero-ink);
}

/* Virada do número (classe recolocada por js/countdown.js a cada troca) */
.countdown__unit b.is-tick {
  animation: countdown-tick 0.5s var(--hero-ease-out);
}

@keyframes countdown-tick {
  0% { transform: rotateX(-90deg); opacity: 0.2; }
  60% { transform: rotateX(14deg); opacity: 1; }
  100% { transform: none; }
}

.countdown__unit small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E9E2DF;
}

.countdown__sep {
  padding-top: 6px;
  font-family: var(--hero-font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--hero-yellow);
  animation: countdown-blink 1s steps(1) infinite;
}

@keyframes countdown-blink {
  50% { opacity: 0.25; }
}

.countdown.is-over .countdown__label {
  max-width: none;
}

/* CTA */
.hero__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 0 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--hero-green) 0%, #0E7A40 100%);
  color: #fff;
  font-family: var(--hero-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.2);
  animation:
    hero-cta-pop 0.8s 2.5s ease-in-out both,
    hero-cta-glow 2.4s 3.3s ease-out infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero__cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine-sweep 3.2s 2.9s ease-in-out infinite;
}

@keyframes hero-cta-pop {
  0%, 100% { scale: 1; }
  30% { scale: 1.06; }
  55% { scale: 0.98; }
  75% { scale: 1.02; }
}

@keyframes hero-cta-glow {
  0% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 0 0 16px rgba(37, 211, 102, 0); }
}

.hero__cta-icon {
  font-size: 30px;
}

.hero__cta-arrow {
  flex-shrink: 0;
  animation: hero-arrow 1.4s 2.8s ease-in-out infinite;
}

@keyframes hero-arrow {
  0%, 100% { translate: 0 0; }
  50% { translate: 6px 0; }
}

.hero__cta-label--docked {
  display: none;
}

.is-docked .hero__cta-label {
  display: none;
}

.is-docked .hero__cta-label--docked {
  display: inline;
}

.hero__cta:hover {
  color: #fff;
  filter: brightness(1.08) saturate(1.1);
  transform: translateY(-2px);
}

.hero__dock.is-docked .countdown {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  padding: 0;
}

.hero__dock.is-docked .countdown__unit {
  min-width: 44px;
}

.hero__dock.is-docked .countdown__unit b {
  font-size: 22px;
}

.hero__dock.is-docked .hero__cta {
  flex: 1 1 auto;
  width: auto;
  min-height: 58px;
  font-size: 20px;
}

.hero__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  animation: hero-fade-up 0.7s 1.7s var(--hero-ease-out) both;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border-bottom: 2px solid var(--hero-ink);
  font-size: 16px;
  font-weight: 600;
  color: var(--hero-ink);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero__link:hover {
  color: var(--hero-red-dark);
  border-color: var(--hero-red-dark);
}

.hero__cta:focus-visible,
.hero__link:focus-visible {
  outline: 3px solid var(--hero-yellow);
  outline-offset: 3px;
}

.hero__micro {
  font-size: 14px;
  color: var(--hero-muted);
}

/* Foto */
.hero__media {
  position: relative;
  flex: 1.4 1 440px;
  max-width: 640px;
  margin: 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.hero__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74%;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  background: radial-gradient(90% 70% at 50% 30%, #E8323D, var(--hero-red) 55%, var(--hero-red-dark));
  animation: hero-panel-in 0.9s cubic-bezier(0.7, 0, 0.2, 1) both;
}

@keyframes hero-panel-in {
  from { clip-path: inset(100% 0 0 0 round 40px 40px 0 0); }
  to { clip-path: inset(0 0 0 0 round 40px 40px 0 0); }
}

.hero__ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  animation:
    hero-ring-in 1.2s 0.3s var(--hero-ease-out) both,
    hero-ring-spin 40s 1.5s linear infinite;
}

.hero__ring--1 {
  width: 140%;
  left: -20%;
  top: 18%;
  border: 2px dashed rgba(255, 255, 255, 0.24);
}

.hero__ring--2 {
  width: 100%;
  left: 0;
  top: 38%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  animation-direction: normal, reverse;
}

@keyframes hero-ring-in {
  from { opacity: 0; scale: 0.5; }
  to { opacity: 1; scale: 1; }
}

@keyframes hero-ring-spin {
  to { rotate: 360deg; }
}

/* Moedas subindo atrás da estudante (decorativas) */
.hero__coin {
  position: absolute;
  bottom: -60px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF0B0, var(--hero-yellow) 55%, #E0A100);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 6px 14px rgba(0, 0, 0, 0.2);
  color: #7A4A00;
  font-family: var(--hero-font-display);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  animation: hero-coin 6s linear infinite;
  animation-delay: calc(2.4s + var(--d, 0s));
}

.hero__coin--sm {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

@keyframes hero-coin {
  0% { opacity: 0; translate: 0 0; rotate: 0deg; }
  12%, 75% { opacity: 1; }
  100% { opacity: 0; translate: var(--x, 0) -520px; rotate: 300deg; }
}

/* A estudante surge junto com o título */
.hero__photo {
  position: relative;
  flex: 1;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: 50% 100%;
  animation: hero-girl-in 1.1s 0.2s var(--hero-ease-out) both;
}

@keyframes hero-girl-in {
  0% { opacity: 0; transform: translateY(60px) scale(0.94); filter: blur(10px) saturate(0.4); }
  60% { opacity: 1; filter: none; }
  100% { opacity: 1; transform: none; filter: none; }
}

/* Selos flutuantes: o transform fica para o parallax (--mx/--my de js/hero.js) e a rotação fixa;
   as animações usam scale/rotate/translate individuais para não brigar com ele. */
.hero__float {
  transform:
    translate3d(calc(var(--mx, 0) * var(--depth, 12) * 1px), calc(var(--my, 0) * var(--depth, 12) * 1px), 0)
    rotate(var(--rot, 0deg));
  transition: transform 0.5s var(--hero-ease-out);
}

.hero__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 2px solid var(--hero-ink);
  box-shadow: 3px 3px 0 var(--hero-ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  animation:
    hero-chip-in 0.7s var(--hero-ease-back) both,
    hero-bob 5s ease-in-out infinite;
}

.hero__chip i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hero-green);
  color: #fff;
  font-size: 12px;
}

.hero__chip--1 {
  --rot: -4deg;
  --depth: 14;
  top: 36%;
  left: -14px;
  animation-delay: 1s, 2.4s;
}

.hero__chip--2 {
  --rot: 3deg;
  --depth: -16;
  top: 58%;
  right: -10px;
  animation-delay: 1.2s, 3s;
}

.hero__chip--2 i {
  background: var(--hero-red);
}

@keyframes hero-chip-in {
  from { opacity: 0; scale: 0.3; translate: 0 20px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes hero-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.hero__stamp {
  --rot: 8deg;
  --depth: 18;
  position: absolute;
  top: 22%;
  right: -18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--hero-ink);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 36px -18px rgba(26, 19, 17, 0.6);
  animation:
    hero-stamp-in 0.9s 1.05s var(--hero-ease-back) both,
    hero-wobble 5s 2.2s ease-in-out infinite;
}

/* Anel tracejado girando em volta do selo */
.hero__stamp::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed var(--hero-yellow);
  animation: hero-ring-spin 12s linear infinite;
}

@keyframes hero-stamp-in {
  from { opacity: 0; scale: 0; rotate: -200deg; }
  to { opacity: 1; scale: 1; rotate: 0deg; }
}

@keyframes hero-wobble {
  0%, 100% { rotate: 0deg; }
  50% { rotate: -7deg; }
}

.hero__stamp span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__stamp b {
  font-family: var(--hero-font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hero-yellow);
}

/* Card da ajuda de custo: aterrissa depois do marca-texto, conta até 20, flutua e brilha */
.hero__benefit {
  --rot: -3deg;
  --depth: 24;
  position: absolute;
  left: -28px;
  bottom: 110px;
  z-index: 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px 16px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, #FFE27A 0%, var(--hero-yellow) 45%, #FFAE00 100%);
  border: 3px solid var(--hero-ink);
  box-shadow: 6px 6px 0 var(--hero-ink), 0 28px 52px -20px rgba(26, 19, 17, 0.55);
  animation:
    hero-benefit-in 0.8s 1.75s var(--hero-ease-back) both,
    hero-bob 4.5s 2.6s ease-in-out infinite;
}

.hero__benefit::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: shine-sweep 3.6s 2.8s ease-in-out infinite;
}

@keyframes hero-benefit-in {
  from { opacity: 0; scale: 0.3; translate: -40px 40px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}

.hero__benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--hero-ink);
  color: var(--hero-yellow);
  box-shadow: inset 0 0 0 3px rgba(255, 197, 49, 0.35);
  animation: hero-coin-flip 3.6s 2.8s ease-in-out infinite;
}

@keyframes hero-coin-flip {
  0% { transform: perspective(200px) rotateY(0); }
  25%, 100% { transform: perspective(200px) rotateY(360deg); }
}

.hero__benefit-text {
  display: flex;
  flex-direction: column;
}

.hero__benefit-text small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-ink-2);
}

.hero__benefit-value {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--hero-font-display);
  font-weight: 800;
  font-size: 50px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.hero__benefit-currency {
  margin-top: 0.12em;
  font-size: 0.48em;
  letter-spacing: -0.02em;
}

.hero__benefit-text em {
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  color: var(--hero-ink-2);
}

/* Brilhos: estouram no final da história e ficam cintilando */
.hero__spark {
  position: absolute;
  z-index: 4;
  width: 26px;
  height: 26px;
  fill: var(--hero-yellow);
  filter: drop-shadow(0 0 6px rgba(255, 197, 49, 0.8));
  animation:
    hero-spark-burst 0.6s var(--hero-ease-back) both,
    hero-twinkle 2.6s ease-in-out infinite;
}

.hero__spark--1 {
  --depth: 30;
  left: 46%;
  bottom: 190px;
  animation-delay: 2.55s, 3.2s;
}

.hero__spark--2 {
  --depth: 22;
  width: 18px;
  height: 18px;
  left: -36px;
  bottom: 230px;
  animation-delay: 2.7s, 3.6s;
}

.hero__spark--3 {
  --depth: -20;
  top: 16%;
  right: 108px;
  fill: #fff;
  animation-delay: 2.85s, 4s;
}

@keyframes hero-spark-burst {
  0% { opacity: 0; scale: 0; rotate: -90deg; }
  70% { opacity: 1; scale: 1.5; }
  100% { opacity: 1; scale: 1; rotate: 0deg; }
}

@keyframes hero-twinkle {
  0%, 100% { scale: 1; rotate: 0deg; opacity: 1; }
  50% { scale: 0.5; rotate: 90deg; opacity: 0.6; }
}

@media (max-width: 640px) {
  .hero__stamp {
    width: 96px;
    height: 96px;
    right: -6px;
  }

  .hero__stamp b {
    font-size: 26px;
  }

  .hero__chip {
    padding: 6px 12px 6px 6px;
    font-size: 12px;
  }

  .hero__chip--1 {
    left: 0;
  }

  .hero__chip--2 {
    right: 0;
  }

  .hero__benefit {
    left: 8px;
    bottom: 24px;
    padding: 12px 20px 12px 12px;
  }

  .hero__benefit-icon {
    width: 48px;
    height: 48px;
  }

  .hero__benefit-value {
    font-size: 40px;
  }

  .hero__spark--1 {
    bottom: 110px;
    left: 60%;
  }

  .hero__spark--2 {
    left: 12px;
    bottom: 140px;
  }

  .countdown__unit {
    min-width: 46px;
  }

  .countdown__unit b {
    font-size: 24px;
  }

  .hero__cta {
    min-height: 60px;
    font-size: 20px;
  }

  /* Barra fixa no celular: contagem compacta em cima, CTA largo embaixo */
  .hero__dock.is-docked {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .hero__dock.is-docked::before {
    border-radius: 23px;
  }

  .hero__dock.is-docked .countdown {
    justify-content: center;
  }

  .hero__dock.is-docked .countdown__label {
    display: none;
  }

  .hero__dock.is-docked .countdown__unit {
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
  }

  .hero__dock.is-docked .countdown__unit b {
    width: auto;
    padding: 4px 6px;
    font-size: 18px;
  }

  .hero__dock.is-docked .countdown__unit small {
    margin-top: 0;
    font-size: 10px;
  }

  .hero__dock.is-docked .countdown__sep {
    padding-top: 2px;
    font-size: 16px;
  }

  .hero__dock.is-docked .hero__cta {
    gap: 10px;
    min-height: 52px;
    padding-inline: 16px;
    font-size: 17px;
    white-space: nowrap;
  }

  .hero__dock.is-docked .hero__cta-icon {
    font-size: 24px;
  }

  .hero__dock.is-docked .hero__cta-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta:hover {
    transform: none;
  }

  .hero__coin {
    display: none;
  }
}

.final-cta__chevron {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--color-brand);
  clip-path: polygon(62% 0, 100% 0, 38% 50%, 100% 100%, 62% 100%, 0 50%);
}

/* ---------- Números ---------- */
.stats {
  background: var(--color-brand);
  color: var(--color-on-dark);
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md) 32px;
  padding-block: 32px;
}

/* ---------- Chamada final ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.final-cta__chevron {
  right: 4%;
  width: 26%;
}

.final-cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-xl);
}

.final-cta__title {
  max-width: 760px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
}

.final-cta__lead {
  max-width: 560px;
  font-size: 19px;
  color: var(--color-on-dark-soft);
}

.final-cta__note {
  font-size: 16px;
  color: var(--color-on-dark-muted);
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--color-darker);
  color: var(--color-on-dark-muted);
  font-size: 15px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 48px;
  padding-block: 36px 112px; /* espaço extra para a barra fixa / botão flutuante */
}

@media (max-width: 640px) {
  .site-footer__inner {
    padding-bottom: 150px;
  }
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--color-on-dark);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__contact a,
.site-footer__contact a:hover {
  color: var(--color-on-dark);
}

/* ---------- Botão flutuante ---------- */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  min-height: 56px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, visibility 0.2s ease, filter 0.15s ease, transform 0.15s ease;
}

/* Estado aplicado por js/floating-cta.js enquanto outro botão principal está visível */
.floating-cta.is-hidden,
.has-docked-cta .floating-cta { /* a barra fixa do hero (js/hero-dock.js) assume o papel */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Página 404 ---------- */
.not-found {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background: var(--color-surface-tint);
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-block: var(--space-xl);
}

.not-found__logo {
  width: auto;
  height: 46px;
  margin-bottom: var(--space-sm);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-xs);
}

/* ---------- Ajustes para telas pequenas ---------- */
@media (max-width: 760px) {
  .final-cta__chevron {
    right: -14%;
    width: 50%;
    opacity: 0.55;
  }

  .site-header .btn {
    padding-inline: 16px;
  }

  .cta-panel__chevron {
    right: -40px;
    opacity: 0.6;
  }

  .cta-panel .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand__tagline,
  .hide-on-phone {
    display: none;
  }
}
