/* ============================================================
   eFact Andon Hotsite — CSS Puro
   Identidade Visual: #001C71 (azul), #00C4B3 (turquesa)
   Fontes: Space Grotesk, Inter, JetBrains Mono
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* === THEME VARIABLES === */
:root, [data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --primary: #0052CC;
  --primary-hover: #003D99;
  --primary-fg: #FFFFFF;
  --accent: #00C4B3;
  --accent-fg: #001C71;
  --efact-blue: #001C71;
  --efact-turquoise: #00C4B3;
  --red: #DC2626;
  --green: #16A34A;
  --yellow: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(255,255,255,0.5);
  --header-bg: rgba(255,255,255,0.92);
  --radius: 0.65rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

[data-theme="dark"] {
  --bg: #0B1120;
  --bg-alt: #111827;
  --bg-card: #1E293B;
  --bg-card-hover: #334155;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255,255,255,0.1);
  --border-light: rgba(255,255,255,0.05);
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --primary-fg: #FFFFFF;
  --accent: #00C4B3;
  --accent-fg: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
  --glass-bg: rgba(15,23,42,0.85);
  --glass-border: rgba(255,255,255,0.1);
  --header-bg: rgba(11,17,32,0.92);
}

body { background: var(--bg); color: var(--text); }

/* === UTILITIES === */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; border-radius: var(--radius); transition: all 0.2s ease;
  font-size: 0.875rem; padding: 0.5rem 1.25rem; white-space: nowrap;
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-alt); }

/* === HEADER === */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: all 0.5s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo-link { display: flex; align-items: center; gap: 0.5rem; }
.logo-img { width: 36px; height: 36px; border-radius: 8px; transition: opacity 0.5s ease; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: var(--text); }
.logo-text strong { color: var(--primary); }
.main-nav { display: none; gap: 0.25rem; }
.main-nav a {
  font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); padding: 0.4rem 0.75rem;
  border-radius: var(--radius); transition: all 0.2s;
}
.main-nav a:hover { color: var(--primary); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
#theme-toggle {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text-secondary); transition: all 0.2s;
}
#theme-toggle:hover { background: var(--bg-alt); color: var(--primary); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
.header-actions .btn-primary { display: none; }

/* Mobile menu button */
.mobile-menu-btn { display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column; padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--border); background: var(--header-bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.75rem 0; font-size: 0.95rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); }
.mobile-nav a:hover { color: var(--primary); }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-actions .btn-primary { display: inline-flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* === SECTIONS === */
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header-left { text-align: left; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.section-header-left h2 { grid-column: 1; }
.section-header-left p { grid-column: 2; }
@media (max-width: 768px) {
  .section-header-left { grid-template-columns: 1fr; }
  .section-header-left h2, .section-header-left p { grid-column: 1; }
}
.section-tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.section h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; }

/* === HERO === */
.hero-section { padding-top: 80px; }
.hero-text { text-align: center; padding: 2rem 0; }
.hero-badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.15em; color: var(--primary); padding: 0.4rem 1rem;
  border: 1px solid var(--border); border-radius: 100px; margin-bottom: 1.5rem;
  background: var(--bg-alt);
}
.hero-text h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (min-width: 768px) { .hero-text h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-text h1 { font-size: 4rem; } }

/* Hero Simulation */
.hero-simulation { margin: 2rem auto; }
.sim-wrapper {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-xl);
  overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.sim-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s ease; }
[data-theme="light"] .sim-bg-dark { opacity: 0; }
[data-theme="dark"] .sim-bg-light { opacity: 0; }

/* Beacon */
.sim-beacon {
  position: absolute; top: 12%; left: 18%; width: 20px; height: 20px;
  border-radius: 50%; background: var(--red); opacity: 0;
  box-shadow: 0 0 20px var(--red), 0 0 40px var(--red);
  transition: opacity 0.5s;
}
.sim-beacon.active { opacity: 1; animation: beacon-pulse 1s ease-in-out infinite; }
@keyframes beacon-pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.4); opacity: 1; } }

