/* =========================================================================
   Mateus Informática — Design System
   Reconstruído a partir do layout aprovado (mockups de 19/08/2026)
   HTML + CSS + JS puro, sem frameworks e sem build.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Marca — azuis do layout */
  --navy-950: #04102a;
  --navy-900: #071b3d;
  --navy-850: #0a2350;
  --navy-800: #0d2b5e;
  --navy-700: #123a7d;
  --blue-600: #1461cf;
  --blue-500: #1668e3;
  --blue-400: #2f83f5;
  --blue-300: #63a6ff;
  --blue-200: #9cc6ff;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --whats:    #25d366;
  --whats-dk: #1aa851;

  /* Superfícies — tema claro */
  --bg:        #ffffff;
  --bg-soft:   #f4f7fc;
  --bg-mute:   #e9f0fa;
  --surface:   #ffffff;
  --surface-2: #fbfcfe;
  --border:    #e3e9f3;
  --border-str:#cfdaea;

  /* Texto */
  --text:      #16233d;
  --text-soft: #4d5d7a;
  --text-mute: #71809b;
  --text-inv:  #ffffff;

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(7, 27, 61, .06);
  --sh-sm: 0 1px 3px rgba(7, 27, 61, .07), 0 3px 10px rgba(7, 27, 61, .05);
  --sh-md: 0 4px 14px rgba(7, 27, 61, .09), 0 2px 5px rgba(7, 27, 61, .05);
  --sh-lg: 0 18px 42px rgba(7, 27, 61, .16), 0 6px 14px rgba(7, 27, 61, .08);
  --sh-blue: 0 10px 26px rgba(22, 104, 227, .30);

  /* Formas */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Layout */
  --wrap: 1320px;
  --wrap-narrow: 1040px;
  --gutter: clamp(1rem, 3.5vw, 2.25rem);
  --sec-y: clamp(3rem, 6vw, 5rem);

  /* Cabeçalho */
  --topbar-h: 62px;
  --header-h: 84px;

  /* Tipografia */
  --f-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Tema escuro */
:root[data-theme="dark"] {
  --bg:        #070f22;
  --bg-soft:   #0a1730;
  --bg-mute:   #0e2044;
  --surface:   #0d1a35;
  --surface-2: #101f3e;
  --border:    #1c2f56;
  --border-str:#264070;
  --text:      #e8eefb;
  --text-soft: #a8b8d4;
  --text-mute: #8394b4;
  --sh-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --sh-md: 0 4px 14px rgba(0, 0, 0, .45);
  --sh-lg: 0 18px 42px rgba(0, 0, 0, .55);
}

/* -------------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue-600); }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--text);
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--blue-500); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--r-sm); font-weight: 600;
  transition: top .18s;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   3. Utilitários de layout
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sec-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
/* Aproxima duas seções vizinhas encurtando o respiro entre elas */
.section--fim-curto { padding-bottom: clamp(1rem, 2vw, 1.75rem); }
.section--inicio-curto { padding-top: clamp(1rem, 2vw, 1.75rem); }

.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.sec-head__text { max-width: 62ch; }

/* Cabeçalho de seção centralizado, mantendo o mesmo estilo dos demais */
.sec-head--centro { justify-content: center; }
.sec-head--centro .sec-head__text { text-align: center; margin-inline: auto; }

.sec-title {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-500);
  margin: 0 0 .35em;
  letter-spacing: -.015em;
}
.sec-title--dark { color: var(--text); }
/* Título de abertura centralizado, em caixa normal (sem o maiúsculo
   dos demais títulos de seção). O trecho em <em> recebe o azul de
   destaque — aqui o --blue-500, porque o azul claro do hero fica com
   contraste de 2,5:1 sobre fundo branco e não se lê. */
.titulo-centro {
  /* Sem limite de largura: a quebra é feita por <br> no próprio texto,
     para o título cair exatamente nas duas linhas desenhadas. */
  text-align: center; margin-inline: auto;
  text-transform: none;
}
.titulo-centro em { font-style: normal; color: var(--blue-500); }
.sec-sub { color: var(--text-soft); margin: 0; font-size: 1.02rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue-500);
}

/* -------------------------------------------------------------------------
   3.1 Logo sobre fundo escuro
   -------------------------------------------------------------------------
   O logo original tem o texto "MATEUS" e a assinatura em preto — sobre o azul
   escuro do rodapé e do banner, a assinatura praticamente sumia.
   Em vez de inverter a imagem inteira (o que apagava o texto junto com o
   fundo), pintamos de branco apenas a faixa da assinatura, usando o próprio
   logo como máscara. O resto da arte fica com as cores originais da marca.

   Se um dia o arquivo do logo for trocado, ajuste --logo-assinatura para a
   altura onde a assinatura começa (em % da altura total da imagem).
   No arquivo atual (378x139 px), ela começa no pixel 124 -> 89.2%.
   ------------------------------------------------------------------------- */
.logo-neg {
  --logo-assinatura: 89.2%;
  position: relative; display: inline-block; line-height: 0;
}
.logo-neg > img { display: block; }
.logo-neg::after {
  content: "";
  position: absolute; inset: 0;
  background-color: #fff;
  -webkit-mask: url("../img/logo.webp") no-repeat 0 0 / 100% 100%;
          mask: url("../img/logo.webp") no-repeat 0 0 / 100% 100%;
  -webkit-clip-path: inset(var(--logo-assinatura) 0 0 0);
          clip-path: inset(var(--logo-assinatura) 0 0 0);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   4. Botões
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-500);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-head); font-weight: 700; font-size: .88rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .85rem 1.5rem;
  border-radius: var(--r-sm);
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
  text-align: center;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { --btn-bg: var(--blue-500); box-shadow: var(--sh-blue); }
.btn--primary:hover { --btn-bg: var(--blue-600); }

.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn--ghost:hover { --btn-bd: #fff; background: rgba(255,255,255,.1); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--blue-500); --btn-bd: var(--blue-500); }
.btn--outline:hover { --btn-bg: var(--blue-500); --btn-fg: #fff; }

.btn--whats { --btn-bg: var(--whats); }
.btn--whats:hover { --btn-bg: var(--whats-dk); }

.btn--sm { padding: .6rem 1.05rem; font-size: .78rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: .95rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------------------
   5. Barra superior (contatos)
   ------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #dbe6f8;
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner {
  display: flex; align-items: stretch; flex-wrap: wrap;
  gap: 0; min-height: var(--topbar-h);
}
.topbar__item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 1.15rem;
  position: relative;
  line-height: 1.32;
}
.topbar__item + .topbar__item::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 1px; background: rgba(255,255,255,.16);
}
.topbar__item:first-child { padding-left: 0; }
.topbar__icon {
  width: 20px; height: 20px; flex: none; color: var(--blue-300);
}
/* Telefones: cada número com o seu próprio ícone, para ficar claro
   qual deles é o WhatsApp e qual é a linha de telefone. */
.topbar__linhas { display: grid; gap: .15rem; }
.topbar__num { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.topbar__num .topbar__icon { width: 17px; height: 17px; }
.topbar__num:hover .topbar__icon { color: #fff; }
.topbar a { color: #dbe6f8; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* Horário: as duas faixas e o plantão centralizados entre si, com o
   plantão em corpo menor para não competir com o horário principal.
   Usado na barra superior e no rodapé. */
.horario { text-align: center; }
.horario small {
  display: block; margin-top: .1rem;
  font-size: .86em; opacity: .78;
}
.topbar__spacer { margin-left: auto; }
.topbar__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-xs);
  color: #dbe6f8;
}
.topbar__social:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar__social svg { width: 20px; height: 20px; }
.topbar__cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue-500); color: #fff;
  padding: .6rem 1.15rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: .84rem;
  align-self: center; margin-left: .6rem;
  transition: background .18s, transform .18s;
  white-space: nowrap;
}
.topbar__cta:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.topbar__cta svg { width: 17px; height: 17px; }

/* Barra superior — manter contatos e botão numa linha só.
   Sem isto o "Fale Conosco" cai sozinho numa segunda linha e sobra
   um vão azul vazio à esquerda dele. */
