/* Landing pages: shared styles
   Used by:
     /proposta-automacao-processos.php
     /proposta-chatbot-ai-agent.php
     /proposta-previsao-analise.php
     /sobre.php
*/

:root {
  /* Marca (consistente em ambos os temas) */
  --accent: #6366F1;
  --accent-strong: #4F46E5;
  --accent-soft: #818CF8;
  --accent-glow: rgba(99, 102, 241, 0.12);
  --accent-ring: rgba(99, 102, 241, 0.3);
  --warn: #F59E0B;
  --danger: #EF4444;
  --success: #10B981;

  /* Tema claro (default, alinhado com o site principal) */
  --bg: #ffffff;
  --bg-elev: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-strong: #f3f4f6;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --text: #111827;
  --text-dim: #4b5563;
  --text-mute: #6b7280;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

/* Tema escuro, ativado por toggle ou preferência do sistema */
[data-theme="dark"] {
  --bg: #111827;
  --bg-elev: #1f2937;
  --bg-card: #1f2937;
  --bg-card-strong: #374151;
  --line: #374151;
  --line-soft: #1f2937;
  --text: #f9fafb;
  --text-dim: #d1d5db;
  --text-mute: #9ca3af;
  --accent-glow: rgba(99, 102, 241, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #111827;
    --bg-elev: #1f2937;
    --bg-card: #1f2937;
    --bg-card-strong: #374151;
    --line: #374151;
    --line-soft: #1f2937;
    --text: #f9fafb;
    --text-dim: #d1d5db;
    --text-mute: #9ca3af;
    --accent-glow: rgba(99, 102, 241, 0.18);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  letter-spacing: -0.01em;
}

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

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

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

/* TOP NAV */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .lp-nav { background: rgba(17, 24, 39, 0.85); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .lp-nav { background: rgba(17, 24, 39, 0.85); }
}

.lp-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lp-nav .logo {
  height: 32px;
  width: auto;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lp-nav-link {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s ease;
}

.lp-nav-link:hover { color: var(--text); }

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

/* Language selector no nav, alinhado com o site principal */
.lp-nav .language-selector {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.lp-nav .language-option {
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
  min-width: 34px;
  letter-spacing: 0.02em;
}
.lp-nav .language-option:hover:not(.active) {
  color: var(--text);
  background: var(--accent-glow);
}
.lp-nav .language-option.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

/* Theme toggle */
.lp-nav .theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.lp-nav .theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent-ring);
}
.lp-nav .theme-toggle .icon-sun { display: none; }
.lp-nav .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .lp-nav .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .lp-nav .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .lp-nav .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .lp-nav .theme-toggle .icon-moon { display: none; }
}

.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.lp-nav-cta:hover { background: var(--accent-strong); transform: translateY(-1px); }

@media (max-width: 1024px) {
  .lp-nav-links { display: none; }
}

@media (max-width: 768px) {
  .lp-nav-inner { padding: 14px 20px; gap: 8px; }
  .lp-nav .language-selector { display: none; }
}

/* CONTAINER */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* HERO */
.hero {
  padding: 96px 0 80px;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  background: var(--accent-glow);
  border: 1px solid var(--accent-ring);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 820px;
}

.hero h1 .highlight {
  /* inline-block + padding pequeno garante que o glifo do ultimo
     caracter (e.g. "7" em "24/7") nao e cortado pelo background-clip:text.
     O margin negativo compensa o padding para o espacamento visual com a
     pontuacao seguinte ficar igual. */
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  padding: 0 0.08em;
  margin: 0 -0.08em;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 32px -8px var(--accent-ring);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px var(--accent-ring);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-ring);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--text); }

.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--text-mute);
  font-size: 13px;
  align-items: center;
}

.hero-trust strong { color: var(--text); font-weight: 600; }

.hero-trust .dot {
  width: 4px;
  height: 4px;
  background: var(--text-mute);
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* SECTION COMMON */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.section h2 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section h2 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
}

/* PAIN / PROBLEM */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), transparent 60%);
  pointer-events: none;
}

.pain-card .icon {
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  font-size: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.pain-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.pain-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

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

/* BENEFITS / STATS */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.impact-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}