/* Device frames */
.device-frame { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.device-header {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: var(--efact-blue); color: white; font-size: 0.65rem; font-weight: 600;
}
.device-logo { width: 16px; height: 16px; border-radius: 4px; }
.device-content { padding: 8px; background: var(--bg-card); font-size: 0.6rem; }

/* Tablet */
.sim-tablet {
  position: absolute; bottom: 18%; left: 8%; width: 18%; min-width: 140px;
  opacity: 0; transform: translateY(20px); transition: all 0.6s ease;
}
.sim-tablet.active { opacity: 1; transform: translateY(0); }
.tablet-idle { text-align: center; padding: 12px; color: var(--text-muted); font-size: 0.7rem; }
.tablet-active .alert-badge { background: var(--red); color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.6rem; font-weight: 700; display: inline-block; margin-bottom: 4px; }
.tablet-active .alert-detail { font-weight: 600; font-size: 0.7rem; color: var(--text); }
.tablet-active .alert-priority { font-size: 0.6rem; color: var(--text-secondary); }
.tablet-active .alert-line { font-size: 0.6rem; color: var(--text-muted); margin-top: 4px; }

/* TV */
.sim-tv {
  position: absolute; top: 8%; left: 35%; width: 30%; min-width: 220px;
  opacity: 0; transform: scale(0.9); transition: all 0.6s ease;
}
.sim-tv.active { opacity: 1; transform: scale(1); }
.tv-frame { border-radius: 8px; border: 3px solid #1a1a2e; background: #1a1a2e; }
.tv-screen { background: var(--bg-card); border-radius: 4px; overflow: hidden; }
.tv-header {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: var(--efact-blue); color: white; font-size: 0.55rem; font-weight: 600;
}
.tv-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1px; background: var(--border); }
.tv-main { padding: 10px; background: var(--bg-card); }
.tv-line-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; }
.status-red { color: var(--green); transition: color 0.3s; }
.status-red.alert { color: var(--red); }
.tv-info { font-size: 0.6rem; color: var(--text-secondary); }
.tv-timer { display: flex; align-items: center; gap: 4px; margin: 6px 0; }
.timer-icon { font-size: 0.8rem; }
.timer-value { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.tv-status-bar { font-size: 0.6rem; padding: 3px 8px; border-radius: 4px; background: var(--bg-alt); color: var(--text-secondary); }
.tv-status-bar.alert { background: rgba(220,38,38,0.1); color: var(--red); }
.tv-sidebar { padding: 8px; background: var(--bg-card); display: flex; flex-direction: column; gap: 6px; }
.tv-line-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.6rem; padding: 4px 6px; border-radius: 4px; background: var(--bg-alt); }
.badge-green { background: var(--green); color: white; padding: 1px 6px; border-radius: 3px; font-size: 0.5rem; font-weight: 600; }
.badge-yellow { background: var(--yellow); color: #1a1a2e; padding: 1px 6px; border-radius: 3px; font-size: 0.5rem; font-weight: 600; }
.tv-stand { width: 30%; height: 8px; margin: 0 auto; background: #1a1a2e; border-radius: 0 0 4px 4px; }

/* Phone */
.sim-phone {
  position: absolute; top: 15%; right: 6%; width: 14%; min-width: 120px;
  opacity: 0; transform: translateX(20px); transition: all 0.6s ease;
}
.sim-phone.active { opacity: 1; transform: translateX(0); }
.phone-frame {
  background: #1a1a2e; border-radius: 24px; padding: 8px; position: relative;
  box-shadow: var(--shadow-xl);
}
.phone-notch {
  width: 40%; height: 6px; background: #1a1a2e; border-radius: 0 0 8px 8px;
  margin: 0 auto; position: relative; z-index: 2;
}
.phone-screen {
  background: var(--bg-card); border-radius: 16px; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px; position: relative; overflow: hidden;
}
.phone-home-indicator { width: 30%; height: 4px; background: var(--text-muted); border-radius: 2px; margin: 6px auto 0; opacity: 0.3; }
.phone-idle { text-align: center; }
.phone-time { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text); }
.phone-date { font-size: 0.55rem; color: var(--text-muted); }

/* Phone notification */
.phone-notification {
  background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 10px; width: 100%; animation: notif-slide 0.5s ease;
}
@keyframes notif-slide { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.notif-header { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.notif-logo { width: 14px; height: 14px; border-radius: 3px; }
.notif-app { font-size: 0.55rem; font-weight: 600; color: var(--text); }
.notif-time { font-size: 0.5rem; color: var(--text-muted); margin-left: auto; }
.notif-title { font-size: 0.65rem; font-weight: 700; color: var(--red); margin-bottom: 2px; }
.notif-body { font-size: 0.55rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.4; }
.notif-actions { display: flex; gap: 4px; }
.notif-btn { flex: 1; padding: 4px; border-radius: 6px; font-size: 0.5rem; font-weight: 600; text-align: center; }
.notif-accept { background: var(--primary); color: white; animation: btn-pulse 2s ease infinite; }
.notif-escalate { background: var(--bg-alt); color: var(--text-secondary); border: 1px solid var(--border); }
@keyframes btn-pulse { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 12px var(--primary); } }

.phone-accepted, .phone-resolved { text-align: center; animation: notif-slide 0.5s ease; }
.accepted-icon, .resolved-icon { font-size: 2rem; margin-bottom: 8px; }
.accepted-text, .resolved-text { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.accepted-detail, .resolved-detail { font-size: 0.6rem; color: var(--text-secondary); }

/* SVG Particles */
.sim-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Live badge */
.sim-live-badge {
  position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.05em; z-index: 10;
  background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
  color: var(--green);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live-ping 1.5s ease infinite; }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.6); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* Caption bar */
.sim-caption {
  position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--glass-bg); backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border); z-index: 10; min-height: 60px;
}
.caption-step { flex-shrink: 0; }
.caption-num {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700;
}
.caption-text { flex: 1; min-width: 0; }
.caption-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--text); }
.caption-desc { font-size: 0.7rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caption-timer { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.caption-time { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.caption-logo { width: 20px; height: 20px; border-radius: 4px; }
.caption-dots { display: flex; gap: 4px; margin-left: 8px; }
.caption-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); transition: all 0.3s; }
.caption-dot.active { background: var(--primary); transform: scale(1.3); }

/* KPI strip */
.hero-kpis {
  display: flex; justify-content: center; gap: 2rem; padding: 1.5rem 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.kpi { text-align: center; }
.kpi-label { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.kpi-sublabel { display: block; font-size: 0.7rem; color: var(--text-muted); }
.kpi-highlight .kpi-value { font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 700; color: var(--green); }

/* Flow steps */
.hero-flow {
  display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding: 1rem 0;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.05em; flex-wrap: wrap;
}
.flow-arrow { color: var(--primary); }

/* === FEATURES GRID === */
.recursos-section { background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--icon-color, var(--primary)) 10%, transparent);
  color: var(--icon-color, var(--primary)); margin-bottom: 1rem;
}
.feature-metric { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.75rem; }
.metric-value { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.metric-label { font-size: 0.7rem; color: var(--text-muted); }
.feature-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* === PILLARS === */
.andon-section { background: var(--bg); }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.pillar-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: all 0.3s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-number { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 700; color: var(--primary); opacity: 0.2; margin-bottom: 0.5rem; }
.pillar-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.pillar-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* === COMPARISON TABLE === */
.comparativo-section { background: var(--bg-alt); }
.comparison-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.comparison-table th { padding: 1rem; text-align: left; font-family: 'Space Grotesk', sans-serif; font-weight: 700; background: var(--bg-alt); border-bottom: 2px solid var(--border); }
.comparison-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light); }
.comparison-table tr:hover td { background: var(--bg-alt); }
.col-efact { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.score-good { color: var(--primary); font-weight: 700; margin-right: 0.5rem; }
.score-bad { color: var(--red); font-weight: 700; margin-right: 0.5rem; }
.score-warn { color: var(--yellow); font-weight: 700; margin-right: 0.5rem; }

.comparison-mobile { display: none; }
@media (max-width: 768px) {
  .comparison-table-wrapper { display: none; }
  .comparison-mobile { display: flex; flex-direction: column; gap: 0.75rem; }
}
.comparison-summary {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem;
  padding: 1.5rem; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  flex-wrap: wrap;
}
.summary-item { text-align: center; }
.summary-score { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; }
.summary-bad .summary-score { color: var(--red); }
.summary-good .summary-score { color: var(--primary); }
.summary-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.summary-vs { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-muted); }