@media (min-width: 1000px) {
  .topbar__inner { flex-wrap: nowrap; }
  .topbar__item { padding: .5rem .95rem; min-width: 0; flex: none; }
  .topbar__item:first-child { padding-left: 0; }
  /* o texto só quebra onde existe <br>, nunca por falta de espaço
     (o endereço é um link para o Google Maps, daí o "> a" também) */
  .topbar__item > span,
  .topbar__item > a { white-space: nowrap; }
  /* se faltar espaço, o e-mail é o primeiro a ceder */
  .topbar__item:nth-child(3) { flex: 0 1 auto; overflow: hidden; }
  .topbar__item:nth-child(3) > a {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .topbar__cta { margin-left: .5rem; padding: .55rem 1.05rem; }
}

/* Notebook: o horário sai da barra para o resto caber numa linha.
   Ele continua no rodapé e na página de contato. */
@media (min-width: 1000px) and (max-width: 1319.98px) {
  .topbar__item:nth-child(2) { display: none; }
}

/* Telas menores: a quebra é inevitável, então a faixa do botão vira
   uma linha própria, centralizada e enxuta, em vez de um bloco vazio. */
@media (max-width: 999.98px) {
  .topbar__inner { min-height: 0; }
  .topbar__item:nth-child(2) { display: none; }
  .topbar__spacer {
    width: 100%; justify-content: center;
    margin-left: 0; padding: .35rem 0 .55rem;
    border-top: 1px solid rgba(255,255,255,.10);
  }
  .topbar__spacer::before { display: none; }
}


/* -------------------------------------------------------------------------
   6. Cabeçalho / navegação
   ------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.header.is-stuck { box-shadow: var(--sh-md); }

.header__inner {
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }

/* O logo.webp tem 378px de largura, mas só 192px são desenho: sobram 97px
   de transparência à esquerda e 89px à direita. A moldura corta esse vazio,
   então a marca aparece maior sem a imagem ser ampliada além do original. */
.brand__logo { display: block; width: 77px; overflow: hidden; flex: none; }
.brand__logo img {
  display: block; width: 150px; max-width: none; height: auto;
  margin-left: -38px;
}

/* Assinatura ao lado da logo, ocupando o vão que sobrava até o menu */
.brand__tag {
  font-family: var(--f-head); font-weight: 800;
  font-size: .78rem; line-height: 1.15; color: var(--text);
  white-space: nowrap;
}
.brand__tag strong { display: block; font-weight: 800; color: var(--blue-500); }

/* A assinatura só aparece onde sobra espaço de verdade:
   - 1081px a 1220px: o menu completo já ocupa quase toda a barra;
   - abaixo de 900px: logo, busca, tema e sanduíche não deixam folga
     (a 768px o cabeçalho fica com 0px de sobra, a 404px transborda).
   Entre 900px e 1080px o menu vira sanduíche e ela cabe de novo. */
@media (max-width: 899.98px),
       (min-width: 1081px) and (max-width: 1220px) {
  .brand__tag { display: none; }
}

.nav { margin-left: auto; }
.nav__list {
  display: flex; align-items: center; gap: clamp(.35rem, 1.3vw, 1.15rem);
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-head); font-weight: 600; font-size: .93rem;
  color: var(--text); padding: .55rem .2rem; white-space: nowrap;
  transition: color .18s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--blue-500); border-radius: 3px;
  transform: scaleX(0); transform-origin: center; transition: transform .22s;
}
.nav__link:hover { color: var(--blue-500); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--blue-500); }
.nav__caret { width: 15px; height: 15px; transition: transform .2s; }

/* Item do menu em destaque — pilula azul preenchida.
   O sublinhado animado dos demais links nao se aplica aqui. */
.nav__link--destaque {
  background: var(--blue-500); color: #fff;
  padding: .5rem .85rem; border-radius: var(--r-full);
  box-shadow: var(--sh-blue);
  transition: background .18s, transform .18s;
}
.nav__link--destaque::after { display: none; }
.nav__link--destaque:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.nav__link--destaque[aria-current="page"] { background: var(--blue-600); color: #fff; }

/* Submenu */
.nav__item--has-sub { position: relative; }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0;
  min-width: 268px; list-style: none; margin: 0; padding: .5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__item--has-sub:hover .nav__caret { transform: rotate(180deg); }
.nav__sub a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--text);
}
.nav__sub a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav__sub svg { width: 18px; height: 18px; color: var(--blue-500); flex: none; }
:root[data-theme="dark"] .nav__sub a:hover { background: var(--bg-mute); }

/* Ações do cabeçalho */
.header__actions { display: flex; align-items: center; gap: .4rem; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent;
  color: var(--text-soft); cursor: pointer; transition: background .18s, color .18s;
}
.icon-btn:hover { background: var(--bg-mute); color: var(--blue-500); }
.icon-btn svg { width: 21px; height: 21px; }

.nav-toggle { display: none; }

/* Menu mobile */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--surface); padding: 1.25rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateX(100%); transition: transform .28s ease;
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mobile-nav__list a {
  display: block; padding: .95rem .25rem; font-family: var(--f-head);
  font-weight: 600; font-size: 1.05rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav__list a:hover, .mobile-nav__list a[aria-current="page"] { color: var(--blue-500); }
.mobile-nav__list .is-sub { padding-left: 1.5rem; font-size: .95rem; font-weight: 500; color: var(--text-soft); }
/* mesmo destaque, adaptado ao menu deslizante */
.mobile-nav__list .mobile-nav__destaque {
  background: var(--blue-500); color: #fff;
  border-bottom: 0; border-radius: var(--r-sm);
  padding-inline: .9rem; margin: .35rem 0;
}
.mobile-nav__list .mobile-nav__destaque:hover,
.mobile-nav__list .mobile-nav__destaque[aria-current="page"] { background: var(--blue-600); color: #fff; }

/* Busca */
.search-panel {
  position: fixed; inset: var(--header-h) 0 auto; z-index: 98;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-md); padding: 1.25rem 0;
  display: none;
}
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: .6rem; }
.search-form input {
  flex: 1; padding: .85rem 1.1rem; border-radius: var(--r-sm);
  border: 1px solid var(--border-str); background: var(--surface-2); color: var(--text);
}
.search-hint { margin: .75rem 0 0; font-size: .85rem; color: var(--text-mute); }
.search-results { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .35rem; }
.search-results a { display: block; padding: .6rem .75rem; border-radius: var(--r-sm); color: var(--text); }
.search-results a:hover { background: var(--bg-mute); color: var(--blue-600); }
.search-results strong { display: block; font-family: var(--f-head); font-size: .95rem; }
.search-results span { font-size: .85rem; color: var(--text-mute); }

/* -------------------------------------------------------------------------
   7. Fundo estrelado (hero e faixas escuras)
   ------------------------------------------------------------------------- */
