/* 
 * EconomizApp Website Styles
 * Following the brand guidelines v1.0
 * Mobile-first approach with 4pt grid system
 */

/* ================================
   CSS Custom Properties (Variables)
   ================================ */
:root {
  /* Brand Colors */
  --color-primary-500: #00B37E;
  --color-primary-400: #03C48A;
  --color-secondary-500: #1479FF;
  --color-secondary-400: #1E8CFF;
  --color-neutral-900: #1A1A1A;
  --color-neutral-600: #4D4D4D;
  --color-neutral-300: #D1D5DB;
  --color-neutral-100: #F5F7FA;
  --color-success: #12B76A;
  --color-warning: #F79009;
  --color-error: #F04438;
  --color-white: #FFFFFF;
  --color-whatsapp-bg: #F6F2E9;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-secondary-500) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(0, 179, 126, 0.1) 0%, rgba(20, 121, 255, 0.1) 100%);

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font Sizes - Mobile First */
  --font-size-display: clamp(32px, 7vw, 48px);
  --font-size-h1: 32px;
  --font-size-h2: 24px;
  --font-size-h3: 20px;
  --font-size-body-lg: 18px;
  --font-size-body-sm: 16px;
  --font-size-caption: 14px;

  /* Line Heights */
  --line-height-display: 1.2;
  --line-height-h1: 1.25;
  --line-height-h2: 1.3;
  --line-height-h3: 1.35;
  --line-height-body-lg: 1.5;
  --line-height-body-sm: 1.55;

  /* Spacing Scale (4pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.15);

  /* Container Widths */
  --container-sm: 576px;
  --container-md: 720px;
  --container-lg: 920px;
  --container-xl: 1140px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-modal: 200;
  --z-floating: 300;
  --z-navbar: 400;
}

/* Desktop Font Sizes */
@media (min-width: 768px) {
  :root {
    --font-size-display: 56px;
    --font-size-h1: 40px;
    --font-size-h2: 28px;
    --font-size-h3: 24px;
  }
}

/* ================================
   Reset & Base Styles
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body-sm);
  color: var(--color-neutral-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: 2px solid var(--color-secondary-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================
   Typography
   ================================ */
.display {
  font-size: var(--font-size-display);
  line-height: var(--line-height-display);
  font-weight: var(--font-weight-bold);
}

h1,
.h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: var(--font-weight-bold);
  margin-top: var(--space-2);
}

h2,
.h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-2);
}

h3,
.h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-2);
}

.body-lg {
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-body-lg);
}

.body-sm {
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body-sm);
}

.gradient-text {
  color: #00B37E;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

/* ================================
   Layout & Grid
   ================================ */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 576px) {
  .container {
    max-width: var(--container-sm);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
    padding: 0 var(--space-6);
  }
}

@media (min-width: 992px) {
  .container {
    max-width: var(--container-lg);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* ================================
   Button Components
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  border: 2px solid transparent;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-500);
  border: 2px solid var(--color-primary-500);
}

.btn-secondary:hover {
  background: var(--color-primary-500);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-neutral-900);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--color-neutral-100);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-body-lg);
}

.btn-full {
  width: 100%;
}

.btn .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ================================
   Navigation
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
  z-index: var(--z-navbar);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body-lg);
  color: var(--color-neutral-900);
}

.logo {
  width: 50px;
  height: auto;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-600);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary-500);
}

.cta-button {
  white-space: nowrap;
}

/* Mobile Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  cursor: pointer;
  padding: var(--space-2);
}

.bar {
  width: 24px;
  height: 2px;
  background: var(--color-neutral-900);
  transition: all var(--transition-normal);
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .hamburger {
    display: none;
  }
}

/* Mobile Menu Drawer */
.nav-menu.mobile-active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: var(--space-6);
  gap: var(--space-6);
  box-shadow: var(--shadow-lg);
  animation: slideDown var(--transition-normal);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

