/* =============================================================
   SYNCCION — design tokens
   Mundo visual: o chão de fábrica em formas chapadas. Círculos
   azul e ciano, uma máquina que reaparece em várias cenas, texto
   direto. Sem gradiente, sem brilho, sem painel falso.
   ============================================================= */

:root {
  /* cor: um azul de marca (acento), navy de chão de fábrica, ciano de apoio */
  --navy: #0A2A4D;
  --blue: #1C5FCC;
  --blue-bright: #3B82F6;
  --blue-tint: #EAF2FF;
  --blue-line: #C7DBFA;
  --cyan: #7FE0EF;
  --ink: #0B1F33;
  --muted: #4B6682;     /* texto secundário: 5,3:1 sobre o azul-claro e 6:1 sobre branco */
  --white: #FFFFFF;
  --ok: #22C55E;
  --warn: #F59E0B;
  --alert: #EF4444;
  --danger: #D93636;    /* vermelho que fecha 4,5:1 com texto branco */

  /* tipografia: Plex Sans carrega a voz; Plex Mono só para dado e identificador */
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* uma escala de raio só: botões e abas são pílula; cartões usam md e lg */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* layout e ritmo */
  --container-w: 1160px;
  --section-y: clamp(64px, 9vw, 112px);

  /* movimento: chegada exponencial, sem "mola" */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   RESET
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* sem scroll-behavior: smooth aqui: ele faz o ScrollTrigger medir a página "a meio caminho"
   ao recarregar no meio ou girar a tela. A rolagem suave das âncoras é ligada no clique (script.js). */
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--blue) var(--blue-tint);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.is-booting { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; }

/* superfícies do navegador também levam o desenho */
::selection { background: var(--cyan); color: var(--navy); }
input, textarea { caret-color: var(--blue); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; outline-color: var(--cyan); }

/* Menos movimento, não zero: laços e deslocamentos param;
   cor, opacidade e foco continuam respondendo. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .boot { display: none; }
  body.is-booting { overflow: auto; }
}

/* o conteúdo fica sempre acima da turbina fixa (z 2): ela passa por trás dos textos e dos cartões */
.container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Lenis (rolagem suave): a rolagem de verdade é que anda; o CSS só não pode competir com ela */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

section { padding-block: var(--section-y); }

h1, h2, h3 { line-height: 1.15; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

/* =============================================================
   LOADER — a turbina é revelada conforme o carregamento real
   Cortina azul-clara com os círculos da marca. A turbina fica numa
   camada própria acima da cortina: gira e aparece por varredura à
   medida que fontes e imagens chegam; quando tudo carregou, ela
   voa até o lugar dela atrás do trabalhador e a cortina sobe.
   Fica oculto até o JS agir (is-hiding) e some sozinho se o script falhar.
   ============================================================= */
.boot {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% + 16vh);   /* a borda curva fica abaixo da tela até a cortina subir */
  z-index: 1;
  display: none;
  overflow: hidden;
  background: var(--blue-tint);
  border-radius: 0 0 50% 50% / 0 0 16vh 16vh;
}
body.is-booting .boot { display: block; }

.boot-disc { position: absolute; border-radius: 50%; }
.boot-disc-a { width: min(74vmin, 600px); aspect-ratio: 1; left: -16vmin; top: 52vh; background: var(--white); }
.boot-disc-b { width: min(48vmin, 400px); aspect-ratio: 1; right: -10vmin; top: -14vmin; background: var(--cyan); }

.boot-lockup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--boot-cy, 46vh) + var(--boot-r, 160px) + 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* primeira pintura: nada do hero aparece antes da cortina estar pronta */
body.is-hiding .site-header,
body.is-hiding .hero-content,
body.is-hiding .hs-mid,
body.is-hiding .story { opacity: 0; }

/* =============================================================
   TURBINA — um elemento só, do loader até a seção Sobre
   Fica fixo na tela, atrás do trabalhador (z 3) e acima do fundo do
   hero. Cada camada abaixo faz uma coisa (posição, arco, ponteiro,
   loader, giro) para o GSAP não brigar consigo mesmo.
   ============================================================= */
.turbine-layer {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: none;
}
.has-turbine .turbine-layer { display: block; }
.turbine-layer.is-done { visibility: hidden; }
.turbine-layer div { position: absolute; left: 0; top: 0; width: 0; height: 0; }