.starfield { position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 72% 12%, #17469a 0%, rgba(23,70,154,0) 62%),
    radial-gradient(900px 520px at 12% 88%, #0f3d7a 0%, rgba(15,61,122,0) 60%),
    linear-gradient(158deg, #061733 0%, #0a2350 45%, #061733 100%);
  background-color: var(--navy-900);
}
.starfield::before,
.starfield::after {
  content: ""; position: absolute; inset: -10%; z-index: -1; pointer-events: none;
}
.starfield::before {
  background-image:
    radial-gradient(1.6px 1.6px at 24px 38px,  rgba(255,255,255,.75), transparent),
    radial-gradient(1.4px 1.4px at 142px 96px, rgba(147,197,253,.65), transparent),
    radial-gradient(1.2px 1.2px at 70px 180px, rgba(255,255,255,.5),  transparent),
    radial-gradient(1.8px 1.8px at 208px 46px, rgba(191,219,254,.6),  transparent),
    radial-gradient(1.2px 1.2px at 250px 210px,rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 178px 252px,rgba(147,197,253,.5),  transparent),
    radial-gradient(1.1px 1.1px at 40px 268px, rgba(255,255,255,.4),  transparent),
    radial-gradient(1.7px 1.7px at 300px 130px,rgba(255,255,255,.55), transparent);
  background-size: 340px 320px;
  opacity: .9;
}
.starfield::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%234f8ee8' stroke-width='.7' opacity='.34'%3E%3Cpath d='M20 60 L130 20 L240 78 L350 34 L410 96'/%3E%3Cpath d='M20 60 L96 150 L240 78'/%3E%3Cpath d='M96 150 L48 262 L176 306 L240 78'/%3E%3Cpath d='M176 306 L318 250 L350 34'/%3E%3Cpath d='M318 250 L400 330 L268 400 L176 306'/%3E%3Cpath d='M48 262 L10 372 L268 400'/%3E%3C/g%3E%3Cg fill='%2379b0f0' opacity='.5'%3E%3Ccircle cx='20' cy='60' r='2.4'/%3E%3Ccircle cx='130' cy='20' r='2'/%3E%3Ccircle cx='240' cy='78' r='2.8'/%3E%3Ccircle cx='350' cy='34' r='2.2'/%3E%3Ccircle cx='96' cy='150' r='2.6'/%3E%3Ccircle cx='48' cy='262' r='2.2'/%3E%3Ccircle cx='176' cy='306' r='2.8'/%3E%3Ccircle cx='318' cy='250' r='2.4'/%3E%3Ccircle cx='400' cy='330' r='2'/%3E%3Ccircle cx='268' cy='400' r='2.4'/%3E%3Ccircle cx='10' cy='372' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
  opacity: .55;
}

/* -------------------------------------------------------------------------
   8. Hero
   ------------------------------------------------------------------------- */
.hero { position: relative; color: #fff; }
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .78fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(6rem, 10vw, 8.5rem);
  min-height: clamp(480px, 56vw, 620px);
}

.hero__figure {
  position: absolute; z-index: 1;
  left: 34%; bottom: 0;
  width: clamp(320px, 34vw, 500px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 68% 78% at 52% 46%, #000 52%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(ellipse 68% 78% at 52% 46%, #000 52%, rgba(0,0,0,0) 100%);
}
.hero__figure img { width: 100%; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  padding: .5rem 1rem; border-radius: var(--r-full);
  font-family: var(--f-head); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #cfe2ff;
  margin-bottom: 1.35rem;
}
.hero__badge svg { width: 15px; height: 15px; color: var(--blue-300); }

.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 800; line-height: 1.08; color: #fff;
  margin: 0 0 1rem; letter-spacing: -.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero__title em { font-style: normal; color: var(--blue-300); }

.hero__lead {
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  color: #c8d8f0; max-width: 34ch; margin: 0 0 1.6rem;
}

.hero__pill {
  display: inline-flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  padding: .7rem 1.2rem; border-radius: var(--r-md);
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; color: #fff;
  margin-bottom: 1.8rem;
}
.hero__pill svg { width: 26px; height: 26px; color: var(--blue-300); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Atalhos de solução (coluna direita) */
.hero__shortcuts {
  display: grid; gap: .55rem; position: relative; z-index: 3;
  /* Estreitos e encostados à direita: deixam a imagem do hero à mostra */
  width: min(100%, 340px); justify-self: end;
}
.shortcut {
  position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(9, 30, 68, .62);
  border: 1px solid rgba(120, 165, 235, .3);
  backdrop-filter: blur(8px);
  border-radius: var(--r-sm);
  /* Recuo igual dos dois lados para o texto centralizar no botão inteiro;
     o ícone sai do fluxo e fica preso à esquerda, dentro do botão. */
  padding: .7rem 3rem;
  color: #eaf1fd; font-family: var(--f-head); font-weight: 600; font-size: .92rem;
  line-height: 1.25;
  transition: background .18s, border-color .18s, transform .18s;
}
.shortcut:hover {
  background: rgba(22, 104, 227, .55);
  border-color: var(--blue-300);
  color: #fff; transform: translateX(-4px);
}
.shortcut svg {
  position: absolute; left: 1rem;
  width: 24px; height: 24px; flex: none; color: var(--blue-300);
}
.shortcut:hover svg { color: #fff; }

/* Atalho em destaque (verde do WhatsApp) — chamada de visita do vendedor */
.shortcut--destaque {
  background: var(--whats);
  border-color: var(--whats);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
}
.shortcut--destaque:hover {
  background: var(--whats-dk);
  border-color: var(--whats-dk);
  color: #fff;
}
.shortcut--destaque svg,
.shortcut--destaque:hover svg { color: #fff; }

/* Faixa de destaques sobreposta ao hero */
.hero-features { position: relative; z-index: 4; margin-top: clamp(-5.5rem, -7vw, -4rem); }
.hero-features__card {
  background: linear-gradient(120deg, rgba(9,30,68,.96), rgba(13,43,94,.96));
  border: 1px solid rgba(120,165,235,.24);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.hero-feature {
  display: flex; align-items: flex-start; gap: .95rem;
  padding: clamp(1.15rem, 2vw, 1.6rem) clamp(1rem, 1.8vw, 1.7rem);
  position: relative;
}
.hero-feature + .hero-feature::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: rgba(255,255,255,.15);
}
.hero-feature svg { width: 34px; height: 34px; flex: none; color: var(--blue-300); }
.hero-feature h3 {
  font-size: .95rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; color: #fff; margin: 0 0 .3rem; line-height: 1.2;
}
.hero-feature p { margin: 0; font-size: .85rem; color: #b8cbe8; line-height: 1.45; }

/* -------------------------------------------------------------------------
   9. Cards de solução
   ------------------------------------------------------------------------- */
/* Seções sem subtítulo: o título fica mais perto dos cards */
#solucoes .sec-head,
#depoimentos .sec-head { margin-bottom: clamp(.9rem, 1.6vw, 1.35rem); }

.sol-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.75rem, 1.3vw, 1.15rem);
}
.sol-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--blue-200);
  color: var(--text);
}
.sol-card__media {
  background: #fff;
  aspect-ratio: 202 / 200;
  overflow: hidden;
}
.sol-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sol-card__body { padding: 0 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.sol-card__title {
  font-size: 1.02rem; font-weight: 700; margin: 0 0 .5rem; line-height: 1.25;
}
.sol-card__text { font-size: .86rem; color: var(--text-soft); margin: 0 0 1rem; flex: 1; line-height: 1.5; }
.sol-card__more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: var(--blue-500);
}
.sol-card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.sol-card:hover .sol-card__more svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   10. Banner "Por que escolher"
   ------------------------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.why__left {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: linear-gradient(135deg, #071b3d 0%, #0d2b5e 100%);
  color: #fff;
}
.why__title {
  font-size: clamp(1.1rem, 1.9vw, 1.5rem); font-weight: 800;
  text-transform: uppercase; color: var(--blue-300); margin: 0 0 1.1rem; line-height: 1.2;
}
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.why__list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .96rem; color: #e2ecfb; }
.why__list svg { width: 20px; height: 20px; flex: none; color: var(--blue-300); margin-top: .15rem; }

.why__logo {
  display: grid; place-items: center;
  width: clamp(130px, 15vw, 200px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(47,131,245,.28) 0%, rgba(7,27,61,0) 68%);
  box-shadow: 0 0 0 2px rgba(99,166,255,.55), 0 0 34px rgba(47,131,245,.45), inset 0 0 34px rgba(47,131,245,.3);
  overflow: hidden;
}
/* O logo.webp tem 378px de largura, mas só 192px são desenho: sobram 97px
   de transparência à esquerda e 89px à direita. Por isso a marca parecia
   minúscula no círculo. Ampliando o elemento para 134% do círculo, o
   desenho passa a ocupar ~68% dele e a margem vazia é cortada pelo
   overflow. Renderiza a 257px a partir de um arquivo de 378px — ou seja,
   ainda reduzido, sem qualquer perda de nitidez. */
.why__logo .logo-neg { width: 134%; }
.why__logo img {
  width: 100%;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, .95))
    drop-shadow(0 0 4px rgba(255, 255, 255, .5))
    drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
}

.why__right {
  position: relative;
  display: flex; align-items: center;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: linear-gradient(115deg, #0d2b5e 0%, #14418c 55%, #0f316d 100%);
  overflow: hidden;
}
.why__slogan {
  position: relative; z-index: 2;
  font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 800;
  text-transform: uppercase; color: #fff; margin: 0; line-height: 1.15;
  max-width: 12ch;
}
.why__art {
  position: absolute; right: -2%; bottom: 0; width: 58%; z-index: 1;
  mix-blend-mode: screen; opacity: .95; pointer-events: none;
}

/* -------------------------------------------------------------------------
   11. Segmentos
   ------------------------------------------------------------------------- */
.segment-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(1.1rem, 2.2vw, 1.9rem);
}
.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: .75rem;
}
.segment {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.25;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.segment:hover {
  border-color: var(--blue-300); background: var(--surface);
  box-shadow: var(--sh-sm); transform: translateY(-3px); color: var(--blue-600);
}
.segment svg { width: 26px; height: 26px; flex: none; color: var(--blue-500); }

.segment-hero {
  position: relative; color: #fff;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.segment-hero__inner { position: relative; z-index: 2; }
.segment-hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800;
  text-transform: uppercase; color: #fff; margin: 0 0 .4rem;
}
.segment-hero p { color: #c3d5f0; margin: 0; max-width: 60ch; }
.segment-hero__figure {
  position: absolute; right: 0; bottom: -10%; width: clamp(200px, 24vw, 330px); z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 55% 50%, #000 48%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(ellipse 70% 80% at 55% 50%, #000 48%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   12. Marcas
   ------------------------------------------------------------------------- */
.brands {
  background: #fff;
  border-block: 1px solid var(--border);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.brands__inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(1.2rem, 3.5vw, 3rem);
}
.brands__label {
  font-family: var(--f-head); font-weight: 800; font-size: .95rem;
  text-transform: uppercase; color: #16233d; line-height: 1.25; flex: none;
  max-width: 12ch;
}
.brands__list {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: space-around;
  gap: clamp(1rem, 3vw, 2.5rem); flex: 1; list-style: none; margin: 0; padding: 0;
}
.brands__list img {
  height: clamp(24px, 2.6vw, 34px); width: auto;
  filter: grayscale(1); opacity: .75;
  transition: filter .25s, opacity .25s;
  mix-blend-mode: multiply;
}
.brands__list li:hover img { filter: grayscale(0); opacity: 1; }

/* -------------------------------------------------------------------------
   13. Depoimentos
   ------------------------------------------------------------------------- */
.quote-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: clamp(1.25rem, 2.2vw, 1.75rem);
  box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: .9rem;
}
.quote__stars { display: flex; gap: .15rem; color: #f5a623; }
.quote__stars svg { width: 18px; height: 18px; }
.quote__text { margin: 0; font-size: .96rem; color: var(--text-soft); font-style: italic; flex: 1; }
.quote__author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--blue-500); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem;
}
.quote__name { font-family: var(--f-head); font-weight: 700; font-size: .93rem; margin: 0; }
.quote__role { font-size: .82rem; color: var(--text-mute); margin: 0; }

/* -------------------------------------------------------------------------
   14. Faixa de CTA
   ------------------------------------------------------------------------- */
.cta-bar {
  background: linear-gradient(120deg, #071b3d 0%, #0d2b5e 100%);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  overflow: hidden;
}
.cta-bar__item {
  display: flex; align-items: center; gap: 1.1rem;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) clamp(1.4rem, 3vw, 2.6rem);
  position: relative; color: #fff;
}
.cta-bar__item + .cta-bar__item::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: rgba(255,255,255,.18);
}
.cta-bar__icon {
  width: 56px; height: 56px; border-radius: var(--r-md); flex: none;
  background: var(--blue-500); display: grid; place-items: center;
  box-shadow: var(--sh-blue);
}
.cta-bar__icon svg { width: 27px; height: 27px; color: #fff; }
.cta-bar__label { font-size: .88rem; color: #b8cbe8; margin: 0 0 .1rem; }
.cta-bar__value {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.6rem); color: #fff; margin: 0; line-height: 1.15;
}
.cta-bar__value a { color: #fff; }
.cta-bar__value a:hover { color: var(--blue-300); }

/* -------------------------------------------------------------------------
   15. Blocos de conteúdo internos
   ------------------------------------------------------------------------- */
.page-hero { position: relative; color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: #fff; margin: 0 0 .5rem;
}
/* Mesmo azul de destaque do título da home (.hero__title em) */
.page-hero h1 em { font-style: normal; color: var(--blue-300); }
.page-hero p { color: #c3d5f0; margin: 0; max-width: 62ch; font-size: 1.05rem; }

/* -------------------------------------------------------------------------
   MatIA no canto direito do hero interno (página de Contato)
   A imagem traz o fundo azul embutido; a máscara em degradê dissolve as
   bordas no fundo da seção, como já é feito no hero da home.
   ------------------------------------------------------------------------- */
/* Texto e personagem lado a lado, dentro da mesma largura do conteúdo.
   Nada de posicionamento absoluto: assim o MatIA nunca fica cortado nem
   encostado na borda do navegador. */
.page-hero--matia .page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.page-hero--matia { overflow: hidden; }
/* Texto centralizado no espaço que sobra entre a borda e o personagem,
   com corpo um pouco maior que o padrão das outras páginas. */
.page-hero--matia .page-hero__texto { text-align: center; }
.page-hero--matia .crumbs { justify-content: center; }
.page-hero--matia .page-hero__texto p {
  font-size: 1.18rem; margin-inline: auto;
}
.page-hero__matia {
  width: clamp(215px, 23vw, 305px);
  justify-self: end;
  /* Base ancorada: ao crescer, o personagem sobe e avança para a direita.
     A margem inferior negativa anula o padding da seção. */
  align-self: end;
  margin-right: clamp(.5rem, 3vw, 3rem);
  margin-bottom: calc(-1 * clamp(2.5rem, 5vw, 4rem));
  pointer-events: none;
  /* Máscara mais fechada: o degradê começa antes e termina dentro da
     imagem, para o retângulo do fundo não aparecer nas quinas. */
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 47%, #000 38%, rgba(0,0,0,0) 88%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 47%, #000 38%, rgba(0,0,0,0) 88%);
}
.page-hero__matia img { width: 100%; height: auto; display: block; }

/* Em telas estreitas o texto ocupa a largura toda e o MatIA sai de cena */
@media (max-width: 900px) {
  .page-hero--matia .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__matia { display: none; }
}

/* Variante centralizada do hero interno. Aplicada só onde a página pede
   a classe, para não mexer nas outras páginas que seguem alinhadas à esquerda. */
.page-hero--centro .page-hero__inner { text-align: center; }
/* Respiro de uma linha em branco entre o título e o parágrafo */
.page-hero--centro h1 { margin-bottom: 1.75rem; }
.page-hero--centro .crumbs { justify-content: center; }
.page-hero--centro p { margin-inline: auto; }

.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .85rem; }
.crumbs a { color: var(--blue-300); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: rgba(255,255,255,.4); }
.crumbs li:last-child { color: #c3d5f0; }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: 2rem; }
.prose h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); margin-top: 1.5rem; }
.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: .45rem; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
}

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: clamp(1.25rem, 2.2vw, 1.75rem);
  box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card:hover, .card--hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--blue-200); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--blue-50); color: var(--blue-500);
  display: grid; place-items: center; margin-bottom: 1rem;
}
:root[data-theme="dark"] .card__icon { background: var(--bg-mute); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.12rem; margin: 0 0 .5rem; }
.card p { margin: 0; color: var(--text-soft); font-size: .94rem; }
/* Botão "Saiba mais" dos cards -> WhatsApp. O card vira coluna para o
   botão encostar embaixo mesmo quando os textos têm alturas diferentes. */
