/* Argus Quality: site comercial, no design system do sistema web (frontend/src/index.css e
   frontend/tailwind.config.ts). Mesmos tokens do produto: fundo azul claro, cartões brancos com
   borda e sombra suaves, azul da marca como primário, faixas no gradiente da barra lateral e do
   login (navy para azul vivo, com brilho turquesa), abas em trilho, selos arredondados.
   Títulos na Zalando Sans Expanded (a fonte do tema) e texto na Inter. O azul do botão é o
   --chart-1 do tema, que passa o contraste AA com texto branco; o --primary fica para anel de
   foco, bordas e destaques. Visual único (claro): as telas do produto são claras. */

:root {
  color-scheme: light;
  /* tokens do frontend (hsl do index.css convertido) */
  --bg: #f0f6ff;            /* --background 216 100% 97% */
  --card: #ffffff;          /* --card */
  --surface: #e7f0fe;       /* seção alternada, entre background e accent */
  --ink: #14233e;           /* --foreground 218 52% 16% */
  --text: #14233e;
  --muted: #546583;         /* --muted-foreground 218 22% 42% */
  --faint: #546583;
  --line: #d9e4f6;          /* --border mais leve, divisória interna */
  --line-2: #c0d0ec;        /* --border 218 54% 84% */
  --accent: #d9e6fd;        /* --accent 217 88% 92% */
  --accent-2: #eef4ff;      /* hover leve dentro de cartão */
  --track: #dce8fd;         /* trilho das abas */
  --track-text: #3f5172;
  --primary: #4086f7;       /* --primary 217 92% 61% */
  --primary-strong: #0e5bd8;/* texto e botão (AA com branco e sobre o fundo) */
  --primary-hover: #0b4db8;
  --primary-soft: rgba(64, 134, 247, 0.12);
  --brand-deep: #0f2646;    /* gradiente do login e da barra lateral */
  --brand-mid: #1c3a66;
  --brand-bright: #5a96ff;
  --mint: #63ffd0;
  --teal: #1fd1c3;
  --sky: #53b0ff;
  --coral: #ff7a59;
  --wa: #25d366;            /* verde oficial do WhatsApp, só no canal dele */
  --wa-hover: #1ebe5b;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.8);
  --ok: #3b7114;            /* texto sobre --success-soft */
  --ok-soft: #ecfbda;       /* --success-soft 88 82% 92% */
  --warn: #fba037;          /* --warning 32 96% 60% */
  --warn-text: #914808;
  --warn-soft: #fee7cd;     /* --warning-soft */
  --bad: #b33819;           /* --destructive escurecido para texto */
  --bad-soft: #fde6df;
  --radius: 8px;            /* --radius 0.5rem */
  --shadow-sm: 0 1px 2px 0 rgba(7, 26, 49, 0.08);
  --shadow-card: 0 8px 16px -6px rgba(14, 40, 78, 0.12), 0 2px 6px -2px rgba(64, 134, 247, 0.1);
  --shadow-card-hover: 0 18px 30px -12px rgba(14, 40, 78, 0.18), 0 8px 16px -6px rgba(64, 134, 247, 0.12);
  --shadow-lg: 0 10px 15px -3px rgba(7, 26, 49, 0.15), 0 4px 6px -4px rgba(7, 26, 49, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(7, 26, 49, 0.18), 0 8px 10px -6px rgba(7, 26, 49, 0.12);
  --display: 'Zalando Sans Expanded', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* faixas: gradiente da barra lateral/login com os brilhos do login */
  --glow:
    radial-gradient(55% 45% at 50% 0%, rgba(31, 209, 195, 0.2), transparent 70%),
    radial-gradient(38% 40% at 8% 35%, rgba(99, 255, 208, 0.08), transparent 70%),
    radial-gradient(34% 36% at 94% 70%, rgba(255, 122, 89, 0.08), transparent 70%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary-strong); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.muted { color: var(--muted); }
.code { font-family: var(--mono); font-size: 0.86em; }

/* ---------- seções ---------- */
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec.tight { padding-block: clamp(40px, 5vw, 64px); }
.sec.alt { background: var(--surface); }
.h1 { font-family: var(--display); font-size: clamp(1.9rem, 3.9vw, 3rem); line-height: 1.14; letter-spacing: -0.02em; font-weight: 700; }
.h2 { font-family: var(--display); font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -0.015em; }
.h3 { font-size: 1.15rem; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.12rem); color: var(--muted); max-width: 46em; }
.head { display: grid; gap: 12px; max-width: 780px; }
.head + * { margin-top: clamp(28px, 4vw, 44px); }
/* selo "Opcional": badge outline do tema */
.opt {
  display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0 8px; vertical-align: 2px; white-space: nowrap; line-height: 1.7; background: var(--card);
}
.cap { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* ---------- botões (button.tsx) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s;
}
.btn-primary { background: var(--primary-strong); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-line { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn-line:hover { background: var(--accent); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform 0.15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------- cabeçalho (header do ProtectedLayout: cartão translúcido com desfoque) ---------- */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid rgba(192, 208, 236, 0.7); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo .mark { width: 64px; height: 28px; flex: 0 0 auto; }
.logo small { display: block; font-family: var(--sans); font-weight: 500; font-size: 11.5px; color: var(--muted); line-height: 1.2; letter-spacing: 0; }
.logo span { line-height: 1.15; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav > .mm > button {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; background: none; border: 0; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav > a:hover, .nav > .mm > button:hover, .nav > .mm.open > button { background: var(--accent); color: var(--ink); }
.nav .mm > button .ic { width: 18px; height: 18px; transition: transform 0.15s; }
.nav .mm.open > button .ic { transform: rotate(180deg); }
.hdr-cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* menu de funções: popover do tema */
.mm { position: relative; }
.mm-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-40%);
  width: min(920px, calc(100vw - 2 * var(--gutter))); background: var(--card);
  border-radius: 12px; border: 1px solid var(--line-2); box-shadow: var(--shadow-xl);
  padding: 16px; display: none; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.mm.open .mm-panel { display: grid; }
.mm-panel h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 8px; }
.mm-panel a { display: block; padding: 8px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background-color 0.2s var(--ease); }
.mm-panel a:hover { background: var(--accent-2); }
.mm-panel a b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mm-panel a small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; }

/* menu do celular: sheet do tema */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15, 38, 70, 0.5); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: var(--card); box-shadow: var(--shadow-xl);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
}
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-close { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a { display: block; padding: 11px 12px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; border-radius: var(--radius); }
.drawer nav a:hover { background: var(--accent); }
.drawer h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; padding-inline: 12px; }
.drawer .dm { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.drawer .dm a { font-size: 14.5px; padding: 7px 12px; color: var(--text); text-decoration: none; border-radius: var(--radius); }
.drawer .dm a:hover { background: var(--accent-2); }

/* ---------- telas (prints) ---------- */
/* O print aparece como é, num cartão do tema: borda, cantos de 12 px e a sombra de cartão. */
.shot { margin: 0; position: relative; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.shot img { width: 100%; }
.shot.crop img { aspect-ratio: var(--ar, 16 / 10); object-fit: cover; object-position: top left; }
.zoom { cursor: zoom-in; }
.zoom-btn {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: var(--radius); border: 0; cursor: zoom-in;
  display: grid; place-items: center; background: rgba(15, 38, 70, 0.82); color: #fff; opacity: 0; transition: opacity 0.15s;
}
.zoom-btn .ic { width: 20px; height: 20px; }
.shot:hover .zoom-btn, .zoom-btn:focus-visible { opacity: 1; }
@media (hover: none) { .zoom-btn { opacity: 0.85; } }

/* ---------- faixas da marca ---------- */
/* O gradiente do login e da barra lateral (navy escuro para o azul da marca) com os brilhos
   turquesa, menta e coral do login; por cima, a trilha SIPOC em branco translúcido. */
.band {
  position: relative; isolation: isolate; color: var(--on-dark);
  background: var(--glow), linear-gradient(140deg, var(--brand-deep) 0%, #16305a 52%, #234f94 82%, #3271d6 100%);
}
.band > .wrap { position: relative; z-index: 1; }
.motif {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.16) 42%, #000 85%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.16) 42%, #000 85%);
}
.motif svg { width: 100%; height: 100%; display: block; }
.motif .raia path { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; fill: none; }
.motif .lig path { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.2; fill: none; stroke-linejoin: round; }
.motif .no circle { fill: rgba(15, 38, 70, 0.55); stroke: rgba(255, 255, 255, 0.42); stroke-width: 1.2; }
.motif .no circle.fim { fill: rgba(255, 255, 255, 0.45); stroke: none; }
.motif .no circle.ok { fill: var(--mint); stroke: none; }
.motif .pks circle { fill: var(--mint); }
.band h1, .band h2, .band h3 { color: #fff; }
.band .form h3 { color: var(--ink); }
.band .lede { color: var(--on-dark-muted); }
.band .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 20px -8px rgba(5, 15, 30, 0.5); }
.band .btn-primary:hover { background: var(--accent); color: var(--brand-deep); }
.band .form .btn-primary { background: var(--primary-strong); color: #fff; box-shadow: var(--shadow-sm); }
.band .form .btn-primary:hover { background: var(--primary-hover); color: #fff; }
.band .link-arrow { color: #fff; }
.band .link-arrow:hover { color: var(--mint); }
.band .crumbs, .band .crumbs a { color: var(--on-dark-muted); }
.band .crumbs a:hover { color: #fff; }
.band .shot { border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 30px 60px -24px rgba(5, 15, 30, 0.6); }
.band .opt { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- hero ---------- */
/* No topo o gradiente corre de cima para baixo, como no login: navy atrás do texto, azul vivo
   atrás da tela, que sai da faixa e avança sobre a seção seguinte. */
.hero { padding-block: clamp(52px, 7vw, 92px) 0; background: var(--glow), linear-gradient(180deg, var(--brand-deep) 0%, var(--brand-mid) 46%, #3a78dc 82%, var(--brand-bright) 100%); }
.hero .h1 { max-width: 19em; }
.hero .lede { margin-top: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.hero-shot { margin-top: clamp(40px, 5vw, 60px); margin-bottom: calc(-1 * clamp(90px, 13vw, 200px)); position: relative; z-index: 2; }
.hero-shot .cap { color: var(--muted); }
.sec.after-hero { padding-top: calc(clamp(90px, 13vw, 200px) + clamp(48px, 6vw, 80px)); }

/* número de etapa: círculo do stepper do Dashboard */
.n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent); color: var(--primary-strong); font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1;
}

/* ---------- abas (tabs.tsx: trilho com a aba ativa em cartão) ---------- */
.topics, .tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--track); max-width: 100%;
}
.topic, .tab {
  border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; color: var(--track-text); transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.topic:hover, .tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.55); }
.topic[aria-selected='true'], .tab[aria-selected='true'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(192, 208, 236, 0.6); }
.topic-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); padding-top: 32px; align-items: start; }
.topic-panel h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.topic-panel .now { font-size: 16.5px; margin-top: 12px; }
.topic-panel .before {
  font-size: 14.5px; color: var(--muted); margin-top: 18px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warn);
}
.topic-panel .before b { font-weight: 600; color: var(--text); }

/* ---------- índice de funções: um cartão por grupo ---------- */
.index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.index > div { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-card); padding: 16px 8px 8px; }
.index h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-strong); padding: 0 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.index ul { display: grid; gap: 2px; }
.index a { position: relative; display: block; padding: 10px 34px 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background-color 0.2s var(--ease); }
.index a b { display: block; font-weight: 600; font-size: 15.5px; }
.index a span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.index a:hover { background: var(--accent-2); }
.index a:hover b { color: var(--primary-strong); }
.index a b .ic { position: absolute; right: 12px; top: 13px; width: 16px; height: 16px; color: var(--primary-strong); opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; }
.index a:hover b .ic, .index a:focus-visible b .ic { opacity: 1; transform: none; }

/* ---------- etapas (NC e jornadas): lista de cartões, a da vez em destaque ---------- */
.jour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); margin-top: 24px; align-items: start; }
.steps, .flow-steps { display: grid; gap: 8px; }
.step, .fstep {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 30px 1fr; gap: 14px; text-align: left;
  padding: 16px 18px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; color: var(--text);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover, .fstep:hover { background: rgba(255, 255, 255, 0.6); }
.step[aria-selected='true'], .fstep[aria-selected='true'] { background: var(--card); border-color: var(--line-2); box-shadow: var(--shadow-card); }
.step[aria-selected='true'] .n, .fstep[aria-selected='true'] .n { background: var(--primary-strong); color: #fff; }
.step b { display: block; font-size: 1.02rem; font-weight: 600; color: var(--muted); }
.step small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-top: 8px; display: none; }
.step:hover b, .step[aria-selected='true'] b { color: var(--ink); }
.step[aria-selected='true'] p { display: block; }
.jour-view { position: sticky; top: calc(var(--header-h) + 24px); }
.jour-panel[hidden] { display: none; }
/* Etapa inativa: tom mais claro sem perder o contraste mínimo (WCAG AA). */
.fstep h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; }
.fstep[aria-selected='false'] h3 { color: var(--muted); }
.fstep[aria-selected='false']:hover h3 { color: var(--ink); }
.fstep p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.sub { font-size: 14.5px; color: var(--text); display: grid; gap: 4px; padding-top: 8px; }
.sub li { padding-left: 16px; position: relative; }
.sub li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* barra de progresso da etapa em reprodução, na base do cartão */
.fstep .bar, .step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), var(--teal)); }
.fstep[aria-selected='true'] .bar, .step[aria-selected='true'] .bar { width: 100%; }
.fstep.run .bar, .step.run .bar { animation: enche var(--dur, 5s) linear both; }
@keyframes enche { from { width: 0; } to { width: 100%; } }

