/* ================================================================================
   CALCULADORA TCO - DESIGN SYSTEM
   Especificações: Tema claro profissional para comparação veicular
   ================================================================================ */

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

:root {
  /* Novas Cores Baseadas no Design */
  --primary: #00a868; /* Verde Principal */
  --primary-hover: #048c58;
  --secondary: #2563eb; /* Azul Royal */
  --accent-orange: #f97316;
  --accent-purple: #a855f7;
  
  /* Cores de Fundo */
  --bg-gradient: #f0fdf9; /* Fundo Menta Claro */
  --bg-card: #ffffff;
  --bg-section: #ffffff;
  --bg-contrast: #111827; /* Footer Escuro */
  
  /* Cores de Texto */
  --heading-primary: #111827;
  --heading-secondary: #374151;
  --text-primary: #4b5563;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  
  /* Cores de Bordas */
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  --border-focus: #00a868;
  
  /* Cores de Status */
  --success: #059669;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Raios */
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Fonte */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================================================================================
   RESET E BASE
   ================================================================================ */

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ================================================================================
   CONTAINER
   ================================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================================================
   HEADER
   ================================================================================ */

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--heading-primary);
}

.brand:hover {
  color: var(--primary);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  background: transparent;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.navlinks {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navlinks a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.navlinks a:hover {
  color: var(--primary);
}

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

/* Menu Mobile Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 2px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 5px;
}

.menu-toggle:hover {
  background: var(--bg-section);
  border-color: var(--primary);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 100px 30px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading-primary);
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.mobile-nav a:hover {
  background: var(--bg-section);
  color: var(--primary);
}

.mobile-nav .btn {
  width: 100%;
  max-width: 300px;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 24px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* ================================================================================
   TIPOGRAFIA
   ================================================================================ */

.h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--heading-primary);
  line-height: 1.2;
  margin: 0 0 16px;
}

.h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--heading-primary);
  margin: 0 0 12px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-primary);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading-secondary);
  margin: 0 0 8px;
}

.lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
}

.sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Melhor contraste no texto principal do hero */
.hero .sub {
  color: var(--text-secondary);
}

.small {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

label, .label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.note {
  font-size: 15px;
  color: var(--text-muted);
  margin: 16px 0;
}

/* ================================================================================
   BOTÕES
   ================================================================================ */

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--border-secondary);
  background: #f1f5f9;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 180px;
  box-shadow: var(--shadow-button);
}

.btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-button-hover);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  min-width: auto;
  padding: 12px 24px;
}

.btn-ghost:hover {
  background: #f1f5f9;
  border-color: transparent;
}

button:disabled, .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ================================================================================
   HERO / PREVIEW
   ================================================================================ */
.hero {
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.text-primary {
  color: var(--primary);
}

.btn-lg {
  font-size: 18px;
  padding: 18px 48px;
}

.btn-outline {
  background: white;
  border-color: var(--border-secondary);
  color: var(--heading-secondary);
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: var(--primary);
  color: var(--primary);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--heading-primary);
  color: var(--primary);
}