.card:has(.card__btn) { display: flex; flex-direction: column; }
.card:has(.card__btn) p { flex: 1; }
.card__btn { align-self: flex-start; margin-top: 1.1rem; }

/* -------------------------------------------------------------------------
   Parceiros de integração (maquininhas homologadas)
   Todos os arquivos têm 209x100px, então as caixas ficam idênticas.
   ------------------------------------------------------------------------- */
.parceiros {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.15rem);
}
.parceiros li {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-sm);
  padding: clamp(.9rem, 1.6vw, 1.35rem);
}
/* A maioria das logos tem 209x100 e renderiza 175x84. O max-height segura
   as que vêm quadradas (GetCard) para não esticarem a caixa. */
.parceiros img {
  width: 100%; height: auto; max-width: 175px; max-height: 84px;
  object-fit: contain; display: block;
}

@media (max-width: 900px) { .parceiros { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .parceiros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* -------------------------------------------------------------------------
   Bloco "Também representamos estes sistemas"
   Ocupa as colunas que sobram ao lado do último card da grade.
   ------------------------------------------------------------------------- */
.repres {
  grid-column: span 3;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
}
.repres__titulo {
  font-family: var(--f-head); font-weight: 800;
  font-size: 1.12rem; line-height: 1.3; margin: 0 0 1.15rem;
  color: var(--text); text-align: center;
}
/* Caixas de tamanho igual: cada logo se ajusta dentro sem ser distorcida */
.repres__logos {
  list-style: none; margin: 0 0 1.15rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
.repres__logos li {
  display: flex; align-items: center; justify-content: center;
  height: 96px; padding: .8rem; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm);
}
/* O arquivo da DigiSat é quadrado e traz margem branca em volta do desenho.
   A ampliação iguala a altura visual da marca à das outras duas; a margem
   que sobra é recortada pela própria caixa, que também é branca. */
.repres__logos img[src*="digisat"] { transform: scale(1.62); }
/* Flex + max-height em % resolve contra a altura fixa do li: a logo
   sempre cabe na caixa, seja ela quadrada ou horizontal, sem distorcer. */
.repres__logos img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Provisório: nome estilizado enquanto o arquivo da logo não chega */
.repres__nome {
  font-family: var(--f-head); font-weight: 800; font-size: .92rem;
  line-height: 1.2; text-align: center; color: var(--text);
}
.repres__texto { margin: 0 0 1.15rem; color: var(--text-soft); font-size: .94rem; text-align: center; }
.repres__btn { align-self: center; }

@media (max-width: 1200px) {
  .repres { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .repres__logos { grid-template-columns: 1fr; }
}

/* Variante de cards com conteúdo centralizado (Missão, Visão e Valores) */
.card-grid--centro .card { text-align: center; }
.card-grid--centro .card__icon { margin-inline: auto; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; align-items: flex-start; gap: .65rem; }
.check-list svg { width: 21px; height: 21px; flex: none; color: var(--blue-500); margin-top: .15rem; }

/* Tabela de preços */
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th { background: var(--bg-mute); font-family: var(--f-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.price-table tbody tr:hover { background: var(--bg-soft); }
.price-table td:last-child { font-family: var(--f-head); font-weight: 700; color: var(--blue-500); white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.05rem 1.25rem; list-style: none;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--blue-500); line-height: 1; flex: none;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.15rem; color: var(--text-soft); font-size: .95rem; }

/* -------------------------------------------------------------------------
   16. Loja
   ------------------------------------------------------------------------- */
.shop-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--border);
  padding-bottom: .85rem;
}
.shop-tab {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.15rem; border-radius: var(--r-full);
  border: 1px solid var(--border-str); background: var(--surface);
  font-family: var(--f-head); font-weight: 600; font-size: .9rem;
  color: var(--text); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.shop-tab svg { width: 18px; height: 18px; }
.shop-tab:hover { border-color: var(--blue-300); color: var(--blue-600); }
.shop-tab[aria-selected="true"] {
  background: var(--blue-500); border-color: var(--blue-500); color: #fff;
}

.shop-grid {
  /* auto-fit em vez de auto-fill: com 3 produtos, as colunas vazias somem
     e os cards se esticam para ocupar a largura toda da página. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}
.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--blue-200); }
.product__media { position: relative; background: #fff; aspect-ratio: 4 / 3; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__tag {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--blue-500); color: #fff;
  font-family: var(--f-head); font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: var(--r-xs);
}
.product__body { padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product__name { font-size: 1.02rem; font-weight: 700; margin: 0; }
.product__desc { font-size: .87rem; color: var(--text-soft); margin: 0; flex: 1; }
.product__price { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; color: var(--blue-500); margin: 0; }
.product__price small { display: block; font-size: .72rem; font-weight: 500; color: var(--text-mute); text-transform: none; letter-spacing: 0; }
.product__price--quote { font-size: 1rem; color: var(--text-soft); }

.shop-note {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--r-md); padding: 1.15rem 1.35rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
:root[data-theme="dark"] .shop-note { background: var(--bg-mute); border-color: var(--border); }
.shop-note svg { width: 24px; height: 24px; flex: none; color: var(--blue-500); margin-top: .1rem; }
.shop-note p { margin: 0; font-size: .93rem; color: var(--text-soft); }
.shop-note strong { color: var(--text); }

/* Aviso "em breve" (loja virtual) */
.em-breve { position: relative; color: #fff; display: grid; place-items: center;
  min-height: clamp(420px, 62vh, 620px); padding-block: clamp(3rem, 7vw, 5rem); }
.em-breve__inner { position: relative; z-index: 2; text-align: center; max-width: 46rem; }
.em-breve__icone {
  display: inline-grid; place-items: center;
  width: clamp(76px, 9vw, 104px); aspect-ratio: 1; margin-bottom: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 10px rgba(47, 131, 245, .1), 0 12px 34px rgba(0, 0, 0, .35);
}
.em-breve__icone svg { width: 46%; height: 46%; color: var(--blue-300); }
.em-breve__titulo {
  font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; color: #fff;
  margin: 0 0 1rem; line-height: 1.1; letter-spacing: -.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.em-breve__texto {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: #c3d5f0;
  margin: 0 auto 2rem; max-width: 46ch;
}
.em-breve__acoes { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* Marketplaces integrados
   -------------------------------------------------------------------------
   Cada item usa --mkt como cor da marca. Hoje o nome aparece como texto
   estilizado; quando a empresa tiver os arquivos oficiais de logo, basta
   colocar um <img> dentro do <span class="mkt__marca"> que o texto sai. */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  list-style: none; margin: 0; padding: 0;
}
.mkt {
  --mkt: var(--blue-500);
  display: grid; place-items: center;
  min-height: 84px; padding: 1rem .9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.mkt::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--mkt); opacity: .85;
}
.mkt:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--mkt); }
.mkt__marca {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(.86rem, 1.2vw, 1rem); line-height: 1.15;
  /* A barra do topo usa a cor da marca; o texto usa --mkt-txt quando a cor
     original não tem contraste suficiente sobre o branco (mínimo 4.5:1). */
  color: var(--mkt-txt, var(--mkt));
  text-align: center; letter-spacing: -.01em;
}
.mkt__marca img { max-height: 34px; width: auto; margin-inline: auto; }

/* Passos numerados */
.passos { counter-reset: passo; }
.passo { position: relative; padding-top: 1.35rem; }
.passo::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; top: -18px; left: clamp(1.25rem, 2.2vw, 1.75rem);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-500); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--sh-blue);
}

