/* ==========================================================================
   CSS DESIGN SYSTEM - CENTRAL DE VENDAS ANTIGRAVITY
   ========================================================================== */

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Theme Green (Protocolo Desinchaço) */
  --green-primary: #10b981;
  --green-dark: #064e3b;
  --green-light: #d1fae5;
  --green-glow: rgba(16, 185, 129, 0.4);
  --green-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --green-badge: #ecfdf5;

  /* Theme Blue (Score 900) */
  --blue-primary: #3b82f6;
  --blue-dark: #1e3a8a;
  --blue-light: #dbeafe;
  --blue-glow: rgba(59, 130, 246, 0.4);
  --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  --blue-badge: #eff6ff;

  /* General Neutrals */
  --bg-dark: #0f172a;
  --bg-surface: #1e293b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-light: #e2e8f0;
  --border-dark: #334155;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px -15px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   TOP BAR DE CONTROLE DO INVESTIDOR
   ========================================================================== */
.investor-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.investor-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.brand-title {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.product-switch-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: white;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.tab-btn.highlight-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.tab-btn.highlight-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   VIEWS E VISIBILIDADE
   ========================================================================== */
.overview-section, .product-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.overview-section.active-view, .product-view.active-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   PAINEL GERAL DO INVESTIDOR (OVERVIEW)
   ========================================================================== */
.overview-section {
  padding: 50px 0 80px 0;
  background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #f8fafc 100%);
}

.overview-header {
  margin-bottom: 48px;
}

.overview-main-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 10px;
  margin-bottom: 12px;
}

.overview-main-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0 auto;
}

.products-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.product-inspect-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-inspect-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.border-green {
  border: 2px solid #a7f3d0;
}

.border-blue {
  border: 2px solid #bfdbfe;
}

.card-top-tag {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
}

.tag-green {
  background: #064e3b;
  color: #a7f3d0;
}

.tag-blue-badge {
  background: #1e3a8a;
  color: #bfdbfe;
}

.inspect-img-box {
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}

