/* Hero section */
.hero10-hover-pill {
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform .3s cubic-bezier(.02,.01,.47,1);
}

.hero10-hover-pill > span:last-child { position: relative; z-index: 1; }

.hero10-hover-pill::before,
.hero10-hover-pill::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--fm-paper);
  opacity: 0;
  z-index: -1;
  transform: translate(100%, -25%) translate3d(0, 0, 0);
  transition: transform .15s cubic-bezier(.02,.01,.47,1), opacity .15s cubic-bezier(.02,.01,.47,1);
}

.hero10-hover-pill:hover { animation: heroPillShake .5s ease-in-out both; }
.hero10-hover-pill:hover > span:last-child { animation: heroPillStorm .7s ease-in-out .06s both; }

.hero10-hover-pill:hover::before,
.hero10-hover-pill:hover::after {
  opacity: .15;
  transform: translate3d(50%, 0, 0) scale(.9);
  transition: transform .2s cubic-bezier(.02,.01,.47,1), opacity .2s cubic-bezier(.02,.01,.47,1);
}

.hero10-hover-pill:hover::after { transform: translate(50%, 0) scale(1.1); }

@keyframes heroPillShake {
  0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
  25% { transform: rotate(7deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-7deg) translate3d(0, 0, 0); }
  75% { transform: rotate(1deg) translate3d(0, 0, 0); }
}

@keyframes heroPillStorm {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(2px, -1px, 0); }
  50% { transform: translate3d(-2px, 1px, 0); }
  75% { transform: translate3d(1px, 0, 0); }
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  min-height: 88svh;
  min-height: 88vh;
  padding: 88px 0 52px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-title {
  margin-bottom: 32px;
  word-break: keep-all;
  hyphens: none;
}

.fm-h1.hero-title {
  font-size: clamp(28px, 3.8vw, 54px);
  text-align: left;
}

.fm-h1.hero-title > span:first-child,
.fm-h1.hero-title > span:last-child {
  display: block;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  align-items: center;
}

.hero-stats-divider {
  width: 1px;
  height: 38px;
  background: var(--fm-line);
  flex-shrink: 0;
}