.tb-img {
  position: absolute;
  left: calc(var(--tb-d, 560px) / -2);
  top: calc(var(--tb-d, 560px) / -2);
  width: var(--tb-d, 560px);
  height: var(--tb-d, 560px);
  max-width: none;
  user-select: none;
}
/* varredura do loader: os braços aparecem conforme o ângulo avança */
.tb-img.is-sweeping {
  -webkit-mask-image: conic-gradient(from -90deg, #000 calc(var(--a, 0deg) - 2deg), transparent var(--a, 0deg));
          mask-image: conic-gradient(from -90deg, #000 calc(var(--a, 0deg) - 2deg), transparent var(--a, 0deg));
}

/* =============================================================
   BOTÕES — pílula (casa com os círculos da marca), uma linha só,
   hover só em ponteiro fino, resposta ao toque no :active
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--blue-line);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--navy); }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
}

.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--blue-line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(10, 42, 77, 0.35);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
}

.main-nav ul { display: flex; gap: 32px; }
.main-nav a { font-size: 0.95rem; white-space: nowrap; color: var(--muted); position: relative; padding-block: 4px; transition: color 0.16s ease; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.main-nav a.is-active { color: var(--blue); }
.main-nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--blue); }
  .main-nav a:hover::after { transform: scaleX(1); }
}
.main-nav .nav-extra { display: none; }

.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .btn { padding: 10px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   HERO — dois planos que andam em taxas diferentes
   Longe: a turbina da marca (camada fixa que depois viaja pelo site).
   Meio: o trabalhador (recorte real). O texto anda a 1x.
   Sem JS, o hero é a mesma composição, parada.
   ============================================================= */
.hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px);
  background: var(--white);
  border-bottom: 1px solid var(--blue-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { position: relative; z-index: 3; }

.hero-content h1 {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 21ch;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 0.98;
  margin-inline: auto;
}

.hs-plane { position: absolute; will-change: transform; }

/* turbina da marca, atrás da cabeça. Com JS e movimento, quem aparece é a turbina
   solta da camada fixa (ela nasce no loader e desce com o scroll); este plano só
   marca o lugar dela e, sem JS ou com movimento reduzido, mostra a mesma imagem parada */
.hs-far { left: -6%; top: -4%; width: 116%; aspect-ratio: 1; }
.hs-shape { width: 100%; height: 100%; max-width: none; }
.has-turbine .hs-shape { visibility: hidden; }

/* o recorte do trabalhador: a figura ocupa a parte direita do arquivo, então ele sai um pouco do quadro */
.hs-mid { left: -34%; bottom: 0; width: 150%; z-index: 3; }
.hs-worker {
  width: 100%;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 26px 30px rgba(10, 42, 77, 0.2));
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-content h1 { max-width: 22ch; }
  .hero-scene { max-width: 460px; }
}

/* =============================================================
   SOBRE — a turbina vira a máquina da história
   A turbina do hero desce girando com o scroll e chega aqui. A cena
   fica presa (position: sticky) e o scroll conduz: a máquina falha,
   a falha se espalha em ondas (processo, atrasos, custos, paradas),
   o tempo volta, os sensores se ligam ao centro Synccion e o alerta
   chega a tempo. O JS liga o modo .is-pinned. Sem JS, com movimento
   reduzido ou em tela muito baixa é um bloco comum, já resolvido.
   ============================================================= */
.story { position: relative; overflow-x: clip; }
.story:not(.is-pinned) { padding-block: var(--section-y); }
.story ::selection { background: var(--cyan); color: var(--navy); }

.story-pin { padding-block: clamp(14px, 3svh, 40px); }
.story.is-pinned .story-track {
  height: calc(100vh - var(--hdr, 72px) + var(--travel, 3.6) * 100vh);
  height: calc(100svh - var(--hdr, 72px) + var(--travel, 3.6) * 100svh);
}
.story.is-pinned .story-pin {
  position: sticky;
  top: var(--hdr, 72px);
  z-index: 3;
  display: grid;
  align-content: center;
  height: calc(100vh - var(--hdr, 72px));
  height: calc(100svh - var(--hdr, 72px));
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
}

/* ---- texto ---- */
.story-copy {
  display: grid;
  gap: clamp(14px, 2.6svh, 26px);
  align-content: center;
  justify-items: start;
}

/* os dois capítulos viram abas só no modo preso */
.story-switch {
  display: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-pill);
  background: var(--white);
}
.story.is-pinned .story-switch { display: inline-flex; }
.story-tab {
  border: 0;
  background: none;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.2;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.16s var(--ease-out);
}
.story-tab:active { transform: scale(0.97); }
.story-tab.is-active { background: var(--blue); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .story-tab:not(.is-active):hover { color: var(--navy); }
}