.inspect-cover {
  max-width: 240px;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.inspect-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.inspect-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.inspect-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.price-chip {
  margin: 16px 0;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.green-chip {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.blue-chip {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.price-chip strong {
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.deliverable-list {
  margin: 16px 0;
  flex: 1;
}

.deliverable-list h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 12px;
}

.deliverable-list ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.deliverable-list li {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.4;
}

.inspect-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.inspect-btn {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-green-outline {
  background: white;
  border: 2px solid #10b981;
  color: #065f46;
}
.btn-green-outline:hover { background: #ecfdf5; }

.btn-green-solid {
  background: #10b981;
  border: 2px solid #10b981;
  color: white;
}
.btn-green-solid:hover { background: #059669; }

.btn-blue-outline {
  background: white;
  border: 2px solid #3b82f6;
  color: #1e40af;
}
.btn-blue-outline:hover { background: #eff6ff; }

.btn-blue-solid {
  background: #3b82f6;
  border: 2px solid #3b82f6;
  color: white;
}
.btn-blue-solid:hover { background: #2563eb; }

.investor-metric-strip {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  border: 1px solid var(--border-light);
}

.metric-col {
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-icon {
  font-size: 2rem;
}

.metric-col strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
}

.metric-col small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   LANDING PAGES ESTILOS
   ========================================================================== */
.urgency-banner {
  background: #064e3b;
  color: #d1fae5;
  padding: 10px 20px;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  text-align: center;
}

.urgency-banner.banner-blue {
  background: #1e3a8a;
  color: #dbeafe;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.countdown-timer {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  color: #34d399;
}

.countdown-timer.timer-blue {
  color: #60a5fa;
}

.hero-section {
  padding: 60px 0;
  background: radial-gradient(circle at 50% 0%, rgba(209, 250, 229, 0.5), transparent 70%);
}

.theme-blue .hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(219, 234, 254, 0.6), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-badge);
  color: #065f46;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid #a7f3d0;
}

.tag-pill.tag-blue {
  background: var(--blue-badge);
  color: #1e40af;
  border-color: #bfdbfe;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  color: #0f172a;
}

.gradient-text-green {
  background: var(--green-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.social-proof-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.avatar-group {
  display: flex;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid white;
  margin-left: -10px;
}

.avatar:first-child {
  margin-left: 0;
}

.proof-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stars {
  color: #f59e0b;
  font-size: 0.95rem;
}

/* Botões de Ação */
.primary-btn {
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
  border: none;
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-green {
  background: var(--green-gradient);
  box-shadow: 0 10px 25px var(--green-glow);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.5);
}

.btn-blue {
  background: var(--blue-gradient);
  box-shadow: 0 10px 25px var(--blue-glow);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5);
}

.btn-label {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.btn-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 4px;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.security-badges {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ebook-3d-cover {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.glow-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
}

.green-glow { background: var(--green-glow); }
.blue-glow { background: var(--blue-glow); }

.floating-badge {
  position: absolute;
  z-index: 3;
  background: white;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-top-right {
  top: -10px;
  right: -10px;
}

.floating-badge.badge-bottom-left {
  bottom: -10px;
  left: -10px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-icon { font-size: 1.5rem; }
.floating-badge strong { display: block; font-size: 0.95rem; color: #0f172a; }
.floating-badge small { color: var(--text-muted); font-size: 0.75rem; }

.problem-section {
  padding: 80px 0;
  background: white;
}

.section-header { margin-bottom: 48px; }
.text-center { text-align: center; }

.sub-heading {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #10b981;
  margin-bottom: 8px;
}

.theme-blue .sub-heading { color: #3b82f6; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
}

.card-icon { font-size: 2.2rem; margin-bottom: 16px; }

.alert-box-callout {
  margin-top: 40px;
  background: #fef2f2;
  border: 2px dashed #f87171;
  padding: 24px 32px;
  border-radius: var(--radius-md);
  text-align: center;
}

.pricing-section {
  padding: 80px 0;
  background: white;
}

.pricing-box {
  background: radial-gradient(circle at 50% 0%, #1e293b, #0f172a);
  color: white;
  max-width: 650px;
  margin: 0 auto;
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.discount-stamp {
  position: absolute;
  top: -16px;
  right: 30px;
  background: #ef4444;
  color: white;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.main-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-heading);
  line-height: 1;
  margin: 8px 0;
}

.main-price .currency { font-size: 1.8rem; font-weight: 700; margin-top: 10px; margin-right: 4px; }
.main-price .amount { font-size: 4.5rem; font-weight: 900; color: #10b981; }
.theme-blue .main-price .amount { color: #3b82f6; }
.main-price .cents { font-size: 2rem; font-weight: 700; margin-top: 10px; }

/* ==========================================================================
   MODAL: EBOOK READER & CHECKOUT
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-backdrop.active { display: flex; }

.modal-container {
  background: white;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  background: var(--bg-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-badge {
  background: #f59e0b;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.modal-badge-secure {
  background: #10b981;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.close-modal-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.secondary-btn {
  background: #e2e8f0;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.ebook-reader-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.reader-tab {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.reader-tab.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

.ebook-reader-content {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 30px;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.recipe-box {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Checkout Modal */
.modal-checkout { max-width: 750px; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.payment-methods { display: grid; gap: 8px; margin-top: 8px; }
.pay-option {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.pay-option.selected { border-color: #10b981; background: #f0fdf4; color: #065f46; }
.order-bump-box {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
}
.checkout-summary {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}
.summary-line { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-muted); }
.summary-divider { height: 1px; background: var(--border-light); margin: 12px 0; }
.summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin-bottom: 20px; }
.total-price { color: #10b981; font-size: 1.3rem; }
.pay-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.pay-btn:hover { background: #059669; }
.guarantee-text { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; }

/* Responsive */
@media (max-width: 850px) {
  .products-comparison-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .inspect-actions { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}