/* ---------- a não conformidade passando pelas etapas ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
/* o cartão de NC sobre o gradiente da barra lateral (azul vivo no alto, navy embaixo) */
.flow-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  border-radius: 16px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-card-hover);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(99, 255, 208, 0.18), transparent 70%),
    linear-gradient(180deg, var(--brand-bright) 0%, #3168c4 42%, var(--brand-mid) 100%);
}
.flow-card .cap { color: var(--on-dark-muted); margin-top: 14px; }
.doc { background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-xl); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.doc-head b { display: block; font-family: var(--display); font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.doc-head span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.doc-head .valor { font-weight: 600; font-size: 13px; color: var(--warn-text); background: var(--warn-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-body { padding: 16px 20px 20px; min-height: 250px; }
/* selos de status (badge.tsx), nos tons de info, alerta e sucesso do tema */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.navy { background: var(--accent); color: var(--primary-strong); }
.chip.gold { background: var(--warn-soft); color: var(--warn-text); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.doc-lines { display: grid; margin-top: 14px; }
.doc-lines li { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.doc-lines i { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-top: 1px; }
.doc-lines i .ic { width: 15px; height: 15px; }
.doc-lines li.vez i { background: #fff6ea; box-shadow: inset 0 0 0 2px var(--warn); }
.doc-lines b { font-size: 14px; color: var(--ink); font-weight: 600; }
.doc-lines span { font-size: 13px; color: var(--muted); }

/* ao trocar de etapa, as linhas do documento entram uma a uma e o passo da vez pulsa */
.js [role='tabpanel']:not([hidden]) { animation: entra 0.35s var(--ease) both; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js .doc-body:not([hidden]) .chip { animation: entra 0.35s var(--ease) both; }
.js .doc-body:not([hidden]) .doc-lines li { animation: entra 0.45s var(--ease) both; animation-delay: calc(var(--i) * 140ms + 140ms); }
.js .doc-lines li.vez i { animation: vez 1.8s ease-out infinite; }
@keyframes vez {
  0% { box-shadow: inset 0 0 0 2px var(--warn), 0 0 0 0 rgba(251, 160, 55, 0.45); }
  100% { box-shadow: inset 0 0 0 2px var(--warn), 0 0 0 9px rgba(251, 160, 55, 0); }
}

/* ---------- cartões de texto (integração, segurança, colunas) ---------- */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl > div, .cols2 > div, .facts > div {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-card); padding: 20px 22px;
  transition: box-shadow 0.2s var(--ease);
}
.dl > div { border-top: 3px solid var(--primary); }
.dl > div:hover { box-shadow: var(--shadow-card-hover); }
.dl h3 { font-size: 1.02rem; }
.dl p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.cols2 h3, .facts h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-strong); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.plain { display: grid; }
.plain li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plain li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- áreas (table.tsx dentro de cartão) ---------- */
.areas { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-card); overflow: hidden; }
.areas th, .areas td { text-align: left; vertical-align: top; padding: 16px 22px; border-top: 1px solid var(--line); }
.areas tr:first-child th, .areas tr:first-child td { border-top: 0; }
.areas tr:hover th, .areas tr:hover td { background: var(--accent-2); }
.areas th { width: 30%; font-weight: 600; color: var(--ink); font-size: 15px; }
.areas td { color: var(--muted); font-size: 15px; }

/* ---------- onde está em uso (StatsCard) ---------- */
.inuse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.inuse li { background: var(--card); border: 1px solid var(--line-2); border-top: 3px solid var(--primary); border-radius: 12px; box-shadow: var(--shadow-card); padding: 18px 20px; }
.inuse b { display: block; font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--ink); }
.inuse span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.sectors { margin-top: 36px; font-size: 15px; color: var(--muted); }
.sectors b { color: var(--text); font-weight: 600; }
.sectors ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sectors li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font-weight: 500; }
/* ícone em quadrado tingido, como no StatsCard */
.sectors li .ic { flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-strong); }

/* ---------- implantação ---------- */
.impl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.impl li { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-card); padding: 18px; display: grid; gap: 8px; align-content: start; }
.impl b { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.impl span:not(.n) { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.note { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 52em; }

/* ---------- FAQ (accordion.tsx em cartões) ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start; }
.faq > div { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; transition: box-shadow 0.2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 18px; font-weight: 600; font-size: 15.5px; line-height: 1.45; color: var(--ink); border-radius: 12px;
}
.faq summary:hover { color: var(--primary-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--primary-strong); transition: transform 0.2s var(--ease); margin-top: 1px; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* ---------- contato ---------- */
.contact .h2 { color: #fff; }
.contact .lede { color: var(--on-dark-muted); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cta-list { display: grid; gap: 14px; margin-top: 28px; }
.cta-list li { color: var(--on-dark-muted); font-size: 15px; padding-left: 30px; position: relative; }
.cta-list li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(99, 255, 208, 0.16); box-shadow: inset 0 0 0 1px rgba(99, 255, 208, 0.5);
}
.cta-list li::after { content: ''; position: absolute; left: 7px; top: calc(0.2em + 5px); width: 5px; height: 9px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cta-list b { color: #fff; font-weight: 600; }
.contact-lines { display: grid; gap: 10px; margin-top: 28px; }
.contact-lines a, .contact-lines span { color: #fff; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; font-weight: 500; }
.contact-lines a:hover { color: var(--mint); }
.contact-lines .ic-wa { fill: currentColor; stroke: none; color: var(--wa); }

/* ---------- botão flutuante do WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(7, 26, 49, 0.45), 0 2px 6px rgba(7, 26, 49, 0.18);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.wa-fab:hover, .wa-fab:focus-visible { background: var(--wa-hover); transform: translateY(-2px); color: #fff; }
.wa-fab:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.wa-fab .ic-wa { width: 30px; height: 30px; }
.wa-fab-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease);
}
.wa-fab:hover .wa-fab-tip, .wa-fab:focus-visible .wa-fab-tip { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .wa-fab-tip { display: none; } }
@media print { .wa-fab { display: none; } }
.form { background: var(--card); color: var(--text); border-radius: 16px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-xl); }
.form h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.form > p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label small, .field legend small { font-weight: 400; color: var(--muted); }
/* input.tsx / select.tsx: borda de input, anel de foco do --ring com recuo */
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); color: var(--text);
  padding: 0 12px; font: inherit; font-size: 16px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input, .field select { height: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7a96; }
.field textarea { min-height: 104px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(64, 134, 247, 0.55); }
.field input[aria-invalid='true'], .field select[aria-invalid='true'] { border-color: var(--bad); }
.field .err { font-size: 13px; color: var(--bad); }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 500; cursor: pointer; user-select: none; background: var(--card); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.pill span:hover { background: var(--accent-2); }
.pill input:checked + span { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); grid-column: 1 / -1; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary-strong); flex: 0 0 auto; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 18px; }
.form-msg { margin-top: 14px; font-size: 14.5px; border-radius: var(--radius); padding: 12px 14px; display: none; }
.form-msg.ok { display: block; background: var(--ok-soft); color: var(--ok); }
.form-msg.err { display: block; background: var(--bad-soft); color: var(--bad); }
.form-done { padding: 24px 4px; display: grid; gap: 10px; }

/* ---------- rodapé: a barra lateral no tom escuro ---------- */
.ftr {
  background: radial-gradient(50% 60% at 100% 0%, rgba(31, 209, 195, 0.1), transparent 70%), linear-gradient(180deg, var(--brand-deep) 0%, #132d52 100%);
  color: var(--on-dark-muted); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px));
}
.ftr .logo { color: #fff; }
.ftr .logo small { color: var(--on-dark-muted); }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px clamp(32px, 5vw, 64px); }
.ftr h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.ftr a { color: var(--on-dark-muted); text-decoration: none; font-size: 14.5px; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr li { padding: 3px 0; }
.ftr ul + h4 { margin-top: 24px; }
.ftr p { font-size: 14.5px; line-height: 1.6; margin-top: 14px; max-width: 30em; }
.ftr .contact-lines a:hover { color: var(--mint); text-decoration: none; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; }

/* ---------- página de função ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-strong); text-decoration: underline; }
.crumbs .ic { width: 16px; height: 16px; }
.m-hero { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.m-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 60px); align-items: start; margin-top: 28px; }
.m-title { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.14; letter-spacing: -0.02em; font-weight: 700; }
.m-tag { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.5; color: var(--text); margin-top: 14px; }
.m-prob { margin-top: 22px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.m-prob b { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.who { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.who b { color: var(--ink); font-weight: 600; }
.m-hero .hero-ctas { margin-top: 26px; }
.band .m-tag { color: #fff; }
.band .m-prob, .band .who { color: var(--on-dark-muted); }
.band .m-prob b { color: var(--mint); }
.band .who b { color: #fff; }
.band .code { color: var(--on-dark-muted); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-card); padding: 20px 22px; transition: box-shadow 0.2s var(--ease); }
.feat:hover { box-shadow: var(--shadow-card-hover); }
.feat h3 { font-size: 1.02rem; line-height: 1.4; }
.feat h3 .opt { margin-left: 6px; }
.feat .ben { margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.feat .how { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.gallery figure { margin: 0; }
.difs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.difs li { position: relative; padding: 14px 18px 14px 50px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; font-size: 15.5px; }
.difs li::before { content: ''; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); }
.difs li::after { content: ''; position: absolute; left: 24px; top: 20px; width: 5px; height: 10px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.facts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: clamp(32px, 4vw, 48px); }
.facts > div > p { margin-top: 14px; font-size: 15.5px; line-height: 1.65; }
.facts .plain li { font-size: 14.5px; }
/* chamada final da página de função: faixa da marca em cartão */
.next { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 3vw, 36px) calc(var(--gutter) + clamp(22px, 3vw, 40px)); color: var(--on-dark); }
.next::before { content: ''; position: absolute; inset: 0 var(--gutter); z-index: -1; border-radius: 16px; box-shadow: var(--shadow-card-hover); background: var(--glow), linear-gradient(140deg, var(--brand-deep) 0%, #16305a 55%, #2a5cad 100%); }
.next h2 { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; color: #fff; }
.next .muted { color: var(--on-dark-muted); }
.next .muted a { color: #fff; }
.next .muted a:hover { color: var(--mint); }
.next .btn-primary { background: #fff; color: var(--brand-deep); }
.next .btn-primary:hover { background: var(--accent); color: var(--brand-deep); }

/* ---------- texto (privacidade, 404) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; margin-top: 36px; }
.prose p { color: var(--muted); margin-top: 10px; }

/* ---------- lightbox ---------- */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(10, 24, 46, 0.92); }
.lb-in { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 16px); }
.lb-top { display: flex; justify-content: space-between; align-items: center; color: var(--on-dark-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-fig { margin: 0; min-height: 0; display: grid; place-items: center; }
.lb-fig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); background: #fff; }
.lb-cap { color: #fff; text-align: center; font-size: 14.5px; max-width: 900px; margin-inline: auto; }
.lb-btn { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(15, 38, 70, 0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(64, 134, 247, 0.35); }
.lb-nav { display: flex; gap: 8px; }

/* ---------- cabeçalho sobre a faixa ---------- */
/* A primeira faixa sobe por baixo do cabeçalho; no topo da página, o cabeçalho fica
   transparente sobre ela (classe .clear, posta pelo site.js). Sem JS, ele segue claro. */
.top-band { margin-top: calc(-1 * var(--header-h)); }
.hero.top-band { padding-top: calc(var(--header-h) + clamp(52px, 7vw, 92px)); }
.m-hero.top-band { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 48px)); }
.hdr.clear { background: transparent; border-bottom-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr.clear .logo, .hdr.clear .nav > a, .hdr.clear .nav > .mm > button { color: #fff; }
.hdr.clear .logo small { color: var(--on-dark-muted); }
.hdr.clear .nav > a:hover, .hdr.clear .nav > .mm > button:hover, .hdr.clear .nav > .mm.open > button { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hdr.clear .hdr-cta { background: #fff; color: var(--brand-deep); }
.hdr.clear .burger { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* ---------- a tela do topo endireita ao rolar ---------- */
.js .hero-shot .shot { transform-origin: 50% 0; will-change: transform; }

/* ---------- entrada suave ao rolar ---------- */
/* Parte de um estado legível (nunca invisível) e só sobe; sem JS, nada disso se aplica. */
.js .rv { transition: transform 0.8s var(--ease), opacity 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv:not(.in) { transform: translateY(22px); opacity: 0.35; }
.shot.zoom img { transition: transform 0.5s var(--ease); }
.shot.zoom:hover img { transform: scale(1.012); }

/* ---------- botão de demonstração fixo no celular ---------- */
.mcta { display: none; }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .flow-card { position: static; order: -1; }
}
@media (max-width: 680px) {
  .mcta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    box-shadow: 0 10px 30px -10px rgba(15, 38, 70, 0.6); transform: translateY(160%); transition: transform 0.3s var(--ease);
  }
  .mcta.show { transform: none; }
  /* Divide a base da tela com o botão do WhatsApp, os dois na mesma linha. */
  .mcta.com-wa { right: 84px; }
  .wa-fab { right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .wa-fab .ic-wa { width: 28px; height: 28px; }
  .doc-head { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv:not(.in) { transform: none; opacity: 1; }
  .fstep.run .bar, .step.run .bar { animation: none; }
  .js [role='tabpanel']:not([hidden]),
  .js .doc-body:not([hidden]) .chip,
  .js .doc-body:not([hidden]) .doc-lines li,
  .js .doc-lines li.vez i { animation: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .nav > a.opt-nav { display: none; }
  .impl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index, .inuse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: inline-flex; }
  .m-hero-grid, .split, .cta-grid, .jour, .topic-panel, .facts { grid-template-columns: 1fr; }
  .jour-view { position: static; order: -1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .dl.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .motif { opacity: 0.55; }
  .sectors ul, .dl, .dl.three, .cols2, .faq, .feats, .gallery, .difs, .impl, .fgrid, .index, .inuse { grid-template-columns: 1fr; }
  .topics, .tabs { display: flex; }
  .topic, .tab { flex: 1 1 auto; padding: 8px 10px; font-size: 14px; }
  .areas th, .areas td { display: block; width: auto; }
  .areas td { border-top: 0; padding-top: 0; }
  .ftr-grid { grid-template-columns: 1fr; }
  .drawer .dm { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* painéis de abas inativos: visíveis sem JS, escondidos assim que o JS liga (sem piscar) */
html.js [data-off] { display: none; }