.story-chapters { display: grid; gap: 56px; }
.story.is-pinned .story-chapters { gap: 0; }

.story-chapter h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.55rem);
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 14px;
  max-width: 17ch;
}
.story-chapter p { color: var(--muted); font-size: 1.05rem; max-width: 44ch; }

/* preso: os capítulos dividem o mesmo lugar e se alternam */
.story.is-pinned .story-chapter {
  grid-area: 1 / 1;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0s;
}
.story.is-pinned .story-chapter:not(.is-active) {
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}

/* lista de passos: cada linha acende no momento da história e leva até ele */
.story-steps { margin-top: clamp(14px, 2.4svh, 22px); border-top: 1px solid var(--blue-line); }
.story-steps li { border-bottom: 1px solid var(--blue-line); }
.story-steps button {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-block: clamp(6px, 1.1svh, 9px);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  text-align: left;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}
.story-steps i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-line);
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.story-steps li.is-bad button,
.story-steps li.is-blue button,
.story-steps li.is-ok button,
.story-steps li.is-warn button { color: var(--navy); }
.story-steps li.is-bad i { background: var(--danger); }
.story-steps li.is-blue i { background: var(--blue); }
.story-steps li.is-ok i { background: var(--ok); }
.story-steps li.is-warn i { background: var(--warn); }
@media (hover: hover) and (pointer: fine) {
  .story.is-pinned .story-steps button:hover { color: var(--navy); }
  .story.is-pinned .story-steps button:hover i { transform: scale(1.3); }
}
.story:not(.is-pinned) .story-steps button { cursor: default; pointer-events: none; }

/* ---- palco ---- */
.story-visual { display: grid; justify-items: center; gap: clamp(8px, 1.6svh, 14px); }

.story-stage {
  position: relative;
  width: min(100%, calc(100vh - var(--hdr, 72px) - 2 * clamp(14px, 3svh, 40px) - 60px), 620px);
  width: min(100%, calc(100svh - var(--hdr, 72px) - 2 * clamp(14px, 3svh, 40px) - 60px), 620px);
  aspect-ratio: 1;
}
.story:not(.is-pinned) .story-stage { width: min(100%, 520px); }

/* a turbina de dentro do palco assume quando a de fora termina de chegar.
   As cópias âmbar e vermelha ficam por cima e só mudam a cor (filtro SVG no index.html) */