/* === STEPS === */
.howit-section { background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center; transition: all 0.3s; position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.step-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.step-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* === INTERACTIVE SIMULATION === */
.simulacao-section { background: var(--bg-alt); }
.sim-interactive { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; }
.sim-timeline { margin-bottom: 2rem; }
.timeline-bar { height: 4px; background: var(--border); border-radius: 2px; position: relative; margin-bottom: 1rem; }
.timeline-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 0%; transition: width 0.5s ease; }
.timeline-nodes { display: flex; justify-content: space-between; }
.tl-node { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--border); background: var(--bg-card); transition: all 0.3s; }
.tl-node.active .tl-dot { border-color: var(--primary); background: var(--primary); }
.tl-node.completed .tl-dot { border-color: var(--green); background: var(--green); }
.tl-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; }
.tl-node.active .tl-label { color: var(--primary); font-weight: 700; }
.sim-scene { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.sim-scene-content { margin-bottom: 1.5rem; }
.scene-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.scene-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.scene-desc { font-size: 0.95rem; color: var(--text-secondary); max-width: 500px; }
.sim-kpis { display: flex; gap: 2rem; margin-top: 1rem; }
.sim-kpi { text-align: center; }
.sim-kpi-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.sim-kpi-value { display: block; font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.sim-controls { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

/* === CALCULATOR === */
.calc-section { background: var(--bg); }
.calc-wizard { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; max-width: 720px; margin: 0 auto; }
.calc-steps-bar { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.calc-step-indicator {
  flex: 1; text-align: center; padding: 0.75rem; border-radius: var(--radius); font-size: 0.8rem;
  font-weight: 600; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border);
  transition: all 0.3s;
}
.calc-step-indicator span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: var(--text-muted); font-size: 0.7rem; margin-right: 0.5rem; }
.calc-step-indicator.active { color: var(--primary); border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, transparent); }
.calc-step-indicator.active span { background: var(--primary); color: white; }
.calc-step-indicator.completed { color: var(--green); }
.calc-step-indicator.completed span { background: var(--green); color: white; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .calc-fields { grid-template-columns: 1fr; } }
.field-group { display: flex; flex-direction: column; gap: 0.4rem; }
.field-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field-group input, .field-group select, .field-group textarea {
  padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); transition: border-color 0.2s;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.field-hint { font-size: 0.7rem; color: var(--text-muted); }
.calc-nav { display: flex; gap: 1rem; justify-content: space-between; }

/* === CALCULATOR - CORREÇÃO DE CORES === */
.calc-step-indicator span { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 22px; 
  height: 22px; 
  border-radius: 50%; 
  background: var(--border); 
  color: var(--bg); /* MUDADO: texto escuro no fundo claro */
  font-size: 0.7rem; 
  margin-right: 0.5rem; 
  font-weight: 700; /* Mais legível */
}

/* Texto do step SEMPRE visível */
.calc-step-indicator span:last-child {
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  color: inherit !important; /* Herda a cor do pai */
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-left: 0 !important;
  padding: 0 !important;
}

/* Quando ativo: bolinha azul com texto branco */
.calc-step-indicator.active span:first-child { 
  background: var(--primary); 
  color: white !important; 
}

/* Quando completado: bolinha verde com texto branco */
.calc-step-indicator.completed span:first-child { 
  background: var(--green); 
  color: white !important; 
}

/* Estado ativo: texto primário */
.calc-step-indicator.active { 
  color: var(--primary) !important; 
  border-color: var(--primary); 
  background: color-mix(in srgb, var(--primary) 5%, transparent); 
}

/* Estado completado: texto verde */
.calc-step-indicator.completed { 
  color: var(--green) !important; 
}

/* Result cards */
.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .result-cards { grid-template-columns: 1fr; } }
.result-card { text-align: center; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.result-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }
.result-value { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 0.25rem; }
.result-detail { font-size: 0.7rem; color: var(--text-muted); }
.result-bad .result-value { color: var(--red); }
.result-good .result-value { color: var(--primary); }
.result-saving .result-value { color: var(--green); }
.result-saving { background: color-mix(in srgb, var(--green) 5%, transparent); border-color: var(--green); }
.result-chart-wrapper { margin-bottom: 1.5rem; background: var(--bg-alt); border-radius: var(--radius-lg); padding: 1rem; }

