/* =========================================================
   INOPRIME — estilos compartilhados (paleta Inoprime)
   ========================================================= */
:root{
    --navy-900:#070b1c; --navy-800:#0b1228; --navy-700:#111a38;
    --brand:#2b50ff; --brand-deep:#0005be; --accent:#1fd8ff;
  }
  html{ scroll-behavior:smooth; }
  body{ font-family:'Inter',sans-serif; background:#fff; color:#0a0f22; -webkit-font-smoothing:antialiased; }
  h1,h2,h3,h4,.font-display{ font-family:'Sora',sans-serif; letter-spacing:-.02em; }

  /* Fundo de malha tecnológica para seções escuras */
  .tech-bg{
    background:
      radial-gradient(1100px 600px at 78% -10%, rgba(43,80,255,.30), transparent 60%),
      radial-gradient(900px 520px at 6% 8%, rgba(31,216,255,.14), transparent 58%),
      linear-gradient(180deg,#070b1c 0%, #080d22 60%, #070b1c 100%);
  }
  .grid-overlay{
    background-image:
      linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size:46px 46px;
    -webkit-mask-image:radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
            mask-image:radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  }
  .glass{
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border:1px solid rgba(255,255,255,.10);
    backdrop-filter:blur(10px);
  }
  .glass-light{
    background:rgba(255,255,255,.72);
    border:1px solid rgba(11,18,40,.07);
    backdrop-filter:blur(8px);
  }
  .text-gradient{ background:linear-gradient(92deg,#fff 12%, #aebcff 52%, var(--accent) 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
  .accent-line{ background:linear-gradient(90deg, var(--accent), transparent); }

  /* Botões */
  .btn{ display:inline-flex; align-items:center; gap:.55rem; font-weight:600; border-radius:.7rem; transition:transform .18s ease, box-shadow .25s ease, background .2s ease; }
  .btn:active{ transform:translateY(1px); }
  .btn-primary{ background:#0005be; color:#fff; box-shadow:0 12px 30px -12px rgba(0,5,190,.7); }
  .btn-primary:hover{ box-shadow:0 16px 40px -12px rgba(0,5,190,.85); transform:translateY(-1px); }
  .btn-accent{ background:#0005be; color:#fff; box-shadow:0 12px 30px -12px rgba(0,5,190,.7); }
  .btn-accent:hover{ transform:translateY(-1px); box-shadow:0 16px 44px -12px rgba(0,5,190,.85); }
  .btn-ghost{ background:rgba(255,255,255,.06); color:#fff; border:1px solid rgba(255,255,255,.16); }
  .btn-ghost:hover{ background:rgba(255,255,255,.12); }

  .eyebrow{ display:inline-flex; align-items:center; gap:.5rem; font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }

  /* Reveal on scroll */
  .reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in{ opacity:1; transform:none; }

  /* Roteamento */
  .page{ display:block; }
  
  @keyframes fade{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none; } }

  /* Animações de mockup */
  @keyframes ping2{ 0%{ transform:scale(1); opacity:.55; } 70%,100%{ transform:scale(2.6); opacity:0; } }
  .pulse-ring{ transform-origin:center; animation:ping2 2.6s ease-out infinite; }
  @keyframes dash{ to{ stroke-dashoffset:-220; } }
  .route-dash{ stroke-dasharray:7 9; animation:dash 6s linear infinite; }
  @keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-9px);} }
  .floaty{ animation:floaty 6s ease-in-out infinite; }
  @keyframes scanline{ 0%{ transform:translateY(-100%);} 100%{ transform:translateY(900%);} }


  @media (prefers-reduced-motion: reduce){
    .reveal{ opacity:1 !important; transform:none !important; }
    .pulse-ring,.route-dash,.floaty{ animation:none !important; }
  }

  .nav-link{ position:relative; }
  .nav-link.active{ color:#fff; }
  .nav-link.active::after{ content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--accent),var(--brand)); }

  /* ===== Cabeçalho: estado ao rolar (sobre fundo claro) ===== */
  /* No topo (sobre o hero escuro): logo branca, texto claro. Ao rolar: vira claro. */
  .ino-logo--dark{ display:none; }
  #header.is-scrolled #navbar{
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:blur(10px);
            backdrop-filter:blur(10px);
    border:1px solid rgba(11,18,40,.08);
    box-shadow:0 18px 50px -30px rgba(7,11,28,.30);
  }
  #header.is-scrolled .ino-logo--light{ display:none; }
  #header.is-scrolled .ino-logo--dark{ display:inline-block; }
  #header.is-scrolled .nav-link{ color:#1f2a44; }
  #header.is-scrolled .nav-link:hover{ color:var(--brand-deep); }
  #header.is-scrolled .nav-link.active{ color:var(--brand-deep); }
  #header.is-scrolled #menuBtn{ color:#0a0f22; background:rgba(10,15,34,.05); border:1px solid rgba(11,18,40,.10); }
  /* Botão "Área do Cliente": claro no topo (btn-ghost), escuro ao rolar */
  #header.is-scrolled .nav-area{ background:rgba(10,15,34,.04); color:#0a0f22; border-color:rgba(11,18,40,.14); }
  #header.is-scrolled .nav-area:hover{ background:rgba(10,15,34,.08); }

  /* ===== Carrossel de logos de clientes (marquee) ===== */
  .ino-marquee{
    overflow:hidden;
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .ino-marquee__track{
    display:flex;
    align-items:center;
    width:max-content;
    animation:ino-marquee 38s linear infinite;
  }
  .ino-marquee:hover .ino-marquee__track{ animation-play-state:paused; }
  .ino-marquee__logo{ flex:0 0 auto; margin:0 1.9rem; }
  @keyframes ino-marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
  @media (prefers-reduced-motion: reduce){
    .ino-marquee__track{ animation:none; flex-wrap:wrap; justify-content:center; width:auto; }
    .ino-marquee__logo{ margin:.9rem 1.5rem; }
    .ino-marquee__track [aria-hidden="true"]{ display:none; } /* esconde a cópia do loop */
  }
  /* Menu mobile aberto sobre fundo claro */
  #header.is-scrolled #mobileMenu{ background:#fff; border:1px solid rgba(11,18,40,.08); color:#1f2a44; }
  #header.is-scrolled #mobileMenu .mnav{ color:#1f2a44; }
  #header.is-scrolled #mobileMenu .mnav:hover{ background:rgba(10,15,34,.05); }
  #header.is-scrolled #mobileMenu .btn-accent{ color:#fff; }

  .feature-card{ transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .feature-card:hover{ transform:translateY(-4px); }

  /* Scrollbar sutil */
  ::selection{ background:rgba(31,216,255,.28); }

  /* ===== Blog / conteúdo (prose) ===== */
  .ino-prose{ color:#27324d; font-size:1.05rem; line-height:1.75; }
  .ino-prose > * + *{ margin-top:1.15em; }
  .ino-prose h2{ font-family:'Sora',sans-serif; font-weight:700; font-size:1.6rem; line-height:1.25; margin-top:1.8em; color:#0a0f22; }
  .ino-prose h3{ font-family:'Sora',sans-serif; font-weight:600; font-size:1.3rem; margin-top:1.5em; color:#0a0f22; }
  .ino-prose a{ color:#0005be; text-decoration:underline; text-underline-offset:2px; }
  .ino-prose a:hover{ color:#2b50ff; }
  .ino-prose ul,.ino-prose ol{ padding-left:1.4em; }
  .ino-prose ul{ list-style:disc; }
  .ino-prose ol{ list-style:decimal; }
  .ino-prose li + li{ margin-top:.4em; }
  .ino-prose img{ border-radius:1rem; height:auto; }
  .ino-prose blockquote{ border-left:3px solid #1fd8ff; padding-left:1.1em; color:#475069; font-style:italic; }
  .ino-prose code{ background:#eef2f9; padding:.15em .4em; border-radius:.35em; font-size:.9em; }
  .ino-prose pre{ background:#0a0f22; color:#e2e8f4; padding:1.1em; border-radius:.8em; overflow:auto; }
  .ino-prose pre code{ background:transparent; padding:0; }

  /* ===== Paginação ===== */
  .ino-pagination .nav-links{ display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
  .ino-pagination .page-numbers{ display:inline-grid; place-items:center; min-width:2.5rem; height:2.5rem; padding:0 .6rem; border-radius:.7rem; background:#fff; color:#0a0f22; border:1px solid rgba(10,15,34,.1); font-weight:600; transition:all .2s ease; }
  .ino-pagination .page-numbers:hover{ border-color:#2b50ff; color:#0005be; }
  .ino-pagination .page-numbers.current{ background:#0005be; color:#fff; border-color:#0005be; }
  .ino-pagination .page-numbers.dots{ border:none; background:transparent; }

  /* Comentários */
  .ino-comments input[type=text],.ino-comments input[type=email],.ino-comments input[type=url],.ino-comments textarea{ width:100%; border:1px solid rgba(10,15,34,.15); border-radius:.7rem; padding:.7rem 1rem; font-size:.95rem; background:#fff; transition:border-color .2s ease, box-shadow .2s ease; }
  .ino-comments input:focus,.ino-comments textarea:focus{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(43,80,255,.15); outline:none; }
  .ino-comments .comment-list{ list-style:none; padding:0; }

  /* Espaçamentos do formulário de comentário (o preflight do Tailwind zera margens de p/label) */
  .ino-comments .comment-respond{ margin-top:.25rem; }
  .ino-comments .logged-in-as{ font-size:.9rem; color:#475069; line-height:1.6; margin:0 0 1.1rem; }
  .ino-comments .logged-in-as a{ color:#0005be; font-weight:600; }
  .ino-comments .comment-notes{ font-size:.85rem; color:#64748b; line-height:1.6; margin:0 0 1.4rem; }
  .ino-comments .comment-form-comment,
  .ino-comments .comment-form-author,
  .ino-comments .comment-form-email,
  .ino-comments .comment-form-url,
  .ino-comments .comment-form-cookies-consent{ margin-bottom:1.1rem; }
  .ino-comments .comment-form label{ display:block; font-weight:600; font-size:.9rem; color:#0a0f22; margin-bottom:.45rem; }
  .ino-comments .comment-form-cookies-consent label{ display:inline; font-weight:400; margin:0 0 0 .4rem; }
  .ino-comments .comment-form-cookies-consent input{ width:auto; }
  .ino-comments .form-submit{ margin:.25rem 0 0; }
  .ino-comments .required{ color:#e11d48; }
  .ino-comments .comment-reply-title{ margin-bottom:1rem; }

  /* ===== Skin do Fluent Forms (parecido com o formulário do tema) ===== */
  .fluentform .ff-el-group{ margin-bottom:1rem; }
  .fluentform .ff-el-input--label label{ font-size:.875rem; font-weight:500; color:#0a0f22; margin-bottom:.35rem; }
  .fluentform input[type=text],
  .fluentform input[type=email],
  .fluentform input[type=tel],
  .fluentform input[type=number],
  .fluentform select,
  .fluentform textarea{
    width:100%; border:1px solid rgba(10,15,34,.15); border-radius:.75rem;
    padding:.7rem 1rem; font-size:.9rem; background:#fff; color:#0a0f22;
    transition:border-color .2s ease, box-shadow .2s ease; box-shadow:none;
  }
  .fluentform input:focus,
  .fluentform select:focus,
  .fluentform textarea:focus{
    border-color:var(--brand); box-shadow:0 0 0 3px rgba(43,80,255,.18); outline:none;
  }
  .fluentform .ff-el-group.ff-el-form-check{ display:flex; align-items:flex-start; gap:.5rem; }
  .fluentform .ff-btn-submit,
  .fluentform .ff_btn_style{
    background:var(--brand-deep) !important; color:#fff !important; border:none !important;
    border-radius:.7rem !important; padding:.85rem 1.5rem !important; font-weight:600 !important;
    width:100%; cursor:pointer; transition:transform .18s ease, box-shadow .25s ease;
    box-shadow:0 12px 30px -12px rgba(0,5,190,.7);
  }
  .fluentform .ff-btn-submit:hover{ transform:translateY(-1px); box-shadow:0 16px 40px -12px rgba(0,5,190,.85); }
  .fluentform .ff-message-success{
    background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46;
    border-radius:.9rem; padding:1rem 1.25rem; font-size:.95rem;
  }
  .fluentform .error.text-danger,
  .fluentform .ff-el-is-error .text-danger{ color:#e11d48; font-size:.8rem; }

  /* ===== Mockup "Veiculo conectado" (v2) ===== */
.veh-sensor .pulse-ring{ transform-box:fill-box; transform-origin:center; }

/* Gauge de velocidade (círculo r=34, circunferência ~213.6 -> preenche ~66%) */
.veh-gauge{ transform-box:fill-box; transform-origin:center; transform:rotate(-90deg);
            stroke-dasharray:213.6; stroke-dashoffset:213.6;
            animation:vehGauge 2.4s cubic-bezier(.2,.7,.2,1) forwards .2s; }
@keyframes vehGauge{ to{ stroke-dashoffset:72; } }
/* Barra de eficiência / economia de combustível -> 68% */
.veh-fuel{ width:0; animation:vehFuel 2s ease-out forwards .3s; }
@keyframes vehFuel{ to{ width:68%; } }

/* ============================================================
   Mockup "Veículo conectado" — APENAS classes novas, prefixo veh-.
   NÃO redefine .glass .floaty .reveal .pulse-ring .route-dash
   .veh-sensor .veh-gauge .veh-fuel nem @keyframes scanline:
   todas já existem em assets/css/site.css do tema.
   O gauge (círculo r=34, circunferência ~213.6) e a barra de
   eficiência (.veh-fuel -> width:68%) usam EXATAMENTE o
   .veh-gauge / .veh-fuel do tema — por isso o rótulo agora é
   "EFICIÊNCIA 68%" (coerente com a largura da barra), com o
   ganho "−15% consumo · via telemetria" como legenda.
   ============================================================ */

/* Scanline reaproveitando @keyframes scanline do tema (varre verticalmente).
   Em classe (não inline) para poder ser desligada em reduced-motion. */
.veh-scan{ animation:scanline 5s linear infinite; }
.veh-scan--fast{ animation-duration:3.5s; }

/* Ponto REC piscando (câmera do motorista / videometria) */
@keyframes vehRec{ 0%,55%{ opacity:1; } 56%,100%{ opacity:.12; } }
.veh-rec{ animation:vehRec 1.1s steps(1,end) infinite; }

/* Infração "ativa" (Curva brusca) piscando suavemente */
@keyframes vehAlert{ 0%,100%{ opacity:1; } 50%{ opacity:.4; } }
.veh-alert{ animation:vehAlert 1.5s ease-in-out infinite; }

/* Linhas de velocidade atrás do caminhão (sugerem movimento) */
@keyframes vehSpeed{ 0%{ transform:translateX(0); opacity:.18; } 50%{ opacity:.7; } 100%{ transform:translateX(22px); opacity:0; } }
.veh-speed line{ animation:vehSpeed 2.2s ease-in infinite; }

@media (prefers-reduced-motion: reduce){
  .veh-rec, .veh-alert, .veh-speed line, .veh-scan{ animation:none !important; }
  .veh-rec{ opacity:1; }
  .veh-speed line{ opacity:.4; }
  .veh-scan{ display:none; }
  .veh-gauge{ stroke-dashoffset:72; animation:none; }
  .veh-fuel{ width:68%; animation:none; }
}

  /* ===== Veiculo conectado AO VIVO (toasts + gauge dinamico) ===== */
/* =========================================================
   INOPRIME — Hero "Veículo conectado" (telemetria viva) — FINAL QA
   Prefixo veh-. Cole junto ao CSS custom do tema (site.css).
   Casa 1:1 com as classes geradas pelo JS.
   ========================================================= */

/* ---- Arco do gauge AO VIVO (JS controla o offset; sem @keyframes próprio) ----
   baseline 103.254 == 62 km/h  (CIRC*(1 - 62/120), CIRC = 2*PI*34 = 213.628).
   Assim o estado pré-JS / sem-JS / reduced-motion fica COERENTE com o número 62. */
.veh-gauge-live{
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
  stroke-dasharray: 213.628;
  stroke-dashoffset: 103.254;       /* baseline estático = 62 km/h */
  transition: stroke-dashoffset .9s cubic-bezier(.2,.7,.2,1);
}

/* ---- Container de toasts (topo-centro do painel; não cobre gauge nem HUDs) ---- */
.veh-alerts{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(280px, 78%);
  pointer-events: none;             /* o container nunca bloqueia o painel/gauge */
}

/* ---- Toast base (glass escuro, navy) ---- */
.veh-toast{
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  min-width: 196px;
  max-width: 280px;
  border-radius: 13px;
  border: 1px solid rgba(110,231,255,.20);
  background: linear-gradient(180deg, rgba(11,18,40,.92), rgba(7,11,28,.94));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow:
    0 12px 30px -10px rgba(2,6,20,.85),
    0 0 0 1px rgba(255,255,255,.03) inset;
  color: #fff;
  /* estado inicial (oculto): desliza de cima + leve zoom */
  opacity: 0;
  transform: translateY(-9px) scale(.95);
  transition:
    opacity .42s cubic-bezier(.2,.7,.2,1),
    transform .42s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.veh-toast.is-in{
  opacity: 1;
  transform: translateY(0) scale(1);
}
.veh-toast.is-out{
  opacity: 0;
  transform: translateY(-7px) scale(.98);
}

/* Realce lateral por severidade (cor definida em cada variante) */
.veh-toast::before{
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #6ee7ff;
}

/* Ícone */
.veh-toast__ic{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  color: #1fd8ff;                   /* accent (sobrescrito por severidade) */
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.veh-toast__ic svg{ width: 17px; height: 17px; display: block; }

/* Textos */
.veh-toast__txt{ display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.veh-toast__title{
  font-family: Sora, ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1px;
  color: #fff;
  white-space: nowrap;
}
.veh-toast__sub{
  margin-top: 2px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;                   /* slate-400 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Variantes de severidade ---- */
/* Perigo (vermelho) — frenagem brusca / excesso grave */
.veh-toast--danger{
  border-color: rgba(239,68,68,.40);
  box-shadow:
    0 12px 30px -10px rgba(239,68,68,.30),
    0 0 0 1px rgba(255,255,255,.03) inset;
}
.veh-toast--danger::before{ background: #ef4444; }
.veh-toast--danger .veh-toast__ic{
  color: #ef4444;
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.30);
}

/* Aviso (âmbar) — excesso de velocidade / aceleração brusca */
.veh-toast--warn{
  border-color: rgba(251,191,36,.40);
  box-shadow:
    0 12px 30px -10px rgba(251,191,36,.26),
    0 0 0 1px rgba(255,255,255,.03) inset;
}
.veh-toast--warn::before{ background: #fbbf24; }
.veh-toast--warn .veh-toast__ic{
  color: #fbbf24;
  background: rgba(251,191,36,.14);
  border-color: rgba(251,191,36,.30);
}

/* Fadiga (laranja) */
.veh-toast--fatigue{
  border-color: rgba(251,146,60,.42);
  box-shadow:
    0 12px 30px -10px rgba(251,146,60,.26),
    0 0 0 1px rgba(255,255,255,.03) inset;
}
.veh-toast--fatigue::before{ background: #fb923c; }
.veh-toast--fatigue .veh-toast__ic{
  color: #fb923c;
  background: rgba(251,146,60,.14);
  border-color: rgba(251,146,60,.30);
}

/* ---- Acessibilidade: movimento reduzido (sem transform/transition) ---- */
@media (prefers-reduced-motion: reduce){
  .veh-gauge-live{ transition: none; stroke-dashoffset: 103.254; } /* 62 km/h coerente */
  .veh-toast{
    transition: none;
    transform: none;
    opacity: 1;
    will-change: auto;
  }
  .veh-toast.is-in{ transform: none; opacity: 1; }
  .veh-toast.is-out{ transform: none; opacity: 0; }
}