/* Bloco de destaque comercial */
.destaque {
  display: grid; gap: 1.25rem;
  background: linear-gradient(120deg, #071b3d 0%, #123a7d 100%);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: clamp(1.6rem, 3.5vw, 3rem);
  color: #fff; text-align: center;
}
.destaque h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0; }
.destaque p { color: #c3d5f0; margin: 0 auto; max-width: 62ch; }
.destaque__acoes { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* -------------------------------------------------------------------------
   17. Formulários
   ------------------------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--f-head); font-weight: 600; font-size: .87rem; }
.field input, .field select, .field textarea {
  padding: .8rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--border-str); background: var(--surface); color: var(--text);
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(47,131,245,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field small { font-size: .8rem; color: var(--text-mute); }

/* -------------------------------------------------------------------------
   18. Rodapé
   ------------------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: #c3d3ea;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 0;
  font-size: .92rem;
}
/* Rodapé: marca à esquerda, frase no centro e contatos à direita.
   Abaixo de 1100px vira coluna única centralizada. */
.footer__grid {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(1.75rem, 4vw, 2.5rem);
  }
  .footer__contatos { width: max-content; max-width: 100%; }
}
/* Mesmo tratamento do círculo do "Por que escolher": o arquivo tem 97px de
   transparência à esquerda e 89px à direita, então a imagem é ampliada e a
   moldura corta o vazio. Renderiza a 276px a partir de 378px — sem perda. */
/* 193px é o teto: o desenho tem 192px no arquivo, então aqui ele é exibido
   em escala 1:1. Passar disso começa a ampliar e perde nitidez. */
.footer__logo { display: block; width: 193px; overflow: hidden; margin: 0 auto 1rem; }
.footer__logo .logo-neg { display: block; width: 378px; margin-left: -97px; }
.footer__logo img {
  width: 100%; height: auto; display: block;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, .95))
    drop-shadow(0 0 3px rgba(255, 255, 255, .55))
    drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}
