/* ═══════════════════════════════════════════
   CSS COMPLETO - LANDING PAGE HS V2.1 (FIXED)
   Com correções CRÍTICAS de responsividade e layout
   ═══════════════════════════════════════════ */

:root {
  /* Spacing Variables - Redefined via Media Queries below for strict compliance */
  --spacing-section-padding: 48px;
  --spacing-horizontal: 20px;
  --spacing-price-cta: 32px;
  --spacing-cta-faq: 40px;

  /* Colors */
  --color-primary: #667eea;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #128C7E;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-gray-bg: #f9fafb;
}

/* Strict Breakpoints for Variables */
@media (min-width: 768px) {
  :root {
    --spacing-section-padding: 60px;
    --spacing-horizontal: 32px;
    --spacing-price-cta: 40px;
    --spacing-cta-faq: 60px;
  }
}

@media (min-width: 1024px) {
  :root {
    --spacing-section-padding: 80px;
    --spacing-horizontal: 40px;
    --spacing-price-cta: 48px;
    --spacing-cta-faq: 80px;
  }
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  color: var(--color-text);
}

/* ═══ HERO SECTION ═══ */
.hero-section {
  min-height: 100vh;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Padding top to account for logo? */
  padding: 80px var(--spacing-horizontal) 20px;
  background: linear-gradient(135deg, #fef4f0 0%, #e8d5e0 50%, #d4e8f7 100%);
  text-align: center;
  position: relative;
  /* Espaço entre Hero e Seção de Preço: 0px -> Margin handled by next section */
  margin-bottom: 0;
}



.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.headline {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.subheadline {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ═══ SLIDER ═══ */
.slider-container {
  width: min(90vw, 600px);
  aspect-ratio: 1 / 1;
  margin: 24px auto 12px;
  /* Internal spacing */
  border-radius: clamp(12px, 2vw, 16px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
  user-select: none;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-container.after img {
  filter: saturate(1.1) brightness(1.05);
}

.image-container.before {
  width: 50%;
  border-right: 3px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.image-container.before img {
  max-width: none;
  width: 600px;
  /* JS handles resize */
  filter: saturate(0.9);
}

.slider-label {
  position: absolute;
  top: 16px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: clamp(11px, 2.5vw, 13px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  z-index: 10;
}

.slider-label-left {
  left: 16px;
}

.slider-label-right {
  right: 16px;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 40px;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: none;
}

.handle-line {
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.handle-circle::after {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
  border-radius: 50%;
}

.scroll-indicator {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  cursor: pointer;
  transition: transform 0.3s;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══ PRICING SECTION ═══ */
.pricing-section {
  background: #ffffff;
  /* Correct padding: Top/Bottom as per strict order, Horizontal var */
  padding: var(--spacing-section-padding) var(--spacing-horizontal) 0;
  text-align: center;
  /* Space between Hero and Price is 0. Hero has no margin-bottom. Price has no margin-top. */
  margin-top: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.3s both;
}

.price-value {
  font-size: clamp(56px, 12vw, 72px);
  font-weight: 700;
  line-height: 1;
  margin: 16px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.price-subtext {
  font-size: clamp(16px, 3.5vw, 18px);
  color: #666666;
  margin-bottom: 32px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vw, 16px);
  max-width: 600px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.6;
  text-align: left;
  opacity: 0;
  animation: slideInRight 0.4s ease-out both;
}

.benefit-item:nth-child(1) {
  animation-delay: 0.6s;
}

.benefit-item:nth-child(2) {
  animation-delay: 0.7s;
}

.benefit-item:nth-child(3) {
  animation-delay: 0.8s;
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-icon svg {
  color: #10b981;
}

/* ═══ CTA SECTION ═══ */
.cta-section {
  background: #ffffff;
  padding: 0 var(--spacing-horizontal);
  text-align: center;
  /* Spacing logic: 
       Price Section has padding-bottom 0 (changed above to 0, wait).
       User says "Espaço entre Seção de Preço e Botão CTA: 48/40/32px".
       Since CTA is in its own section, let's clear margins.
    */
  margin-top: var(--spacing-price-cta);
  margin-bottom: var(--spacing-cta-faq);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 12px);
  width: min(90%, 400px);
  /* Altura mínima: 64px(D)/60px(M) */
  min-height: 64px;
  padding: 16px clamp(16px, 4vw, 32px);

  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  /* Specified 1.4 */

  white-space: normal;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  border-radius: 32px;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;

  animation: pulseScale 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.3s both,
    gentlePulse 2s ease-in-out 3s infinite;
}

.cta-button span {
  text-align: center;
  /* Ensure multiline text centers */
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 767px) {
  .cta-button {
    min-height: 60px;
    /* Mobile strict 60px */
  }
}

/* ═══ FAQ SECTION (VISIBILITY FIX) ═══ */
.faq-section {
  background: var(--color-gray-bg);
  padding: var(--spacing-section-padding) var(--spacing-horizontal);
  margin-top: 0;
  /* Just in case */
  /* Ensure visibility always */
  display: block;
  opacity: 1;
  visibility: visible;
}

.faq-title {
  font-size: clamp(28px, 6vw, 32px);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: clamp(32px, 6vh, 48px);
}

.faq-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* "Minimo 24px" */
}

.faq-item {
  background: #ffffff;
  padding: clamp(20px, 4vw, 24px);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

  /* Remove opacity 0 to ensure it never disappears if JS fails */
  opacity: 1;
  transform: translateY(0);
}

/* Helper class for JS animation if it works */
.animate-on-scroll {
  /* Only hide if we really want to animate, but user complained about missing content.
       Let's default to visible and let JS add a class to hide-then-show if strict animation is needed.
       OR, keep it simple: Just allow the animation to run but start at opacity 1 for safety?
       No, that kills the animation.
       Safe middle ground: Use an animation that starts visible? 
       No, user wants "FAQ Visível". 
       I will set opacity: 1 and remove the .animate-on-scroll class from FAQ in HTML? 
       No, instruction said "Verificar se não há display: none". 
       I will keep standard animation but ensure thresholds are safe.
       Actually, I'll allow the .animate-on-scroll to do its thing but make sure the threshold is low in JS.
    */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.faq-question {
  font-size: clamp(16px, 3.8vw, 18px);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #1a1a1a;
}

.faq-answer {
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ═══ FOOTER ═══ */
.footer {
  background: #1a1a1a;
  color: #a0a0a0;
  /* Spacer from FAQ is 0px directly */
  margin-top: 0;
  padding: 32px var(--spacing-horizontal);
  text-align: center;
  font-size: clamp(12px, 2.8vw, 14px);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.footer-link {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffffff;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gentlePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: translateX(-50%);
  }

  25% {
    transform: translateX(calc(-50% - 10px));
  }

  75% {
    transform: translateX(calc(-50% + 10px));
  }
}

/* ═══ USES SECTION ═══ */
.usos-section {
  background: #ffffff;
  padding: var(--spacing-section-padding) var(--spacing-horizontal);
  text-align: center;
}

.usos-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: clamp(32px, 6vh, 48px);
}

.usos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.uso-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uso-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.uso-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.uso-label {
  margin-top: 16px;
  font-size: clamp(16px, 3.5vw, 18px);
  font-weight: 600;
  color: var(--color-text);
}

/* Mobile Stack */
@media (max-width: 768px) {
  .usos-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .uso-item img {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ═══ NEW CONVERSION ELEMENTS ═══ */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  box-shadow: none;
  z-index: 100;
  transform: translateY(100%);
  animation: slideUp 0.5s ease-out 2s forwards;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.sticky-cta-mobile a {
  display: block;
  width: 100%;
  max-width: 400px;
  background: var(--color-whatsapp);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  pointer-events: auto;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .sticky-cta-mobile {
    display: none;
  }
}

.secondary-cta {
  min-width: 280px;
  margin: 0 auto;
}

/* ═══ CONVERSION ELEMENTS CSS ═══ */

/* Countdown Timer */
.countdown-container {
  margin: -16px 0 24px;
  display: inline-block;
}

.countdown-label {
  font-size: 13px;
  color: #4a4a4a;
  font-weight: 600;
  margin-bottom: 4px;
}

.countdown-timer {
  font-size: 24px;
  font-weight: 800;
  color: #ef4444;
  /* Red color */
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  animation: gentlePulse 2s infinite;
}

/* Testimonial Box */
.testimonial-box {
  background: #fdf2f8;
  /* Soft pink/purple bg to match vibe */
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #fbcfe8;
  max-width: 400px;
  margin: 0 auto 24px;
  text-align: left;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: #db2777;
  color: white;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 700;
  font-size: 14px;
}

.testimonial-location {
  font-size: 12px;
  color: #666;
}

.testimonial-text {
  font-style: italic;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-time {
  font-size: 12px;
  color: #888;
}

/* Social Counter */
.social-counter {
  font-size: 14px;
  color: #15803d;
  margin-bottom: 32px;
  font-weight: 600;
}

/* CTA Responsive Text */
.desktop-text {
  display: inline;
}

.mobile-text {
  display: none;
}

@media (max-width: 768px) {
  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: inline;
  }

  .cta-button {
    flex-direction: column;
    gap: 4px;
    line-height: 1.2;
    padding: 12px 16px;
  }
}

/* Trust Builders */
.trust-builders {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Exit Intent Modal */
@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  60% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.exit-modal {
  backdrop-filter: blur(5px);
}

.exit-modal .cta-button {
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  display: flex !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}