.hero-polaroid {
  position: relative;
  background: #FFFFFF;
  padding: 14px 14px 56px;
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(26,24,24,0.18), 0 6px 12px rgba(26,24,24,0.10);
  width: 380px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-polaroid {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 100svh;
    min-height: 100vh;
    padding: 96px 0 56px;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-eyebrow-row {
    justify-content: center;
  }

  .hero-title {
    text-align: center;
    white-space: normal;
    word-break: keep-all;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-polaroid {
    width: 80%;
    max-width: 280px;
    margin: 0 auto;
  }
}

@keyframes heroLetterFall {
  0%   { transform: translateY(-72px) rotate(-10deg); opacity: 0; }
  58%  { transform: translateY(6px) rotate(1.2deg); opacity: 1; }
  78%  { transform: translateY(-3px) rotate(-0.4deg); }
  100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

@keyframes heroPolaroidFall {
  0%   { transform: translateY(-340px) rotate(-24deg); opacity: 0; }
  38%  { opacity: 1; }
  60%  { transform: translateY(22px) rotate(10deg); }
  73%  { transform: translateY(-10px) rotate(0deg); }
  84%  { transform: translateY(8px) rotate(6deg); }
  93%  { transform: translateY(-3px) rotate(2deg); }
  100% { transform: translateY(0) rotate(3deg); }
}

@keyframes heroFadeUp {
  0%   { transform: translateY(22px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ───────────── Nova hero (hx-*) ───────────── */
.hero-section.hx-section {
  position: relative;
  overflow: hidden;
  background: transparent;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 120px;
  align-items: center;
}

.hx-background-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  pointer-events: none;
}
.hx-background-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(251,247,244,.5);
  pointer-events: none;
}

/* manchas de cor suaves ao fundo */
.hx-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(110px); }
.hx-blob-teal { width: 560px; height: 560px; right: -140px; top: -160px; background: var(--fm-teal); opacity: .55; }
.hx-blob-rosa { width: 460px; height: 460px; right: 22%; top: 36%; background: var(--fm-rosa); opacity: .38; }
.hx-blob-amarelo { width: 420px; height: 420px; right: -80px; bottom: 6%; background: var(--fm-amarelo); opacity: .45; }
.hx-blob-rosa-claro { width: 460px; height: 460px; left: -160px; bottom: -80px; background: var(--fm-rosa-claro); opacity: .5; }

.hx-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

/* ── copy ── */
.hx-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.hx-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  background: #FFFFFF;
  border: 1px solid var(--fm-line);
  border-radius: 999px;
  color: var(--fm-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.hx-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--fm-vermelho-coral); }

.fm-h1.hx-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--fm-font-headline);
  font-size: clamp(38px, 4.3vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-align: left;
  color: var(--fm-ink);
}
.fm-h1.hx-title > span { display: block; white-space: nowrap; }
.fm-h1.hx-title .hx-mark {
  margin-top: 2px;
  padding: 0 .3em .06em;
  border-radius: .38em;
  background: var(--fm-rosa);
  color: var(--fm-ink);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.hx-sub {
  margin: 0;
  max-width: 520px;
  color: var(--fm-fg-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.6;
}

.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.fm-btn.hx-btn {
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  gap: 14px;
  padding: 8px 28px;
  min-height: 56px;
  align-items: center;
  /* sem "transition: all": evita brigar com a animação de entrada (gsap) */
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.fm-btn.hx-btn-primary {
  background: var(--fm-ink);
  color: #FFFFFF;
  padding: 8px 8px 8px 30px;
  box-shadow: 0 10px 24px rgba(26,24,24,.22);
}
.fm-btn.hx-btn-primary:hover { background: #342C30; box-shadow: 0 14px 30px rgba(26,24,24,.28); }
.hx-btn-arrow, .hx-btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--fm-ink);
}
.hx-btn-arrow { width: 40px; height: 40px; background: var(--fm-rosa); }
.hx-btn-arrow svg { width: 20px; height: 20px; }
.fm-btn.hx-btn-secondary {
  padding: 8px 26px 8px 8px;
  gap: 12px;
  background: transparent;
  color: var(--fm-ink);
  border: 1.5px solid var(--fm-ink);
}
.fm-btn.hx-btn-secondary:hover { background: var(--fm-ink); color: var(--fm-paper); }
.hx-btn-play { width: 40px; height: 40px; background: var(--fm-amarelo); }
.hx-btn-play svg { width: 14px; height: 14px; margin-left: 2px; }

.hx-proof { display: flex; align-items: center; gap: 14px; }
.hx-proof-text { display: flex; flex-direction: column; gap: 2px; color: var(--fm-fg-muted); font-size: 14px; font-weight: 500; }
.hx-proof-text strong { color: var(--fm-ink); font-weight: 700; }
.hx-stars { color: var(--fm-laranja); font-size: 15px; letter-spacing: 1px; }

/* ── composição visual (tudo em cqw: escala com o container) ── */
.hx-visual { width: 100%; display: flex; justify-content: center; }
.hx-stage {
  container-type: inline-size;
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1 / 1;
}

.hx-polaroid, .hx-badge, .hx-stat, .hx-chip, .hx-star {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--hx-rot, 0deg));
  animation: hxPop .8s var(--hx-delay, 0s) var(--fm-ease-out) both;
}

.hx-polaroid {
  --hx-rot: 0deg;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.9cqw;
  padding: 2.5cqw 2.5cqw 2.8cqw;
  background: #FFFFFF;
  border-radius: 1cqw;
  box-shadow: 0 3cqw 6cqw rgba(26,24,24,.18), 0 .6cqw 1.4cqw rgba(26,24,24,.08);
  transition: translate 260ms var(--fm-ease-out), box-shadow 260ms var(--fm-ease-out);
}
.hx-polaroid:hover { translate: 0 -1.2cqw; box-shadow: 0 4cqw 7cqw rgba(26,24,24,.22), 0 .8cqw 1.6cqw rgba(26,24,24,.1); }
.hx-polaroid img { display: block; width: 100%; aspect-ratio: 248 / 270; object-fit: cover; border-radius: .5cqw; background: var(--fm-paper-2); }
.hx-polaroid figcaption {
  font-family: 'Caveat Brush', var(--fm-font-display);
  font-size: 3.75cqw;
  line-height: 1.1;
  text-align: center;
  color: var(--fm-ink-2);
}
.hx-polaroid-left { --hx-rot: -9deg; left: 18.4%; top: 54.7%; width: 43.75%; z-index: 1; }
.hx-polaroid-right { --hx-rot: 6deg; left: 78.9%; top: 64%; width: 43.75%; z-index: 1; }
.hx-polaroid-center { --hx-rot: -3deg; left: 50.8%; top: 47.7%; width: 51.25%; z-index: 2; }
.hx-polaroid-center img { aspect-ratio: 296 / 330; }
.hx-polaroid-center figcaption { font-size: 4.4cqw; }

.hx-star {
  --hx-rot: 12deg;
  left: 83.6%; top: 22.5%;
  width: 15cqw; height: 15cqw;
  background: var(--fm-rosa-claro);
  clip-path: polygon(50% 0%, 61% 14%, 79% 9%, 82% 28%, 100% 36%, 89% 52%, 100% 68%, 82% 74%, 79% 92%, 61% 86%, 50% 100%, 39% 86%, 21% 92%, 18% 74%, 0% 68%, 11% 52%, 0% 36%, 18% 28%, 21% 9%, 39% 14%);
  z-index: 0;
}

.hx-badge {
  --hx-rot: -12deg;
  left: 7.8%; top: 23.5%;
  width: 18cqw; height: 18cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--fm-coral);
  outline: .3cqw dashed #FFFFFF;
  outline-offset: -1.1cqw;
  box-shadow: 0 1.6cqw 3.2cqw rgba(26,24,24,.14);
  color: var(--fm-ink);
  z-index: 3;
}
.hx-badge span { font-family: 'Caveat Brush', var(--fm-font-display); font-size: 3.4cqw; line-height: 1; }
.hx-badge strong { font-family: var(--fm-font-headline); font-size: 4.7cqw; line-height: 1.05; font-weight: 400; }