/* Primeira coluna do rodapé centralizada: logo, descrição e o ícone social.
   O ícone acompanha para a coluna não ficar meio centralizada, meio à esquerda.
   A largura limitada faz a frase cair em duas linhas equilibradas. */
.footer__about {
  font-size: .88rem; color: #9fb4d4; margin: 0 0 1.15rem;
  text-align: center; max-width: 42ch;
}
.footer__social { display: flex; gap: .5rem; justify-content: center; }

/* Frase de destaque no meio do rodapé, com as palavras alternando
   entre branco e o azul-claro da marca. */
.footer__slogan {
  /* Sem limite de largura: quem manda na quebra é o <br> do texto,
     para a frase cair exatamente nas duas linhas desenhadas. */
  margin: 0; text-align: center;
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(1rem, 1.7vw, 1.5rem); line-height: 1.35;
  color: #fff;
}
.footer__slogan em { font-style: normal; color: var(--blue-300); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.2); color: #c3d3ea;
  transition: background .18s, border-color .18s, color .18s;
}
.footer__social a:hover { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.footer__social svg { width: 19px; height: 19px; }

.footer h2 {
  font-size: .88rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue-300); margin: 0 0 1.1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__list a { color: #c3d3ea; font-size: .89rem; }
.footer__list a:hover { color: #fff; text-decoration: underline; }

.footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.footer__contact li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; line-height: 1.45; }
.footer__contact svg { width: 18px; height: 18px; flex: none; color: var(--blue-300); margin-top: .15rem; }
.footer__contact a { color: #c3d3ea; }
.footer__contact a:hover { color: #fff; }
/* Mesma lista sobre fundo claro (página de Contato): o azul-claro do rodapé
   dá contraste de 1,7:1 sobre o branco e não se lê. Aqui vai o azul da marca. */
/* Dois botões de suporte empilhados, com respiro entre eles */
.suporte-botoes { display: grid; gap: .6rem; }
.suporte-botoes .btn { text-align: center; }

/* Aviso de plantão — destacado com faixa lateral e fundo azul-claro */
.plantao {
  margin-top: 1.25rem; padding: 1rem 1.15rem;
  text-align: center;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-left: 5px solid var(--blue-500);
  border-radius: var(--r-sm);
}
.plantao__titulo {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin: 0 0 1.1rem;
  font-family: var(--f-head); font-weight: 800; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--blue-600);
}
.plantao__titulo svg { width: 20px; height: 20px; flex: none; }
.plantao__linha { margin: 0 0 1.6rem; font-size: .92rem; line-height: 1.5; color: var(--text); }
.plantao__linha:last-child { margin-bottom: 0; }
/* "(de preferência ligar !!!)" — centralizado, em negrito e destacado,
   com respiro extra antes do próximo bloco do aviso. */
.plantao__obs {
  /* A margem inferior fica aqui: como o <strong> é o último filho do <p>,
     é ela que separa este bloco do próximo. */
  display: block; margin: .55rem 0 1.6rem;
  text-align: center;
  font-family: var(--f-head); font-weight: 800; font-size: .95rem;
  color: var(--blue-600);
}
.plantao__linha a { color: var(--blue-600); font-weight: 700; white-space: nowrap; }
.plantao__linha a:hover { text-decoration: underline; }

.footer__contact--claro a { color: var(--blue-500); }
.footer__contact--claro a:hover { color: var(--blue-600); text-decoration: underline; }
/* Link de rota: menor e em destaque, para não competir com o endereço */
.footer__rota {
  display: inline-block; margin-top: .3rem;
  font-family: var(--f-head); font-weight: 700; font-size: .8rem;
  color: var(--blue-300) !important;
}
.footer__rota:hover { color: #fff !important; text-decoration: underline; }

.footer__whats {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  padding: 1.35rem;
}
.footer__whats h2 { margin-bottom: .6rem; }
.footer__whats p { font-size: .87rem; color: #9fb4d4; margin: 0 0 1.1rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem 1.25rem;
  font-size: .82rem; color: #8ea5c6;
}
.footer__bottom a { color: #8ea5c6; }
.footer__bottom a:hover { color: #fff; }
.footer__sep { opacity: .45; }

/* -------------------------------------------------------------------------
   19. Botões flutuantes
   ------------------------------------------------------------------------- */
.fab-whats {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: .65rem;
}
.fab-whats__tip {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); box-shadow: var(--sh-md);
  padding: .5rem .8rem; font-size: .78rem; line-height: 1.25; font-weight: 600;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.fab-whats__tip em { font-style: normal; color: var(--blue-500); display: block; }
.fab-whats__btn {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: var(--whats); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s, background .2s;
}
.fab-whats__btn:hover { transform: scale(1.08); background: var(--whats-dk); color: #fff; }
.fab-whats__btn svg { width: 31px; height: 31px; }

.to-top {
  position: fixed; right: 26px; bottom: 92px; z-index: 89;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: #fff; border: none;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-500); }
.to-top svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------------
   20. Animações de entrada
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   21. Responsivo
   ------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .sol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__inner { justify-content: space-between; }
  .header__actions { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure {
    position: relative; left: auto; bottom: auto;
    width: min(400px, 78%); margin: 1.5rem auto -1rem; order: -1;
  }
  /* Empilhado: os atalhos voltam a ocupar a largura toda, em 2 colunas */
  .hero__shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; justify-self: stretch; }
  .hero-features__card { grid-template-columns: repeat(2, 1fr); }
  .hero-feature + .hero-feature::before { display: none; }
  .hero-feature:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.13); }
  .hero-feature:nth-child(even) { border-left: 1px solid rgba(255,255,255,.13); }
  .why { grid-template-columns: 1fr; }
  .why__right { min-height: 210px; }
  .segment-hero__figure { display: none; }
}

@media (max-width: 860px) {
  .topbar__inner { justify-content: center; }
  .topbar__item:nth-child(2) { display: none; }
  .topbar__item:first-child { padding-left: 1.15rem; }
  .brands__inner { flex-direction: column; text-align: center; }
  .brands__label { max-width: none; }
}

@media (max-width: 680px) {
  :root { --header-h: 70px; }
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__shortcuts { grid-template-columns: 1fr; }
  .hero-features { margin-top: -2.5rem; }
  .hero-features__card { grid-template-columns: 1fr; }
  .hero-feature:nth-child(even) { border-left: none; }
  .hero-feature:nth-child(n+2) { border-top: 1px solid rgba(255,255,255,.13); }
  .why__left { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .why__list li { text-align: left; }
  .cta-bar__item + .cta-bar__item::before { display: none; }
  .cta-bar__item:nth-child(n+2) { border-top: 1px solid rgba(255,255,255,.18); }
  .fab-whats__tip { display: none; }
  .segment-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 460px) {
  .sol-grid { grid-template-columns: 1fr; }
  .segment-grid { grid-template-columns: 1fr 1fr; }
  .segment { flex-direction: column; align-items: flex-start; gap: .45rem; font-size: .82rem; }
}

@media print {
  .topbar, .header, .fab-whats, .to-top, .footer__whats { display: none !important; }
  body { color: #000; background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Botao "Saiba mais" dos cards de solucao -> WhatsApp */
.sol-card__btn { align-self: flex-start; }

/* =========================================================================
   Pagamento via PIX — botão "Comprar" no card e modal com o QR Code
   ========================================================================= */

/* A linha do preço vira duas colunas: valor à esquerda, botão à direita. */
.product__price {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.product__price > span { min-width: 0; }

.btn-pix {
  flex: none;
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-head); font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .42rem .78rem; border-radius: 999px;
  color: #fff; background: var(--blue-500);
  border: 0; cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn-pix:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-pix:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }
.btn-pix svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- modal */
.pix {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.pix[hidden] { display: none; }
.pix__fundo {
  position: absolute; inset: 0;
  background: rgba(7, 27, 61, .62);
  backdrop-filter: blur(2px);
}
/* Janela larga o bastante para os dois caminhos de pagamento caberem lado a
   lado. Em coluna única ela passava de uma tela e nascia com barra de
   rolagem — e tela de pagamento que pede rolagem perde gente no meio.
   O overflow fica como rede de segurança, para monitor muito baixo. */
.pix__caixa {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  text-align: center;
}
.pix__x {
  position: absolute; top: .7rem; right: .7rem;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--text-soft);
}
.pix__x:hover { background: var(--bg-soft); color: var(--text); }
.pix__x svg { width: 18px; height: 18px; }

.pix .eyebrow { justify-content: center; }
.pix__produto { font-size: 1.2rem; margin: .35rem 0 .1rem; }
.pix__obs { font-size: .82rem; color: var(--text-mute); margin: 0; }
.pix__obs[hidden] { display: none; }
.pix__valor {
  font-family: var(--f-head); font-weight: 800; font-size: 1.75rem;
  color: var(--blue-500); margin: .5rem 0 1rem;
}

/* O QR fica sempre sobre branco, inclusive no tema escuro — senão
   o leitor do banco não consegue ler. */
/* Maior que antes: com 232px cada módulo ficava com 3,7px, e câmera de
   celular a meio metro de um monitor tem dificuldade nesse tamanho. Em 300px
   cada módulo passa de 5px, o que é folgado para leitura. */
.pix__qr {
  background: #fff; border-radius: var(--r-md);
  padding: .5rem; margin-inline: auto;
  width: min(300px, 100%);
  border: 1px solid var(--border);
}
.pix__qr svg { display: block; width: 100%; height: auto; }
.pix__erro { font-size: .82rem; color: var(--text-soft); margin: 0; padding: 1rem; }

.pix__chave {
  display: flex; flex-direction: column; gap: .1rem;
  font-size: .78rem; color: var(--text-mute);
  margin: .9rem 0 1.1rem;
}
.pix__chave strong {
  font-family: var(--f-head); font-size: 1rem; color: var(--text);
}

.pix__rot {
  display: block; text-align: left;
  font-size: .74rem; font-weight: 600; color: var(--text-soft);
  margin-bottom: .3rem;
}
.pix__codigo {
  width: 100%; resize: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem; line-height: 1.45;
  color: var(--text-soft); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: .55rem .65rem; margin-bottom: .55rem;
}
.pix__codigo:focus { outline: 2px solid var(--blue-300); outline-offset: 1px; }

.pix__aviso {
  font-size: .78rem; line-height: 1.5; color: var(--text-soft);
  text-align: left;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--r-md); padding: .7rem .8rem;
  margin: 1rem 0 .7rem;
}
:root[data-theme="dark"] .pix__aviso { background: var(--bg-mute); border-color: var(--border); }

@media (max-width: 420px) {
  .pix__caixa { padding: 1.4rem 1.1rem 1.2rem; }
  .pix__qr { width: min(200px, 100%); }
  /* em telas estreitas o botão desce para a linha de baixo */
  .product__price { flex-wrap: wrap; }
}

/* Segunda tela do modal: comprovante enviado, falta agendar */
.pix__passo[hidden] { display: none; }
.pix__ok {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: .4rem auto .9rem;
  border-radius: 50%; background: rgba(37, 211, 102, .14); color: var(--whats);
}
.pix__ok svg { width: 32px; height: 32px; }
.pix__ok-tit { font-size: 1.25rem; margin: 0 0 .45rem; }
.pix__ok-txt { font-size: .9rem; color: var(--text-soft); margin: 0; }
.pix__passo--pronto .pix__aviso { margin-bottom: .9rem; }
.pix__ligar { margin-top: .5rem; }
.pix__horario {
  font-size: .76rem; color: var(--text-mute); margin: 1rem 0 0; line-height: 1.5;
}
.pix__horario small { font-size: .92em; }

/* Separador "ou" entre o PIX direto e o checkout do Mercado Pago */
.pix__ou {
  display: flex; align-items: center; gap: .8rem;
  margin: 1.15rem 0 .9rem;
  color: var(--text-mute); font-size: .74rem;
  font-family: var(--f-head); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.pix__ou::before, .pix__ou::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.pix__ou[hidden], .pix__mp[hidden], .pix__mp-nota[hidden] { display: none; }
.pix__mp-nota {
  font-size: .74rem; line-height: 1.5; color: var(--text-mute);
  margin: .5rem 0 0;
}

/* Preço diferenciado: PIX x cartão, informado com clareza */
.pix__valor-nota {
  font-size: .76rem; color: var(--text-mute);
  margin: -.75rem 0 1rem;
}
.pix__valor-nota[hidden] { display: none; }
.pix__cartao-valor {
  font-family: var(--f-head); font-weight: 800; font-size: 1.45rem;
  color: var(--text); margin: 0 0 .5rem;
}
.pix__cartao-aviso {
  font-size: .78rem; line-height: 1.55; color: var(--text-soft);
  text-align: left;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--blue-500);
  border-radius: var(--r-md); padding: .7rem .8rem;
  margin: 0 0 .9rem;
}
.pix__cartao-valor[hidden], .pix__cartao-aviso[hidden], .pix__parcelas[hidden] { display: none; }

.pix__parcelas { text-align: left; margin-bottom: .9rem; }
.pix__parcelas-msg, .pix__parcelas-fonte {
  font-size: .72rem; color: var(--text-mute); margin: .45rem 0 0;
}
.pix__parcelas-tit {
  font-family: var(--f-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-soft); margin: 0 0 .4rem;
}
.pix__parcelas-lista {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden;
}
.pix__parcelas-lista li {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .42rem .7rem; font-size: .8rem;
}
.pix__parcelas-lista li + li { border-top: 1px solid var(--border); }
.pix__parcelas-lista li:nth-child(odd) { background: var(--bg-soft); }
.pix__parcelas-lista span { font-weight: 600; color: var(--text); }
.pix__parcelas-lista em { font-style: normal; font-size: .74rem; color: var(--text-mute); }

/* Segundo preço no próprio card, para o cliente ver antes de clicar */
.product__price-cartao {
  display: block; font-size: .72rem; font-weight: 500;
  color: var(--text-mute); text-transform: none; letter-spacing: 0;
}

/* Linha do preço em duas faixas: valor + botão em cima, detalhes embaixo,
   cada um ocupando a largura toda para não quebrar palavra no meio. */
.product__price { flex-wrap: wrap; row-gap: .15rem; }
.product__price-valor { flex: 1 1 auto; }
.product__price > small { flex: 0 0 100%; }

/* Ajustes pedidos: sem exibir a chave PIX em texto, e tudo centralizado.
   O único trecho que segue alinhado à esquerda é o código copia e cola —
   centralizar um texto monoespaçado de 133 caracteres deixa a quebra
   irregular e atrapalha a leitura. */
.pix__chave { display: none; }
.pix__rot,
.pix__aviso,
.pix__cartao-aviso,
.pix__parcelas { text-align: center; }
.pix__qr { margin-bottom: 1rem; }
.pix__cartao-aviso { border-left: 0; border-top: 3px solid var(--blue-500); }
.pix__parcelas-lista li { justify-content: center; gap: .45rem; }
.pix__parcelas-lista em::before { content: "· "; }

/* Segundo parágrafo do aviso do cartão, com respiro entre os dois blocos */
.pix__cartao-pix {
  display: block; margin-top: .7rem;
  color: var(--text); font-weight: 500;
}

/* -------------------------------------------------------------------------
   Janela do PIX.

   Voltou a coluna única depois que o bloco do cartão virou só um botão: sem
   aquele conteúdo a janela é curta, e duas colunas deixariam metade vazia.
   ------------------------------------------------------------------------- */
.pix__caixa { width: min(430px, 100%); }
/* Detalhe do cartão (valor, taxa, parcelas) fica no DOM e oculto: o código
   que o preenche segue rodando, e voltar a mostrar é tirar esta linha. */
.pix__cartao-detalhe[hidden] { display: none; }

/* Aviso da taxa do cartão, entre os dois botões de pagamento.
   Discreto de propósito: informa antes do clique sem competir com os
   botões, que é onde a atenção precisa ficar. */
.pix__taxa-nota {
  font-size: .74rem; line-height: 1.5; color: var(--text-mute);
  text-align: center; margin: .45rem 0 .8rem;
}

/* -------------------------------------------------------------------------
   Passo do aceite da taxa do cartão.

   Aviso lido de passagem não é aceite: aqui a pessoa marca que concorda, e o
   botão de continuar só liga depois. Sem isso o texto anterior seria enfeite.
   ------------------------------------------------------------------------- */
.pix__taxa-tit { font-size: 1.1rem; margin: .2rem 0 .8rem; }
.pix__taxa-txt {
  font-size: .86rem; line-height: 1.55; color: var(--text-soft);
  text-align: center; margin: 0 0 .8rem;
}
.pix__taxa-aceite {
  display: flex; align-items: flex-start; gap: .55rem;
  text-align: left; font-size: .86rem; font-weight: 600; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .7rem .8rem; margin: 0 0 .9rem;
  cursor: pointer;
}
.pix__taxa-aceite input { margin-top: .15rem; flex: none; }
/* Botão desligado precisa parecer desligado, senão o clique sem efeito lê
   como sistema quebrado. */
.pix__taxa-seguir:disabled { opacity: .5; cursor: not-allowed; }
.pix__taxa-voltar { margin-top: .5rem; }

/* -------------------------------------------------------------------------
   Card de consulta, na página de certificados.

   Os modelos A3 existem, mas não se compram pelo site: dependem de mídia,
   leitora e agendamento, e o valor fecha no atendimento. Sem preço e sem
   botão de comprar de propósito — prometer carrinho aqui geraria pedido que
   não pode ser cumprido.
   ------------------------------------------------------------------------- */
.product--consulta .product__body { display: flex; flex-direction: column; }
/* Texto centralizado: sem preço e sem tabela de valores para alinhar, o
   bloco alinhado à esquerda ficava torto ao lado dos outros dois cards. */
.product--consulta .product__name,
.product--consulta .product__desc { text-align: center; }
/* O botão desce para a base, alinhado com o dos cards que têm preço. */
.product--consulta .btn { margin-top: auto; }
.product__tag--neutra { background: var(--text-soft); }

/* Descrição centralizada nos cards de certificado.
   O nome do produto saiu do corpo porque já está na arte; sem ele, texto
   alinhado à esquerda ficava solto embaixo de uma imagem centralizada. */
.shop-grid .product__desc { text-align: center; }

/* Os dois preços na tela de aceite do cartão.
   Lado a lado porque a comparação é o ponto: o cliente precisa ver quanto
   custa cada caminho antes de escolher, não depois. */
.pix__taxa-precos {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  margin: .2rem 0 .9rem;
}
.pix__taxa-preco {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .6rem .5rem; text-align: center;
}
.pix__taxa-preco span {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute);
}
.pix__taxa-preco strong {
  display: block; margin-top: .15rem;
  font-family: var(--f-head); font-size: 1.25rem; color: var(--text);
}
/* O do cartão em azul: é o caminho que a pessoa está prestes a tomar. */
.pix__taxa-preco--cartao {
  background: var(--blue-50); border-color: var(--blue-100);
}
.pix__taxa-preco--cartao strong { color: var(--blue-500); }
:root[data-theme="dark"] .pix__taxa-preco--cartao {
  background: var(--bg-mute); border-color: var(--border);
}
.pix__taxa-avista { font-size: .78rem; margin-bottom: 1rem; }

/* O PIX ganha destaque verde na comparação: é o caminho melhor para os dois
   lados, e a tela não precisa fingir neutralidade sobre isso. */
.pix__taxa-preco em {
  display: block; margin-top: .15rem; font-style: normal;
  font-size: .7rem; font-weight: 600; color: var(--text-mute);
}
.pix__taxa-preco--pix {
  background: #ecfdf5; border-color: #a7f3d0;
}
.pix__taxa-preco--pix strong { color: #047857; }
.pix__taxa-preco--pix em { color: #059669; }
:root[data-theme="dark"] .pix__taxa-preco--pix {
  background: var(--bg-mute); border-color: var(--border);
}
:root[data-theme="dark"] .pix__taxa-preco--pix strong,
:root[data-theme="dark"] .pix__taxa-preco--pix em { color: #34d399; }

.pix__taxa-economia {
  margin: 0 0 .9rem; text-align: center;
  font-size: .84rem; line-height: 1.5; color: var(--text);
  background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: var(--r-md); padding: .55rem .7rem;
}
.pix__taxa-economia strong { color: #047857; font-size: 1rem; }
:root[data-theme="dark"] .pix__taxa-economia {
  background: var(--bg-mute); border-color: var(--border);
}
:root[data-theme="dark"] .pix__taxa-economia strong { color: #34d399; }

/* -------------------------------------------------------------------------
   Coluna do formulário de contato, com o espaço do vídeo do MatIA.

   O vídeo fica em cima e empurra o formulário para baixo, alinhando-o com o
   cartão "Já é cliente?" da coluna da esquerda. Antes o formulário começava
   colado no topo, enquanto a esquerda ainda tinha título e subtítulo, e as
   duas colunas terminavam desencontradas.
   ------------------------------------------------------------------------- */
/* Grade de 2 colunas por 2 linhas. As linhas se alinham sozinhas, então o
   topo e a base de cada par de cartões batem sem número mágico. */
.contato-grade {
  display: grid;
  /* Duas colunas fixas, não auto-fit: com auto-fit o navegador criava três
     colunas em tela larga e jogava o formulário sozinho na linha de baixo. */
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
@media (max-width: 860px) {
  .contato-grade { grid-template-columns: 1fr; }
}

/* 16:9 já pronto: trocar o conteúdo por um <video> ou por um iframe do
   YouTube não exige mexer no CSS. */
/* O MatIA é um cartão como os outros: mesma moldura, mesmo respiro. O que
   muda é o miolo, que abriga o vídeo.

   O quadro do vídeo estica para ocupar a altura que sobrar no cartão, e o
   vídeo, que é vertical (720x1280), aparece inteiro e centrado dentro dele.
   Sem isso ele encostaria nas bordas e ficaria com tarjas pretas laterais. */
.video-matia { display: flex; flex-direction: column; }
.video-matia__quadro {
  /* O quadro estica para preencher o cartão, sem teto: com teto sobrava um
     vazio embaixo quando o cartão ao lado era mais alto. Quem tem limite é o
     vídeo dentro dele, que fica centrado. */
  flex: 1; min-height: 240px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-900); border-radius: var(--r-md);
  overflow: hidden;
}
/* O vídeo do MatIA é vertical (720x1280). Em caixa horizontal, "cover"
   cortaria a cabeça e os lados; "contain" mostra inteiro, com fundo escuro
   preenchendo as laterais. */
.video-matia__quadro > video,
.video-matia__quadro > iframe,
.video-matia__quadro > img {
  max-width: 100%; max-height: 100%;
  width: auto; height: 100%;
  object-fit: contain; border: 0; display: block;
}
.video-matia__quadro .video-matia__vazio {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .6rem; text-align: center; padding: 1rem;
  color: var(--text-mute); font-size: .88rem; font-weight: 600;
}
.video-matia__vazio svg {
  width: 46px; height: 46px; color: var(--blue-300);
}


/* A grade do contato alinha pelo topo, não pelo centro: com alturas
   diferentes, centralizar deixava as duas colunas desencontradas. */
.section .split { align-items: start; }

/* Mapa dentro do cartão de contatos.
   Ocupa a altura que sobra: o cartão estica para acompanhar o do vídeo ao
   lado, e sem isto sobrava um vazio grande embaixo dos telefones. */
.mapa-contato {
  flex: 1; min-height: 260px; margin-top: 1rem;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border);
}
.mapa-contato iframe { width: 100%; height: 100%; border: 0; display: block; }
/* O cartão vira coluna flexível para o mapa poder esticar dentro dele. */
.contato-grade > .card:first-child { display: flex; flex-direction: column; }

/* Texto de apoio do hero, centralizado.
   A quebra vem de <br> no HTML e não do acaso da largura: as duas linhas
   foram escritas para quebrar naquele ponto. */
.hero-centrado { text-align: center; margin-inline: auto; }

/* Agradecimento no fim da tela de pagamento informado.
   Fecha a conversa depois do pedido de desculpas, em vez de deixar o cliente
   com a impressão de que ficou um problema em aberto. */
.pix__agradece {
  margin: .9rem 0 0; text-align: center;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem;
  color: var(--blue-500);
}