.impact-card .number {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.impact-card .number small {
  font-size: 24px;
  margin-left: 4px;
}

.impact-card .desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .impact-grid { grid-template-columns: 1fr; }
  .impact-card .number { font-size: 44px; }
}

/* BEFORE / AFTER */
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: stretch;
  gap: 12px;
}

.flow-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-box.before { border-color: var(--line); }
.flow-box.after {
  border-color: var(--accent-ring);
  background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.06));
}

.flow-box .tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.flow-box.after .tag { color: var(--accent-soft); }

.flow-box .text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  font-size: 22px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .flow-row { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}

/* USECASES (forecasting page) */
.usecases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.usecase {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.usecase:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}

.usecase .icon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  background: var(--accent-glow);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.usecase h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.usecase p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

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

/* FEATURES LIST */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: flex-start;
}

.feature-card .num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  border: 1px solid var(--accent-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.06em;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

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

/* ARCHITECTURE (forecasting) */
.data-architecture {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.arch-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.arch-row:last-child { border-bottom: 0; }

.arch-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.arch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-pills .pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.arch-pills .pill.highlight {
  background: var(--accent-glow);
  border-color: var(--accent-ring);
  color: var(--accent-soft);
}

@media (max-width: 768px) {
  .arch-row { grid-template-columns: 1fr; gap: 10px; }
}

/* TIMELINE */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.phase {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.phase-time {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.phase h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.phase p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* PRR CALLOUT */
.prr-callout {
  background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--accent-ring);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.prr-badge {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}

.prr-badge small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  -webkit-text-fill-color: var(--accent-soft);
  margin-top: 6px;
}

.prr-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}

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

@media (max-width: 768px) {
  .prr-callout { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .prr-badge { font-size: 40px; }
}

/* SOCIAL PROOF */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial blockquote {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
}

.testimonial blockquote::before {
  content: "“";
  position: absolute;
  left: -8px;
  top: -16px;
  font-size: 48px;
  color: var(--accent-soft);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.author-meta {
  font-size: 12px;
  color: var(--text-mute);
}

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

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--accent-ring);
}

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

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

.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--accent-soft);
  line-height: 1;
  transition: transform 0.2s ease;
}

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

.faq details p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* FINAL CTA */
.cta-final {
  background: linear-gradient(135deg, var(--bg-card-strong), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--accent-ring);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  margin: 32px 0;
}

.cta-final h2 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final p {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .hero-actions {
  justify-content: center;
  margin-bottom: 24px;
}

.cta-final .hero-trust {
  justify-content: center;
}

@media (max-width: 768px) {
  .cta-final { padding: 44px 24px; }
  .cta-final h2 { font-size: 28px; }
}

/* PAGE FOOTER */
.lp-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 32px;
}

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

.lp-footer-brand .logo {
  height: 32px;
  margin-bottom: 16px;
}

.lp-footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
}

.lp-footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.lp-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.lp-footer-col a:hover { color: var(--text); }

.lp-footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mute);
}

.lp-footer-bottom a { color: var(--text-mute); }
.lp-footer-bottom a:hover { color: var(--text-dim); }

@media (max-width: 768px) {
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .lp-footer-grid { grid-template-columns: 1fr; }
}

/* STEPPER (horizontal compact alternative to .timeline) */
.stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--stepper-cols, 5), 1fr);
  gap: 0;
  position: relative;
  padding: 4px 0 0;
  margin: 0;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-ring), var(--accent-ring));
  z-index: 0;
}

.stepper-item {
  position: relative;
  text-align: center;
  padding: 0 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stepper-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-ring);
  color: var(--accent-soft);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 4px var(--bg);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.stepper-item:hover .stepper-dot {
  transform: scale(1.06);
  border-color: var(--accent);
  color: var(--accent);
}

.stepper-time {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.stepper-item h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  color: var(--text);
}
.stepper-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .stepper {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .stepper::before {
    /* linha vertical entre o centro do primeiro dot e o centro do ultimo */
    top: 30px;
    bottom: 30px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .stepper-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    row-gap: 4px;
    align-items: start;
    text-align: left;
    padding: 8px 0 20px;
  }
  .stepper-item:last-child { padding-bottom: 8px; }
  .stepper-dot {
    grid-column: 1;
    grid-row: 1 / -1; /* span todas as linhas do texto */
    align-self: start;
    margin: 0;
  }
  .stepper-time,
  .stepper-item h4,
  .stepper-item p {
    grid-column: 2;
  }
  .stepper-time {
    padding-top: 12px;
    margin-bottom: 0;
  }
}