.stat-lbl {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Preview Card */
.preview-card {
  background: white;
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 30px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.preview-header h3 {
  font-size: 18px;
  color: var(--heading-primary);
  margin: 0;
}

.icon-box-sm {
  width: 36px;
  height: 36px;
  background: #ecfdf5;
  color: var(--success);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.preview-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.bg-orange-soft { background: #fff7ed; }
.bg-green-soft { background: #ecfdf5; }

.bg-orange { background: var(--accent-orange); color: white; }
.bg-green { background: var(--success); color: white; }

.preview-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.preview-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.preview-icon img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.preview-info {
  flex: 1;
}

.preview-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.preview-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading-primary);
  margin-bottom: 8px;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.preview-result-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 24px 0;
}

.preview-result-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.preview-result-val {
  font-size: 28px;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 4px;
}

.preview-result-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-block {
  width: 100%;
  display: block;
}

/* ================================================================================
   CARDS
   ================================================================================ */

.card {
  background: white;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.pad {
  padding: 35px;
}

.soft {
  background: var(--bg-section);
  border: 2px solid var(--border-secondary);
}

/* ================================================================================
   FORMS
   ================================================================================ */

input, select, textarea {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-main);
  color: var(--heading-secondary);
  background: white;
  border: 2px solid var(--border-secondary);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  outline: none;
}

input::placeholder {
  color: var(--text-placeholder);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

form > div {
  margin-bottom: 20px;
}

form > div:last-of-type {
  margin-bottom: 0;
}

/* ================================================================================
   LAYOUT GRIDS
   ================================================================================ */

.grid {
  display: grid;
  gap: 30px;
}

.cols2 {
  grid-template-columns: 1fr 1fr;
}

.cols3 {
  grid-template-columns: repeat(3, 1fr);
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.layout {
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
}

/* ================================================================================
   HERO
   ================================================================================ */

.hero {
  padding: 60px 0;
  text-align: center;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  margin: 30px 0;
}

/* ================================================================================
   SECTIONS
   ================================================================================ */

.section {
  padding: 60px 0;
}

.section-highlight {
  background: var(--bg-section);
  border-top: 2px solid var(--border-primary);
  border-bottom: 2px solid var(--border-primary);
}

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

.section-header .h2 {
  border-bottom: none;
  font-size: 32px;
  margin-top: 8px;
}

/* ================================================================================
   BADGES E PILLS
   ================================================================================ */

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-economia);
  border: 2px solid #93c5fd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--info);
  margin-bottom: 16px;
}

.badge-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #6ee7b7;
  color: #065f46;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 2px solid #93c5fd;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.user-badge {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .user-badge {
    max-width: 120px;
    font-size: 12px;
    padding: 6px 10px;
  }
}

.simulation-info {
  margin-top: 12px;
}

.simulation-info-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  justify-content: center;
}

/* ================================================================================
   SOCIAL PROOF
   ================================================================================ */

.social-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 3px solid var(--border-primary);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.proof-item {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
  border-radius: 12px;
  border: 2px solid #93c5fd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proof-item:first-child {
  padding: 32px 24px;
}

.proof-item:last-child {
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--border-secondary);
  box-shadow: none;
}

.proof-item:first-child:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.proof-number {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.proof-item:last-child .proof-number {
  font-size: 20px;
  font-weight: 700;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: normal;
}

.proof-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.4;
}

.proof-item:last-child .proof-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ================================================================================
   KPIs
   ================================================================================ */

.kpis {
  display: grid;
  gap: 16px;
}

.kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-section);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius);
  gap: 16px;
}

.kpi b {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading-secondary);
}

.kpi span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.kpi .v {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}

.kpi .smallv {
  font-size: 17px;
}

.kpi-featured {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #6ee7b7;
  border-width: 3px;
}

.kpi-featured .v {
  color: var(--success);
  font-size: 24px;
}

.kpi-highlight-green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #6ee7b7;
  border-width: 3px;
}

.kpi-highlight-green .v {
  color: var(--success);
}

.kpi-highlight-blue {
  background: var(--bg-economia);
  border-color: #93c5fd;
  border-width: 3px;
}

.kpi-highlight-blue .v {
  color: var(--primary);
}

.economy-highlight {
  font-weight: 600;
}

.kpi.highlight {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #6ee7b7;
  border-width: 3px;
}

.kpi.highlight .v {
  color: var(--success);
}

/* ================================================================================
   COMPARE SECTION (NEW)
   ================================================================================ */

.section-center {
  max-width: 800px;
  margin: 0 auto 60px;
}

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

.compare-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.bg-orange-light { background: #fff7ed; }
.bg-green-light { background: #ecfdf5; }

.compare-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.icon-box-md {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.compare-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-primary);
  margin: 0;
}

.compare-sub {
  font-size: 15px;
  color: var(--text-secondary);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 12px;
}

.list-item span {
  color: var(--text-secondary);
  font-size: 16px;
}

.list-item strong {
  color: var(--heading-primary);
  font-weight: 600;
}

.compare-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 2px solid rgba(0,0,0,0.1);
  font-size: 18px;
  font-weight: 700;
}

.text-orange { color: var(--accent-orange) !important; }
.text-green { color: var(--success) !important; }

/* Result Box Hero */
.result-box-hero {
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.4);
  max-width: 980px;
  margin: 44px auto 0;
}

