/* ==========================================================================
   METEORO - LP DE APRESENTAÇÃO DO PROJETO & ONBOARDING (V3 DEFINITIVA)
   Design System Corporativo Premium - Tema Claro Alternado & Ultra Responsivo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Palette Tema Claro Alternado Polido */
  --bg-white: #FFFFFF;
  --bg-light-1: #F8FAFC;  /* Slate Light */
  --bg-light-2: #F5F3EF;  /* Warm Neutral Light */
  --bg-light-blue: #F0F4F8; /* Soft Blue Light */
  
  --surface-white: #FFFFFF;
  --border-light: #E2E8F0;
  --border-accent: #CBD5E1;

  /* Texto */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;

  /* Brand Accents */
  --ember: #F36D21;
  --ember-hover: #D9550B;
  --ember-light: #FFF7ED;
  --copper: #BE6938;
  --gold: #D97706;
  --gold-light: #FEF3C7;

  /* Tipografia */
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout & Sombras */
  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2rem);
  --section-padding: clamp(3.5rem, 6vw, 5.5rem);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.125rem;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 32px -6px rgba(243, 109, 33, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-white);
  color: var(--text-dark);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-white);
  color: var(--text-body);
}

/* Remoção Global e Estrita de Sublinhados */
a, a:hover, a:focus, a:visited {
  text-decoration: none !important;
  color: inherit;
}

section, [id] {
  scroll-margin-top: 90px;
}

.container {
  width: min(100% - (var(--container-padding) * 2), var(--container-max));
  margin-inline: auto;
}

/* Tipografia */
.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text-dark);
}

.text-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  background: var(--ember-light);
  border: 1px solid rgba(243, 109, 33, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.text-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-body);
  max-width: 65ch;
  line-height: 1.65;
}

.text-highlight {
  color: var(--ember);
}

/* Botões Corporativos Espaçosos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  user-select: none;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember) 0%, #D9550B 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(243, 109, 33, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF7A29 0%, var(--ember) 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-white);
  border: 1px solid var(--border-accent);
  color: var(--text-dark) !important;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--ember);
  color: var(--ember) !important;
  background: var(--ember-light);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  max-width: 100%;
  display: flex;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   HEADER / NAVBAR (LIMPO, SEM QUEBRA DE LINHA, ULTRA POLIDO)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-symbol {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(243, 109, 33, 0.2);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.15rem;
  font-weight: 600;
}

/* Menu de Navegação Desktop Sleek */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-light-1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body) !important;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--ember) !important;
  background: var(--bg-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-cta-desktop {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-cta-desktop .btn {
  min-height: 38px;
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  background: var(--bg-light-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 1.35rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem var(--container-padding);
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.mobile-drawer.active {
  display: flex;
}

.mobile-drawer .nav-link {
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   SEÇÕES INTERCALADAS (BRANCO VS CLARO)
   ========================================================================== */
.section-white {
  background-color: var(--bg-white);
  padding-block: var(--section-padding);
}

.section-light-1 {
  background-color: var(--bg-light-1);
  padding-block: var(--section-padding);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-light-2 {
  background-color: var(--bg-light-2);
  padding-block: var(--section-padding);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-light-blue {
  background-color: var(--bg-light-blue);
  padding-block: var(--section-padding);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* ==========================================================================
   CARDS & GRIDS RESPONSIVOS (SEM ENCAVALAMENTO OU OVERFLOW)
   ========================================================================== */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
  width: 100%;
}

.grid-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  width: 100%;
}

.funnel-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
  width: 100%;
}

.grid-three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-body);
  width: 100%;
}

.card-white {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.card-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
  border-color: var(--border-accent);
}

/* E-MAILS TABS */
.email-tabs-header {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

.email-tab-btn {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  transition: all 0.2s ease;
  user-select: none;
}

.email-tab-btn.active {
  background: var(--ember);
  border-color: var(--ember);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(243, 109, 33, 0.3);
}

.email-preview-box {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.email-header-meta {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.email-body-text {
  font-size: 0.975rem;
  color: var(--text-body);
  line-height: 1.75;
}

.email-body-text p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   TABELAS DESKTOP VS CARDS MOBILE (SKILL 9 - ZERO CORTES E SEMPRE OCULTO NO DESKTOP)
   ========================================================================== */
.desktop-table-view {
  display: block !important;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-presentation {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.table-presentation th, .table-presentation td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.925rem;
  vertical-align: top;
}

.table-presentation th {
  background: var(--bg-light-1);
  font-weight: 700;
  color: var(--text-dark);
}

/* Mobile Cards View - TOTALMENTE OCULTO NO DESKTOP */
.mobile-cards-view {
  display: none !important;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  width: 100%;
}

.mobile-card-item {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.mobile-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ember);
  background: var(--ember-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.mobile-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.mobile-card-field {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-body);
}

.mobile-card-field label {
  display: block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

/* ==========================================================================
   BREAKPOINTS & RESPONSIVIDADE (SKILL 9)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-desktop { display: none !important; }
  .header-cta-desktop { display: none !important; }
  .menu-toggle { display: flex !important; }

  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .funnel-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-three-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Alternância de Tabela para Cards em Telas Menores */
  .desktop-table-view { display: none !important; }
  .mobile-cards-view { display: flex !important; }

  .grid-two-cols {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .email-tabs-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .hero-stats-grid {
    grid-template-columns: 1fr !important;
  }
  .funnel-steps-grid {
    grid-template-columns: 1fr !important;
  }
  .email-tabs-header {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr !important;
  }
  .logo-subtitle {
    display: none;
  }
}
