/* ==========================================================================
   Integration System — página única
   Uma fonte (Instrument Sans), paleta do logotipo e uma regra que não se
   quebra: o estado-base de todo elemento é visível. Os efeitos só existem
   enquanto rodam (animações sem preenchimento, laços apenas na tela), então
   uma falha de JS ou de observador nunca deixa conteúdo escondido.
   Organização: fontes → tokens → base → utilitários → cabeçalho → botões →
   interface ilustrativa (cartões "ui") → seções na ordem da página →
   rodapé → barra móvel → movimento → impressão.
   ========================================================================== */

/* Fonte auto-hospedada (SIL Open Font License) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  --night: #040a2a;         /* superfícies escuras */
  --night-2: #071240;       /* painéis sobre o escuro */
  --navy: #0a1859;          /* azul-marinho do logotipo */
  --navy-700: #142a86;
  --blue: #0a6fb8;          /* botões e links (5,3:1 com branco) */
  --blue-dark: #085a96;
  --cyan: #0098d8;          /* ciano do logotipo: só em gráficos sobre o claro */
  --cyan-light: #4fc3ff;    /* sinais sobre o escuro */
  --ice: #eef3fa;           /* única tinta de apoio */
  --ink: #141b30;
  --muted: #5b6480;
  --line: #e3e8f0;
  --line-strong: #c9d2df;
  --on-dark: rgba(255, 255, 255, 0.82);
  --on-dark-muted: rgba(255, 255, 255, 0.64);
  --line-dark: rgba(255, 255, 255, 0.12);
  --wire: rgba(79, 195, 255, 0.32);
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #1b6b3a;
  --success-bg: #edf7f0;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(1rem, 5vw, 3rem);
  --space-section: clamp(5rem, 10vw, 9rem);
  --header-h: 4.75rem;

  /* raios com hierarquia: foto < botão < cartão de interface */
  --r-photo: 6px;
  --r-btn: 8px;
  --r-ui: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-ui: 0 22px 44px -20px rgba(4, 10, 42, 0.55), 0 6px 14px -8px rgba(4, 10, 42, 0.35);
  --shadow-ui-soft: 0 14px 30px -18px rgba(4, 10, 42, 0.4);
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--navy);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.1rem + 5.2vw, 5.4rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -0.032em; }
h3 { font-size: clamp(1.25rem, 1.08rem + 0.7vw, 1.6rem); font-weight: 600; letter-spacing: -0.018em; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(10, 111, 184, 0.35);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--blue-dark); text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

