/**
 * TapTon — detalhes (como é simples e fácil)
 * Ref: https://www.ton.com.br/tapton
 */

.tapton-det {
  --tapton-brand: #88ff00;
  --tapton-brand-hover: #7deb00;
  --tapton-icon: #0b4d1c;
  --tapton-card: #eff1f0;
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #1a1a1a;
  padding: 4rem 0 4rem !important;
}

.tapton-det__hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: center;
  gap: 4rem;
  max-width: 128rem;
  margin: 0 auto;
  padding: 0 4rem 0 6rem;
  box-sizing: border-box;
}

.tapton-det__copy {
  flex: 1 1 0;
  min-width: 0;
  max-width: 67.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.4rem;
  padding: 4rem 0 8rem;
}

.tapton-det__title {
  margin: 0;
  font-family: "Ton Condensed", var(--font-heading, "Inter", sans-serif);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03rem;
  color: #000;
}

.tapton-det__subtitle {
  margin: 1rem 0 0;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: #1a1a1a;
}

.tapton-det__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 5.6rem;
  padding: 0 2.4rem;
  border-radius: 2rem;
  background: var(--tapton-brand);
  color: #1b221f;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tapton-det__btn:hover {
  background: var(--tapton-brand-hover);
}

.tapton-det__btn:active {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.tapton-det__btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.tapton-det__btn--mobile {
  display: none;
}

.tapton-det__qr {
  display: block;
  width: 130px;
  height: 130px;
  max-width: 130px;
  max-height: 130px;
  object-fit: contain;
}

.tapton-det__picture {
  flex: 1 1 0;
  min-width: 0;
  height: 55.6rem;
}

.tapton-det__picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Carrossel */
.tapton-det__carousel {
  width: 100%;
  margin-top: -8rem;
  position: relative;
}

.tapton-det__track {
  display: inline-flex;
  width: 100%;
  gap: 1.6rem;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  box-sizing: border-box;
  padding: 0 max(calc(50% - 64rem), 4rem);
  scroll-padding: 0 max(calc(50% - 64rem), 4rem);
}

.tapton-det__track::-webkit-scrollbar {
  display: none;
}

.tapton-det__slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.tapton-det__card {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  box-sizing: border-box;
  width: 34rem;
  max-width: 40rem;
  height: 100%;
  padding: 4rem;
  border: 3px solid var(--tapton-card);
  border-radius: 3.2rem;
  background: var(--tapton-card);
  cursor: default;
  user-select: none;
  transition: box-shadow 0.2s ease;
}

.tapton-det__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tapton-det__icon {
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--tapton-icon);
}

.tapton-det__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tapton-det__card-title {
  margin: 0;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
  transition: color 0.2s ease;
}

.tapton-det__card:hover .tapton-det__card-title {
  color: var(--tapton-icon);
}

.tapton-det__card-text {
  margin: 0;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
}

.tapton-det__nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.tapton-det__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;
  border: 0;
  border-radius: 1.6rem;
  background: var(--tapton-card);
  color: #1a1a1a;
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tapton-det__arrow:hover:not(:disabled) {
  background: #e1e4e2;
}

.tapton-det__arrow:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.tapton-det__arrow:disabled {
  color: #9a9f9c;
  cursor: not-allowed;
}

.tapton-det__arrow svg {
  width: 1em;
  height: 1em;
}

/* Fade-up em cascata */
.tapton-det.tapton-det--anim .tapton-det__card {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 1s ease, transform 1s ease, box-shadow 0.2s ease;
}

.tapton-det.tapton-det--anim.is-in-view .tapton-det__card {
  opacity: 1;
  transform: none;
}

.tapton-det.tapton-det--anim.is-in-view .tapton-det__slide:nth-child(2) .tapton-det__card { transition-delay: 0.2s, 0.2s, 0s; }
.tapton-det.tapton-det--anim.is-in-view .tapton-det__slide:nth-child(3) .tapton-det__card { transition-delay: 0.4s, 0.4s, 0s; }
.tapton-det.tapton-det--anim.is-in-view .tapton-det__slide:nth-child(4) .tapton-det__card { transition-delay: 0.6s, 0.6s, 0s; }
.tapton-det.tapton-det--anim.is-in-view .tapton-det__slide:nth-child(5) .tapton-det__card { transition-delay: 0.8s, 0.8s, 0s; }

@media (prefers-reduced-motion: reduce) {
  .tapton-det.tapton-det--anim .tapton-det__card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1023px) {
  .tapton-det__hero {
    gap: 2.4rem;
    padding: 0 2rem 0 3rem;
  }

  .tapton-det__copy {
    padding: 2.4rem 0 8rem;
  }

  .tapton-det__picture {
    height: 41.1rem;
  }
}

@media (max-width: 767px) {
  .tapton-det {
    padding: 2.4rem 0 4rem !important;
  }

  .tapton-det__hero {
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    padding: 0 2rem;
  }

  .tapton-det__copy {
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0.8rem;
  }

  .tapton-det__title {
    font-size: 3.6rem;
  }

  .tapton-det__subtitle {
    margin-top: 0.8rem;
    font-size: 1.6rem;
  }

  .tapton-det__btn--desktop,
  .tapton-det__qr {
    display: none;
  }

  .tapton-det__btn--mobile {
    display: flex;
    flex: 1;
    min-width: 20.8rem;
    width: 100%;
    margin: 2.4rem 2rem 0;
    width: calc(100% - 4rem);
  }

  .tapton-det__picture {
    width: 100%;
    max-width: 48rem;
    height: 34rem;
  }

  .tapton-det__picture img {
    object-position: center;
  }

  .tapton-det__carousel {
    margin-top: -2.4rem;
  }

  .tapton-det__track {
    gap: 0.8rem;
    padding: 0 2rem;
    scroll-padding: 0 2rem;
  }

  .tapton-det__card {
    width: 26rem;
    padding: 2.4rem;
    border-radius: 2.4rem;
  }

  .tapton-det__card-title {
    font-size: 2rem;
  }

  .tapton-det__card-text {
    font-size: 1.6rem;
  }
}
