@import url("fonts.css");

/* ============================================================
   AbaIncêndio — clone das páginas de solução
   Tokens
   ============================================================ */
:root {
  --ink: #0c0e13;
  --ink-2: #13151c;
  --ink-3: #1a1d25;
  --line-dark: #2a2d37;
  --line-dark-2: #343844;

  --cream: #faf9f6;
  --cream-2: #f4f2ed;
  --paper: #ffffff;
  --ink-text: #171a20;
  --ink-soft: #3d404a;
  --muted: #5f626c;
  --muted-2: #8b8e98;
  --line: #e7e4dd;
  --line-2: #dcd8ce;

  --red: #c00d1a;
  --red-2: #a80b16;
  --red-3: #8f0a13;
  --red-bright: #e11d2e;
  --red-light: #ff6b72;
  --red-soft: #fcedef;
  --red-soft-2: #f7dde0;

  --green: #0e9c73;
  --green-2: #0b8562;
  --green-soft: #e7f6f0;
  --blue: #2f74d0;
  --blue-soft: #e8f0fb;
  --amber: #b45309;
  --amber-2: #d9930c;
  --amber-soft: #fff8e7;
  --amber-line: #f0d9a8;
  --violet: #7c5cd6;

  --shadow-sm: 0 1px 2px rgba(23, 19, 7, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 15, 10, 0.08);
  --shadow-lg: 0 30px 80px rgba(16, 15, 10, 0.16);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1280px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: 84px;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}

.brand img {
  height: 29px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  min-width: 0;
}

.nav-trigger,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.nav-trigger:hover,
.nav-link:hover {
  color: var(--ink);
  background: var(--cream-2);
}

.nav-trigger[aria-expanded="true"] {
  color: var(--ink);
  background: var(--cream-2);
}

.nav-trigger svg,
.nav-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.nav-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-link--pill {
  color: var(--red-2);
  background: var(--red-soft);
  border: 1px solid var(--red-soft-2);
  margin-left: 4px;
  padding: 0 12px;
}

.nav-link--pill:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.header-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
  transition: background 0.18s, color 0.18s;
}

.header-icon:hover {
  background: var(--cream-2);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, filter 0.18s;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(192, 13, 26, 0.22);
}

.btn-primary:hover {
  background: var(--red-2);
  transform: translateY(-1px);
}

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

.btn-outline-light {
  color: #fff;
  border: 1px solid #3b3e49;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: var(--red-light);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline-dark {
  color: var(--ink-text);
  border: 1px solid var(--line-2);
  background: #fff;
}

.btn-outline-dark:hover {
  border-color: var(--red);
  color: var(--red-2);
}

.btn-soft {
  background: var(--red-soft);
  color: var(--red-2);
}

.btn-soft:hover {
  background: var(--red-soft-2);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
}

.btn-header {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 15px;
}

.btn-header.btn-primary {
  background: linear-gradient(135deg, #d41423 0%, #a80b16 100%);
}

.btn-header.btn-primary:hover {
  filter: brightness(1.08);
}

.header-cta-outline {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  color: var(--ink-text);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.header-cta-outline:hover {
  border-color: var(--red);
  color: var(--red-2);
  background: var(--red-soft);
}

.header-cta-outline svg {
  width: 16px;
  height: 16px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink);
}

.menu-toggle:hover {
  background: var(--cream-2);
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mega dropdown */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 16px 16px;
  display: none;
  z-index: 75;
}

.mega.open {
  display: block;
  animation: megaIn 0.18s var(--ease);
}

@keyframes megaIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ece9e2;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.mega-item {
  display: block;
  padding: 12px 14px;
  border-radius: 9px;
  transition: background 0.16s;
}

.mega-item:hover {
  background: var(--red-soft);
}

.mega-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-text);
  line-height: 1.35;
}

.mega-item span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.mega-item--featured {
  background: var(--cream);
}

.mega-item--featured:hover {
  background: var(--red-soft);
}

.mega-label {
  grid-column: 1 / -1;
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0;
  z-index: 70;
  background: #fff;
  color: var(--ink-text);
  padding: 20px 20px 40px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  display: none;
}

.mobile-menu.open {
  display: block;
  animation: drawerIn 0.22s var(--ease);
}

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

