/**
 * FabriSiteGPRS — melhorias globais nas landings: a11y, reduced-motion, CTA móvel, foco.
 */
:root {
  --fs-focus-ring: 2px solid rgba(201, 162, 39, 0.95);
  --fs-focus-offset: 2px;
}

/* Foco visível (teclado) */
a:focus-visible,
button:focus-visible,
.btn-icon:focus-visible,
.btn-nav:focus-visible,
.faq-question:focus-visible,
.mobile-toggle:focus-visible,
.modal-close:focus-visible,
.pricing-btn:focus-visible,
.btn-hero:focus-visible,
.footer-socials a:focus-visible {
  outline: var(--fs-focus-ring);
  outline-offset: var(--fs-focus-offset);
}

/* Contraste: texto secundário ligeiramente mais legível no tema escuro */
[data-theme="dark"] {
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-secondary: rgba(255, 255, 255, 0.72);
}

/* Hierarquia CTA: secundário mais discreto */
.btn-nav-outline {
  font-weight: 600;
}
.btn-nav-filled {
  box-shadow: 0 2px 14px rgba(201, 162, 39, 0.35);
}

/* Skip link */
.fs-skip-landing {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.fs-skip-landing:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.65rem 1rem;
  background: var(--gold-premium, #c9a227);
  color: #0a0e1a;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  overflow: visible;
}

/* Contacto rápido no hero */
.hero-quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.hero-quick-contact a {
  color: var(--gold-premium);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hero-quick-contact a:hover {
  border-bottom-color: var(--gold-premium);
}

/* Secção "Para quem é" */
.audience-section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 5%;
  background: var(--section-alt-bg, transparent);
}
.audience-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.audience-card {
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card, rgba(20, 26, 46, 0.6));
  backdrop-filter: blur(10px);
}
.audience-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.audience-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.audience-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-premium);
  margin-bottom: 0.35rem;
}