.st-tb { position: absolute; left: 19%; top: 19%; width: 62%; height: 62%; }
.st-spinbase, .st-spin { position: absolute; inset: 0; }
.st-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.st-img-warn { filter: url(#tint-warn); opacity: 0; }
.st-img-bad { filter: url(#tint-bad); opacity: 0; }
.story.is-pinned:not(.is-swapped) .st-tb { visibility: hidden; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.st-disc, .st-calm, .st-hub {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  pointer-events: none;
}

/* ondas da falha: discos chapados, só tom, sem contorno */
.st-disc {
  width: var(--d);
  aspect-ratio: 1;
  background: rgba(217, 54, 54, 0.09);
  opacity: 0;
  visibility: hidden;
}

/* o estado resolvido (padrão do CSS): um disco calmo atrás da turbina e o centro com a marca */
.st-calm { width: 78%; aspect-ratio: 1; background: rgba(127, 224, 239, 0.5); }
.st-hub { width: 14.5%; aspect-ratio: 1; background: var(--blue); color: var(--white); display: grid; place-items: center; }
.st-hub svg { width: 58%; height: auto; }

/* legenda do momento */
.story-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
.story-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transition: background-color 0.3s ease; }
.story-status.is-bad i { background: var(--danger); }
.story-status.is-warn i { background: var(--warn); }
.story-status.is-ok i { background: var(--ok); }
.story-status.is-blue i { background: var(--blue); }

/* ---- telas baixas e estreitas ---- */
@media (max-height: 700px) and (min-width: 901px) {
  .story-chapter h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); margin-bottom: 10px; }
  .story-chapter p { font-size: 0.98rem; }
  .story-steps button { font-size: 0.92rem; padding-block: 5px; }
}
@media (max-height: 600px) and (min-width: 901px) {
  .story.is-pinned .story-steps { display: none; }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: clamp(10px, 2svh, 18px); }
  .story-visual { order: -1; }
  .story-copy { justify-items: stretch; }
  .story-tab { flex: 1; padding-inline: 10px; font-size: 0.86rem; }
  .story-chapter h2 { font-size: clamp(1.4rem, 5.6vw, 1.8rem); margin-bottom: 8px; max-width: none; }
  .story-chapter p { font-size: 0.95rem; }
  .story.is-pinned .story-stage { width: min(100%, 40svh, 380px); }

  .story-steps { display: flex; flex-wrap: wrap; gap: 6px; border-top: 0; margin-top: 10px; }
  .story-steps li { border: 0; }
  .story-steps button {
    width: auto;
    gap: 8px;
    padding: 5px 11px 5px 9px;
    font-size: 0.78rem;
    border: 1px solid var(--blue-line);
    border-radius: var(--r-pill);
    background: var(--white);
  }
  .story-steps i { width: 8px; height: 8px; }
}
@media (max-width: 900px) and (max-height: 760px) { .story.is-pinned .story-steps { display: none; } }
@media (max-width: 900px) and (max-height: 640px) { .story.is-pinned .story-stage { width: min(100%, 34svh); } }

/* =============================================================
   SEÇÃO — cabeçalhos comuns
   ============================================================= */
.section-heading { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-heading h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-heading p { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }

/* =============================================================
   FUNCIONALIDADES — a câmera percorre a máquina
   Lista tipográfica à esquerda; à direita, uma máquina ilustrada
   que a câmera visita parte por parte: placa, sensor, tela, torre
   de sinalização, planta e livro de registro.
   ============================================================= */
.features { --ink-soft: var(--muted); background: var(--blue-tint); }
.features ::selection { background: var(--cyan); color: var(--navy); }

.fx {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* ---- lista ---- */
.fx-nav { position: relative; }
.fx-rail {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--blue-line);
}
.fx-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
}
.fx-list { padding-left: 38px; }

.fx-btn {
  display: block;
  width: 100%;
  padding-block: 14px;
  font: inherit;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-align: left;
  color: var(--ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.fx-btn:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .fx-btn:hover { color: var(--navy); transform: translateX(6px); }
  .fx-row.is-active .fx-btn:hover { transform: none; }
}
.fx-row.is-active .fx-btn { color: var(--navy); }

/* a descrição abre por grid (0fr → 1fr): sem medir altura em JS */
.fx-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.fx-row.is-active .fx-desc { grid-template-rows: 1fr; }
.fx-desc-in {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.45s;
}
.fx-row.is-active .fx-desc-in { visibility: visible; transition-delay: 0s; }
.fx-desc p { max-width: 38ch; padding-bottom: 6px; color: var(--ink-soft); }

.fx-prog {
  display: block;
  height: 2px;
  margin: 16px 0 18px;
  border-radius: 2px;
  background: var(--blue-line);
  overflow: hidden;
}
.fx-prog i {
  display: block;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.fx.is-manual .fx-prog { visibility: hidden; }

.fx-caption { display: none; }

/* ---- palco ---- */
.fx-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.3;
  border-radius: 32px;
  background: var(--blue);
}
.fx-orb { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.fx-orb-a { width: 64%; aspect-ratio: 1; left: -20%; bottom: -38%; background: var(--navy); }
.fx-orb-b { width: 36%; aspect-ratio: 1; right: -9%; top: -14%; background: var(--cyan); }
.fx-orb-c { width: 7%; aspect-ratio: 1; left: 9%; top: 14%; background: var(--blue-bright); }

.fx-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  text-rendering: geometricPrecision;
}
.fx-svg text { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.fx-svg .pl-id { font-family: var(--font-mono); font-size: 10px; font-weight: 500; fill: var(--navy); }
.fx-svg .pl-name { font-size: 6.8px; font-weight: 600; fill: var(--ink-soft); }
.fx-svg .rd-head { font-family: var(--font-mono); font-size: 3.9px; fill: var(--cyan); }
.fx-svg .rd-lab { font-family: var(--font-mono); font-size: 3.7px; fill: #8FB4E6; }
.fx-svg .rd-val { font-size: 5.2px; font-weight: 600; fill: var(--white); text-anchor: end; }
.fx-svg .se-t { font-size: 11px; font-weight: 600; fill: var(--white); }
.fx-svg .al-t { font-size: 12px; font-weight: 600; fill: var(--navy); }
.fx-svg .al-s { font-family: var(--font-mono); font-size: 8.6px; fill: var(--muted); }
.fx-svg .lg-q { font-family: var(--font-mono); font-size: 5.4px; fill: var(--blue); }
.fx-svg .lg-t { font-family: var(--font-mono); font-size: 4.6px; fill: var(--muted); }
.fx-svg .lg-x { font-size: 5.2px; font-weight: 500; fill: var(--navy); }
.fx-svg .pp-big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; fill: var(--white); }
.fx-svg .pp-sub { font-size: 16px; font-weight: 500; fill: #D6E6FF; }

@media (max-width: 1100px) {
  .fx { gap: 40px; }
}

@media (max-width: 900px) {
  .fx { grid-template-columns: 1fr; gap: 20px; }

  /* a lista vira uma faixa de abas rolável */
  .fx-nav {
    margin-inline: -24px;
    padding-inline: 24px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .fx-nav::-webkit-scrollbar { display: none; }
  .fx-rail, .fx-marker { display: none; }
  .fx-list { display: flex; gap: 8px; width: max-content; padding: 2px 0 6px; }
  .fx-row { flex: none; scroll-snap-align: center; }
  .fx-btn {
    width: auto;
    padding: 10px 18px;
    font-size: 0.95rem;
    letter-spacing: 0;
    white-space: nowrap;
    background: var(--white);
    border: 1px solid var(--blue-line);
    border-radius: 999px;
    transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  }
  .fx-btn:active { transform: scale(0.97); }
  .fx-row.is-active .fx-btn { background: var(--blue); border-color: var(--blue); color: var(--white); }
  @media (hover: hover) and (pointer: fine) {
    .fx-row .fx-btn:hover { transform: none; }
    .fx-row:not(.is-active) .fx-btn:hover { border-color: var(--blue); }
  }
  .fx-desc { display: none; }

  .fx-stage { width: 100%; max-width: 640px; margin-inline: auto; }
  .fx-caption {
    display: block;
    max-width: 640px;
    min-height: 3.1em;
    margin-inline: auto;
    width: 100%;
    color: var(--ink-soft);
  }
}

@media (max-width: 560px) {
  .fx-stage { aspect-ratio: 1; border-radius: 24px; }
}

/* =============================================================
   COMO FUNCIONA — três passos num trilho
   Um passo por vez, sempre do mesmo lado (sem zigue-zague). O
   trilho preenche conforme o scroll atravessa os passos; as
   ilustrações usam o mesmo vocabulário do Sobre: máquinas, sensores
   e o círculo azul do Synccion.
   ============================================================= */
.how { background: var(--white); }

.steps { --dot: 44px; --steps-gap: clamp(56px, 8vw, 96px); display: grid; gap: var(--steps-gap); }

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--dot) minmax(0, 1fr) minmax(0, 380px);
  column-gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* trilho: um segmento por passo, do marcador ao próximo */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(var(--dot) / 2 - 1px);
  top: var(--dot);
  width: 2px;
  height: calc(100% + var(--steps-gap) - var(--dot));
  border-radius: 2px;
}
.step:not(:last-child)::before { background: var(--blue-line); }
/* o padrão é o estado final (trilho cheio, marcadores acesos); o JS liga o modo "vivo" */
.step:not(:last-child)::after { background: var(--blue); transform: scaleY(var(--fill, 1)); transform-origin: top; }

.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.steps.is-live .step:not(.is-on) .step-dot { background: var(--white); border-color: var(--blue-line); color: var(--blue); }

.step-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 4px 0 14px;
  max-width: 18ch;
}
.step-text p { color: var(--muted); font-size: 1.05rem; max-width: 42ch; }

.step-art { align-self: center; }
.how-svg { display: block; width: 100%; height: auto; overflow: visible; }
.how-svg .how-legend { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: var(--muted); }

/* =============================================================
   POR QUE SYNCCION — manifesto + benefícios
   ============================================================= */
.why { position: relative; background: var(--blue-tint); overflow: clip; }

.why-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}
.why-circle {
  width: 220px;
  height: 220px;
  background: var(--cyan);
  top: 24px;
  right: 16%;
}
.why-dot {
  width: 70px;
  height: 70px;
  background: var(--blue);
  bottom: 40px;
  left: 6%;
}

.why-grid {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.why-copy {
  position: relative;
  z-index: 1;
  max-width: 46%;
}

.manifesto {
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0;
  text-align: left;
}
.manifesto .word { display: inline-block; white-space: pre; }

/* botões de download do app */
.app-download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.app-download-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px 14px 14px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 20px 40px -18px rgba(10, 42, 77, 0.55);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background-color 0.2s ease;
}
.app-download-btn:active { transform: scale(0.98); }
.app-download-btn-alt { background: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .app-download-btn:hover { transform: translateY(-3px); background: var(--blue); box-shadow: 0 26px 48px -18px rgba(28, 95, 204, 0.6); }
  .app-download-btn-alt:hover { background: var(--navy); }
  .app-download-btn:hover .app-download-icon { transform: translateY(2px); }
}

.app-download-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  transition: transform 0.25s var(--ease-out);
}