.trophy-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  color: #fbbf24;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.result-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.result-value-hero {
  font-size: 56px;
  font-weight: 900;
  color: #fef08a; /* Yellow-200 */
  margin-bottom: 15px;
  letter-spacing: -2px;
  line-height: 1;
}

.text-white { color: white; }
.text-white-70 { color: rgba(255,255,255,0.8); font-size: 18px; }

.result-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.result-col {
  background: rgba(255,255,255,0.15);
  padding: 20px 40px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  min-width: 250px;
}

.lbl-light {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 5px;
}

.val-white {
  font-size: 24px;
  color: white;
  font-weight: 700;
}

/* Responsive updates for new components */
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-content { margin-bottom: 40px; }
  
  .compare-wrapper { grid-template-columns: 1fr; }
  
  .result-value-hero { font-size: 42px; }
  .result-grid { flex-direction: column; gap: 20px; }
  .result-col { width: 100%; }
}

  display: grid;
  gap: 24px;
}

.compare-block {
  padding: 20px;
  background: white;
  border: 2px solid var(--border-primary);
  border-radius: var(--radius);
}

.compare-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

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

.compare-item .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-item .big {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-primary);
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.compare-delta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-section);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

.compare-delta b {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.compare-delta.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.compare-delta.success b {
  color: var(--success);
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.payback-info {
  text-align: center;
  padding: 8px 12px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-section);
  border-radius: 8px;
}

.payback-info strong {
  color: var(--primary);
  font-weight: 600;
}

/* ================================================================================
   VEHICLE BOX
   ================================================================================ */

.vehicle-box {
  padding: 20px !important;
}

.vehicle-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-secondary);
}

.kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-primary);
}

.kv:last-child {
  border-bottom: none;
}

.kv span {
  font-size: 14px;
  color: var(--text-secondary);
}

.kv b {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-secondary);
}

.kv.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--border-secondary);
}

.kv.total b {
  font-size: 17px;
  color: var(--primary);
  font-weight: 700;
}

/* ================================================================================
   BARS (GRÁFICO DE BARRAS)
   ================================================================================ */

.bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  height: 200px;
  padding: 20px 0;
  border-bottom: 2px solid var(--chart-axis);
  position: relative;
}

.bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar .col {
  width: 100%;
  background: linear-gradient(to top, var(--primary), #60a5fa);
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.bar:hover .col {
  filter: brightness(1.1);
}

.bar .val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.bar .lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px;
  background: var(--bg-section);
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
}

/* ================================================================================
   FEATURES
   ================================================================================ */

.feature {
  text-align: center;
  padding: 30px 25px !important;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
}

.ico {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--bg-economia);
  border: 3px solid #93c5fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.feature p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================================================================================
   TABS
   ================================================================================ */

.tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-section);
  padding: 6px;
  border-radius: var(--radius);
  border: 2px solid var(--border-primary);
}

.tab {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.tab:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.tab.active {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* ================================================================================
   TABELA
   ================================================================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

thead {
  background: #f1f5f9;
  border-bottom: 3px solid var(--border-secondary);
}

th {
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
}

td {
  padding: 14px 16px;
  font-size: 15px;
  color: var(--heading-secondary);
  border-bottom: 1px solid var(--border-primary);
}

tbody tr:hover {
  background: var(--bg-section);
}

tbody tr:last-child td {
  border-bottom: none;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.mini-table th, .mini-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-primary);
  text-align: left;
  font-size: 15px;
}

.mini-table td {
  text-align: right;
  font-weight: 600;
  color: var(--heading-secondary);
}

.mini-table tr:last-child th, .mini-table tr:last-child td {
  border-bottom: 0;
}

/* ================================================================================
   CANVAS (GRÁFICO)
   ================================================================================ */

.chart-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: 20px;
}

canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: var(--radius-sm);
}

/* ================================================================================
   ECONOMIA BOX
   ================================================================================ */

.economia-box {
  margin-top: 30px;
  padding: 25px;
  background: var(--bg-economia);
  border: 3px solid #93c5fd;
  border-radius: 15px;
}

.economia-valor {
  font-size: 24px;
  font-weight: 700;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 12px;
}