/* === BENEFITS === */
.beneficios-section { background: var(--bg-alt); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.benefit-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: all 0.3s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-icon { font-size: 2rem; margin-bottom: 1rem; }
.benefit-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.benefit-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* === ARCHITECTURE === */
.arq-section { background: var(--bg); }
.arq-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .arq-content { grid-template-columns: 1fr; } }
.arq-image img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.arq-points { display: flex; flex-direction: column; gap: 1rem; }
.arq-point { padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; color: var(--text-secondary); transition: all 0.3s; }
.arq-point:hover { border-color: var(--primary); transform: translateX(4px); }
.arq-point strong { color: var(--text); }

/* === FAQ === */
.faq-section { background: var(--bg-alt); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s; }
.faq-item.open { border-color: var(--primary); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; font-size: 0.95rem; font-weight: 600; color: var(--text);
  text-align: left; transition: all 0.2s; background: transparent;
}
.faq-question:hover { color: var(--primary); }
.faq-arrow { font-size: 0.7rem; transition: transform 0.3s; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 1.5rem 1.25rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* === CONTACT === */
.contato-section { background: var(--bg); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .contato-grid { grid-template-columns: 1fr; } }
.contato-text h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.contato-text p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.contato-highlights { display: flex; flex-direction: column; gap: 0.5rem; }
.highlight-item { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.contato-form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
}

/* ============================================
   FOOTER ATUALIZADO COM LOGOS
   ============================================ */
.footer {
    background: var(--bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}
/*
.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin-bottom: 1rem;
}
*/

.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-logo img { border-radius: 6px; }
.footer-logo span { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; }
.footer-logo strong { color: var(--primary); }

/* Mostrar o logo correto baseado no tema */
[data-theme="dark"] .footer-logo .logo-light,
[data-theme="light"] .footer-logo .logo-dark {
    display: none;
}

[data-theme="dark"] .footer-logo .logo-dark,
[data-theme="light"] .footer-logo .logo-light {
    display: block;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 300px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-fg);
    transform: translateY(-2px);
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-legal a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-legal a {
    cursor: pointer;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-contact svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.footer-bottom svg {
    width: 1rem;
    height: 1rem;
    color: var(--red);
}

/* Responsividade do footer */
@media (max-width: 768px) {
    .footer-logo .logo-img {
        max-width: 120px;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
}

/* ============================================
   MODAIS DE POLÍTICAS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--primary);
    color: var(--primary-fg);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-fg);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    color: var(--text);
}

.modal-body h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.modal-body ul,
.modal-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.policy-intro {
    font-size: 1rem;
    color: var(--text) !important;
    font-weight: 500;
}

.policy-link {
    color: var(--primary);
    text-decoration: none;
}

.policy-link:hover {
    text-decoration: underline;
}

.browser-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.policy-date {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(90vh - 60px);
    }
    
    .browser-links {
        grid-template-columns: 1fr;
    }
}

/* === SCROLL REVEAL === */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* === MOBILE COMPARISON CARD (generated by JS) === */
.comp-mobile-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.comp-mobile-card .comp-criteria { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 0.25rem; }
.comp-mobile-card .comp-row { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border-light); }
.comp-mobile-card .comp-label { color: var(--text-muted); font-weight: 600; }
.comp-mobile-card .comp-val { color: var(--text-secondary); text-align: right; max-width: 60%; }

/* === TOAST === */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; padding: 1rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--green); color: white; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-xl); z-index: 9999; transform: translateY(100px); opacity: 0;
  transition: all 0.4s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================
   FORMULÁRIO COM ESTILO DO SITE ANTIGO
   ============================================ */
.contato-section {
  background: linear-gradient(to bottom, var(--bg), rgba(0, 212, 170, 0.05), var(--bg));
}

.cta-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .cta-form-card {
    padding: 2.5rem;
  }
}

.cta-form-card::before {
  content: '';
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 10rem;
  height: 10rem;
  background: rgba(0, 212, 170, 0.2);
  border-radius: 50%;
  filter: blur(60px);
}

.cta-form-card::after {
  content: '';
  position: absolute;
  bottom: -5rem;
  left: -5rem;
  width: 10rem;
  height: 10rem;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.cta-form {
  position: relative;
  z-index: 10;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.form-disclaimer a {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.form-disclaimer a:hover {
  text-decoration: underline;
}

.form-success {
  text-align: center;
  padding: 2rem 0;
  display: none;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border-radius: 50%;
  color: var(--green);
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 2rem;
  height: 2rem;
}

.form-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-success p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.language-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 140px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-dropdown button:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .lang-btn span {
        display: none;
    }
    
    .lang-btn {
        padding: 6px;
        min-width: 36px;
        justify-content: center;
    }
    
    .lang-dropdown {
        right: -50%;
    }
}