.mobile-menu-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.mobile-menu-ctas .btn {
  width: 100%;
}

.mobile-menu-ctas .wide {
  grid-column: 1 / -1;
}

.mobile-accordion {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.mobile-accordion:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-2);
}

.mobile-accordion-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.mobile-accordion.open .mobile-accordion-trigger svg {
  transform: rotate(180deg);
}

.mobile-accordion-body {
  display: none;
  padding-bottom: 6px;
}

.mobile-accordion.open .mobile-accordion-body {
  display: block;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-text);
}

.mobile-link:first-child {
  border-top: 0;
}

.mobile-link:hover {
  color: var(--red-2);
}

.mobile-link small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 40px 16px 80px;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -12%;
  width: 560px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(225, 29, 46, 0.5) 0%, rgba(192, 13, 26, 0.22) 42%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 520px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 13, 26, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8e92a0;
}

.breadcrumb a {
  transition: color 0.18s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  color: #5b5f6b;
}

.breadcrumb .current {
  color: #c9ccd4;
}

.hero-content {
  margin-top: 32px;
  max-width: 680px;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-2);
}

.hero .kicker {
  color: var(--red-light);
}

.hero h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.9px;
  color: #fff;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 12px;
  max-width: 672px;
  font-size: 18px;
  line-height: 1.62;
  color: #c6c3b8;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #2f333d;
  border-radius: 999px;
  font-size: 12.5px;
  color: #b9bcc5;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--red-light);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 80px 16px;
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: #fff;
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  max-width: 680px;
}

.section-head h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.9px;
  color: var(--ink-text);
  text-wrap: balance;
}

.section-head p {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.section--dark .section-head h2 {
  color: #fff;
}

.section--dark .section-head p {
  color: #c6c3b8;
}

/* ============================================================
   Demo (AbaDemand)
   ============================================================ */
.demo-card {
  margin-top: 32px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.demo-clock-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  color: var(--red-light);
}

.demo-clock-icon svg {
  width: 20px;
  height: 20px;
}

.demo-time {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}

.demo-sub {
  margin-top: 5px;
  font-size: 13px;
  color: #a8a599;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #3a3527;
  color: #e6e3dc;
  transition: border-color 0.18s, background 0.18s;
}

.demo-btn:hover {
  border-color: var(--red-light);
  background: rgba(255, 255, 255, 0.03);
}

.demo-btn svg {
  width: 20px;
  height: 20px;
}

.demo-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.demo-stat {
  background: #15171e;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}

.demo-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.demo-stat.is-green b {
  color: #6ee7b7;
}

.demo-stat.is-amber b {
  color: #fcd34d;
}

.demo-stat.is-red b {
  color: var(--red-light);
}

.demo-stat span {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: #a8a599;
}

.demo-chart-wrap {
  position: relative;
  margin-top: 20px;
}

.demo-chart {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 250;
  overflow: visible;
}

.demo-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: #c6c3b8;
}

.demo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.demo-cars {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.car {
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 9px 10px 10px;
  min-width: 0;
  transition: border-color 0.25s, background 0.25s;
}

.car.is-charging {
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.09);
}

.car.is-done {
  border: 1px solid rgba(16, 185, 129, 0.26);
  background: rgba(16, 185, 129, 0.04);
}

.car.is-queued {
  border: 1px solid rgba(217, 147, 12, 0.38);
  background: rgba(217, 147, 12, 0.07);
}

.car-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.car-apt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #eceae4;
  font-variant-numeric: tabular-nums;
}

.car-bolt {
  width: 12px;
  height: 12px;
  flex: none;
  color: #34d399;
}

.car-state {
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 600;
  color: #8e92a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car.is-charging .car-state {
  color: #34d399;
}

.car.is-queued .car-state {
  color: #fbbf24;
}

.car.is-done .car-state {
  color: #6ee7b7;
}

.car-bar {
  display: block;
  margin-top: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.car-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
}

.car.is-charging .car-bar {
  color: #10b981;
}

.car.is-queued .car-bar {
  color: #f59e0b;
}

.car.is-done .car-bar {
  color: #0e9c73;
  opacity: 0.55;
}

.demo-caption {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.62;
  color: #c6c3b8;
  max-width: 92ch;
}