address { font-style: normal; }
ul, ol { padding-left: 1.25rem; }
a[href^="tel:"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
figure { margin: 0; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-btn);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Seções ------------------------------------------------------------------ */
.section { position: relative; padding-block: var(--space-section); }
.section--ice { background: var(--ice); }
.section--night { background: var(--night); color: var(--on-dark); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--night :is(h1, h2, h3, h4), .section--navy :is(h1, h2, h3, h4) { color: #fff; }
.section--night a:not(.btn), .section--navy a:not(.btn) { color: var(--cyan-light); text-decoration-color: rgba(79, 195, 255, 0.45); }
.section--night :focus-visible, .section--navy :focus-visible { outline-color: var(--cyan-light); }
.section--ice :focus-visible { outline-color: var(--blue); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 0.45em; }
.section-head p { font-size: 1.1875rem; color: var(--muted); max-width: 38rem; }
.section--night .section-head p, .section--navy .section-head p { color: var(--on-dark); }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.section-head--split > p { margin-bottom: 0.4rem; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

.lead {
  max-width: 36rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}

/* Quadrado do logotipo: o motivo gráfico do site */
.sq {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.55rem; height: 0.55rem;
  background: var(--cyan-light);
  box-shadow: 0 0 10px rgba(79, 195, 255, 0.7);
}

/* Os três quadrados escalonados do logotipo */
.logo-squares {
  --s: 3.25rem;
  position: relative;
  display: inline-block;
  width: calc(var(--s) * 1.45);
  height: calc(var(--s) * 1.3);
}
.logo-squares i {
  position: absolute;
  display: block;
}
.logo-squares i:nth-child(1) { right: 0; top: 0; width: var(--s); height: var(--s); border: 1.5px solid var(--cyan-light); }
.logo-squares i:nth-child(2) { left: 0; top: calc(var(--s) * 0.78); width: calc(var(--s) * 0.42); height: calc(var(--s) * 0.42); background: var(--blue); }
.logo-squares i:nth-child(3) { left: calc(var(--s) * 0.42); top: calc(var(--s) * 1.0); width: calc(var(--s) * 0.26); height: calc(var(--s) * 0.26); background: var(--cyan-light); }
.logo-squares--sm { --s: 1.6rem; }
.logo-squares--lg { --s: 4rem; margin-bottom: 1.75rem; }

/* LED de status */
.led {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.55rem; height: 0.55rem;
  border-radius: 2px;
  background: #b8c2d4;
}
.led.is-on { background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 152, 216, 0.16); }
.led.is-busy { background: var(--blue); box-shadow: 0 0 0 3px rgba(10, 111, 184, 0.18); }

/* Molduras de foto (nunca recortam a si mesmas nem escondem a imagem) */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.caption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }

.backplate {
  position: absolute;
  z-index: -1;
  display: block;
  pointer-events: none;
}
.backplate--bl { left: -1.5rem; bottom: -1.5rem; width: 42%; aspect-ratio: 1; background: var(--navy); }
.backplate--br { right: -1.5rem; bottom: -1.5rem; width: 36%; aspect-ratio: 1; background: var(--navy); }
.backplate--tr { right: -0.9rem; top: -0.9rem; width: 3.25rem; aspect-ratio: 1; background: var(--cyan); }
@media (max-width: 760px) {
  .backplate--bl { left: -0.75rem; bottom: -0.75rem; }
  .backplate--br { right: -0.75rem; bottom: -0.75rem; }
}

/* Cabeçalho --------------------------------------------------------------- */
/* Sem JS ele já é sólido e legível; o JS só o deixa transparente no topo do
   vídeo. O fundo fica num pseudo-elemento para poder sumir com uma transição;
   não há desfoque (backdrop-filter), que custaria caro sobre o vídeo e criaria
   um bloco de contenção para o menu fixo do celular. */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 10, 42, 0.96);
  border-bottom: 1px solid var(--line-dark);
  transition: opacity 0.35s ease;
}
.site-header.is-top::before { opacity: 0; }

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 2.75rem; width: auto; filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__link {
  position: relative;
  padding: 0.3rem 0;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.15s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--cyan-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav__link:hover { color: #fff; opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { opacity: 1; }
.nav__cta { margin-left: 0.25rem; }
.nav__phones { display: none; }
.site-header :focus-visible { outline-color: var(--cyan-light); }

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  display: block;
  width: 1.375rem; height: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { content: ""; top: -7px; }
.nav-toggle__bars::after { content: ""; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translate(-50%, 7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translate(-50%, -7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  /* Sem JS o botão não abriria nada: fica invisível (o espaço continua reservado) */
  html:not(.js-menu) .nav-toggle { visibility: hidden; }
  .nav {
    display: none;
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--night);
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.3rem;
    opacity: 1;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--cyan-light); }
  .nav__cta { margin: 1.5rem 0 0; }
  .nav__phones { display: grid; gap: 0.35rem; margin: 1.5rem 0 0; }
  .nav__phones a { color: #fff; font-size: 1.25rem; font-weight: 600; text-decoration: none; }
}

/* Barra de progresso da leitura */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  height: 3px;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .progress__bar { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Botões ------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px -12px rgba(10, 111, 184, 0.75); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn--glass { background: rgba(4, 10, 42, 0.45); color: #fff; border-color: rgba(255, 255, 255, 0.36); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }
.btn--cyan { background: var(--cyan-light); color: var(--night); }
.btn--cyan:hover { background: #8fdaff; color: var(--night); }
.btn--small { min-height: 2.5rem; padding: 0.55rem 1.05rem; font-size: 0.9375rem; }
.btn--large { min-height: 3.375rem; padding: 0.95rem 1.65rem; font-size: 1.0625rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.section--night .btn--cyan:focus-visible, .hero .btn:focus-visible, .banner .btn:focus-visible { outline-color: var(--cyan-light); }

.link-strong {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--cyan);
  text-underline-offset: 0.3em;
}

.spinner {
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Interface ilustrativa ("ui"): cartões brancos com LED, a mesma família em
   toda a página. Ilustram estados (livre, online, em atendimento), nunca
   números ou métricas. */
.ui {
  position: relative;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-ui);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: var(--shadow-ui);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.ui p { margin: 0; }
.ui b { font-weight: 600; color: var(--navy); }
.ui__title { font-weight: 600; color: var(--navy); }
.ui__meta { color: var(--muted); font-size: 0.875rem; }
.ui__rows { display: grid; gap: 0.45rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.ui__rows li { display: flex; align-items: center; gap: 0.55rem; }
.ui__rows b { margin-left: auto; padding-left: 1rem; font-weight: 600; color: var(--blue); }
.ui__foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem !important; color: var(--muted); font-size: 0.8125rem; }

.ui__icon { display: inline-block; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--ice) center / 1.2rem no-repeat; }
.ui__icon--phone { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fb8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(40rem, min(100svh, 58rem));
  padding-top: calc(var(--header-h) + clamp(1.25rem, 5vh, 5rem));
  background: var(--night);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__poster, .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__poster, .hero__video { object-fit: cover; object-position: 62% 50%; }
.hero__video { opacity: 0; transition: opacity 0.9s ease; }
.hero.is-playing .hero__video { opacity: 1; }

/* Véu funcional, calculado sobre branco puro (o pior quadro possível do vídeo):
   texto branco a 82% (lead) precisa de pelo menos 63% de azul-noite por trás,
   os links do menu (86%) de 61,5% e ícones brancos (3:1) de 44%. A faixa do topo
   protege o menu enquanto o cabeçalho está transparente; a direita deixa o vídeo
   aparecer. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 10, 42, 0.65) 0%, rgba(4, 10, 42, 0.5) 4.75rem, rgba(4, 10, 42, 0) 10rem),
    linear-gradient(0deg, rgba(4, 10, 42, 0.9) 0%, rgba(4, 10, 42, 0) 26%),
    linear-gradient(90deg, rgba(4, 10, 42, 0.9) 0%, rgba(4, 10, 42, 0.78) 40%, rgba(4, 10, 42, 0.6) 56%, rgba(4, 10, 42, 0.24) 74%, rgba(4, 10, 42, 0.1) 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__text { max-width: 44rem; padding-bottom: clamp(1rem, 3vh, 3.5rem); }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: #fff;
}
.hero h1 {
  max-width: 13ch;
  margin-bottom: 0.42em;
  color: #fff;
  /* também limitado pela altura, para caber em telas baixas de notebook */
  font-size: clamp(2.6rem, min(1.1rem + 5.2vw, 0.6rem + 7vh), 5.4rem);
}
.hero .lead { color: var(--on-dark); }
.hl { position: relative; display: inline-block; color: var(--cyan-light); }
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.075em;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  border-radius: 2px;
  transform-origin: left;
  animation: underline 0.9s var(--ease-out) 1.1s both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin-top: 2.1rem; }
.hero__alt { margin-top: 1.1rem; color: var(--on-dark-muted); font-size: 0.98rem; }
.hero__alt a { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.4); }
.hero :focus-visible { outline-color: var(--cyan-light); }

/* Entrada orquestrada (CSS puro: não depende de JS nem de observador) */
.hero__text > * { animation: rise 0.95s var(--ease-out) both; }
.hero__text > :nth-child(1) { animation-delay: 0.05s; }
.hero__text > :nth-child(2) { animation-delay: 0.15s; }
.hero__text > :nth-child(3) { animation-delay: 0.32s; }
.hero__text > :nth-child(4) { animation-delay: 0.46s; }
.hero__text > :nth-child(5) { animation-delay: 0.58s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Cartão ilustrativo da ligação: um só, no canto inferior direito, para que a
   metade direita do vídeo fique livre */
.hero__cards {
  position: relative;
  align-self: end;
  justify-self: end;
  margin-bottom: clamp(1rem, 3vh, 3.5rem);
}
.hero__cards .ui { animation: card-in 0.8s var(--ease-out) 0.7s both; }
.ui--call {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: center;
  width: 17.5rem;
  padding: 1rem 1.15rem;
}
.ui--call .ui__icon { grid-row: span 2; }
.ui--call .ui__title { font-size: 1.0625rem; transition: opacity 0.24s ease; }
.ui--call .ui__meta { display: flex; justify-content: space-between; gap: 0.75rem; transition: opacity 0.24s ease; }
.ui__timer { font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 600; }
.ui__ring {
  position: absolute;
  left: 1.15rem; top: 50%;
  width: 2.25rem; height: 2.25rem;
  margin-top: -1.125rem;
  border-radius: 10px;
  pointer-events: none;
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.hero__cards[data-state="ringing"] .ui__ring { animation: ring 1.2s ease-out infinite; }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(10, 111, 184, 0.45); }
  100% { box-shadow: 0 0 0 16px rgba(10, 111, 184, 0); }
}

.hero__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.35rem;
  /* linha só na largura do conteúdo (a borda cobriria também o recuo lateral) */
  background: linear-gradient(var(--line-dark), var(--line-dark)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  animation: rise 0.9s var(--ease-out) 0.7s both;
}
.hero__areas { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 0; padding: 0; list-style: none; }
.hero__areas a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--on-dark);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}
.hero__areas a:hover { color: #fff; }
.hero__areas .sq { width: 0.45rem; height: 0.45rem; box-shadow: none; }

.hero__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 10, 42, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.hero__toggle:hover { border-color: #fff; }
.hero__toggle-icon {
  position: relative;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.hero__toggle-icon::before, .hero__toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px; height: 0.7rem;
  margin-top: -0.35rem;
  background: #fff;
  border-radius: 1px;
}
.hero__toggle-icon::before { left: calc(50% - 4px); }
.hero__toggle-icon::after { left: calc(50% + 1px); }
.hero__toggle[data-paused="true"] .hero__toggle-icon::before {
  left: calc(50% - 3px);
  width: 0; height: 0;
  margin-top: -0.4rem;
  background: none;
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.65rem;
  border-color: transparent transparent transparent #fff;
}
.hero__toggle[data-paused="true"] .hero__toggle-icon::after { display: none; }

@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cards { display: none; }
  /* Coluna única: o texto ocupa toda a largura, então o véu é vertical e nunca
     fica abaixo de 60% (o selo e o lead ficam na faixa de 65% ou mais) */
  .hero__scrim {
    background: linear-gradient(180deg, rgba(4, 10, 42, 0.6) 0%, rgba(4, 10, 42, 0.7) 26%, rgba(4, 10, 42, 0.78) 58%, rgba(4, 10, 42, 0.9) 100%);
  }
}
@media (max-width: 760px) {
  .hero { min-height: max(38rem, 100svh); }
  .hero__poster, .hero__video { object-position: 50% 30%; }
  .hero__inner { align-items: end; }
  .hero__actions .btn { width: 100%; }
  .hero__foot { flex-direction: column; align-items: stretch; }
  .hero__areas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
  .hero__areas a { font-size: 0.9rem; align-items: flex-start; }
  .hero__areas .sq { margin-top: 0.45em; }
  .hero__toggle { align-self: flex-start; }
}
@media (prefers-contrast: more) { .hero__scrim { background: rgba(4, 10, 42, 0.95); } }

/* Serviços ---------------------------------------------------------------- */
.tabs__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.tabs__tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.85rem;
  align-content: start;
  align-items: start;
  padding: 0.85rem 2.25rem 0.85rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.tabs__tab:hover { border-color: var(--line-strong); color: var(--navy); }
.tabs__thumb {
  grid-row: span 2;
  width: 4.25rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}
.tabs__name { font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.tabs__sum { grid-column: 2; font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.port {
  grid-row: span 2;
  width: 0.7rem; height: 0.7rem;
  margin-top: 0.4rem;
  border: 1.5px solid var(--line-strong);
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.tabs__tab .port { position: absolute; right: 0.9rem; top: 0.9rem; margin: 0; }
.tabs__tab[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.tabs__tab[aria-selected="true"] .tabs__sum { color: var(--on-dark); }
.tabs__tab[aria-selected="true"] .port { border-color: var(--cyan-light); background: var(--cyan-light); box-shadow: 0 0 10px rgba(79, 195, 255, 0.8); }

.tabs__panels { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  /* soma-se ao scroll-padding-top do html, que já desconta o cabeçalho */
  scroll-margin-top: 1rem;
}
.panel__media { position: relative; }
.panel__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-photo);
  transition: transform 0.6s var(--ease-out);
}
.panel__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1.25rem; bottom: -1.25rem;
  width: 34%;
  aspect-ratio: 1;
  background: var(--navy);
}
.panel:nth-child(even) .panel__media::before { left: auto; right: -1.25rem; }
.panel__media::after {
  content: "";
  position: absolute;
  right: -0.75rem; top: -0.75rem;
  width: 2.75rem;
  aspect-ratio: 1;
  background: var(--cyan);
}
.panel:nth-child(even) .panel__media::after { right: auto; left: -0.75rem; }
.panel .ui--panel {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  width: min(17rem, calc(100% - 2.5rem));
}
.panel:nth-child(even) .ui--panel { left: auto; right: 1.25rem; }
.panel__intro { font-size: 1.125rem; color: var(--muted); }
.solutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.75rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}
.solutions li { padding: 1rem 0; border-top: 1px solid var(--line); }
.solutions h4 { margin-bottom: 0.25rem; color: var(--navy); }
.solutions p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

/* Indicadores do cartão de integração */
.ui__link { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.6rem; font-size: 0.875rem; font-weight: 500; color: var(--navy); }
.ui__track { position: relative; flex: 1; height: 2px; background: var(--line-strong); }
.ui__track i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 8px rgba(0, 152, 216, 0.8); }
.check {
  width: 1rem; height: 1rem;
  border-radius: 4px;
  background: var(--cyan) center / 0.7rem no-repeat url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
}

/* Modo abas (só com JS e em telas largas; aplicado de uma vez pelo script) */
.tabs.is-tabs {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.tabs.is-tabs .tabs__list {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  grid-template-columns: 1fr;
  margin: 0;
}
.tabs.is-tabs .tabs__tab { padding: 1.15rem 1.2rem; }
.tabs.is-tabs .tabs__name { font-size: 1.25rem; }
.tabs.is-tabs .panel { grid-template-columns: 1fr; }
.tabs.is-tabs .panel:not(.is-active) { display: none; }
.tabs.is-tabs .panel__media img { aspect-ratio: 16 / 9; }
.tabs.is-tabs .panel:nth-child(even) .panel__media::before { left: -1.25rem; right: auto; }
.tabs.is-tabs .panel:nth-child(even) .panel__media::after { left: auto; right: -0.75rem; }
.tabs.is-tabs .panel:nth-child(even) .ui--panel { left: 1.25rem; right: auto; }
@media (hover: hover) { .panel__media:hover img { transform: scale(1.025); } }

@media (max-width: 999px) {
  .tabs__list { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 400px) { .tabs__list { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .tabs__tab { padding: 0.65rem 2rem 0.65rem 0.65rem; align-items: center; }
  .tabs__thumb { width: 3.25rem; grid-row: auto; }
  .tabs__sum { display: none; }
  .tabs__name { font-size: 0.98rem; }
  .solutions { grid-template-columns: 1fr; }
  /* o quadrado azul fica preso à foto 16:10 (62,5% da largura), não ao cartão */
  @supports (top: 1cqw) {
    .panel__media { container-type: inline-size; }
    .panel__media::before { bottom: auto; top: calc(28.5cqw + 1.25rem); }
  }
  /* No celular o cartão desce para a borda da foto, sem cobri-la */
  .panel .ui--panel, .panel:nth-child(even) .ui--panel {
    position: relative;
    left: auto; right: auto; bottom: auto;
    width: auto;
    margin: -2.25rem 0.75rem 0;
    font-size: 0.875rem;
    padding: 0.75rem 0.9rem;
  }
}

/* Como funciona (o caminho de uma ligação) --------------------------------- */
.flowsec { overflow: hidden; }
.flowsec::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 195, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 195, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 45%, #000, transparent);
  pointer-events: none;
}
.flowsec .container { position: relative; }
.flowsec .section-head--split { align-items: end; }
.flowsec .section-head .btn { justify-self: end; }

.flow { --gap: 3rem; position: relative; }
.flow__path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.node {
  position: relative;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid rgba(79, 195, 255, 0.2);
  border-radius: 12px;
  background: var(--night-2);
  transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.node h3 { margin: 0.9rem 0 0.35rem; font-size: 1.2rem; }
.node p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--on-dark-muted); }
.node.is-lit { border-color: rgba(79, 195, 255, 0.6); box-shadow: 0 0 0 1px rgba(79, 195, 255, 0.18), 0 18px 40px -24px rgba(79, 195, 255, 0.55); }
.flow.is-running .node:not(.is-lit) { opacity: 0.78; }
/* o texto mantém contraste AA; fotos e ícones é que ficam apagados */
.flow.is-running .node:not(.is-lit) :is(img, .node__icon, .logo-squares) { opacity: 0.4; transition: opacity 0.35s ease; }

.node[data-node="1"] { grid-area: 1 / 1; }
.node[data-node="2"] { grid-area: 1 / 2; }
.node[data-node="3"] { grid-area: 1 / 3; }
.node[data-node="4"] { grid-area: 1 / 4; }
.node[data-node="5"] { grid-area: 2 / 4; }
.node[data-node="6"] { grid-area: 2 / 3; }
.node[data-node="7"] { grid-area: 2 / 1 / 3 / 3; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); column-gap: 1.25rem; align-items: center; }

.node--person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.node[data-node="7"] img { grid-row: span 3; aspect-ratio: 1; }
.node[data-node="7"] h3 { margin-top: 0; }
@media (min-width: 1000px) {
  .node[data-node="7"] { grid-template-rows: 1fr auto auto auto 1fr; }
  .node[data-node="7"] img { grid-row: 1 / -1; aspect-ratio: 4 / 3; }
  .node[data-node="7"] h3 { grid-area: 2 / 2; }
  .node[data-node="7"] p { grid-area: 3 / 2; }
  .node[data-node="7"] .ui--live { grid-area: 4 / 2; }
}
.ui--live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  margin-top: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  white-space: nowrap;
}
.ui--live b { font-variant-numeric: tabular-nums; color: var(--blue); }

.node__icon { display: block; width: 2.75rem; height: 2.75rem; border: 1.5px solid rgba(79, 195, 255, 0.55); border-radius: 8px; background: rgba(79, 195, 255, 0.08) center / 1.35rem no-repeat; }
.node__icon--tower { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fc3ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 10v12M8 22l4-12 4 12M4.9 4.9a10 10 0 0 0 0 10.2M19.1 4.9a10 10 0 0 1 0 10.2M7.8 7.8a6 6 0 0 0 0 4.4M16.2 7.8a6 6 0 0 1 0 4.4'/%3E%3Ccircle cx='12' cy='10' r='1.5'/%3E%3C/svg%3E"); }
.node__icon--link { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fc3ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E"); }
.node__icon--ura { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fc3ff' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2.5'/%3E%3Cpath d='M8.5 8h.01M12 8h.01M15.5 8h.01M8.5 12h.01M12 12h.01M15.5 12h.01M8.5 16h.01M12 16h.01M15.5 16h.01' stroke-width='2.6'/%3E%3C/svg%3E"); }
.node__icon--ext { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fc3ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.node--pabx .logo-squares { --s: 2rem; display: block; }

.keys { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--on-dark-muted); }
.keys li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.5rem 0.25rem 0.3rem; border: 1px solid var(--line-dark); border-radius: 6px; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.keys b { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 4px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.75rem; }
.keys li.is-pick { border-color: var(--cyan-light); color: #fff; background: rgba(79, 195, 255, 0.12); }
.keys li.is-pick b { background: var(--cyan-light); color: var(--night); }

/* Fios entre os nós: trilho fixo e um pacote de luz quando a etapa passa */
.node[data-dir]::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--wire);
}
.node[data-dir="e"]::after { top: 50%; left: 100%; width: var(--gap); height: 2px; margin-top: -1px; }
.node[data-dir="s"]::after { left: 50%; top: 100%; width: 2px; height: var(--gap); margin-left: -1px; }
.node[data-dir="w"]::after { top: 50%; right: 100%; width: var(--gap); height: 2px; margin-top: -1px; }
.node.is-flow[data-dir="e"]::after, .node.is-flow[data-dir="w"]::after {
  background: linear-gradient(90deg, transparent, var(--cyan-light), transparent) no-repeat, var(--wire);
  background-size: 45% 100%, 100% 100%;
  animation: packet-x 0.9s linear both;
}
.node.is-flow[data-dir="w"]::after { animation-name: packet-x-rev; }
.node.is-flow[data-dir="s"]::after {
  background: linear-gradient(180deg, transparent, var(--cyan-light), transparent) no-repeat, var(--wire);
  background-size: 100% 45%, 100% 100%;
  animation: packet-y 0.9s linear both;
}
@keyframes packet-x { from { background-position: -80% 0, 0 0; } to { background-position: 180% 0, 0 0; } }
@keyframes packet-x-rev { from { background-position: 180% 0, 0 0; } to { background-position: -80% 0, 0 0; } }
@keyframes packet-y { from { background-position: 0 -80%, 0 0; } to { background-position: 0 180%, 0 0; } }
.node.is-ringing { animation: shake 0.42s ease-in-out 2; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.flow__busbar {
  height: 2px;
  margin: 2.75rem 0 0;
  background: var(--wire);
}
.flow.is-bus .flow__busbar { background: linear-gradient(90deg, transparent, var(--cyan-light), transparent) no-repeat, var(--wire); background-size: 30% 100%, 100% 100%; animation: packet-x 1.3s linear both; }
.flow__bus {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1.5rem 0 0;
  list-style: none;
}
.tool {
  position: relative;
  padding: 1rem 1rem 1.1rem;
  border-top: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 0.35s ease, background-color 0.35s ease;
}
.tool::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 100%;
  width: 2px; height: 1.5rem;
  margin-left: -1px;
  background: var(--wire);
}
.tool h3 { display: inline; margin: 0 0 0 0.45rem; font-size: 1rem; }
.tool p { margin: 0.4rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--on-dark-muted); }
.tool.is-lit .led { background: var(--cyan-light); box-shadow: 0 0 10px rgba(79, 195, 255, 0.8); }
.flow.is-running .flow__bus:not(.is-lit) .tool { opacity: 0.78; }

.flow__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.flow__status { margin: 0; max-width: 44rem; font-size: 1.125rem; font-weight: 500; color: #fff; min-height: 1.65em; }
.flow__note { margin: 0; max-width: 28rem; font-size: 0.875rem; color: var(--on-dark-muted); }

@media (max-width: 999px) {
  .flow { --gap: 1.75rem; }
  .flow__path { grid-template-columns: 1fr; padding-left: 1.5rem; }
  .node[data-node] { grid-area: auto; }
  .node[data-node="7"] { grid-template-columns: 1fr; }
  .node[data-node="7"] img { grid-row: auto; aspect-ratio: 4 / 3; margin-bottom: 0.25rem; }
  .node[data-node="7"] h3 { margin-top: 0.9rem; }
  .node[data-dir]::after, .node[data-dir="e"]::after, .node[data-dir="w"]::after {
    top: calc(1.6rem + 10px); left: -1.5rem; right: auto;
    width: 2px; height: calc(100% - 10px + var(--gap));
    margin: 0;
  }
  .node::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 4px); top: 1.6rem;
    width: 10px; height: 10px;
    background: var(--night-2);
    border: 2px solid var(--cyan-light);
  }
  .node[data-dir]::after { left: calc(-1.5rem); }
  .node.is-flow[data-dir]::after {
    background: linear-gradient(180deg, transparent, var(--cyan-light), transparent) no-repeat, var(--wire);
    background-size: 100% 45%, 100% 100%;
    animation-name: packet-y;
  }
  .node.is-ringing { animation-name: shake-y; }
  .node--person img { max-width: 22rem; }
  .flow__bus { grid-template-columns: 1fr 1fr; }
  .tool::before { display: none; }
  .flowsec .section-head .btn { justify-self: start; }
}
@keyframes shake-y { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (min-width: 561px) and (max-width: 999px) {
  .node--person img, .node[data-node="7"] img { max-width: none; aspect-ratio: 2 / 1; object-position: 50% 0%; }
}
@media (max-width: 560px) { .flow__bus { grid-template-columns: 1fr; } }

/* Processo ---------------------------------------------------------------- */
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.steps {
  position: relative;
  display: grid;
  gap: clamp(2rem, 9vh, 4.5rem);
  margin: 0;
  padding: 0 0 0 5.5rem;
  list-style: none;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: 1.95rem; top: 2.2rem; bottom: 2.2rem;
  width: 2px;
  background: var(--line-strong);
}
.steps::after {
  background: var(--blue);
  transform-origin: top;
  transform: scaleY(var(--fill, 1));
  transition: transform 0.45s var(--ease-out);
}
.step { position: relative; }
.step__num {
  position: absolute;
  left: -5.5rem; top: -0.35rem;
  width: 4rem;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.04em;
  color: var(--ice);
  -webkit-text-stroke: 1.5px var(--blue);
  background: var(--ice);
  transition: color 0.3s ease;
}
.step.is-active .step__num { color: var(--blue); }
.step h3 { margin-bottom: 0.35rem; transition: color 0.3s ease; }
.step p { margin: 0; color: var(--muted); max-width: 30rem; }
/* Etapas ainda não alcançadas: só o título perde ênfase; o texto mantém AA */
.steps.is-guided .step:not(.is-active) h3 { color: var(--muted); }

.process__media { position: sticky; top: calc(var(--header-h) + 2rem); isolation: isolate; }
.process__media .frame img { aspect-ratio: 4 / 5; }
.ui--step {
  position: absolute;
  left: 1.25rem; top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
}
.ui--step p { display: grid; line-height: 1.25; }
.ui--step span[data-step-label] { font-size: 0.8125rem; color: var(--muted); }
.ui--step b { font-size: 1.0625rem; }
@media (max-width: 860px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__media { position: relative; top: auto; order: -1; }
  .process__media .frame img { aspect-ratio: 3 / 2; }
  .steps { padding-left: 4rem; }
  .steps::before, .steps::after { left: 1.25rem; }
  .step__num { left: -4rem; width: 2.75rem; font-size: 2.5rem; }
}

/* Diferenciais ------------------------------------------------------------ */
.diffs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.media-stack { position: relative; isolation: isolate; }
.diffs__media .frame img { aspect-ratio: 5 / 4; }
.diffs__media .caption { margin-top: 2.25rem; }
.ui--analysis {
  position: absolute;
  right: -1.5rem; bottom: 2.5rem;
  width: min(19rem, 70%);
  padding: 1.1rem 1.2rem;
}
.bars { display: grid; gap: 0.6rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 8.5rem 1fr; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--muted); }
.bars i {
  display: block;
  height: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform-origin: left;
  transform: scaleX(var(--w, 1));
}
/* Cada barra é uma etapa da análise que se completa; não representam quantidades */
.bars li { grid-template-columns: 8.5rem 1fr auto; }
.bars .check { width: 0.9rem; height: 0.9rem; background-size: 0.6rem; }
.diffs__content h2 { margin-bottom: 1.5rem; }
.diffs__list { margin: 0; padding: 0; list-style: none; }
.diffs__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.diffs__list li:last-child { border-bottom: 1px solid var(--line); }
.diffs__list .led { grid-row: span 2; margin-top: 0.55rem; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 152, 216, 0.16); }
.diffs__list h3 { margin: 0; font-size: 1.25rem; }
.diffs__list p { grid-column: 2; margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .diffs__grid { grid-template-columns: 1fr; }
  .ui--analysis {
    position: relative;
    right: auto; bottom: auto;
    width: auto;
    max-width: 22rem;
    margin: -3rem 0.75rem 0 auto;
  }
}
@media (max-width: 420px) { .bars li { grid-template-columns: 7rem 1fr auto; } }
/* Quando o cartão desce para o fluxo, o bloco termina no cartão: o quadrado azul
   passa a ser medido pela largura (a foto 5:4 tem 80% dela de altura) */