.app-download-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.app-download-text small {
  font-weight: 500;
  font-size: 0.78rem;
  color: #D6E6FF;
  margin-bottom: 2px;
}

/* celular do app saindo pela direita da seção */
.why-photo-wrap {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  height: clamp(380px, 38vw, 540px);
  z-index: 0;
}

.why-photo-img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  filter: drop-shadow(0 28px 40px rgba(10, 42, 77, 0.28));
}

/* benefícios: tipografia sobre espaço e filetes, sem três cartões iguais */
.benefits {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--blue-line);
}

.benefit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 48px;
  align-items: baseline;
  padding-block: 32px;
  border-bottom: 1px solid var(--blue-line);
}
.benefit dt {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}
.benefit dd { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }

/* =============================================================
   PLANOS
   Três planos, um em destaque (azul cheio). Número em Plex Sans
   tabular: o valor rola ao trocar mensal/anual sem pular de largura.
   ============================================================= */
.pricing { position: relative; overflow: clip; }
.pricing-shape { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; }
.pricing-circle { width: 200px; height: 200px; background: var(--cyan); top: -70px; left: 6%; }
.pricing-dot { width: 64px; height: 64px; background: var(--blue-bright); bottom: 8%; right: 8%; }

.pricing-heading { position: relative; z-index: 1; text-align: center; margin-inline: auto; }
.pricing-heading p { margin-inline: auto; }
.pricing > .container { position: relative; z-index: 3; }

