/* ==========================================================================
   components.css
   Componentes de UI usados no index.html que não pertencem ao core
   (reset/tipografia/variáveis) do style.css. Mobile-first: aqui só vai
   a base para telas pequenas. Ajustes de breakpoint ficam em responsive.css.
   ========================================================================== */

/* Aviso de compatibilidade (hero) */
.hero-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 138, 61, 0.3);
  border-radius: 12px;
  background: rgba(255, 138, 61, 0.08);
  color: #ffd7b8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-warning span {
  flex-shrink: 0;
  font-size: 1rem;
}

/* Ações do hero (botões) */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

/* Botão secundário (ghost) */
.button-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.button-ghost:hover {
  border-color: rgba(199, 255, 56, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

/* Cabeçalho de seção centralizado */
.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

/* Seção de vídeo — responsiva via aspect-ratio, sem depender de JS */
.video-section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.product-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* Seção explicativa do produto */
.product-explanation {
  padding: 70px 0;
}

.explanation-grid {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.explanation-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.explanation-content {
  display: flex;
  flex-direction: column;
}

.explanation-content h2 {
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.explanation-content > p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 20px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feature-list li span {
  display: grid;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #0a0d08;
  background: var(--lime);
  font-size: 0.7rem;
  font-weight: 900;
}

/* Compatibilidade */
.compatibility-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.compatibility-box {
  padding: 28px 22px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  background: rgba(168, 85, 247, 0.06);
}

.compatibility-box h2 {
  margin-bottom: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  letter-spacing: -0.05em;
}

.compatibility-box p {
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   Garantia + FAQ
   ========================================================================== */

.guarantee-faq-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.guarantee-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.guarantee-card {
  padding: 28px 22px;
  border: 1px solid rgba(199, 255, 56, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 0%, rgba(199, 255, 56, 0.12), transparent 70%),
    var(--card);
}

.guarantee-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--lime-soft);
  font-size: 1.6rem;
}

.guarantee-card h2,
.faq-card h2 {
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.guarantee-card p {
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 4px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(168, 85, 247, 0.4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  list-style: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--lime);
  font-size: 0.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-item[open] .faq-toggle {
  border-color: var(--lime);
  transform: rotate(45deg);
}

.faq-answer {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ==========================================================================
   Botões flutuantes: WhatsApp + Voltar ao topo
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  font-size: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(199, 255, 56, 0.3);
  border-radius: 50%;
  color: #0a0d08;
  background: var(--lime);
  box-shadow: 0 10px 26px rgba(199, 255, 56, 0.28);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 14px 32px rgba(199, 255, 56, 0.4);
}

/* Footer com links legais */

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8f98aa;
  font-size: 0.72rem;
}

.footer-links a {
  color: #8f98aa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: var(--lime);
}

@media (min-width: 700px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Página de Política e Termos (politica-e-termos.html)
   ========================================================================== */

.legal-hero {
  padding: 150px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-hero h1 {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.legal-nav a {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.legal-nav a:hover {
  border-color: rgba(199, 255, 56, 0.4);
  color: var(--lime);
}

.legal-section {
  padding: 50px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  letter-spacing: -0.05em;
}

.legal-content h3 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
  color: var(--lime);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-content ul {
  margin: 8px 0 8px 20px;
}

.legal-content strong {
  color: var(--text);
}

.legal-updated {
  margin-top: 10px;
  color: #737d8e;
  font-size: 0.76rem;
}

/* ==========================================================================
   Aviso de cookies (LGPD)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 12, 17, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.cookie-banner a {
  color: var(--lime);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner-actions .button {
  flex: 1;
  min-height: 44px;
  font-size: 0.82rem;
}

@media (min-width: 700px) {
  .cookie-banner {
    left: auto;
    right: 24px;
    max-width: 400px;
  }
}

/* ==========================================================================
   Player A/B — Seco / Turbinado
   ========================================================================== */

.ab-player {
  padding: 30px 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 0%, rgba(168, 85, 247, 0.16), transparent 60%),
    linear-gradient(145deg, rgba(30, 35, 48, 0.95), rgba(14, 16, 22, 0.98));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.ab-player-header {
  text-align: center;
  margin-bottom: 26px;
}

.ab-player-header .eyebrow {
  justify-content: center;
}

.ab-player-title {
  margin-bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  letter-spacing: -0.04em;
  color: var(--lime);
  text-shadow: 0 0 30px rgba(199, 255, 56, 0.3);
}

.ab-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ab-toggle-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.ab-player:not(.is-wet) .ab-toggle-label-dry {
  color: var(--purple-light);
}

.ab-player.is-wet .ab-toggle-label-wet {
  color: var(--lime);
}

.ab-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.14);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.ab-player.is-wet .ab-toggle {
  background: rgba(199, 255, 56, 0.18);
  border-color: rgba(199, 255, 56, 0.4);
}

.ab-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.ab-player.is-wet .ab-toggle-knob {
  transform: translateX(26px);
  background: var(--lime);
  box-shadow: 0 0 14px rgba(199, 255, 56, 0.6);
}

.ab-player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ab-play-btn {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--purple-light);
  border-radius: 50%;
  color: var(--text);
  background: rgba(168, 85, 247, 0.12);
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.ab-player.is-playing .ab-play-btn {
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
}

.ab-player.is-wet .ab-play-btn {
  border-color: var(--lime);
  background: rgba(199, 255, 56, 0.12);
}

.ab-player.is-wet.is-playing .ab-play-btn {
  box-shadow: 0 0 18px rgba(199, 255, 56, 0.5);
}

.ab-play-btn:hover {
  transform: scale(1.05);
}

.ab-play-btn .icon-pause {
  display: none;
}

.ab-player.is-playing .ab-play-btn .icon-play {
  display: none;
}

.ab-player.is-playing .ab-play-btn .icon-pause {
  display: inline;
}

/* Waveform animado (reaproveita @keyframes equalizer do style.css) */

.ab-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  flex-shrink: 0;
}

.ab-waveform span {
  display: block;
  width: 3px;
  height: 40%;
  min-height: 4px;
  border-radius: 6px;
  background: var(--purple-light);
  opacity: 0.55;
  transform-origin: center;
  transition: background 0.25s ease;
}

.ab-player.is-wet .ab-waveform span {
  background: var(--lime);
}

.ab-player.is-playing .ab-waveform span {
  animation: equalizer 0.72s ease-in-out infinite alternate;
  animation-delay: var(--delay);
  opacity: 1;
}

.ab-progress {
  position: relative;
  flex: 1;
  min-width: 120px;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.ab-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.ab-progress-played {
  position: absolute;
  left: 0;
  height: 4px;
  width: 0%;
  border-radius: 4px;
  background: var(--purple-light);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
  pointer-events: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.ab-player.is-wet .ab-progress-played {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(199, 255, 56, 0.5);
}

.ab-progress-handle {
  position: absolute;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple-light);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  pointer-events: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.ab-player.is-wet .ab-progress-handle {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(199, 255, 56, 0.5);
}

.ab-time,
.ab-time-sep {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 700px) {
  .ab-player {
    padding: 42px;
  }
}

/* ==========================================================================
   Feedback visual ao tocar no vídeo (ícone fantasma)
   ========================================================================== */

.video-tap-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.7rem;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
}

.video-tap-flash.is-flashing {
  animation: video-tap-flash 0.5s ease-out;
}

@keyframes video-tap-flash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.15);
  }
}