:root {
  --bg-main: #050711;
  --bg-elevated: #101325;
  --bg-soft: #15182a;
  --primary: #63e6be;
  --primary-soft: rgba(99, 230, 190, 0.16);
  --accent: #7c5cff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-soft: #1f2937;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body.theme-dark {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #111827 0, #020617 40%, #020617 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Layout base */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: left;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 620px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.85), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.6rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #020617;
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.35);
}

.logo-text {
  font-size: 1rem;
}

.main-nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

.cta-header {
  display: none;
}

/* As âncoras do menu param abaixo do cabeçalho fixo, sem esconder o título da seção */
section[id] {
  scroll-margin-top: 80px;
}

/* Menu no celular: botão ☰ abre a lista de links abaixo do cabeçalho */

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .header-inner {
    gap: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .header-inner .cta-header {
    margin-left: auto;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.25rem 1rem 1rem;
    background: var(--bg-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

  .main-nav.is-open a {
    padding: 0.85rem 0;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav.is-open a::after { display: none; }
}

/* Hero */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.hero-copy h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-sub {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.hero-visual {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  animation: float 6s ease-in-out infinite alternate;
}

.mockup-frame {
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.22), rgba(15, 23, 42, 0.96));
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
  padding: 0.95rem 1rem 1rem;
}

.mockup-header {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.mockup-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
}

.mockup-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.8rem;
}

.mockup-column h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
  color: #c4d2f5;
}

.mockup-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mockup-column li {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.mockup-column li.pulse {
  border-color: rgba(99, 230, 190, 0.9);
  box-shadow: 0 0 12px rgba(99, 230, 190, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

.mockup-caption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Hero glow */

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 70%);
  top: -60px;
  right: -120px;
}

.hero-glow-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 230, 190, 0.4), transparent 70%);
  bottom: -80px;
  left: -140px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast);
}

.btn-lg {
  padding: 0.8rem 1.9rem;
  font-size: 1rem;
}

.btn-primary {
  background: radial-gradient(circle at 20% 0, #a5f3fc, var(--primary));
  color: #020617;
  box-shadow: 0 0 18px rgba(99, 230, 190, 0.48);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 26px rgba(99, 230, 190, 0.65);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.95);
}

/* Timeline piloto */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.timeline-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast);
}

.timeline-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 230, 190, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(to right, var(--primary), var(--accent));
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* O que fazemos */

.cards-grid {
  display: grid;
  gap: 1.1rem;
}

.operations-grid .card-op {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
  transform-origin: center;
}

.card-op:hover {
  transform: translateY(-3px) rotate3d(1, 0.6, 0, 1deg);
  border-color: rgba(124, 92, 255, 0.76);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.16), rgba(15, 23, 42, 0.98));
}

.icon-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card-op h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.card-op p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Antes / Depois */

.section-contrast {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617 60%);
}

.before-after-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.before-after-column {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.85);
}

.before-after-column.before {
  border-left: 3px solid rgba(248, 113, 113, 0.9);
}

.before-after-column.after {
  border-left: 3px solid rgba(99, 230, 190, 0.9);
}

.before-after-column h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.before-after-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.before-after-column li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.before-after-column.before li::before {
  content: "–";
  color: #fca5a5;
  position: absolute;
  left: 0;
}

.before-after-column.after li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Slider antes/depois */

.before-after-slider {
  max-width: 640px;
  margin: 0 auto;
}

.ba-wrapper {
  position: relative;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.9);
  background: linear-gradient(120deg, #020617, #111827);
}

.ba-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
}

.ba-before {
  background: radial-gradient(circle at left, rgba(248, 113, 113, 0.22), transparent 70%);
  color: #fecaca;
}

.ba-after {
  background: radial-gradient(circle at right, rgba(74, 222, 128, 0.22), transparent 70%);
  color: #bbf7d0;
  clip-path: inset(0 50% 0 0);
}

.ba-range {
  position: absolute;
  inset: auto 10% 10px 10%;
  width: 80%;
}

.ba-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
}

/* Para quem */

.audience-grid .card-audience {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card-audience:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 230, 190, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.card-audience h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.card-audience p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Condições piloto */

.pilot-details {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.95);
}

.pilot-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.detail-item {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
}

.detail-item dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5f5;
}