.hx-stat {
  --hx-rot: 5deg;
  left: 72.6%; top: 7.8%;
  padding: 2.8cqw 3.75cqw;
  border-radius: 3.75cqw;
  background: var(--fm-amarelo);
  box-shadow: 0 2.2cqw 4.7cqw rgba(26,24,24,.16);
  color: var(--fm-ink);
  z-index: 3;
  white-space: nowrap;
}
.hx-stat strong { display: block; font-family: var(--fm-font-headline); font-size: 6.25cqw; line-height: 1.1; font-weight: 400; }
.hx-stat span { display: block; font-size: 2cqw; font-weight: 600; }

.hx-chip {
  --hx-rot: -3deg;
  left: 25%; top: 92%;
  display: flex; align-items: center; gap: 1.9cqw;
  padding: 1.6cqw 3.1cqw 1.6cqw 1.6cqw;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 1.9cqw 4.4cqw rgba(26,24,24,.16);
  color: var(--fm-ink);
  z-index: 3;
  white-space: nowrap;
}
.hx-chip-icon {
  width: 5.4cqw; height: 5.4cqw;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--fm-laranja);
}
.hx-chip-icon svg { width: 52%; height: 52%; }
.hx-chip-text { display: flex; flex-direction: column; }
.hx-chip-text strong { font-size: 2.35cqw; font-weight: 700; line-height: 1.25; }
.hx-chip-text small { font-size: 1.9cqw; font-weight: 500; color: var(--fm-ink-2); line-height: 1.2; }

/* ── faixa inferior ── */
.hx-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 40px;
  padding: 22px 24px;
  background: var(--fm-ink);
  color: #FFFFFF;
}
.hx-strip span { font-family: var(--fm-font-headline); font-size: clamp(13px, 1.4vw, 20px); white-space: nowrap; }
.hx-strip i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

@keyframes hxPop {
  0%   { opacity: 0; transform: translate(-50%, calc(-50% - 36px)) rotate(calc(var(--hx-rot, 0deg) - 8deg)); }
  65%  { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--hx-rot, 0deg)); }
}

/* ── responsivo ── */
@media (max-width: 960px) {
  .hero-section.hx-section { padding: 112px 0 150px; }
  .hx-grid { grid-template-columns: 1fr; gap: 40px; }
  .hx-copy { align-items: center; text-align: center; }
  .fm-h1.hx-title { align-items: center; text-align: center; font-size: clamp(36px, 9vw, 64px); }
  .fm-h1.hx-title .hx-mark { transform-origin: center; }
  .hx-actions, .hx-proof { justify-content: center; }
  .hx-stage { width: min(100%, 560px); }
  .hx-blob-rosa { right: 5%; top: 55%; }
}

@media (max-width: 640px) {
  .hero-section.hx-section { min-height: 100svh; padding: 104px 0 140px; align-items: flex-start; }
  .hx-copy { gap: 22px; }
  .hx-actions { width: 100%; flex-direction: column; gap: 10px; }
  .fm-btn.hx-btn { width: 100%; justify-content: center; }
  .fm-btn.hx-btn-primary { position: relative; justify-content: center; padding-inline: 56px; }
  .fm-btn.hx-btn-primary .hx-btn-arrow { position: absolute; right: 8px; }
  .hx-proof { flex-direction: column; gap: 10px; }
  .hx-proof-text { align-items: center; }
  .hx-strip { gap: 8px 18px; padding: 16px; }
  .hx-strip span { font-size: 12px; }
  .hx-strip i { width: 7px; height: 7px; }
  .hx-blob { filter: blur(80px); }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-section.hx-section { min-height: unset; padding: 96px 0 130px; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 99999px) /* desligado de propósito: as animações ficam sempre ativas */ {
  .hx-polaroid, .hx-badge, .hx-stat, .hx-chip, .hx-star { animation: none; }
  .hx-polaroid { transition: none; }
}