.billing-toggle {
  position: relative;
  display: flex;
  width: max-content;
  gap: 4px;
  padding: 4px;
  margin: -16px auto 44px;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-pill);
  background: var(--white);
}
.billing-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: none;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease;
}
.billing-btn.is-active { color: var(--white); }
.billing-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--blue);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: var(--r-md);
  padding: 32px 28px 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .plan:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 28px 56px -32px rgba(10, 42, 77, 0.35);
  }
}

/* o plano em destaque é o único cheio de cor */
.plan-featured {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 30px 60px -36px rgba(28, 95, 204, 0.6);
}
@media (hover: hover) and (pointer: fine) {
  .plan-featured:hover { border-color: var(--blue); box-shadow: 0 34px 64px -34px rgba(28, 95, 204, 0.7); }
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-head h3 { font-size: 1.3rem; letter-spacing: -0.01em; color: var(--navy); margin-bottom: 6px; }
.plan-head p { color: var(--muted); font-size: 0.92rem; min-height: 2.9em; }
.plan-featured .plan-head h3 { color: var(--white); }
.plan-featured .plan-head p { color: #DCE9FF; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
  color: var(--navy);
}
.plan-currency { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-amount {
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan-period { color: var(--muted); font-size: 0.95rem; }
.plan-note { font-size: 0.82rem; color: var(--muted); margin-top: 8px; min-height: 1.3em; }
.plan-featured .plan-price,
.plan-featured .plan-currency,
.plan-featured .plan-period { color: var(--white); }
.plan-featured .plan-currency,
.plan-featured .plan-period,
.plan-featured .plan-note { color: #DCE9FF; }

.plan-features {
  margin: 26px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--blue-line);
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  color: var(--ink);
}
/* um "ok" desenhado em CSS, sem círculo em volta */
.plan-features li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.38em;
  width: 6px;
  height: 11px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plan-featured .plan-features { border-top-color: rgba(255, 255, 255, 0.28); }
.plan-featured .plan-features li { color: var(--white); }
.plan-featured .plan-features li::before { border-color: var(--cyan); }

.plan-cta { justify-content: center; width: 100%; }
.plan-featured .plan-cta { background: var(--white); color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .plan-featured .plan-cta:hover { background: var(--cyan); color: var(--navy); }
}

.pricing-foot { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 32px; }
.pricing-foot a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   CTA
   ============================================================= */
.cta-section { padding-block: var(--section-y); }

.cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 64px) clamp(28px, 5vw, 56px);
}

.cta-copy { position: relative; z-index: 2; }
.cta-box h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 16ch;
}
.cta-box p { color: #B5CBEA; margin-bottom: 30px; font-size: 1.1rem; max-width: 36ch; }
.cta-box .btn-primary {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .cta-box .btn-primary:hover { background: var(--white); color: var(--navy); }
}

.magnet { display: inline-block; }

/* formas chapadas da marca */
.cta-shape { position: absolute; z-index: 1; pointer-events: none; }
.cta-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--blue-bright);
  top: -90px;
  left: 28%;
}
.cta-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cyan);
  top: 32px;
  right: 8%;
}
.cta-zigzag {
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: var(--blue);
  clip-path: polygon(0% 45%, 6% 62%, 12% 35%, 18% 62%, 24% 30%, 30% 62%, 36% 25%, 42% 62%, 48% 30%, 54% 62%, 60% 25%, 66% 62%, 72% 30%, 78% 62%, 84% 25%, 90% 62%, 96% 30%, 100% 50%, 100% 100%, 0% 100%);
}