@supports (top: 1cqw) {
  @media (max-width: 860px) {
    .media-stack { container-type: inline-size; }
    .diffs__media .backplate--bl { bottom: auto; top: calc(38cqw + 1.5rem); }
  }
  @media (max-width: 760px) {
    .diffs__media .backplate--bl { top: calc(38cqw + 0.75rem); }
  }
}

/* Sobre ------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.about h2 { max-width: 16ch; }
.about__content p { color: var(--on-dark); max-width: 34rem; }
.about__place { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 0.75rem; color: #fff !important; font-weight: 500; }
.about__media .frame { background: var(--night); }
.about__media .frame img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
@media (min-width: 861px) { .about__media .frame img { aspect-ratio: 4 / 5; } }
.frame--parallax img { transform: scale(1.08); }
.about__statements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem clamp(2.5rem, 7vw, 6rem);
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
}
.statement h3 { margin-bottom: 1rem; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--cyan-light) !important; }
.statement p { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.018em; color: #fff; }
.statement .w { transition: opacity 0.2s linear; }
@media (max-width: 860px) {
  .about__grid, .about__statements { grid-template-columns: 1fr; }
}

/* Parceiros --------------------------------------------------------------- */
.section--partners { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--partners .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.partners__board { position: relative; max-width: 66rem; margin-inline: auto; }
.partners__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* vão proporcional: os fios do SVG (182, 600 e 1018 de 1200) caem no centro de cada logotipo */
  gap: 3rem 4.5%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  height: 8rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.tile img { width: auto; height: var(--h, 2.5rem); max-width: 70%; object-fit: contain; }
/* Tamanho óptico de cada logotipo, para que os três pareçam ter o mesmo peso */
.tile:nth-child(1) img { --h: 2.1rem; }
.tile:nth-child(2) img { --h: 2.8rem; }
.tile:nth-child(3) img { --h: 3.1rem; }
.tile .port { position: absolute; left: 50%; bottom: -0.36rem; margin: 0 0 0 -0.35rem; background: #fff; border-color: var(--cyan); }
.partners__board.is-live .tile .port { background: var(--cyan); box-shadow: 0 0 10px rgba(0, 152, 216, 0.7); }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-ui-soft); } }
.partners__wires { display: block; width: 100%; height: 5rem; overflow: visible; }
.partners__wires path { fill: none; stroke: var(--cyan); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.partners__node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 1.4rem;
  border-radius: var(--r-ui);
  background: var(--navy);
  color: var(--on-dark);
  box-shadow: var(--shadow-ui-soft);
}
.partners__node p { display: grid; margin: 0; font-size: 0.9375rem; line-height: 1.35; }
.partners__node b { color: #fff; font-size: 1.0625rem; }
@media (max-width: 760px) {
  .partners__tiles { grid-template-columns: 1fr; gap: 1rem; }
  .tile { height: 6rem; }
  .tile .port { display: none; }
  .partners__wires { display: none; }
  .partners__node { margin-top: 2rem; }
}

/* Dúvidas ----------------------------------------------------------------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.faq__media { position: sticky; top: calc(var(--header-h) + 2rem); isolation: isolate; }
.faq__media .frame img { aspect-ratio: 4 / 5; }
.ui--ring {
  position: absolute;
  right: -1rem; bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  text-decoration: none;
}
.ui--ring > span:last-child { display: grid; line-height: 1.3; }
.ui--ring b { font-size: 1.125rem; }
.ui--ring:hover b { color: var(--blue); }
.ui__pulse { position: absolute; left: 0.85rem; top: 50%; width: 2.25rem; height: 2.25rem; margin-top: -1.125rem; border-radius: 10px; pointer-events: none; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }
.plus {
  position: relative;
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0.8rem; height: 2px;
  margin: -1px 0 0 -0.4rem;
  background: var(--navy);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease, background-color 0.25s ease;
}
.plus::after { transform: rotate(90deg); }
.faq__item[open] .plus { background: var(--navy); border-color: var(--navy); }
.faq__item[open] .plus::before, .faq__item[open] .plus::after { background: #fff; }
.faq__item[open] .plus::after { transform: rotate(0deg); opacity: 0; }
.faq__answer p { max-width: 42rem; padding-bottom: 1.4rem; color: var(--muted); }
.faq__more { margin-top: 2rem; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.42s var(--ease-out), content-visibility 0.42s allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
}
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__media { position: relative; top: auto; max-width: 32rem; }
  .faq__media .frame img { aspect-ratio: 16 / 10; }
  .ui--ring { right: 0.75rem; bottom: -1.5rem; }
  .faq__content { margin-top: 1.5rem; }
}

/* Banner de fechamento ---------------------------------------------------- */
.banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(34rem, 72vh, 46rem);
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}
.banner__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform-origin: 66% 50%; }
.banner.is-onscreen .banner__media img { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1%); } }
.banner__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* a foto já é escura à esquerda (parede azul); à direita a mesa com o telefone de conferência fica à mostra */
  background: linear-gradient(90deg, rgba(4, 10, 42, 0.9) 0%, rgba(4, 10, 42, 0.8) 40%, rgba(4, 10, 42, 0.42) 62%, rgba(4, 10, 42, 0.08) 100%);
}
.banner__inner {
  position: relative;
  display: block;
}
.banner__text { max-width: 44rem; }
.banner h2 { max-width: 15ch; color: #fff; }
.banner__text p { max-width: 34rem; margin-bottom: 2rem; font-size: 1.1875rem; color: var(--on-dark); }
.banner__phones { display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem; margin-top: 2.25rem; }
.banner__phones a {
  color: #fff;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}
.banner__phones a:hover { color: var(--cyan-light); }
@media (max-width: 860px) {
  /* No celular a foto vira uma faixa inteira no topo e o texto vem abaixo, sem véu pesado */
  .banner { display: block; min-height: 0; padding-block: 0 clamp(3rem, 9vw, 4.5rem); }
  .banner__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .banner__media img { position: absolute; inset: 0; object-position: 72% 50%; }
  .banner__scrim { inset: 0 0 auto 0; z-index: 1; height: 62.5vw; background: linear-gradient(180deg, rgba(4, 10, 42, 0) 55%, var(--night) 100%); }
  .banner__inner { position: relative; z-index: 2; margin-top: -1.5rem; }
  .banner .btn { width: 100%; }
  .banner__phones { flex-direction: column; }
}

/* Contato ----------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.2fr);
  gap: 3rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-ui);
  background: #fff;
  box-shadow: 0 30px 70px -48px rgba(4, 10, 42, 0.45);
}
.form-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}
.meter { display: inline-flex; gap: 4px; }
.meter i { display: block; width: 0.55rem; height: 1.1rem; border-radius: 2px; background: var(--line-strong); transition: background-color 0.24s ease, box-shadow 0.24s ease; }
.meter i.is-on { background: var(--cyan); box-shadow: 0 0 8px rgba(0, 152, 216, 0.55); }
.meter.is-sending i { animation: meter 0.9s ease-in-out infinite; }
.meter.is-sending i:nth-child(2) { animation-delay: 0.12s; } .meter.is-sending i:nth-child(3) { animation-delay: 0.24s; } .meter.is-sending i:nth-child(4) { animation-delay: 0.36s; }
@keyframes meter { 0%, 100% { background: var(--line-strong); } 50% { background: var(--cyan); } }
.form-card.is-ready .form-card__state { color: var(--navy); }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-size: 0.9375rem; font-weight: 500; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #7d879c; /* 3,6:1 sobre o branco: o limite do campo fica visível */
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230a1859' stroke-width='1.8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field :is(input, select, textarea):focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { border-color: var(--danger); outline-color: var(--danger); }
.field .error { margin: 0; font-size: 0.875rem; color: var(--danger); }
.field .error:empty { display: none; }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { margin: 0; font-size: 0.875rem; color: var(--muted); max-width: 24rem; }
.turnstile { min-height: 0; }
.turnstile:empty { display: none; }

.status {
  margin-bottom: 1.25rem;
  padding: 1rem 1.125rem;
  border: 1px solid;
  border-radius: var(--r-btn);
  font-size: 0.9375rem;
}
.status[hidden] { display: none; }
.status--success { background: var(--success-bg); border-color: #9ed0b0; color: var(--success); }
.status--error { background: var(--danger-bg); border-color: #f3b4ae; color: var(--danger); }
.status p { margin: 0; }
.status p + p { margin-top: 0.4rem; }

/* Campo-armadilha para robôs (honeypot): fora da tela, nunca display:none */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact__aside { display: grid; gap: 0; }
.contact__media { position: relative; margin-bottom: 2rem; }
.contact__media .frame img { aspect-ratio: 16 / 10; }
.contact__block { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact__block h3 { margin-bottom: 0.5rem; font-size: 1rem; letter-spacing: 0; }
.contact__block p, .contact__block address { margin: 0; color: var(--muted); }
.contact__phones { display: grid; gap: 0.1rem; }
.contact__phones a { color: var(--navy); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.contact__phones a:hover { color: var(--blue); }
.contact__social { display: flex; gap: 1.5rem; }

/* Rodapé ------------------------------------------------------------------ */
.site-footer {
  background: var(--night);
  padding-block: 4rem 2rem;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1.3fr 1fr 1.3fr;
  gap: 2.5rem 3rem;
}
.footer__brand { position: relative; }
.footer__brand .logo-squares { position: absolute; left: 0; top: -2.75rem; }
.footer__brand img { height: 2.4rem; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer__brand p { max-width: 20rem; }
.site-footer h2 { margin-bottom: 0.85rem; font-size: 0.9375rem; letter-spacing: 0; color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.footer__grid div:nth-child(2) ul { columns: 2; column-gap: 1.5rem; }
.site-footer a { position: relative; color: var(--on-dark); text-decoration: none; }
.site-footer a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--cyan-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease-out);
}
.site-footer a:hover { color: #fff; }
.site-footer a:hover::after { transform: scaleX(1); }
.site-footer :focus-visible { outline-color: var(--cyan-light); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  background: linear-gradient(var(--line-dark), var(--line-dark)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 0.875rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.footer__bottom li { margin: 0; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand .logo-squares { position: static; margin-bottom: 1rem; }
}

/* Barra fixa no celular --------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  gap: 0.75rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(4, 10, 42, 0.94);
  border-top: 1px solid var(--line-dark);
  transition: transform 0.3s var(--ease-out), visibility 0s;
}
.mobile-cta .btn { flex: 1; min-height: 2.9rem; padding-inline: 0.75rem; font-size: 0.9375rem; white-space: nowrap; }
.mobile-cta .btn--glass { flex: 0 0 auto; padding-inline: 1rem; }
@media (max-width: 360px) {
  .mobile-cta { gap: 0.5rem; }
  .mobile-cta .btn { white-space: normal; font-size: 0.875rem; padding-inline: 0.6rem; }
}
.mobile-cta.is-away { transform: translateY(110%); visibility: hidden; transition: transform 0.3s var(--ease-out), visibility 0s 0.3s; }
@media (max-width: 760px) {
  /* o foco nunca para atrás da barra fixa (WCAG 2.4.11, técnica C43) */
  html { scroll-padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .mobile-cta { display: flex; }
  body { padding-bottom: 4.6rem; }
  .site-footer { padding-bottom: 3rem; }
}
/* Sem JS, a barra aparece só depois do hero (CSS de rolagem, onde houver) */
@supports (animation-timeline: scroll()) {
  @media (max-width: 760px) {
    .mobile-cta:not(.is-managed) { animation: bar-in linear both; animation-timeline: scroll(root); animation-range: 60vh 80vh; }
    @keyframes bar-in { from { transform: translateY(110%); } to { transform: none; } }
  }
}

/* Telas baixas: as fotos fixas param de grudar e a barra do celular some */
@media (max-height: 800px) {
  .process__media, .faq__media { position: relative; top: auto; }
}
@media (max-height: 480px) and (max-width: 960px) {
  .mobile-cta { display: none !important; }
  body { padding-bottom: 0; }
}

/* Página 404 -------------------------------------------------------------- */
.not-found { padding-block: calc(var(--header-h) + clamp(4rem, 10vw, 7rem)) clamp(4rem, 10vw, 7rem); }
.not-found .lead { color: var(--on-dark); }
.not-found__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.broken { width: min(100%, 20rem); margin-bottom: 2rem; }
.broken path { fill: none; stroke: var(--cyan-light); stroke-width: 2; }
.broken rect { fill: none; stroke: var(--cyan-light); stroke-width: 1.5; }
.broken .spark { fill: var(--cyan-light); animation: spark 0.8s steps(2) 3; }
@keyframes spark { 50% { opacity: 0.1; } }

/* Laços contínuos: só na tela e só sem pausa ------------------------------ */
.is-onscreen .is-breath { animation: breath 2.6s ease-in-out infinite; }
@keyframes breath { 50% { box-shadow: 0 0 0 6px rgba(0, 152, 216, 0.05); opacity: 0.75; } }
.is-onscreen .ui__track i { animation: shuttle 2.4s var(--ease-inout) infinite alternate; }
@keyframes shuttle { to { left: calc(100% - 8px); } }
.faq.is-onscreen .ui__pulse { animation: ring 1.4s ease-out 2; animation-delay: 0.6s; }
/* A pausa congela só os laços contínuos; entradas únicas e estados ligados à
   rolagem continuam, para nada ficar preso no meio do caminho */
html.motion-paused :is(.is-breath, .ui__track i, .banner__media img, .ui__ring, .ui__pulse) { animation-play-state: paused !important; }

/* Efeitos ligados à rolagem (CSS puro, onde houver suporte) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-parallax] { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes parallax { from { translate: 0 calc(var(--p, 0px) * -1); } to { translate: 0 var(--p, 0px); } }
  }
}

/* Movimento reduzido ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .frame--parallax img { transform: none; }
}

/* Cores forçadas (alto contraste do Windows) ------------------------------ */
@media (forced-colors: active) {
  /* cabeçalho sempre sólido: as barras do menu não ficam sobre o vídeo */
  .site-header.is-top::before { opacity: 1; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { forced-color-adjust: none; background-color: ButtonText; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background-color: transparent; }
  .hero__toggle-icon::before, .hero__toggle-icon::after { forced-color-adjust: none; background-color: ButtonText; }
  .hero__toggle[data-paused="true"] .hero__toggle-icon::before { background: none; border-color: transparent transparent transparent ButtonText; }
  .tabs__tab[aria-selected="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
  .brand img, .footer__brand img { filter: none; forced-color-adjust: none; background: #fff; padding: 0.2rem; border-radius: 4px; }
}

/* Impressão --------------------------------------------------------------- */
@media print {
  .site-header, .progress, .hero__media, .hero__cards, .hero__toggle, .mobile-cta, .banner__media, .ui { display: none !important; }
  body { color: #000; padding: 0; }
  .hero, .banner, .section--night, .section--navy, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .banner h2, .section--night :is(h2, h3), .section--navy :is(h2, h3) { color: #000 !important; }
  a { color: #000; text-decoration: none; }
  .tabs.is-tabs .panel:not(.is-active) { display: grid; }
}