/* ============================================================
   Editorial content + aside
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.prose-block + .prose-block {
  margin-top: 40px;
}

.prose-block h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.33;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ink-text);
}

.prose-block p {
  margin-top: 12px;
  max-width: 65ch;
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.bullets {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  max-width: 65ch;
}

.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.bullets strong {
  color: var(--ink-text);
  font-weight: 600;
}

.side-stack {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.side-card {
  background: #fff;
  border: 1px solid #ece9e2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.side-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red-2);
}

.side-icon svg {
  width: 20px;
  height: 20px;
}

.side-label {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.side-items {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.side-item {
  display: flex;
  gap: 10px;
}

.side-item svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--red-2);
}

.side-item b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-text);
}

.side-item p {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.callout {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--amber-line);
  background: var(--amber-soft);
  border-radius: 16px;
  max-width: 763px;
}

.callout > svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--amber);
}

.callout b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #7c3f06;
}

.callout p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #7c5320;
}

/* Related cards */
.related-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid #ece9e2;
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
  border-color: var(--red-soft-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red-2);
}

.related-icon svg {
  width: 20px;
  height: 20px;
}

.related-card h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink-text);
}

.related-card p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.related-link {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--red-2);
}

.related-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.related-card:hover .related-link svg {
  transform: translateX(3px);
}

/* CTA band */
.cta-section {
  padding: 80px 16px;
  background: var(--ink);
  color: #fff;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: #15171e;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.cta-glow {
  position: absolute;
  bottom: -160px;
  right: -60px;
  width: 420px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.35), transparent 68%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.cta-content > div:first-child {
  max-width: 580px;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.7px;
  color: #fff;
  text-wrap: balance;
}

.cta-content p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #c6c3b8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 56px 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.65;
  color: #a8a599;
}

.footer-contact {
  margin-top: 18px;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: #c9ccd4;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  color: #8e92a0;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-col h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e92a0;
}

.footer-col ul {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.footer-col a {
  font-size: 13.5px;
  color: #c9ccd4;
  transition: color 0.16s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #8e92a0;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, filter 0.2s;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.05);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* Reveal animation */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Platform page — dashboard mock
   ============================================================ */
.platform-hero {
  padding-bottom: 80px;
}

.dashboard-section {
  padding: 64px 16px 80px;
  background: #fff;
}

.dashboard-intro {
  max-width: 680px;
}

.dashboard-intro h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.9px;
  color: var(--ink-text);
  text-wrap: balance;
}

.dashboard-intro p {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
}

.hint-pill {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red-soft);
  border: 1px solid var(--red-soft-2);
  font-size: 12px;
  font-weight: 500;
  color: #7f141c;
}

.hint-pill svg {
  width: 14px;
  height: 14px;
  color: var(--red-2);
}

.browser {
  margin-top: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(16, 15, 10, 0.18);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
}

.browser-dots span:nth-child(1) {
  background: #fc5f57;
}

.browser-dots span:nth-child(2) {
  background: #febc2e;
}

.browser-dots span:nth-child(3) {
  background: #28c840;
}