/* ================================
   Hero Section
   ================================ */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding-top: 120px;
  padding-bottom: var(--space-24);
  overflow: hidden;
}

.hero-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hero-content {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-display);
  line-height: var(--line-height-display);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--font-size-body-lg);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-6);
  font-weight: var(--font-weight-semibold);
}

.hero-description {
  font-size: var(--font-size-body-sm);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-500);
  display: block;
}

.stat-label {
  font-size: var(--font-size-caption);
  color: var(--color-neutral-600);
  font-weight: var(--font-weight-semibold);
}

/* ================================
   Prova Social Balãozinho - Scroll Infinito Vertical
   ================================ */
.social-proof-bubble {
  max-width: 480px;
  margin: var(--space-6) 0 16px 0; /* Mudado de 'auto' para '0' para alinhar à esquerda */
  background: #FFFFFF;
  padding: var(--space-4);
  border-radius: 18px 18px 4px 18px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 179, 126, 0.15);
  height: 200px;
  overflow: hidden;
}

.social-proof-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 0px solid transparent;
  border-top: 8px solid #FFFFFF;
  z-index: 10;
}

.social-proof-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  pointer-events: none;
}

.social-proof-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.social-proof-item.active .social-proof-location {
  opacity: 1;
  visibility: visible;
  display: block;
}

.social-proof-item.active .social-proof-location::after {
  opacity: 1;
  visibility: visible;
}

.social-proof-item.exiting {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

.social-proof-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.social-proof-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ff8c00;
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.15);
  transition: all 0.3s ease;
}

.social-proof-avatar:hover {
  border-color: #ff7700;
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.25);
  transform: scale(1.05);
}

.social-proof-user-info {
  flex: 1;
  min-width: 0;
}

.social-proof-name {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-800);
  margin-bottom: -1px;
  line-height: 1.2;
  text-align: left;
}

.social-proof-profession {
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-600);
  font-size: var(--font-size-caption);
  line-height: 1.1;
  text-align: left;
}