.economia-valor.negativo {
  color: var(--error);
}

/* ================================================================================
   FOOTER ACTIONS
   ================================================================================ */

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.footer-actions .btn {
  flex: 1;
  min-width: 140px;
}

/* ================================================================================
   BUTTON GROUP
   ================================================================================ */

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
}

/* ================================================================================
   MENSAGEM DE ERRO
   ================================================================================ */

.error-box {
  display: none;
  background: #fee2e2;
  border: 2px solid #fecaca;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #991b1b;
  font-weight: 500;
  margin-bottom: 20px;
}

.error-box.show {
  display: block;
}

.error-box ul {
  margin: 8px 0 0 20px;
}

/* ================================================================================
   FAQ
   ================================================================================ */

.faq {
  display: grid;
  gap: 16px;
}

.faq details {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid var(--border-primary);
  padding: 20px;
  transition: all 0.2s ease;
}

.faq details[open] {
  background: var(--bg-section);
  border-color: var(--primary);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--heading-secondary);
  margin-bottom: 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 12px;
  color: var(--primary);
}

.faq p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}

/* ================================================================================
   FOOTER
   ================================================================================ */

.footer {
  padding: 48px 0;
  margin-top: 64px;
  border-top: 2px solid var(--border-primary);
  background: var(--bg-section);
}

.footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ================================================================================
   UTILITIES
   ================================================================================ */

.mt-16 {
  margin-top: 16px;
}

.mt-50 {
  margin-top: 50px;
  text-align: center;
}

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

.hr {
  border: none;
  border-top: 2px solid var(--border-primary);
  margin: 20px 0;
}

/* ================================================================================
   MOCK (Visualização)
   ================================================================================ */