.detail-item dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pilot-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA final */

.section-final-cta {
  padding-bottom: 4.8rem;
}

.final-cta-inner {
  text-align: center;
  background: radial-gradient(circle at top, rgba(124, 92, 255, 0.2), rgba(15, 23, 42, 0.98));
  border-radius: 26px;
  padding: 2.4rem 1.6rem;
  border: 1px solid rgba(99, 230, 190, 0.4);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.95);
}

.final-cta-inner h2 {
  margin: 0 0 0.9rem;
  font-size: 1.7rem;
}

.final-cta-inner p {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-note {
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  padding: 1.1rem 0 1.4rem;
  background: rgba(2, 6, 23, 0.96);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-note {
  opacity: 0.8;
}

/* Scroll animations */

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-med), transform var(--transition-med);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-6px) translateX(2px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 rgba(99, 230, 190, 0.4);
  }
  70% {
    box-shadow: 0 0 18px rgba(99, 230, 190, 0.8);
  }
  100% {
    box-shadow: 0 0 0 rgba(99, 230, 190, 0.4);
  }
}

/* Responsivo */

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-copy {
    flex: 1.1;
  }

  .hero-visual {
    flex: 1;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

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

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

  .operations-grid .card-op:nth-child(4),
  .operations-grid .card-op:nth-child(5) {
    grid-column: span 1;
  }

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

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

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }

  .main-nav {
    display: flex;
  }

  .cta-header {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 5.2rem;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .hero-sub {
    font-size: 1rem;
  }
}
/* ===================================================================
   Landing por dor (2026-11): herói, demos, painel vivo, diagnóstico
   =================================================================== */

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.texto-muted { color: var(--text-muted); }

/* Segurança dos dados: 2 colunas no tablet, 4 no desktop */
@media (min-width: 768px) {
  .cards-grid.audience-grid.seguranca-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cards-grid.audience-grid.seguranca-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Aviso de cookies, fixo no rodapé da tela até o visitante escolher */
.cookie-aviso {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}
.cookie-aviso[hidden] { display: none; }
.cookie-aviso p { margin: 0; color: var(--text-muted); }
.cookie-botoes { display: flex; gap: 0.6rem; justify-content: flex-end; }
@media (min-width: 640px) {
  .cookie-aviso { flex-direction: row; align-items: center; }
  .cookie-botoes { flex-shrink: 0; }
}
.link-botao { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.centro { margin-top: 2.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.garantia { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--primary); }

/* Herói */

.hero-dor .hero-copy { max-width: 760px; }

.dor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.dor-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.4rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  color: var(--text-main);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.dor-btn span { font-size: 1.2rem; }
.dor-btn:hover,
.dor-btn:focus-visible { border-color: var(--primary); background: var(--bg-soft); transform: translateY(-2px); outline: none; }

.marquee {
  position: relative;
  margin-top: 2.6rem;
  overflow: hidden;
  border-block: 1px solid var(--border-soft);
  padding: 0.7rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 0.6rem; padding-right: 0.6rem; }

.pill {
  white-space: nowrap;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 230, 190, 0.5);
  background: var(--primary-soft);
  color: var(--primary);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* Veja funcionando */

.demo-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }

.demo-tabs [role="tab"] {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.demo-tabs [aria-selected="true"] { border-color: var(--primary); color: var(--primary); }

.demo-stage {
  max-width: 460px;
  min-height: 330px;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: #0b141a;
  box-shadow: var(--shadow-soft);
}

.demo-topo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #1f2c33;
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-topo small { color: var(--primary); font-weight: 400; }
.demo-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); font-size: 0.8rem; }

.demo .msg,
.demo .linha {
  margin: 0.45rem 0;
  font-size: 0.92rem;
  color: #e9edef;
  opacity: 0;
  animation: demo-entra 10s ease-out infinite;
  animation-play-state: paused;
}