.social-proof-message-container {
  flex: 1;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.social-proof-message {
  font-size: var(--font-size-body-sm);
  color: var(--color-neutral-700);
  line-height: 1.5;
  text-align: left;
}

.social-proof-location {
  font-size: 11px;
  color: #888;
  font-style: italic;
  text-align: right;
  margin-top: 8px;
  position: relative;
  display: block !important;
  visibility: visible !important;
}

.social-proof-location::after {
  content: '✓✓';
  color: #0084ff;
  font-size: 12px;
  font-style: normal;
  margin-left: 4px;
  font-weight: bold;
  letter-spacing: -3px;
  display: inline !important;
}

/* Responsivo Social Proof */
@media (max-width: 768px) {
  .social-proof-bubble {
    bottom: 15px;
    right: 15px;
    max-width: 280px;
    width: calc(100vw - 30px);
  }
  
  .social-proof-item {
    padding: 12px; /* Reduzido de 16px */
  }
  
  .social-proof-header {
    margin-bottom: 8px; /* Reduzido de 12px */
  }
  
  .social-proof-message-container {
    margin-bottom: 6px; /* Reduzido de 12px */
  }
  
  .social-proof-location {
    margin-top: 4px; /* Reduzido de 8px */
  }
}

@media (max-width: 480px) {
  .social-proof-bubble {
    bottom: 10px;
    right: 50%; /* Centraliza horizontalmente */
    left: auto; /* Remove left fixo */
    transform: translateX(50%); /* Ajuste fino para centralização */
    max-width: none; /* Remove limitação de largura */
    width: calc(100vw - 20px); /* Quase toda a tela */
    height: 140px; /* Altura menor para formato retangular */
  }
  
  .social-proof-item {
    height: 140px; /* Altura menor e mais retangular */
    padding: 10px 12px; /* Padding vertical menor, horizontal mantido */
  }
  
  .social-proof-header {
    margin-bottom: 4px; /* Reduzido de 6px */
  }
  
  .social-proof-message-container {
    margin-bottom: 3px; /* Reduzido de 6px */
  }
  
  .social-proof-message {
    font-size: 13px; /* Fonte um pouco maior para melhor legibilidade */
    line-height: 1.35; /* Line-height ligeiramente maior */
  }
  
  .social-proof-location {
    margin-top: 1px; /* Reduzido de 2px */
    font-size: 11px; /* Fonte um pouco maior */
  }
  
  /* Ajustar o rabinho do balão para centralização */
  .social-proof-bubble::after {
    right: 20px; /* Posição ajustada para a nova largura */
  }
  
  /* Cookie Banner Mobile Layout */
  .cookie-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  
  .cookie-buttons {
    order: -1; /* Move botões para o topo */
    width: 100%;
    gap: 8px;
  }
  
  .cookie-buttons .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
  }
  
  .btn-minimal {
    width: 100% !important;
    padding: 8px !important;
    font-size: 13px !important;
    margin-top: 0 !important;
  }
  
  .cookie-content p {
    order: 1; /* Move texto para baixo */
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Mudado de center para flex-start */
  gap: 16px; /* Reduzido de var(--space-4) que é 24px */
  margin-top: 8px; /* Reduzido de 16px para 8px */
}

.hero-note {
  font-size: var(--font-size-caption);
  color: var(--color-neutral-600);
}

.hero-image {
  display: flex;
  justify-content: center;
  animation: fadeInUp var(--transition-slow);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.phone-mockup {
  position: relative;
  /* Proporção iPhone 13 Pro: 146.7mm altura / 71.5mm largura = 2.05 */
  width: min(320px, 90vw);
  max-width: 400px;
  margin: 0 auto;
  /* Adiciona sombra sutil para profundidade */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.phone-frame {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: clamp(20px, 2.5vw, 28px);
  padding: clamp(4px, 0.8vw, 6px);
  position: relative;
  /* Mantendo proporção 2.05:1 */
  aspect-ratio: 71.5 / 146.7;
  width: 100%;
  /* Sombra adicional no frame */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsividade específica para desktop */
@media (min-width: 768px) {
  .phone-mockup {
    width: 320px;
    max-width: 320px;
  }

  .phone-frame {
    border-radius: 28px;
    padding: 6px;
  }
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: clamp(6px, 1.5vw, 8px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(25px, 6vw, 35px);
  height: clamp(2px, 0.4vw, 3px);
  background: #666;
  border-radius: 2px;
}

/* Responsividade específica para desktop - notch */
@media (min-width: 768px) {
  .phone-frame::before {
    top: 8px;
    width: 35px;
    height: 3px;
  }
}

.chat-interface {
  background: #128C7E;
  border-radius: clamp(16px, 2vw, 22px);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Responsividade específica para desktop - chat interface */
@media (min-width: 768px) {
  .chat-interface {
    border-radius: 22px;
  }
}

.chat-messages {
  flex: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
  /* WhatsApp background pattern */
  background-color: var(--color-whatsapp-bg);
  background-image:
    radial-gradient(circle at 2px 2px, rgba(217, 213, 205, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 12px 12px, rgba(217, 213, 205, 0.03) 0.5px, transparent 0.5px),
    radial-gradient(circle at 8px 18px, rgba(217, 213, 205, 0.04) 0.8px, transparent 0.8px),
    radial-gradient(circle at 18px 8px, rgba(217, 213, 205, 0.03) 0.6px, transparent 0.6px);
  background-size: 24px 24px, 20px 20px, 16px 16px, 22px 22px;
  background-position: 0 0, 6px 6px, 3px 9px, 9px 3px;
}

/* Barra de digitação WhatsApp - Reprodução exata da interface real */
.chat-input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(48px, 10vw, 56px);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 6px);
  padding: clamp(4px, 0.8vw, 6px) clamp(6px, 1.2vw, 8px);
  z-index: 10;
  border-top: 1px solid #E4E6EA;
}

/* Responsividade específica para desktop - barra de digitação */
@media (min-width: 768px) {
  .chat-input-bar {
    height: 56px;
    gap: 6px;
    padding: 6px 8px;
  }
}

.chat-input-plus {
  width: clamp(30px, 6vw, 36px);
  height: clamp(30px, 6vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.chat-input-plus svg {
  width: clamp(18px, 4vw, 22px);
  height: clamp(18px, 4vw, 22px);
  stroke: #8696A0;
  stroke-width: 2.5;
  fill: none;
}

/* Responsividade específica para desktop - ícone plus */
@media (min-width: 768px) {
  .chat-input-plus {
    width: 36px;
    height: 36px;
  }

  .chat-input-plus svg {
    width: 22px;
    height: 22px;
  }
}

.chat-input-field {
  flex: 1;
  height: clamp(30px, 6vw, 36px);
  background: #F0F2F5;
  border-radius: clamp(15px, 3vw, 18px);
  padding: 0 clamp(8px, 2vw, 12px);
  font-size: clamp(12px, 2.5vw, 14px);
  color: #3C3C43;
  border: none;
  outline: none;
  font-family: inherit;
  margin: 0 clamp(1px, 0.3vw, 2px);
}

.chat-input-field::placeholder {
  color: #8696A0;
  font-size: clamp(12px, 2.5vw, 14px);
}

/* Responsividade específica para desktop - campo de input */
@media (min-width: 768px) {
  .chat-input-field {
    height: 36px;
    border-radius: 18px;
    padding: 0 12px;
    font-size: 14px;
    margin: 0 2px;
  }

  .chat-input-field::placeholder {
    font-size: 14px;
  }
}

.chat-input-icons {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 6px);
}

.chat-input-icon {
  width: clamp(30px, 6vw, 36px);
  height: clamp(30px, 6vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.chat-input-icon svg {
  width: clamp(18px, 4vw, 22px);
  height: clamp(18px, 4vw, 22px);
  stroke: #8696A0;
  stroke-width: 2;
  fill: none;
}

.chat-input-mic svg {
  fill: #8696A0;
  stroke: none;
  width: clamp(16px, 3.5vw, 20px);
  height: clamp(16px, 3.5vw, 20px);
}

/* Responsividade específica para desktop - ícones */
@media (min-width: 768px) {
  .chat-input-icons {
    gap: 6px;
  }

  .chat-input-icon {
    width: 36px;
    height: 36px;
  }

  .chat-input-icon svg {
    width: 22px;
    height: 22px;
  }

  .chat-input-mic svg {
    width: 20px;
    height: 20px;
  }
}

/* Ajustar mensagens para não ficarem atrás da barra */
.chat-messages {
  padding-bottom: 76px;
  /* 60px da barra + 16px de espaço */
}

/* Responsividade da barra de digitação */
@media (min-width: 768px) {
  .chat-input-bar {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .chat-input-bar {
    position: sticky;
    bottom: 0;
  }
}

.chat-header {
  background: #075E54;
  padding: clamp(8px, 2vw, 12px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
  width: clamp(28px, 6vw, 36px);
  height: clamp(28px, 6vw, 36px);
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
}

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

.chat-name {
  color: white;
  font-weight: var(--font-weight-semibold);
  font-size: clamp(12px, 2.5vw, 14px);
}

.chat-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(10px, 2vw, 12px);
}

/* Responsividade específica para desktop - header */
@media (min-width: 768px) {
  .chat-header {
    padding: 12px;
    gap: 12px;
  }

  .chat-avatar {
    width: 36px;
    height: 36px;
  }

  .chat-name {
    font-size: 14px;
  }

  .chat-status {
    font-size: 12px;
  }
}

.chat-messages {
  flex: 1;
  padding: clamp(8px, 2vw, 16px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vw, 12px);
  overflow-y: auto;
  height: calc(100% - clamp(50px, 12vw, 60px));
}

.message {
  max-width: 85%;
  padding: clamp(6px, 1.2vw, 8px) clamp(8px, 1.8vw, 10px);
  padding-bottom: clamp(16px, 3.5vw, 20px);
  /* Espaço para timestamp */
  border-radius: clamp(6px, 1.2vw, 8px);
  font-size: clamp(12px, 2.5vw, 13px);
  line-height: 1.4;
  animation: messageSlide 0.3s ease-out;
  word-wrap: break-word;
  position: relative;
}

/* Responsividade específica para desktop - mensagens */
@media (min-width: 768px) {
  .message {
    padding: 8px 10px;
    padding-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
  }
}

.message.received {
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--color-neutral-900);
  border-radius: 0 clamp(6px, 1.2vw, 8px) clamp(6px, 1.2vw, 8px) clamp(6px, 1.2vw, 8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.sent {
  align-self: flex-end;
  background: #DCF8C6;
  color: var(--color-neutral-900);
  border-radius: clamp(6px, 1.2vw, 8px) 0 clamp(6px, 1.2vw, 8px) clamp(6px, 1.2vw, 8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Adicionar timestamp sutil */
.message.sent::after {
  content: "14:32";
  position: absolute;
  bottom: clamp(3px, 0.6vw, 4px);
  right: clamp(6px, 1.2vw, 8px);
  font-size: clamp(9px, 2vw, 11px);
  color: rgba(0, 0, 0, 0.4);
  font-weight: 400;
}

.message.received::after {
  content: "14:33";
  position: absolute;
  bottom: clamp(3px, 0.6vw, 4px);
  right: clamp(6px, 1.2vw, 8px);
  font-size: clamp(9px, 2vw, 11px);
  color: rgba(0, 0, 0, 0.4);
  font-weight: 400;
}

/* Responsividade específica para desktop - mensagens e timestamps */
@media (min-width: 768px) {
  .message.received {
    border-radius: 0 8px 8px 8px;
  }

  .message.sent {
    border-radius: 8px 0 8px 8px;
  }

  .message.sent::after,
  .message.received::after {
    bottom: 4px;
    right: 8px;
    font-size: 11px;
  }
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  /* Adiciona sombra sutil para profundidade */
  filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, 0.08));
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.hero-wave path {
  fill: var(--color-whatsapp-bg);
}

@media (min-width: 768px) {
  .hero {
    padding-bottom: var(--space-16);
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .hero-text {
    text-align: left;
  }

  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-cta {
    align-items: flex-start;
  }

  .phone-mockup {
    width: 280px;
  }
}

/* Mobile pequeno - ajustes para o mockup */
@media (max-width: 480px) {
  .phone-mockup {
    width: 220px;
  }

  .phone-frame {
    height: 451px;
    /* 220px * 2.05 */
  }
}

@media (max-width: 360px) {
  .phone-mockup {
    width: 200px;
  }

  .phone-frame {
    height: 410px;
    /* 200px * 2.05 */
  }
}

/* ================================
   Section Styles
   ================================ */

/* Garantir que seções sem background específico usem o fundo WhatsApp */
section:not([class*="hero"]):not([class*="cta"]):not([class*="footer"]) {
  background-color: var(--color-whatsapp-bg);
}

.section-title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.section-subtitle {
  font-size: var(--font-size-body-lg);
  color: var(--color-neutral-600);
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   Problem/Solution Section
   ================================ */
.problem-solution {
  padding: var(--space-24) 0;
  background: var(--color-whatsapp-bg);
}

.cards-grid {
  display: grid;
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: none;
  border: none;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  background: #00B37E;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.card-icon:hover {
  transform: scale(1.1);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary-500);
}

.benefit-card h3 {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.benefit-card p {
  color: var(--color-neutral-600);
  line-height: var(--line-height-body-lg);
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* ================================
   Features Section
   ================================ */
.features {
  padding: 80px 0;
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 179, 126, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  text-align: left;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 120px;
}

.feature-item:hover {
  box-shadow: 0 8px 32px rgba(0, 179, 126, 0.15);
  border-color: rgba(0, 179, 126, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 179, 126, 0.1);
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: #00B37E;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .feature-icon {
  background: #00B37E;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 179, 126, 0.3);
}

.feature-item:hover .feature-icon svg {
  stroke: white;
}

.feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item h3 {
  margin-bottom: 8px;
  color: var(--color-neutral-900);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.feature-item p {
  color: #6B7280;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ================================
   Pricing Section
   ================================ */
.pricing {
  padding: var(--space-24) 0;
  background: var(--color-whatsapp-bg);
}

.pricing-grid {
  display: grid;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--color-white);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--color-primary-500);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.07);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #00B37E;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-header {
  margin-bottom: var(--space-8);
}

.pricing-card h3 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.currency {
  font-size: var(--font-size-body-lg);
  color: var(--color-neutral-600);
}

.amount {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-500);
}

.period {
  font-size: var(--font-size-body-sm);
  color: var(--color-neutral-600);
}

.plan-description {
  color: var(--color-neutral-600);
  font-size: var(--font-size-body-sm);
}

.pricing-features {
  margin-bottom: var(--space-8);
  text-align: left;
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

.feature span {
  color: var(--color-neutral-600);
  font-size: var(--font-size-body-sm);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================
   FAQ Section
   ================================ */
.faq {
  padding: var(--space-24) 0;
  background: var(--color-neutral-100);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-6);
  text-align: left;
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-900);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary-500);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-neutral-600);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-neutral-600);
  line-height: var(--line-height-body-lg);
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
  padding: 80px 0;
  background: #00B37E;
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-4);
  color: white;
}

.cta-content p {
  font-size: var(--font-size-body-lg);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.9);
}

.cta-note {
  font-size: var(--font-size-caption);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-4);
}

.cta-section .btn-primary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

/* ================================
   Footer
   ================================ */
.footer {
  background: #282C34;
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body-lg);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-6);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--color-primary-500);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: grid;
  gap: var(--space-8);
  text-align: center;
}

.footer-column h4 {
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-primary-400);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-caption);
}

.footer-bottom p:first-child {
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16);
  }

  .footer-brand {
    text-align: left;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-brand p {
    margin-left: 0;
    margin-right: 0;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-links {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }
}

/* ================================
   Floating WhatsApp CTA
   ================================ */
.floating-whatsapp {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 64px;
  height: 64px;
  background: var(--color-primary-500);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-floating);
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: var(--shadow-xl), 0 0 0 0 rgba(0, 179, 126, 0.7);
  }

  70% {
    box-shadow: var(--shadow-xl), 0 0 0 10px rgba(0, 179, 126, 0);
  }

  100% {
    box-shadow: var(--shadow-xl), 0 0 0 0 rgba(0, 179, 126, 0);
  }
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
  background: var(--color-primary-400);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp {
    animation: none;
  }
}

/* ================================
   Cookie Banner
   ================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: var(--space-4);
  z-index: var(--z-modal);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body-lg);
}

.cookie-content a {
  color: var(--color-primary-400);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Botão discreto para cookies necessários */
.btn-minimal {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-body-xs);
  font-weight: 300;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: -4px;
}

.btn-minimal:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* ================================
   Utility Classes
   ================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ================================
   Animation Classes
   ================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.scale-in {
  animation: scaleIn 0.4s ease-out;
}

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

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

/* ================================
   Print Styles
   ================================ */
@media print {

  .navbar,
  .floating-whatsapp,
  .cookie-banner {
    display: none;
  }

  .hero {
    padding-top: var(--space-8);
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  .pricing-card,
  .benefit-card,
  .feature-item {
    page-break-inside: avoid;
  }
}