/* ─── RESET & REGRAS ANTI-OVERFLOW ABSOLUTAS ───────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0; /* Impede que elementos filhos em Flex e Grid forcem a largura além de 100% */
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-accent: rgba(13, 148, 136, 0.25);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;
  
  --cyan-600: #0284c7;
  --cyan-500: #0ea5e9;
  --cyan-50:  #f0f9ff;

  --emerald-600: #059669;
  --emerald-100: #d1fae5;

  --amber-600: #d97706;
  --amber-100: #fef3c7;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 28px -4px rgba(15, 23, 42, 0.12);
  --shadow-teal: 0 6px 20px -2px rgba(13, 148, 136, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

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

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

/* ─── CONTAINER FLUIDO SEGURO ────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── HEADER ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 0;
  gap: 8px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.brand-logo span.badge-pro {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--teal-100);
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--teal-600);
}

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

/* ─── BOTÕES PADRÃO ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-600), #0f766e);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-teal);
  transition: all 0.2s ease;
  text-align: center;
  white-space: normal;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f766e, #115e59);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  text-align: center;
  white-space: normal;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

/* ─── HERO SECTION ──────────────────────────────────────── */
.hero {
  padding: 44px 0 32px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 250px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 36px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.2);
  color: var(--teal-600);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.06);
}

.hero-title {
  font-size: clamp(1.65rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #09121f;
  word-break: break-word;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── STATS STRIP ───────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto 44px;
  width: 100%;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  border: 1px solid rgba(13, 148, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── SHOWCASE INTERATIVO (MOCKUP) ───────────────────────── */
.interactive-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 56px;
  width: 100%;
}

.showcase-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.tab-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: var(--radius-md);
  max-width: 100%;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--teal-600);
  box-shadow: var(--shadow-sm);
}

.demo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--emerald-600);
  background: var(--emerald-100);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-600);
}

/* ─── CORPO DOS MOCKUPS ─────────────────────────────────── */
.tab-content {
  display: none;
  padding: 24px 20px;
  width: 100%;
}

.tab-content.active {
  display: block;
}

.wa-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  width: 100%;
}

.subpanel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  overflow: hidden;
}

.subpanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 6px;
}

.subpanel-title {
  font-size: 0.94rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.filter-tags-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.filter-chip {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip.active {
  background: var(--teal-50);
  border-color: var(--teal-500);
  color: var(--teal-600);
}

.lead-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.lead-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 8px;
  width: 100%;
}

.lead-item:hover, .lead-item.selected {
  background: #ffffff;
  border-color: var(--teal-500);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.1);
}

.lead-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lead-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.lead-details {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-pending { background: var(--amber-100); color: var(--amber-600); }
.badge-retrieved { background: var(--emerald-100); color: var(--emerald-600); }
.badge-birthday { background: var(--cyan-50); color: var(--cyan-600); }

/* Celular Mockup WhatsApp */
.phone-mockup {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.phone-top-bar {
  background: #075e54;
  color: white;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-doc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.phone-screen-body {
  background: #efeae2;
  background-image: radial-gradient(#d3cbbe 0.75px, transparent 0.75px);
  background-size: 12px 12px;
  padding: 14px 10px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble {
  max-width: 90%;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  word-break: break-word;
  white-space: normal;
}

.bubble-out {
  align-self: flex-end;
  background: #dcf8c6;
  color: #111827;
  border-top-right-radius: 2px;
}

.bubble-in {
  align-self: flex-start;
  background: #ffffff;
  color: #111827;
  border-top-left-radius: 2px;
}

.bubble-time {
  font-size: 0.65rem;
  color: #6b7280;
  text-align: right;
  margin-top: 3px;
}

.phone-bottom-bar {
  background: #f0f2f5;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #e5e7eb;
}

.input-fake {
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 10px;
  font-size: 0.74rem;
  color: #9ca3af;
  flex: 1;
}

/* ─── ESTOQUE & QR CODE MOCKUP ───────────────────────────── */
.stock-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.scanner-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  overflow: hidden;
}

.scanner-viewfinder {
  border: 2px dashed rgba(20, 184, 166, 0.6);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  margin-bottom: 14px;
  position: relative;
}

.scanner-laser {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--teal-500);
  box-shadow: 0 0 10px var(--teal-500);
  animation: scanMove 2.2s infinite ease-in-out;
}

@keyframes scanMove {
  0% { top: 15%; opacity: 0.4; }
  50% { top: 85%; opacity: 1; }
  100% { top: 15%; opacity: 0.4; }
}

.qr-code-box {
  background: #ffffff;
  padding: 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.bip-action-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--teal-500);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
}

.stock-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
}

.stock-table th {
  text-align: left;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.stock-table td {
  padding: 8px 4px;
  font-size: 0.8rem;
  border-bottom: 1px solid #f1f5f9;
}

/* ─── CARDS DE BENEFÍCIOS ───────────────────────────────── */
.features-section {
  padding: 56px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

.card-icon-round {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-100);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── CALCULADORA DE ROI ────────────────────────────────── */
.roi-section {
  padding: 56px 0;
  background: var(--bg-primary);
  width: 100%;
}

.roi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
}

.slider-group {
  margin-bottom: 18px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.slider-label span.value-highlight {
  color: var(--teal-600);
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal-600);
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.roi-result-box {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.roi-badge {
  display: inline-block;
  background: rgba(20, 184, 166, 0.2);
  color: var(--teal-500);
  border: 1px solid rgba(20, 184, 166, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.roi-big-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.roi-big-number span.currency {
  font-size: 1.2rem;
  color: var(--teal-500);
  font-weight: 600;
}

.roi-subtext {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  padding: 36px 0;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.82rem;
  border-top: 1px solid #1e293b;
  width: 100%;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVIDADE MOBILE CIRÚRGICA (MENOR QUE 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .nav-menu {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    min-height: 48px;
    padding: 12px !important;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* SHOWCASE TABS */
  .interactive-showcase {
    margin-bottom: 36px;
  }

  .showcase-header {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .tab-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 4px;
    padding: 3px;
  }

  .tab-btn {
    padding: 8px 4px;
    font-size: 0.76rem;
    justify-content: center;
  }

  .demo-status-pill {
    align-self: center;
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .tab-content {
    padding: 14px 8px;
  }

  .wa-demo-grid,
  .stock-demo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .subpanel {
    padding: 14px 10px;
  }

  .filter-tags-scroll {
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 12px;
  }

  .filter-chip {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .lead-item {
    padding: 8px 10px;
    gap: 6px;
  }

  .lead-name {
    font-size: 0.82rem;
  }

  .lead-details {
    font-size: 0.7rem;
  }

  .badge-tag {
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  #dispatchBtn {
    width: 100%;
    min-height: 48px;
    font-size: 0.84rem;
    padding: 10px;
  }

  .phone-mockup {
    border-radius: 16px;
  }

  .cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .roi-card {
    grid-template-columns: 1fr;
    padding: 18px 12px;
    gap: 18px;
  }

  .roi-result-box {
    padding: 18px 14px;
  }

  .roi-big-number {
    font-size: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-inner div:last-child {
    text-align: center !important;
  }
}