.mock {
  padding: 20px;
  display: grid;
  gap: 16px;
  text-align: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: var(--radius-lg);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================================================================================
   ANIMAÇÕES
   ================================================================================ */

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

.card {
  animation: fadeIn 0.5s ease;
}

/* ================================================================================
   RESPONSIVIDADE - TABLET
   ================================================================================ */

@media (max-width: 900px) {
  .navlinks {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .actions .btn-ghost:not(#logout),
  .actions .btn:not(#logout) {
    display: none;
  }
  
  .actions .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .h1 {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .h2 {
    font-size: 22px;
    padding-bottom: 12px;
  }
  
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .hero-ctas {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .cols2, .cols3 {
    grid-template-columns: 1fr;
  }
  
  .row2, .row3 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .layout {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .footer-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }
  
  .chart-container {
    height: 280px;
  }
  
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .social-proof {
    grid-template-columns: 1fr;
    padding: 20px;
    margin-top: 30px;
  }
  
  .pad {
    padding: 20px 16px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .hero {
    padding: 30px 0;
  }
  
  /* Header Mobile */
  .header {
    padding: 0;
  }
  
  .nav {
    padding: 12px 0;
    gap: 12px;
  }
  
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  
  .logo {
    width: 32px;
    height: 32px;
  }
  
  /* Tabs Mobile */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  /* KPIs Mobile */
  .kpis {
    gap: 12px;
  }
  
  .kpi {
    padding: 16px;
    flex-direction: column;
    gap: 10px;
  }
  
  .kpi .v {
    font-size: 18px;
    text-align: left;
  }
  
  .kpi-featured .v {
    font-size: 20px;
  }
  
  /* Pills Mobile */
  .pill-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .pill-row::-webkit-scrollbar {
    display: none;
  }
  
  .pill {
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 12px;
  }
  
  /* Compare blocks */
  .compare-item .big {
    font-size: 20px;
    padding: 10px 16px;
  }
  
  .compare-delta {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .compare-delta.success b {
    font-size: 22px;
  }
  
  /* Proof items */
  .proof-number {
    font-size: 32px;
  }
  
  .proof-item:first-child {
    padding: 24px 20px;
  }
}

/* ================================================================================
   RESPONSIVIDADE - MOBILE PEQUENO
   ================================================================================ */

@media (max-width: 480px) {
  .h1 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .h2 {
    font-size: 20px;
    padding-bottom: 10px;
  }
  
  .pad {
    padding: 16px 14px;
  }
  
  input, select {
    height: 46px;
    font-size: 15px;
    padding: 10px 14px;
  }
  
  th, td {
    font-size: 12px;
    padding: 10px 8px;
  }
  
  .bar .val {
    font-size: 11px;
  }
  
  .bar .lbl {
    font-size: 12px;
    padding: 6px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 15px;
    min-width: auto;
  }
  
  /* Header ultra mobile */
  .brand span:last-child {
    font-size: 14px;
  }
  
  .logo {
    width: 28px;
    height: 28px;
  }
  
  .actions .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  /* KPIs ultra compact */
  .kpi {
    padding: 14px;
  }
  
  .kpi b {
    font-size: 14px;
  }
  
  .kpi span {
    font-size: 12px;
  }
  
  .kpi .v {
    font-size: 16px;
  }
  
  /* Hero mobile */
  .hero {
    padding: 20px 0;
  }
  
  .sub {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  .note {
    font-size: 13px;
  }
  
  .badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  /* Social proof compact */
  .social-proof {
    padding: 16px;
    gap: 12px;
  }
  
  .proof-number {
    font-size: 28px;
    margin-bottom: 8px;
  }
  
  .proof-label {
    font-size: 13px;
  }
  
  .proof-item:first-child {
    padding: 20px 16px;
  }
  
  /* Tabs compact */
  .tab {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  /* Compare blocks compact */
  .compare-item .big {
    font-size: 18px;
    padding: 8px 14px;
  }
  
  .compare-delta {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .compare-delta.success b {
    font-size: 20px;
  }
  
  /* Pills compact */
  .pill {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .simulation-info-title {
    font-size: 11px;
  }
  
  /* Chart */
  .card[style*="margin-top: 30px"] {
    margin-top: 20px !important;
  }
  
  .card[style*="margin-top: 30px"] .h2 {
    font-size: 18px;
  }
}

/* ================================================================================
   FIM DO CSS
   ================================================================================ */
/* ================================================================================
   V2 REDESIGN - NEW STYLES (ADDED ONLY)
   ================================================================================ */

/* --- Utilities --- */
.bg-light { background-color: #f9fafb; border-top: 1px solid var(--border-primary); border-bottom: 1px solid var(--border-primary); }
.text-green { color: var(--success); }
.text-orange { color: var(--accent-orange); }
.bg-orange-light { background-color: #fff7ed; padding: 2px 6px; border-radius: 4px; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.grid { display: grid; gap: 24px; }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols2 { grid-template-columns: repeat(2, 1fr); }

/* --- Section Spacing --- */
.section { padding: 60px 0; }

/* --- Hero V2 --- */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at top right, rgba(0, 168, 104, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent 40%);
}

.hero .container {
  display: block;
}

.hero-content {
    max-width: 540px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 168, 104, 0.2);
}

.hero .h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #111827, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Force the highlighted word to be solid green (the hero H1 uses gradient text) */
.hero .h1 .text-primary {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--primary) !important;
  color: var(--primary) !important;
}

.preview-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.preview-card:hover {
    transform: rotate(0deg) scale(1.01);
}

.preview-header {
  background: #f8fafc;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-body {
  padding: 24px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e2e8f0;
}

.stat-item .label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-item .value { font-size: 18px; font-weight: 700; color: #0f172a; }

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}
.stat-pill.success { background: #dcfce7; color: #166534; }

/* --- Comparison Section --- */
.compare-wrapper {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  position: relative;
}

.compare-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  position: relative;
}
.compare-card.highlight { border: 2px solid var(--primary); background: #f0fdf9; }

.vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #94a3b8;
  z-index: 2;
  border: 4px solid #f8fafc;
}

.car-icon { font-size: 24px; margin-bottom: 16px; display: block; }
.card-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #64748b; font-weight: 600; margin-bottom: 8px; }
.price-tag { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 20px; letter-spacing: -1px; }

.cost-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: #475569;
}
.cost-list li span:last-child { font-weight: 600; color: #1e293b; }

.compare-wrapper .result-box-hero {
  background: #1e40af;
  color: white;
  border-radius: 20px;
  padding: 30px;
  margin-left: 24px;
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.3);
}

.result-value { font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.result-label { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.savings-badge { 
    background: rgba(255,255,255,0.2); 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-size: 13px; 
    display: flex; 
    align-items: center;
    gap: 8px;
}

/* --- Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}
.step-badge {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(0, 168, 104, 0.30);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 14px 0 18px;
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.12);
}

.step-icon svg { display: block; }

.step-icon.grad-blue { background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); }
.step-icon.grad-green { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.step-icon.grad-pink { background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%); }

.step-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.step-card p { font-size: 14px; color: #64748b; line-height: 1.5; }

/* --- Home economy teaser --- */
.teaser-economy {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.teaser-card {
  width: 100%;
  max-width: 980px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.teaser-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #bbf7d0;
}

.teaser-value {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.teaser-highlight {
  color: var(--primary);
}

.teaser-note {
  margin-top: 10px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.teaser-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

/* Force black typography inside this section (per request) */
#o-que-calcula .h2,
#o-que-calcula .lead,
#o-que-calcula h3,
#o-que-calcula p {
  color: #111827 !important;
}

/* Match home features cards ("O Que a Calculadora Analisa") */
.feature-box,
.feature-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
  min-height: 150px;
}

.feature-box:hover,
.feature-card:hover {
  transform: translateY(-2px);
  border-color: #e5e7eb;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.10);
}

.feat-icon,
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feat-icon svg,
.feature-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Utility compatibility: V2 defines padding/radius for .bg-orange-light; reset for icon tiles */
.feat-icon.bg-orange-light,
.feat-icon.bg-green-light {
  padding: 0 !important;
  border-radius: 12px !important;
}

.feature-box h3,
.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.feature-box p,
.feature-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

/* Missing color helpers used by the feature icon tiles */
.bg-blue-light { background: #dbeafe; }
.bg-purple-light { background: #f3e8ff; }
.bg-red-light { background: #ffe4e6; }
.bg-teal-light { background: #ccfbf1; }

.text-blue { color: var(--secondary) !important; }
.text-purple { color: var(--accent-purple) !important; }
.text-red { color: #ef4444 !important; }
.text-teal { color: #0f766e !important; }

/* "Cálculos Personalizados" highlight card */
.custom-calc-box {
  margin-top: 34px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 18px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.custom-calc-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 24px;
  box-shadow: 0 12px 22px rgba(0, 168, 104, 0.28);
}

.custom-calc-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.custom-calc-content p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.feature-card {
  background: #f8fafc;
  padding: 24px;
  border-radius: 16px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.feature-card:hover { background: white; border-color: #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.feature-icon { font-size: 24px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.feature-card p { font-size: 13px; color: #64748b; line-height: 1.5; }

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-list details {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-list details[open] { border-color: var(--primary); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

.faq-list summary {
  padding: 16px 24px;
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 20px; color: #9ca3af; font-weight: 300; }
.faq-list details[open] summary::after { content: '-'; color: var(--primary); }

.faq-list p {
  padding: 0 24px 24px;
  color: #4b5563;
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
    background: #111827;
    color: white;
    padding-top: 48px;
    padding-bottom: 60px;
    margin-top: 60px;
}

/* --- Footer --- */
.footer-dark {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  margin-bottom: 12px;
  transition: color 0.2s;
  font-size: 14px;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-links { display: flex; gap: 24px; }

/* --- Responsiveness V2 --- */
@media (max-width: 968px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { margin: 0 auto; }
  .grid.cols3, .grid.cols2, .steps-grid, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Mobile/tablet: centralizar cards e textos da seção "O Que a Calculadora Analisa" */
  #o-que-calcula .feature-box,
  #o-que-calcula .feature-card {
    text-align: center;
  }

  #o-que-calcula .feat-icon,
  #o-que-calcula .feature-icon {
    margin-left: auto;
    margin-right: auto;
  }

  #o-que-calcula .custom-calc-box {
    flex-direction: column;
    text-align: center;
  }

  #o-que-calcula .custom-calc-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .compare-wrapper { flex-direction: column; }
  .result-box-hero { width: 100%; margin: 0; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .vs-badge { top: auto; bottom: -20px; left: 50%; transform: translateX(-50%); } 
  .compare-card:first-child { margin-bottom: 20px; }
  .preview-card { transform: none; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}