/* CHAT DEMO (proposta-chatbot-ai-agent) */
.chat-demo {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px -28px rgba(99, 102, 241, 0.35), 0 12px 24px -16px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-size: 14px;
  position: relative;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line-soft);
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  flex-shrink: 0;
  position: relative;
}
.chat-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-elev);
}
.chat-meta { display: flex; flex-direction: column; gap: 2px; }
.chat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
}
.chat-status {
  font-size: 11px;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.chat-body {
  padding: 22px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  min-height: 380px;
}

.chat-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chat-demo.in-view .chat-msg { opacity: 1; transform: none; }
.chat-demo.in-view .chat-msg:nth-child(1) { transition-delay: 0.15s; }
.chat-demo.in-view .chat-msg:nth-child(2) { transition-delay: 0.85s; }
.chat-demo.in-view .chat-msg:nth-child(3) { transition-delay: 1.55s; }
.chat-demo.in-view .chat-msg:nth-child(4) { transition-delay: 2.25s; }
.chat-demo.in-view .chat-msg:nth-child(5) { transition-delay: 2.95s; }
.chat-demo.in-view .chat-msg:nth-child(6) { transition-delay: 3.65s; }
.chat-demo.in-view .chat-typing { transition-delay: 4.3s; }

.chat-msg-bot {
  align-self: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  padding: 12px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.chat-demo.in-view .chat-typing { opacity: 1; }
.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-mute);
  border-radius: 50%;
  animation: chat-typing-bounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-mock {
  border-top: 1px solid var(--line-soft);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elev);
}
.chat-input-mock::before {
  content: "";
  flex: 1;
  height: 32px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.chat-input-mock::after {
  content: "→";
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-input-mock > span { display: none; }

@media (max-width: 480px) {
  .chat-demo { font-size: 13px; }
  .chat-body { min-height: 360px; padding: 18px 16px 10px; }
  .chat-msg { max-width: 85%; }
}

/* THEME PRELOAD: desactiva qualquer transition no primeiro paint para
   evitar flashes de cores entre dark/light. landing.js remove a classe
   depois de o tema estar definido e o browser ter pintado uma vez. */
.theme-preload,
.theme-preload *,
.theme-preload *::before,
.theme-preload *::after {
  transition: none !important;
  animation-duration: 0s !important;
}

/* ROI CALCULATOR */
.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
  box-shadow: 0 24px 56px -32px rgba(99, 102, 241, 0.2);
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.roi-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-input-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.roi-input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

.roi-input-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.roi-input input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  margin: 4px 0;
}

.roi-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.roi-input input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.55);
}
.roi-input input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
  cursor: pointer;
}
.roi-input input[type="range"]:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 4px;
  border-radius: 9999px;
}

.roi-input-helper {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.roi-results {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
}

.roi-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.roi-result:last-of-type { border-bottom: 0; padding-bottom: 0; }

.roi-result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}

.roi-result-label span.tag {
  color: var(--accent-soft);
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.roi-result-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}

.roi-result-savings .roi-result-value {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-result-prr .roi-result-label span.tag { color: var(--success); }
.roi-result-prr .roi-result-value { color: var(--success); }

.roi-card-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}

.roi-note {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.55;
  flex: 1 1 380px;
}

.roi-note strong { color: var(--text); font-weight: 600; }

@media (max-width: 768px) {
  .roi-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
  }
  .roi-result-value { font-size: 24px; }
  .roi-card-footer { flex-direction: column; align-items: stretch; gap: 16px; }
  .roi-card-footer .btn { justify-content: center; }
  /* Em flex-direction: column o flex-basis vira altura, e os 380px
     do desktop forcavam um buraco enorme acima do botao. */
  .roi-note { flex: 0 1 auto; }
}

/* LOGO PATHS (used by inline SVG) */
.site-logo .l1 { fill: var(--accent-soft); }
.site-logo .l2 { fill: var(--text); }

/* PRINT */
@media print {
  body { background: white; color: black; }
  .lp-nav, .cta-final, .lp-footer { display: none; }
}
