.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  html.motion-ready .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

#kits > div > .grid.items-start {
  display: flex;
  gap: 1rem;
  margin-inline: -1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.25rem 1.25rem 1.25rem;
  scroll-padding-inline: 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

#kits > div > .grid.items-start > div {
  min-width: 0;
  flex: 0 0 min(86vw, 360px);
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  #kits > div {
    max-width: 72rem;
  }

  #kits > div > .grid.items-start {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
    margin-inline: 0;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
    touch-action: auto;
  }

  #kits > div > .grid.items-start > div {
    width: 100%;
    flex: initial;
    scroll-snap-align: none;
  }

  #kits > div > .grid.items-start > div.reveal {
    padding: 1.5rem;
  }
}

.possibilities-scroll {
  overscroll-behavior-x: contain;
  scroll-padding-inline: max(1.25rem, calc((100vw - 72rem) / 2));
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.possibilities-scroll > .possibilities-track > div[aria-hidden="false"] > button {
  scroll-snap-align: center;
}

.shadow-photo {
  overflow: hidden;
  transition:
    box-shadow 350ms ease,
    transform 350ms ease;
}

.shadow-photo img {
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shadow-photo:hover img {
  transform: scale(1.045);
}

#kits > div > .grid.items-start > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgb(45 25 35 / 12%);
}

#cta_hero {
  box-shadow: 0 10px 28px rgb(191 63 117 / 22%);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

#cta_hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgb(191 63 117 / 30%);
}

@media (max-width: 767px) {
  #kits > div > .grid.items-start > div.reveal {
    padding: 1.25rem;
  }
}

iframe[data-nl-ready="1"] {
  display: none !important;
}

#lovable-badge {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== Ajustes mobile ===== */
@media (max-width: 767px) {
  /* hero centralizado */
  #top > div > div:first-child {
    text-align: center;
  }

  #top .eyebrow {
    padding: 0.35rem 0.75rem;
    font-size: 9.5px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-align: center;
  }

  #top h1 {
    text-align: center;
  }

  #top p {
    margin-inline: auto;
  }

  #top ul {
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  #cta_hero {
    display: flex;
    width: 100%;
    max-width: 22rem;
    margin: 2.25rem auto 0;
    text-align: center;
  }

  /* cards de compra: um embaixo do outro, menores */
  #kits > div > .grid.items-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    margin-inline: 0;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  #kits > div > .grid.items-start > div {
    flex: none;
    width: 100%;
    max-width: 19rem;
    margin-top: 0;
    padding: 1rem;
    border-radius: 1.5rem;
  }

  #kits > div > .grid.items-start > div.reveal {
    padding: 1rem;
  }

  #kits > div > .grid.items-start > div h3 {
    font-size: 1.2rem;
    margin-top: 0.75rem;
  }

  #kits > div > .grid.items-start > div p.text-4xl,
  #kits > div > .grid.items-start > div p.text-5xl {
    font-size: 2rem;
    margin-top: 1rem;
  }

  #kits > div > .grid.items-start > div ul {
    margin-top: 0.75rem;
    font-size: 0.8rem;
  }

  #kits > div > .grid.items-start > div .aspect-\[4\/3\] {
    aspect-ratio: 16 / 10;
  }

  #kits > div > .grid.items-start > div a {
    margin-top: 1rem;
    padding-block: 0.85rem !important;
    font-size: 0.8rem !important;
  }
}

/* carrosséis: arrastar com o dedo */
.possibilities-scroll,
.depoimentos-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scroll-snap-type: none;
  cursor: grab;
}

.possibilities-scroll::-webkit-scrollbar,
.depoimentos-scroll::-webkit-scrollbar {
  display: none;
}

.depoimentos-scroll {
  scroll-snap-type: none !important;
}

.depoimentos-scroll > figure {
  scroll-snap-align: none !important;
}

/* ===== Rodada 2: títulos centralizados, cards do topo, passos arrastáveis ===== */
.titulo-centro {
  margin-inline: auto;
  text-align: center;
}

.arrastavel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scroll-snap-type: none !important;
}

.arrastavel > * {
  scroll-snap-align: none !important;
}

.arrastavel::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .natal-cabecalho,
  .natal-aviso {
    align-items: center;
    text-align: center;
  }

  .natal-cabecalho .h2,
  .natal-cabecalho p {
    margin-inline: auto;
    text-wrap: balance;
  }

  .natal-aviso h3,
  .natal-aviso p {
    text-wrap: balance;
  }

  /* cardzinhos do topo */
  #top ul {
    display: grid;
    width: 100%;
    max-width: 22rem;
    margin: 1.75rem auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  #top ul li {
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.55rem 0.5rem;
    border: 1px solid rgb(191 63 117 / 14%);
    border-radius: 1rem;
    background: rgb(255 255 255 / 75%);
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: left;
    box-shadow: 0 4px 14px rgb(191 63 117 / 8%);
  }

  #top ul li > span {
    flex: none;
  }
}

/* ===== Animações de entrada ===== */
@keyframes entrada-sobe {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes entrada-zoom {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #top > div > div:first-child > * {
    animation: entrada-sobe 800ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  #top > div > div:first-child > :nth-child(1) { animation-delay: 60ms; }
  #top > div > div:first-child > :nth-child(2) { animation-delay: 160ms; }
  #top > div > div:first-child > :nth-child(3) { animation-delay: 280ms; }
  #top > div > div:first-child > :nth-child(4) { animation-delay: 380ms; }
  #top > div > div:first-child > :nth-child(5) { animation-delay: 480ms; }
  #top > div > div:first-child > :nth-child(6) { animation-delay: 560ms; }

  #top > div > div:last-child {
    animation: entrada-zoom 1000ms cubic-bezier(0.22, 1, 0.36, 1) 220ms backwards;
  }

  html.motion-ready .reveal {
    transform: translateY(34px) scale(0.985);
    transition:
      opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  html.motion-ready .reveal.is-in {
    transform: none;
  }

  /* o botão principal respira de leve para chamar o olho */
  #cta_hero,
  #barra-kit a {
    animation: cta-pulso 2.8s ease-in-out 1.6s infinite;
  }
}