.demo .msg { max-width: 82%; width: fit-content; padding: 0.5rem 0.75rem; border-radius: 10px; }
.demo .msg.in { background: #202c33; }
.demo .msg.out { margin-left: auto; background: #005c4b; }
.demo .linha { display: flex; justify-content: space-between; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); background: #151a2c; }
.demo .linha b { color: var(--primary); }
.demo .linha b.aguardando { color: #fbbf24; }
.demo .linha.total { border: 1px solid var(--primary); }

.demo > :nth-child(2) { animation-delay: 0.2s; }
.demo > :nth-child(3) { animation-delay: 1.4s; }
.demo > :nth-child(4) { animation-delay: 2.6s; }
.demo > :nth-child(5) { animation-delay: 3.8s; }

.agenda-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin-bottom: 0.8rem; }
.agenda-grid i { height: 34px; border-radius: 6px; background: #151a2c; animation: agenda-enche 10s ease-out infinite; animation-play-state: paused; }
.agenda-grid i:nth-child(3n + 1) { animation-delay: 0.4s; }
.agenda-grid i:nth-child(4n + 2) { animation-delay: 1.1s; }
.agenda-grid i:nth-child(5n + 3) { animation-delay: 1.8s; }
.agenda-grid i:nth-child(7n) { animation-delay: 2.5s; }

.is-visible .demo .msg,
.is-visible .demo .linha,
.is-visible .agenda-grid i { animation-play-state: running; }

@keyframes demo-entra {
  0% { opacity: 0; transform: translateY(8px); }
  5%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}

@keyframes agenda-enche {
  0%, 15% { background: #151a2c; }
  25%, 90% { background: var(--accent); }
  100% { background: #151a2c; }
}

.demo-legenda { margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--text-muted); }

/* Como funciona */

.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.passos li { position: relative; padding: 1.1rem 1.1rem 1.1rem 3.6rem; border-radius: var(--radius-md); border: 1px solid var(--border-soft); background: var(--bg-elevated); }
.passos h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.passos p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.passos strong { color: var(--primary); font-weight: 600; }
.passo-num { position: absolute; left: 1.1rem; top: 1.1rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); font-weight: 700; }

/* O que dá pra resolver */

.solucoes-grid s { color: var(--text-muted); text-decoration-color: rgba(248, 113, 113, 0.8); }
.solucoes-grid + .before-after-slider { margin-top: 2.4rem; }

/* Painel vivo */

.painel-layout,
.setup-layout { display: grid; gap: 2rem; align-items: center; }
.painel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }

.painel-tile {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  animation: flutua 5s ease-in-out infinite;
}

.painel-tile:nth-child(2) { animation-delay: 0.7s; }
.painel-tile:nth-child(3) { animation-delay: 1.4s; }
.painel-tile:nth-child(4) { animation-delay: 2.1s; }
.painel-tile b { display: block; font-size: 1.8rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.painel-tile span { color: var(--text-muted); font-size: 0.88rem; }

/* Só transform: roda no compositor, sem repintar a cada quadro. */
@keyframes flutua {
  50% { transform: translateY(-4px); }
}

.setup-layout img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); box-shadow: var(--shadow-soft); }
.setup-layout h2 { font-size: 1.8rem; margin: 0 0 0.75rem; }

/* Command Center do piloto (HTML/CSS no lugar da imagem; mesmo bloco em index.html e empresa-ia/) */
.cc-painel { --cc-verde: #63e6be; --cc-roxo: #8b7bff; --cc-texto: #f8fafc; --cc-suave: #94a3b8; --cc-fundo: #0b0f1e; --cc-borda: rgba(148, 163, 184, 0.22);
  margin: 0; padding: 1rem; border-radius: 18px; border: 1px solid var(--cc-borda); background: var(--cc-fundo); color: var(--cc-texto);
  font-variant-numeric: tabular-nums; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); min-width: 0; }