.cta-photo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 260px;
}
.cta-photo-img {
  width: 130%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4));
}

/* =============================================================
   NEWSLETTER
   ============================================================= */
.newsletter { padding-block: 0 var(--section-y); }

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--blue-tint);
  border: 1px solid var(--blue-line);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
}

/* formas chapadas de fundo, as mesmas do resto da página */
.news-card::before,
.news-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.news-card::before { width: 220px; height: 220px; top: -110px; right: -70px; background: var(--cyan); }
.news-card::after { width: 90px; height: 90px; bottom: -30px; left: 34%; background: var(--blue-bright); }

.news-plane {
  position: absolute;
  top: 34px;
  right: 40px;
  width: 44px;
  height: 44px;
  color: var(--blue);
  opacity: 0.55;
}

.news-copy, .news-form { position: relative; z-index: 1; }

.news-copy h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 14px;
  max-width: 20ch;
}
.news-copy > p { color: var(--muted); max-width: 46ch; margin-bottom: 22px; }

.news-points { display: flex; flex-direction: column; gap: 10px; }
.news-points li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 0.95rem;
}
.news-points li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.3em;
  width: 6px;
  height: 11px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.news-form {
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: 0 30px 60px -40px rgba(10, 42, 77, 0.4);
}

.news-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}

.news-field {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1.5px solid var(--blue-line);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(28, 95, 204, 0.12);
}
.news-form.has-error .news-field { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217, 54, 54, 0.12); }

.news-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1rem; /* 16px: o iOS não dá zoom ao focar */
  color: var(--ink);
  padding: 8px 10px;
  background: transparent;
}
.news-field input::placeholder { color: #6F86A1; }

.news-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 7px;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, transform 0.16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .news-btn:hover { background: var(--navy); }
}
.news-btn:active { transform: scale(0.97); }
.news-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.news-btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  display: none;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.news-btn.is-loading { pointer-events: none; background: var(--navy); }
.news-btn.is-loading .news-btn-spinner { display: block; }

.news-error {
  display: block;
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.news-form.has-error .news-error { max-height: 40px; opacity: 1; }

.news-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  line-height: 1.45;
}
.news-consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.news-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.news-check {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--blue-line);
  border-radius: 5px;
  background: var(--white);
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.news-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease-out);
}
.news-consent input:checked ~ .news-check { background: var(--blue); border-color: var(--blue); }
.news-consent input:checked ~ .news-check::after { transform: rotate(45deg) scale(1); }
.news-consent input:focus-visible ~ .news-check { outline: 2px solid var(--blue); outline-offset: 2px; }
.news-form.has-error.consent-error .news-check { border-color: var(--danger); }

/* estado de sucesso */
.news-success {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
}
.news-success[hidden] { display: none; }
.news-success svg { width: 48px; height: 48px; flex-shrink: 0; color: var(--ok); }
.news-success strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.news-success span { font-size: 0.9rem; color: var(--muted); }
.news-success b { color: var(--navy); font-weight: 500; }