/* Preço: destaque "a partir de" */
.pricing-intro {
  text-align: center;
  max-width: 720px;
  margin: 0.5rem auto 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.pricing-intro strong {
  color: var(--gold-premium);
}

/* Depoimentos: nota legal curta */
.testimonial-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Barra fixa mobile */
.fs-mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0));
  background: rgba(8, 12, 24, 0.92);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  gap: 0.5rem;
  justify-content: stretch;
  align-items: center;
}
[data-theme="light"] .fs-mobile-cta {
  background: rgba(248, 249, 253, 0.95);
  border-top-color: rgba(15, 23, 42, 0.08);
}
.fs-mobile-cta a,
.fs-mobile-cta button {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fs-mobile-cta .fs-mcta-primary {
  background: linear-gradient(135deg, #c9a227, #e8c84a);
  color: #0a0e1a;
}
.fs-mobile-cta .fs-mcta-secondary {
  background: transparent;
  color: var(--text-primary, #fff);
  border: 1px solid var(--border-color);
}
.fs-mobile-cta .fs-mcta-wa {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 0.65rem;
  background: #128c7e;
  color: #fff;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .fs-mobile-cta {
    display: flex;
  }
  body {
    padding-bottom: 4.5rem;
  }
}

/* —— Pré-visualização do app no hero (cartão claro estilo produto real) —— */
.hero-app-preview {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow:
    0 32px 64px -16px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(15, 23, 42, 0.04) !important;
}
.hero-app-preview::before {
  opacity: 0.85 !important;
}
.hero-app-preview .map-container {
  background: #eceff5 !important;
}
.hero-app-preview .map-container svg {
  position: relative;
  z-index: 2;
}
.hero-app-preview .map-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 1;
}
.hero-app-preview .map-container svg > rect:first-child {
  fill: #e8ecf4 !important;
}
.hero-app-preview .map-container svg #horizontal-roads > rect,
.hero-app-preview .map-container svg #vertical-roads > rect {
  fill: #dde3ee !important;
}
.hero-app-preview .map-container svg #horizontal-roads > line,
.hero-app-preview .map-container svg #vertical-roads > line {
  stroke: #c5cddc !important;
}
.hero-app-preview .map-container svg #horizontal-roads > text,
.hero-app-preview .map-container svg #vertical-roads > text {
  fill: #94a3b8 !important;
  opacity: 0.85 !important;
}
.hero-app-preview .map-container svg #blocks rect {
  fill: #ffffff !important;
  stroke: #e2e8f0 !important;
}
.hero-app-preview .map-container svg #route-line {
  stroke: #c9a227 !important;
}
.hero-app-preview .map-label {
  background: rgba(254, 252, 232, 0.96) !important;
  border: 1px solid rgba(201, 162, 39, 0.28) !important;
  color: #64748b !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  z-index: 12;
}
.hero-app-preview .map-label i {
  color: #b8860b !important;
}
.hero-app-preview .vehicle-bar {
  background: #fafbfc !important;
  border-top-color: #e8ecf0 !important;
}
.hero-app-preview .vehicle-name {
  color: #0f172a !important;
  font-size: 1rem !important;
}
.hero-app-preview .vehicle-plate {
  color: #94a3b8 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-app-preview .vehicle-icon-box {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.06)) !important;
  border-color: rgba(201, 162, 39, 0.35) !important;
  color: #9a7b16 !important;
}
.hero-app-preview .vehicle-mini-list {
  background: #ffffff !important;
  border-top-color: #eef1f5 !important;
}
.hero-app-preview .vehicle-mini {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
.hero-app-preview .vehicle-mini .mini-name {
  color: #0f172a !important;
}
.hero-app-preview .vehicle-mini.active {
  border-color: #c9a227 !important;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15) !important;
  background: linear-gradient(180deg, #fffbeb, #ffffff) !important;
}

.vehicle-status.vs-online {
  background: rgba(201, 162, 39, 0.14) !important;
  color: #9a7b16 !important;
}
.vehicle-status.vs-online .dot {
  background: #c9a227 !important;
}
.vehicle-status.vs-idle {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #c2410c !important;
}
.vehicle-status.vs-idle .dot {
  background: #f59e0b !important;
}
.vehicle-status.vs-offline {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #b91c1c !important;
}
.vehicle-status.vs-offline .dot {
  background: #ef4444 !important;
  animation: none;
}

.hero-app-caption {
  margin: 0;
  padding: 0.55rem 1rem 0.85rem;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid #eef1f5;
}
.hero-app-caption i {
  margin-right: 0.35rem;
  color: #94a3b8;
}

/* Aviso legal: não fornecemos hardware */
.fs-hardware-notice {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5% 2.5rem;
}
.fs-hardware-notice-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(8, 12, 24, 0.35));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .fs-hardware-notice-inner {
  background: linear-gradient(135deg, rgba(254, 252, 232, 0.95), #ffffff);
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
.fs-hardware-notice-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-premium, #c9a227);
  font-size: 1.1rem;
}
.fs-hardware-notice h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.fs-hardware-notice p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.fs-hardware-notice p a {
  color: var(--gold-premium);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  .fs-hardware-notice-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Limitação de responsabilidade: roubo/furto e bloqueio remoto (depende de rede) */
.fs-liability-notice {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5% 2.5rem;
}
.fs-liability-notice-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(8, 12, 24, 0.4));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .fs-liability-notice-inner {
  background: linear-gradient(135deg, #fff5f5, #ffffff);
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}
.fs-liability-notice-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 1.1rem;
}
.fs-liability-notice h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.fs-liability-notice p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.fs-liability-notice p + p {
  margin-top: 0.65rem;
}
.fs-liability-notice strong {
  color: var(--text-primary);
}
.fs-liability-notice a {
  color: var(--gold-premium);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  .fs-liability-notice-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .particle {
    display: none !important;
  }
}