.cc-topo { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; font-size: 1rem; }
.cc-topo strong span { color: var(--cc-verde); }
.cc-filtro { font-size: 0.75rem; padding: 0.25rem 0.6rem; border: 1px solid var(--cc-verde); border-radius: 999px; white-space: nowrap; }
.cc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.cc-kpi { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.6rem 0.4rem; border-radius: 12px; border: 1px solid var(--cc-verde); }
.cc-kpi.cc-roxo { border-color: var(--cc-roxo); }
.cc-kpi span, .cc-kpi small { font-size: 0.72rem; color: var(--cc-suave); line-height: 1.3; }
.cc-kpi b { font-size: 1.35rem; color: var(--cc-verde); margin: 0.15rem 0; }
.cc-corpo { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.cc-grafico { padding: 0.7rem; border-radius: 12px; border: 1px solid var(--cc-verde); min-width: 0; }
.cc-grafico p { margin: 0 0 0.4rem; font-size: 0.82rem; font-weight: 600; }
.cc-grafico svg { display: block; width: 100%; height: auto; }
.cc-grafico text { fill: var(--cc-suave); font-size: 10px; }
.cc-grade line { stroke: var(--cc-borda); stroke-width: 1; }
.cc-area { fill: var(--cc-verde); opacity: 0.12; }
.cc-linha { fill: none; stroke: var(--cc-verde); stroke-width: 2.5; }
.cc-grafico circle { fill: var(--cc-verde); }
.cc-funil { list-style: none; margin: 0; padding: 0.7rem; border-radius: 12px; border: 1px solid var(--cc-roxo); display: grid; gap: 1.1rem; }
.cc-funil li { text-align: center; font-size: 0.78rem; padding: 0.45rem; border-radius: 8px; border: 1px solid var(--cc-roxo); position: relative; }
.cc-funil li + li::before { content: "↓"; position: absolute; left: 0; right: 0; top: -1.1rem; line-height: 1.1rem; color: var(--cc-verde); }
.cc-painel figcaption { margin-top: 0.7rem; font-size: 0.72rem; color: var(--cc-suave); text-align: center; }
@media (min-width: 640px) {
  .cc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cc-corpo { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* Produtos */

.card-produto { overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border-soft); background: var(--bg-elevated); }
.card-produto img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-produto h3 { margin: 1rem 1.1rem 0.4rem; }
.card-produto p { margin: 0 1.1rem 1.2rem; color: var(--text-muted); font-size: 0.93rem; }

/* Mini-diagnóstico */

.diag {
  width: min(520px, 100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.diag::backdrop { background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(3px); }
.diag-form { padding: 1.2rem 1.4rem 1.6rem; }
.diag h2 { margin: 0.8rem 0 1rem; font-size: 1.3rem; }
.diag-topo { display: flex; align-items: center; gap: 0.8rem; }
.diag-voltar,
.diag-fechar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-soft); background: transparent; color: var(--text-main); font-size: 1.1rem; cursor: pointer; }
.diag-progresso { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.diag-progresso span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width var(--transition-med); }
.diag fieldset { margin: 0; padding: 0; border: 0; }
.diag legend { margin-bottom: 0.9rem; font-weight: 600; }
.diag-opcoes { display: grid; gap: 0.5rem; }

.diag-opcoes label,
.diag-consentimento {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.diag-opcoes label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.diag-consentimento { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-muted); }
.diag-campo { display: grid; gap: 0.35rem; margin-bottom: 0.8rem; font-size: 0.9rem; color: var(--text-muted); }

.diag-campo input {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-main);
  color: var(--text-main);
  font: inherit;
  font-size: 1rem;
}

.diag-campo input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.diag-isca { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.diag-erro { margin: 0.2rem 0 0.6rem; font-size: 0.85rem; color: #f87171; }
.diag-acoes { margin-top: 1.4rem; }
.diag-acoes .btn,
.diag-resultado .btn { width: 100%; }
.diag-acoes .btn[disabled] { opacity: 0.6; cursor: wait; }
.diag-resultado { text-align: center; }
.diag-ok { font-size: 1.2rem; font-weight: 600; color: var(--primary); }

@media (max-width: 639px) {
  .diag { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
}

@media (min-width: 768px) {
  .dor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .passos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .passos li { padding: 3.6rem 1.1rem 1.2rem; }
  .painel-layout { grid-template-columns: 1fr 1.1fr; }
  .setup-layout { grid-template-columns: 1.1fr 1fr; }
  .cards-grid.produtos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  [data-animate],
  .demo .msg,
  .demo .linha { opacity: 1 !important; transform: none !important; }
  .agenda-grid i:nth-child(odd) { background: var(--accent); }
  .marquee { overflow-x: auto; }
}

/* Slider antes/depois: o "Depois" aparece pela esquerda, então cada rótulo fica do seu lado */
.ba-before { justify-content: flex-end; padding-right: 12%; }
.ba-after { justify-content: flex-start; padding-left: 12%; background-color: var(--bg-elevated); }