.browser-url {
  margin-left: 8px;
  flex: 1;
  max-width: 420px;
  padding: 4px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash {
  display: flex;
  min-height: 340px;
  background: #fff;
}

.dash-side {
  width: 168px;
  flex: none;
  border-right: 1px solid #f3f4f6;
  background: rgba(249, 250, 251, 0.65);
  padding: 12px 0;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 9px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.dash-brand img {
  height: 14px;
  width: auto;
}

.dash-brand span {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding-left: 6px;
  border-left: 1px solid #e5e7eb;
}

.dash-condo {
  padding: 0 14px 9px;
  font-size: 9px;
  line-height: 1.35;
  color: #6b7280;
}

.dash-condo b {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #374151;
}

.dash-nav-btn {
  margin: 0 8px 2px;
  width: calc(100% - 16px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  color: #6b7280;
  transition: background 0.16s, color 0.16s;
}

.dash-nav-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.dash-nav-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.dash-nav-btn.active {
  background: linear-gradient(135deg, #1f232b, #0c0e13);
  color: #fff;
}

.dash-nav-btn .badge {
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
}

.dash-nav-btn .badge.amber {
  background: #fef3c7;
  color: #b45309;
}

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 16px;
  background: #fff;
}

.dash-mobile-tabs {
  display: none;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
}

.dash-mobile-tabs button {
  flex: none;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 10.5px;
  color: #6b7280;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.dash-mobile-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Dashboard primitives */
.dash-view[hidden] {
  display: none !important;
}

.alert-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
}

.alert-banner-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fef3c7;
  color: #d97706;
}

.alert-banner-icon svg {
  width: 20px;
  height: 20px;
}

.alert-banner-text {
  flex: 1;
  min-width: 200px;
}

.alert-banner-text b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}

.alert-banner-text span {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: #b45309;
}

.alert-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.pill-green {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-green::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.pill-amber {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.dash-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-card {
  background: #fff;
  border: 1px solid #edeae3;
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dash-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.dash-sub {
  font-size: 11px;
  color: #6b7280;
}

.dash-demand-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.dash-demand-value {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1px;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.dash-demand-value small {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #6b7280;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 10px;
  color: #4b5563;
  white-space: nowrap;
}

.dash-chip.green {
  background: #ecfdf5;
  color: #047857;
}

.dash-progress {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
}

.dash-progress i {
  display: block;
  height: 100%;
}

.dash-progress .p-blue {
  background: var(--blue);
}

.dash-progress .p-orange {
  background: #d06b3c;
}

.dash-progress-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 10px;
  color: #6b7280;
}

.dash-progress-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dash-progress-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dash-chart-wrap {
  position: relative;
  margin-top: 8px;
}

.dash-chart {
  width: 100%;
  height: auto;
  aspect-ratio: 1044 / 250;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -120%);
  background: #111827;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s;
}

.chart-tooltip.show {
  opacity: 1;
}

.dash-footnote {
  margin-top: 6px;
  font-size: 10px;
  color: #9ca3af;
}

.dash-mini-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dash-mini {
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fcfcfb;
}

.dash-mini span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.dash-mini b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.2;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.dash-mini b small {
  font-size: 9px;
  font-weight: 400;
  color: #6b7280;
}

/* Charger list */
.charger-group-label {
  margin: 10px 0 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

.charger-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 7px;
  background: #fafaf9;
  margin-bottom: 4px;
  font-size: 10.5px;
}

.charger-row:last-child {
  margin-bottom: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #9ca3af;
}

.status-dot.charging {
  background: #f59e0b;
}

.status-dot.available {
  background: #10b981;
}

.status-dot.blocked {
  background: #ef4444;
}

.status-dot.offline {
  background: #9ca3af;
}

.charger-id {
  font-weight: 700;
  color: #111827;
  width: 38px;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.charger-who {
  flex: 1;
  min-width: 0;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charger-power {
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.charger-status {
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.charger-status.charging {
  color: #b45309;
}

.charger-status.available {
  color: #059669;
}

.charger-status.blocked {
  color: #dc2626;
}

.charger-status.offline {
  color: #6b7280;
}

/* Heatmap */
.heatmap {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 22px repeat(24, minmax(0, 1fr));
  gap: 2px;
  align-items: center;
}

.heatmap-day {
  font-size: 8px;
  color: #9ca3af;
  text-align: right;
  padding-right: 2px;
}

.heatmap-cell {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: #e8f5ef;
}

.heatmap-cell.l1 { background: #d9f0e6; }
.heatmap-cell.l2 { background: #b8e5d2; }
.heatmap-cell.l3 { background: #8bd6b9; }
.heatmap-cell.l4 { background: #55c39a; }
.heatmap-cell.l5 { background: #1f9e75; }

.heatmap-hours {
  margin-top: 3px;
  display: grid;
  grid-template-columns: 22px repeat(24, minmax(0, 1fr));
  gap: 2px;
  font-size: 8px;
  color: #9ca3af;
}

.heatmap-hours span:nth-child(1) {
  grid-column: 1 / 2;
}

.heatmap-hours span:nth-child(2) { grid-column: 2 / 8; }
.heatmap-hours span:nth-child(3) { grid-column: 8 / 14; }
.heatmap-hours span:nth-child(4) { grid-column: 14 / 20; }
.heatmap-hours span:nth-child(5) { grid-column: 20 / 24; }
.heatmap-hours span:nth-child(6) { grid-column: 24 / 26; text-align: right; }

/* Consumption bars */
.consumption-list {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.consumption-row {
  font-size: 10px;
  color: #4b5563;
}

.consumption-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.consumption-top b {
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.consumption-bar {
  margin-top: 3px;
  height: 6px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.consumption-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0e9c73;
}

.consumption-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 9px;
  color: #6b7280;
}

.consumption-tags span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #f3f4f6;
}

/* Billing */
.billing-total {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.billing-sub {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 10px;
  color: #6b7280;
}

.billing-up {
  color: #059669;
  font-weight: 600;
}

.billing-bars {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
}

.billing-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #7dcaae;
}

.billing-bars i.current {
  background: var(--red);
}

.billing-months {
  margin-top: 2px;
  display: flex;
  gap: 6px;
  font-size: 8px;
  color: #9ca3af;
}

.billing-months span {
  flex: 1;
  text-align: center;
}

.invoice-list {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.invoice {
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  background: #fafaf9;
  overflow: hidden;
}

.invoice-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  font-size: 10.5px;
  text-align: left;
}

.invoice-head b {
  font-weight: 600;
  color: #111827;
}

.invoice-head span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #111827;
}

.invoice-body {
  display: none;
  padding: 0 9px 8px;
  border-top: 1px solid #f3f4f6;
}

.invoice.open .invoice-body {
  display: block;
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  font-size: 9.5px;
  color: #6b7280;
}

.invoice-line b {
  font-weight: 500;
  color: #4b5563;
}

/* Sessions */
.session-list {
  margin-top: 8px;
  display: grid;
  gap: 2px;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 10px;
  color: #6b7280;
}

.session-row:last-child {
  border-bottom: 0;
}

.session-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex: none;
}

.session-dot.gray {
  background: #d1d5db;
}

.session-who {
  width: 116px;
  flex: none;
  color: #111827;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-kwh {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.session-price {
  width: 52px;
  flex: none;
  text-align: right;
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.dash-link {
  font-size: 10px;
  font-weight: 500;
  color: var(--red-2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

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

/* Attention */
.attention-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.attention-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid #fee2e2;
  background: #fff7f7;
  font-size: 10px;
  color: #7f1d1d;
}

.attention-row.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.attention-row svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.attention-row span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.attention-row button {
  flex: none;
  padding: 2px 7px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #fecaca;
  font-size: 9px;
  color: #991b1b;
}

.attention-row.warn button {
  border-color: #fde68a;
  color: #92400e;
}

/* Chargers view */
.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.view-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.view-head h2 span {
  color: #9ca3af;
  font-weight: 600;
}

.view-head p {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
}

.view-head .muted {
  font-size: 10px;
  color: #9ca3af;
  white-space: nowrap;
}

.charger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.charger-card {
  border: 1px solid #edeae3;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.charger-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.charger-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  position: relative;
}

.charger-avatar.available {
  background: #ecfdf5;
  color: #059669;
}

.charger-avatar.blocked {
  background: #fef2f2;
  color: #dc2626;
}

.charger-avatar.offline {
  background: #f3f4f6;
  color: #9ca3af;
}

.charger-avatar .mini-wave {
  position: absolute;
  right: -7px;
  bottom: 0;
  width: 14px;
  height: 10px;
  color: #10b981;
}

.charger-info {
  flex: 1;
  min-width: 0;
}

.charger-info h3 {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.charger-info h3 span {
  color: #9ca3af;
  font-weight: 500;
}

.charger-info p {
  margin-top: 2px;
  font-size: 9.5px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charger-state-line {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #6b7280;
}

.charger-state-line::before {
  content: "";
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: #2563eb;
  flex: none;
}

.charger-state-line.available::before { background: #10b981; }
.charger-state-line.blocked::before { background: #ef4444; }
.charger-state-line.offline::before { background: #d1d5db; }

.charger-state-line.charging {
  color: #1d4ed8;
  font-weight: 500;
}

.charger-actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.charger-actions button,
.charger-actions a {
  min-height: 30px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.charger-actions .main {
  flex: 1;
  background: #171a20;
  color: #fbbf24;
}

.charger-actions .ghost {
  background: #f3f4f6;
  color: #4b5563;
}

.charger-actions .ghost:hover {
  background: #e5e7eb;
}

/* Live view */
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.live-stat {
  border: 1px solid #edeae3;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.live-stat span {
  display: block;
  font-size: 9.5px;
  color: #9ca3af;
}

.live-stat b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
}

.live-stat b small {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
}

.live-stat .sub {
  margin-top: 5px;
  font-size: 9px;
  color: #6b7280;
}

.live-stat svg {
  width: 100%;
  height: 30px;
  margin-top: 3px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 9.5px;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.filter-pill .count {
  font-size: 8px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.filter-pill.active {
  background: #171a20;
  border-color: #171a20;
  color: #fff;
}

.filter-pill.active .count {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.live-card {
  border: 1px solid #edeae3;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.live-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #6b7280;
}

.live-person {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #111827;
}

.live-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #9ca3af;
}

.live-session {
  text-align: right;
  font-size: 9px;
  color: #9ca3af;
  line-height: 1.35;
}

.live-power-row {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.live-power {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
}

.live-power small {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  color: #9ca3af;
}

.live-spark {
  width: 150px;
  height: 36px;
}

.live-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  font-size: 8.5px;
  color: #9ca3af;
}

.live-details b {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: #374151;
  font-variant-numeric: tabular-nums;
}

.live-footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: #9ca3af;
}

.live-footer a {
  color: #b45309;
  font-weight: 500;
}

/* Alerts view */
.alerts-list {
  display: grid;
  gap: 8px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  background: #fff;
}

.alert-item.seen {
  opacity: 0.45;
}

.alert-item-icon {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  color: #dc2626;
}

.alert-item.warn .alert-item-icon {
  background: #fffbeb;
  color: #d97706;
}

.alert-item.ok .alert-item-icon {
  background: #ecfdf5;
  color: #059669;
}

.alert-item-icon svg {
  width: 13px;
  height: 13px;
}

.alert-item-main {
  flex: 1;
  min-width: 0;
}

.alert-item-main b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #111827;
}

.alert-item-main span {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: #9ca3af;
}

.alert-item-actions {
  display: flex;
  gap: 5px;
  flex: none;
}

.alert-item-actions button {
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  font-size: 9px;
  color: #4b5563;
  background: #fff;
}

.alert-item-actions button:hover {
  background: #f9fafb;
}

.alert-item-actions button.resolve {
  background: #171a20;
  border-color: #171a20;
  color: #fff;
}

.alerts-note {
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  font-size: 10px;
  color: #92400e;
  text-align: center;
}

/* Finance view */
.fin-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.fin-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fin-kpi {
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fcfcfb;
}

.fin-kpi span {
  display: block;
  font-size: 9px;
  color: #9ca3af;
}

.fin-kpi b {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  color: #111827;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 300;
  background: #171a20;
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* Demo chart tooltip */
.demo-chart-wrap {
  position: relative;
}

.demo-tip {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -130%);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  padding: 6px 9px;
  border-radius: 7px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s;
}

.demo-tip.show {
  opacity: 1;
}

.demo-tip small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
}

.demo-hover-line {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
  opacity: 0;
}

.demo-chart.is-hover .demo-hover-line {
  opacity: 1;
}

.demo-chart .chart-hitzone {
  fill: transparent;
  cursor: crosshair;
}

/* Dashboard extras */
.dash-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.session-extra[hidden] {
  display: none;
}

.dash-highlight {
  animation: dashHighlight 1.6s var(--ease);
}

@keyframes dashHighlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 13, 26, 0); }
  25% { box-shadow: 0 0 0 4px rgba(192, 13, 26, 0.18); }
}

.alert-item.removing {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.fin-note {
  margin-top: 10px;
  font-size: 9.5px;
  line-height: 1.5;
  color: #9ca3af;
}

.fin-actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fin-actions button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 9.5px;
  font-weight: 600;
  color: #4b5563;
}

.fin-actions button:hover {
  background: #f9fafb;
}

.fin-actions button.primary {
  background: #171a20;
  border-color: #171a20;
  color: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .nav-desktop {
    gap: 0;
    margin-left: 6px;
  }

  .nav-trigger,
  .nav-link {
    padding: 0 8px;
    font-size: 14px;
  }

  .header-cta-outline span {
    display: none;
  }

  .header-cta-outline {
    padding: 0 10px;
  }
}

@media (max-width: 1024px) {
  .nav-desktop,
  .header-cta-outline {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .side-stack {
    position: static;
    max-width: 560px;
  }

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

  .demo-cars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:nth-child(4),
  .footer-col:nth-child(5) {
    margin-top: 8px;
  }
}

@media (max-width: 900px) {
  .dash-side {
    display: none;
  }

  .dash-mobile-tabs {
    display: flex;
  }

  .dash-grid--2,
  .charger-grid,
  .live-grid,
  .fin-grid {
    grid-template-columns: 1fr;
  }

  .dash-main {
    padding: 12px;
  }

  .dash-demand-value {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .section,
  .cta-section {
    padding: 56px 16px;
  }

  .dashboard-section {
    padding: 48px 16px 56px;
  }

  .hero {
    padding: 28px 16px 56px;
  }

  .hero-content {
    margin-top: 24px;
  }

  .hero h1,
  .section-head h2,
  .dashboard-intro h2 {
    font-size: 26.4px;
    line-height: 1.25;
    letter-spacing: -0.6px;
  }

  .hero-lead,
  .section-head p,
  .dashboard-intro p {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }

  .demo-card {
    padding: 16px;
    border-radius: 20px;
  }

  .demo-time {
    font-size: 26px;
  }

  .demo-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-cars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-caption {
    font-size: 13px;
  }

  .prose-block h3 {
    font-size: 21px;
  }

  .cta-box {
    padding: 24px;
  }

  .cta-content {
    align-items: flex-start;
  }

  .cta-content h2 {
    font-size: 24px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1;
  }

  .footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:nth-child(4),
  .footer-col:nth-child(5) {
    margin-top: 0;
  }

  .dash-mobile-tabs {
    padding: 8px;
  }

  .dash-mini-stats,
  .live-stats {
    grid-template-columns: 1fr;
  }

  .alert-banner-actions {
    margin-left: 0;
    width: 100%;
  }

  .charger-who {
    width: auto;
  }

  .session-who {
    width: 88px;
  }

  .session-meta {
    display: none;
  }

  .dash-card {
    padding: 12px;
  }

  .browser-url {
    font-size: 9px;
  }

  .view-head {
    align-items: flex-start;
  }

  .view-head .muted {
    display: none;
  }
}

@media (max-width: 479px) {
  .demo-clock-icon {
    width: 38px;
    height: 38px;
  }

  .demo-time {
    font-size: 24px;
  }

  .demo-sub {
    font-size: 11px;
  }

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

  .header-actions .btn-header {
    padding: 0 11px;
    font-size: 14px;
  }

  .brand img {
    height: 25px;
  }

  .browser-dots {
    display: none;
  }

  .live-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 8px;
  }

  .dash-demand-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Ajustes finais do clone
   ============================================================ */
.demo-btn .icon-pause {
  display: none;
}

.demo-btn.is-playing .icon-play {
  display: none;
}

.demo-btn.is-playing .icon-pause {
  display: block;
}

.dash-progress .p-free {
  background: #e5e7eb;
}

.dash-label + .dash-sub {
  margin-top: 2px;
}

.live-since {
  margin-top: 3px;
  font-size: 9px;
  color: #9ca3af;
}

.attention-row.seen {
  opacity: 0.5;
}

.attention-row.removing {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.attention-row button:disabled {
  cursor: default;
  opacity: 0.7;
}

/* FAQ */
.faq {
  margin-top: 28px;
  max-width: 820px;
  display: grid;
  gap: 8px;
}

.faq details {
  border: 1px solid #ece9e2;
  border-radius: 12px;
  background: #fff;
  padding: 0 18px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-text);
}

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

.faq summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red-2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 0 16px;
  max-width: 92%;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
}

@media (max-width: 767px) {
  .dash-card-head {
    flex-wrap: wrap;
  }

  .dash-card-head > .dash-sub {
    flex: 1 1 100%;
  }

  .dash-card-head > .dash-chip {
    margin-left: auto;
  }

}

@media (max-width: 430px) {
  .dash-mobile-tabs {
    gap: 4px;
    padding: 6px;
    scrollbar-width: none;
  }

  .dash-mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .dash-mobile-tabs button {
    padding: 6px 8px;
    font-size: 10px;
  }
}
