/* Landing Page — CIPA NR-05
   Fase 11/P1: --brand-* re-exporta os tokens canônicos de design_tokens.css
   (mesma cor de marca usada em assistant.css como --nora-*), em vez de fixar
   seu próprio hex independente. */

:root {
  --brand-primary: var(--ds-blue-600, #0d6efd);
  --brand-dark: var(--ds-navy-900, #0a1628);
  --brand-accent: var(--ds-green-600, #198754);
  --brand-light: var(--ds-slate-050, #f8f9fa);
  --text-muted-light: var(--ds-text-muted, #6c757d);
  --hero-gradient: linear-gradient(135deg, var(--ds-navy-900, #0a1628) 0%, var(--ds-navy-700, #1a3a6b) 60%, var(--ds-blue-600, #0d6efd) 100%);
  --section-gap: 5rem;
}

/* ─── Reset / Base ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #212529;
  line-height: 1.6;
}

/* ─── Navbar ─── */
.landing-nav {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.landing-nav .navbar-brand img {
  height: 36px;
  width: auto;
}

.landing-nav .navbar-brand span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

.landing-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  transition: color 0.2s;
}

.landing-nav .nav-link:hover,
.landing-nav .nav-link:focus {
  color: #fff !important;
}

.landing-nav .btn-entrar {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.landing-nav .btn-entrar:hover {
  background: #0b5ed7;
  color: #fff;
  transform: translateY(-1px);
}

.landing-nav .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.landing-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── Hero ─── */
.hero-section {
  background: var(--hero-gradient);
  color: #fff;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-title .text-accent {
  color: #60a5fa;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #fff;
  color: var(--brand-dark);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero-primary:hover {
  color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 0.73rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.hero-ia-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-ia-cta:hover { color: #fff; }

.hero-ia-cta:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero-stats {
  margin-top: 4rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

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

.hero-stat .stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Sections ─── */
.section {
  padding: var(--section-gap) 0;
}

.section-alt {
  background: #f8f9fa;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

/* ─── Feature Cards ─── */
.feature-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: #dee2e6;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e7f0ff 0%, #d0e4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ─── Fluxo / How It Works ─── */
.fluxo-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.fluxo-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.fluxo-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.fluxo-content p {
  font-size: 0.9rem;
  color: var(--text-muted-light);
  margin-bottom: 0;
}

/* ─── Security ─── */
.security-section {
  background: var(--brand-dark);
  color: #fff;
}

.security-section .section-subtitle {
  color: rgba(255,255,255,0.65);
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.security-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(13,110,253,0.2);
  border: 1px solid rgba(13,110,253,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #60a5fa;
}

.security-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
}

.security-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 0;
}

/* ─── Multiempresa ─── */
.multiempresa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(25,135,84,0.1);
  border: 1px solid rgba(25,135,84,0.3);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-accent);
  margin-bottom: 1.5rem;
}

/* ─── FAQ (details/summary — sem dependência de JS) ─── */
.faq-details {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-details[open] {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.faq-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
  padding: 1rem 1.25rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: color 0.15s, background 0.15s;
}

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

.faq-summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.faq-details[open] .faq-summary {
  color: var(--brand-primary);
  background: #f0f6ff;
}

.faq-details[open] .faq-summary::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230d6efd' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.faq-summary:hover {
  background: #f8f9fa;
  color: var(--brand-primary);
}

.faq-details[open] .faq-summary:hover {
  background: #e8f0fd;
}

.faq-summary:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: -2px;
}

.faq-body {
  padding: 0.25rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted-light);
  line-height: 1.65;
  animation: faqReveal 0.18s ease;
}

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

/* ─── Contato ─── */
.contato-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 520px;
  margin: 0 auto;
}

.contato-card .form-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.contato-card .form-control {
  border-radius: 8px;
  border-color: #dee2e6;
  font-size: 0.9rem;
}

.contato-card .btn-enviar {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 2rem;
  font-weight: 700;
  width: 100%;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.contato-card .btn-enviar:hover {
  background: #0b5ed7;
}

/* ─── Footer ─── */
.landing-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.landing-footer .footer-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.landing-footer .footer-brand span {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.landing-footer h6 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.landing-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

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

.landing-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ─── IA Section ─── */
.ia-section {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a6b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ia-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(96,165,250,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.ia-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(96,165,250,0.15);
  border: 1px solid rgba(96,165,250,0.35);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ia-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ia-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: #374151;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ia-feature-list li:last-child { border-bottom: none; }

.ia-feature-list li i {
  color: #16a34a;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Dark-background override (ia-section has dark gradient) */
.ia-section .ia-feature-list li {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}

.ia-section .ia-feature-list li i {
  color: #34d399;
}

/* ─── Focus visible (acessibilidade) ─── */
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible {
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 3px;
}

.landing-nav .btn-entrar:focus-visible {
  outline: 3px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

.landing-nav .nav-link:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

.contato-card .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.contato-card .btn-enviar:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 767.98px) {
  .hero-section { padding: 4rem 0 3.5rem; }
  .hero-stats { gap: 1.5rem; margin-top: 2.5rem; }
  :root { --section-gap: 3.5rem; }
  .section-title { font-size: 1.6rem; }
  .contato-card { padding: 1.75rem 1.25rem; }
}

@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { text-align: center; }
  .hero-stat .stat-num { font-size: 1.65rem; }
}

/* ─── Nora AI Landing Section ─── */

.nora-landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(96,165,250,0.15);
  border: 1px solid rgba(96,165,250,0.35);
  border-radius: 50px;
  padding: 0.3rem 0.9rem 0.3rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.nora-landing-badge-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.nora-landing-avatar-wrap {
  margin: 0 auto 1.25rem;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(96,165,250,0.3);
  overflow: hidden;
  box-shadow: 0 0 28px rgba(96,165,250,0.25), 0 4px 16px rgba(0,0,0,0.25);
}

.nora-landing-avatar {
  width: 100%;
  height: 100%;
  display: block;
}

.nora-landing-title {
  color: #fff !important;
  margin-bottom: 0.75rem;
}

.nora-landing-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

.nora-feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.nora-feature-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(96,165,250,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.nora-feature-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.85rem;
  display: block;
}

.nora-feature-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}

.nora-feature-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0;
}

.btn-nora-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0d6efd;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(255,255,255,0.12);
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.btn-nora-cta:hover {
  background: #f0f6ff;
  color: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.18);
}

.btn-nora-cta:focus-visible {
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 3px;
}

.hero-ia-cta-avatar {
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── prefers-reduced-motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card,
  .btn-hero-primary,
  .btn-hero-secondary,
  .landing-nav .btn-entrar,
  .faq-details,
  .faq-summary,
  .faq-summary::after {
    transition: none;
  }
  .faq-body { animation: none; }
  .nora-feature-card,
  .btn-nora-cta { transition: none; }
}

/* ─── Depoimentos ─── */
.depoimento-card {
  background: #fff;
  border: 1px solid rgba(100,116,139,.12);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.depoimento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(99,102,241,.12);
}
.depoimento-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  margin-bottom: .85rem;
  letter-spacing: .05em;
}
.depoimento-texto {
  font-size: .9rem;
  color: #374151;
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 1.25rem;
  border-left: 3px solid rgba(99,102,241,.2);
  padding-left: .9rem;
}
.depoimento-autor {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.depoimento-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.depoimento-nome {
  font-size: .87rem;
  font-weight: 700;
  color: #1e293b;
}
.depoimento-cargo {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: .1rem;
}

/* ─── CTA Final ─── */
.cta-final-section {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a6b 60%, #4f46e5 100%);
  color: #fff;
  padding: 5rem 0;
}
.cta-final-wrap {
  max-width: 620px;
  margin: 0 auto;
}
.cta-final-icon {
  font-size: 3rem;
  color: rgba(255,255,255,.25);
  margin-bottom: 1.25rem;
}
.cta-final-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
  line-height: 1.25;
}
.cta-final-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
}
.cta-final-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.cta-final-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.cta-final-trust i { color: #34d399; margin-right: .3rem; }

@media (max-width: 575.98px) {
  .cta-final-title { font-size: 1.55rem; }
  .cta-final-actions { flex-direction: column; align-items: center; }
  .depoimento-card { padding: 1.25rem 1rem; }
}