@keyframes cta-pulso {
  0%, 100% { box-shadow: 0 10px 28px rgb(191 63 117 / 22%); }
  50% { box-shadow: 0 10px 34px rgb(191 63 117 / 45%); }
}

/* ===== Conversão ===== */
#barra-kit {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 94%);
  border-top: 1px solid rgb(191 63 117 / 15%);
  box-shadow: 0 -8px 24px rgb(45 25 35 / 10%);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

#barra-kit.visivel {
  transform: none;
}

#barra-kit span {
  flex: 1;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 600;
}

#barra-kit span strong {
  display: block;
  color: var(--primary, #bf3f75);
  font-size: 0.95rem;
}

#barra-kit a {
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--primary, #bf3f75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 768px) {
  #barra-kit {
    display: none;
  }
}

/* ===== Rodada 3: preços centralizados, PC mais compacto ===== */
#kits > div > .grid.items-start > div p.text-4xl,
#kits > div > .grid.items-start > div p.text-5xl {
  text-align: center;
}

@media (min-width: 768px) {
  #cta_hero {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }

  #kits > div {
    max-width: 52rem;
  }

  #kits > div > .grid.items-start {
    gap: 1rem;
    align-items: start;
  }

  #kits > div > .grid.items-start > div,
  #kits > div > .grid.items-start > div.reveal {
    margin-top: 0;
    padding: 1rem;
    border-radius: 1.5rem;
  }

  #kits > div > .grid.items-start > div h3 {
    margin-top: 0.75rem;
    font-size: 1.25rem;
  }

  #kits > div > .grid.items-start > div p.text-4xl,
  #kits > div > .grid.items-start > div p.text-5xl {
    margin-top: 0.9rem;
    font-size: 2rem;
  }

  #kits > div > .grid.items-start > div ul {
    margin-top: 0.7rem;
    font-size: 0.78rem;
  }

  #kits > div > .grid.items-start > div .aspect-\[4\/3\] {
    aspect-ratio: 16 / 9;
  }

  #kits > div > .grid.items-start > div a {
    margin-top: 0.9rem;
    padding-block: 0.8rem !important;
    font-size: 0.8rem !important;
  }
}

@media (min-width: 768px) {
  #kits > div > .grid.items-start > div:nth-child(2) .grid.grid-cols-3 {
    height: 9.5rem;
    grid-template-rows: 1fr 1fr;
  }

  #kits > div > .grid.items-start > div:nth-child(2) .grid.grid-cols-3 > div {
    aspect-ratio: auto;
    height: 100%;
  }

  #kits > div > .grid.items-start > div .aspect-\[4\/3\] {
    aspect-ratio: 16 / 7;
  }

  #kits > div > .grid.items-start > div ul {
    row-gap: 0.3rem;
    line-height: 1.25;
  }

  #kits > div > .grid.items-start > div .rounded-2xl.p-4 {
    padding: 0.6rem 0.9rem;
  }

  #kits > div > .grid.items-start > div p.text-sm {
    margin-top: 0.35rem;
    line-height: 1.35;
  }
}

/* ===== Rodada 4 ===== */
@media (min-width: 768px) {
  #cta_hero {
    margin-top: 2.75rem;
  }
}

/* garantia sempre em uma linha só */
#kits > div > .grid.items-start > div .rounded-2xl > p.text-sm {
  margin-top: 0;
  white-space: nowrap;
  font-size: 0.8rem;
}

#kits > div > .grid.items-start > div .rounded-2xl:has(> p.text-sm) {
  justify-content: center;
  gap: 0.5rem;
}

#kits > div > .grid.items-start > div .rounded-2xl:has(> p.text-sm) > svg {
  flex: none;
}

/* ===== Rodada 5: botões de compra pulsando (usa "scale", então o hover continua funcionando) ===== */
@keyframes cta-pulso-escala {
  0%, 100% {
    scale: 1;
    box-shadow: 0 8px 22px rgb(191 63 117 / 22%);
  }
  50% {
    scale: 1.05;
    box-shadow: 0 12px 34px rgb(191 63 117 / 48%);
  }
}

@keyframes cta-pulso-escala-claro {
  0%, 100% {
    scale: 1;
    box-shadow: 0 8px 22px rgb(0 0 0 / 14%);
  }
  50% {
    scale: 1.05;
    box-shadow: 0 12px 34px rgb(255 255 255 / 45%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  #cta_hero,
  #barra-kit a,
  #cta_essential {
    animation: cta-pulso-escala 2.2s ease-in-out 1.2s infinite;
  }

  #cta_complete {
    animation: cta-pulso-escala-claro 2.2s ease-in-out 1.7s infinite;
  }

  #cta_hero:hover,
  #barra-kit a:hover,
  #cta_essential:hover,
  #cta_complete:hover {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #top #cta_hero {
    animation:
      entrada-sobe 800ms cubic-bezier(0.22, 1, 0.36, 1) 480ms backwards,
      cta-pulso-escala 2.2s ease-in-out 1.6s infinite;
  }

  #top #cta_hero:hover {
    animation-play-state: running, paused;
  }
}