.news-form.is-done .news-label,
.news-form.is-done .news-field,
.news-form.is-done .news-error,
.news-form.is-done .news-consent { display: none; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--navy); color: #C7D8EF; padding-top: 64px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand .logo-light { color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; color: #A3BBDB; }

.footer-grid h4 { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid ul a { transition: color 0.16s ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-grid ul a:hover { color: var(--white); }
}

/* selos de confiança: só texto, quatro colunas sob um filete */
.footer-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-trust strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--white); line-height: 1.25; margin-bottom: 4px; }
.footer-trust span { display: block; font-size: 0.84rem; color: #A3BBDB; line-height: 1.4; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 22px;
  font-size: 0.85rem;
  color: #8FABD0;
}

/* =============================================================
   RESPONSIVO
   Hero, Sobre e Funcionalidades trazem os próprios pontos de
   quebra junto da seção; aqui ficam o cabeçalho e as demais.
   ============================================================= */
/* cabeçalho: até 1180px o menu vira um painel sob a barra (os cinco links + dois botões não cabem em linha) */
@media (min-width: 1181px) and (max-width: 1320px) {
  .main-nav ul { gap: 22px; }
}
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--blue-line);
    box-shadow: 0 24px 40px -28px rgba(10, 42, 77, 0.35);
    padding: 8px 24px 20px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0; }
  .main-nav.is-open li { border-bottom: 1px solid var(--blue-line); }
  .main-nav.is-open li:last-child { border-bottom: 0; }
  .main-nav.is-open a { display: block; padding: 14px 0; font-size: 1.05rem; color: var(--ink); }
  .main-nav.is-open a::after { display: none; }
  .main-nav.is-open a.is-active { color: var(--blue); }
  .main-nav.is-open .nav-extra { display: block; }
  .main-nav.is-open .nav-extra-cta { display: none; padding-top: 14px; }
  .main-nav.is-open .nav-extra-cta a.btn { display: flex; padding: 14px 24px; color: var(--white); font-size: 1rem; }
}

@media (max-width: 900px) {
  /* como funciona: texto, depois a cena */
  .step { grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: 20px; }
  .step-text h3 { max-width: none; }
  .step-art { grid-column: 2; margin-top: 24px; max-width: 360px; }

  /* formas decorativas: nos cantos, longe do texto */
  .why-circle { width: 130px; height: 130px; top: -50px; right: -30px; }
  .why-dot { width: 40px; height: 40px; bottom: 14px; left: auto; right: 24px; }
  .pricing-circle { width: 120px; height: 120px; top: -64px; left: -48px; }
  .pricing-dot { width: 40px; height: 40px; bottom: 20px; right: 20px; }
  .cta-circle { width: 200px; height: 200px; top: -110px; left: auto; right: -50px; }
  .news-card::after { display: none; }

  /* por que Synccion: texto, celular, benefícios */
  .why-grid { display: block; min-height: 0; padding-top: 8px; }
  .why-copy { max-width: 100%; }
  .manifesto { max-width: 18ch; }
  .why-photo-wrap {
    position: relative;
    top: auto; right: auto; transform: none;
    height: auto;
    display: flex; justify-content: center;
    margin-top: 40px;
  }
  .why-photo-img { height: auto; width: min(62%, 300px); }
  .benefit { grid-template-columns: 1fr; gap: 8px; padding-block: 26px; }

  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan-featured { order: -1; }

  .cta-box { grid-template-columns: 1fr; }
  .cta-copy { max-width: 100%; }
  .cta-photo-wrap { margin-top: 12px; min-height: 200px; }
  .cta-photo-img { width: 78%; }

  .news-card { grid-template-columns: 1fr; gap: 32px; }
  .news-plane { top: 22px; right: 24px; width: 34px; height: 34px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-trust { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .steps { --dot: 40px; }
  .step { column-gap: 16px; }

  .why-photo-img { width: min(72%, 280px); }

  .news-card { padding: 28px 20px; }
  .news-form { padding: 20px; }
  .news-field { flex-direction: column; gap: 6px; }
  .news-btn { justify-content: center; padding: 12px; }

  .cta-box .magnet { display: block; }
  .cta-box .btn { width: 100%; }
  .footer-trust { grid-template-columns: 1fr; gap: 18px; }
}

/* telefones estreitos: o botão do cabeçalho vai para dentro do menu */
@media (max-width: 520px) {
  .header-actions .btn-primary { display: none; }
  .main-nav.is-open .nav-extra-cta { display: block; }
}
