/* Argus WP: site comercial, no design system do painel web (web/src/app/globals.css e
   web/tailwind.config.ts). O painel usa um chassi "Apple": canvas branco, seções em parchment
   (#f5f5f7), texto #1d1d1f, bordas hairline sem sombra, cartões com raio de 18 px, botões em
   pílula e badges translúcidas. A marca Argus aparece só na logo (gradiente deep → mid → bright)
   e no Action Blue (#2F7DC4, brand.mid). Esse azul dá ~4,3:1 com branco, abaixo do AA para texto
   de 15 px, então botão e link usam o brand.mid escurecido (#2870B0, ~5,2:1) e o #2F7DC4 fica
   para anel de foco, bordas e destaques. As faixas escuras seguem a navegação preta do login e
   os tiles escuros do tema (#1d1d1f, #272729), com o azul da marca subindo no fundo.
   Fontes: SF Pro Display/Text não está no Google Fonts; usa-se a Inter, que já é o fallback do
   painel. Visual único (claro), como o padrão do painel. */

:root {
  color-scheme: light;
  /* tokens do painel (globals.css :root, rgb convertido) */
  --bg: #ffffff;            /* --canvas 255 255 255 */
  --card: #ffffff;          /* .card: canvas + hairline */
  --surface: #f5f5f7;       /* --canvas-parchment: seção alternada */
  --ink: #1d1d1f;           /* --ink-50 */
  --text: #1d1d1f;
  --muted: #5a5a5a;         /* --ink-400, ~7:1 sobre branco */
  --faint: #666666;         /* --ink-500 */
  --line: #f0f0f0;          /* --hairline-soft: divisória interna */
  --line-2: #e0e0e0;        /* --hairline: borda de cartão */
  --accent: #fafafc;        /* --canvas-pearl: hover de botão utilitário */
  --accent-2: #f5f5f7;      /* hover leve dentro de cartão */
  --track: #f0f0f2;         /* trilho do controle segmentado */
  --track-text: #333333;    /* --ink-200 */
  --primary: #2f7dc4;       /* --action (brand.mid): foco, bordas, destaques */
  --primary-strong: #2870b0;/* brand.mid escurecido: botão e link (AA) */
  --primary-hover: #1b4f8e; /* brand.deep */
  --primary-soft: rgba(47, 125, 196, 0.08); /* .badge-brand */
  --brand-deep: #1b4f8e;    /* brand.deep */
  --brand-mid: #2f7dc4;     /* brand.mid */
  --brand-bright: #4fd1ff;  /* brand.bright */
  --tile: #1d1d1f;          /* navegação preta do login / tile escuro */
  --tile-2: #272729;        /* tile.1 */
  --mint: #7de3ff;          /* brand.glow: destaque sobre fundo escuro */
  --teal: #4fd1ff;
  --sky: #4fd1ff;
  --coral: #ff7a59;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.78);
  --ok: #0a7a4e;            /* .badge-success */
  --ok-soft: rgba(16, 142, 92, 0.1);
  --warn: #d48900;          /* .badge-warning (borda) */
  --warn-text: #8a5a00;      /* .badge-warning escurecido: AA sobre o fundo âmbar claro */
  --warn-soft: rgba(212, 137, 0, 0.12);
  --bad: #be123c;           /* --danger 190 18 60 */
  --bad-soft: rgba(192, 57, 43, 0.08);
  --radius: 11px;           /* rounded.md: input e botão utilitário */
  --radius-lg: 18px;        /* rounded.lg: cartão */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.04);  /* o chassi não usa sombra em chrome */
  --shadow-card-hover: 0 1px 2px 0 rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.08); /* shadow.elev */
  --shadow-lg: 0 1px 2px 0 rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  --shadow-xl: rgba(0, 0, 0, 0.22) 3px 5px 30px 0; /* shadow.product: só imagem de produto */
  --display: 'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif;
  --sans: 'Inter', 'SF Pro Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1); /* apple-ease */
  /* faixas: o azul da marca subindo no tile escuro, como a logo sobre a nav preta do login */
  --glow:
    radial-gradient(60% 55% at 85% 105%, rgba(47, 125, 196, 0.42), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(79, 209, 255, 0.1), transparent 70%),
    radial-gradient(30% 34% at 60% 40%, rgba(27, 79, 142, 0.22), 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.22; letter-spacing: -0.015em; 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(2rem, 4.2vw, 3.5rem); line-height: 1.07; letter-spacing: -0.03em; font-weight: 600; }
.h2 { font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.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: 11px; font-weight: 600; color: var(--track-text); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0 9px; vertical-align: 2px; white-space: nowrap; line-height: 1.8; background: var(--accent);
}
.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: 999px; border: 1px solid transparent; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; 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: scale(0.96); }
.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(245, 245, 247, 0.8); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  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: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo .mark { width: 60px; height: 26px; 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: rgba(0, 0, 0, 0.05); 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: fixed; top: calc(var(--header-h) + 6px); left: 50%; transform: translateX(-50%);
  width: min(1080px, calc(100vw - 2 * var(--gutter))); background: var(--card);
  border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-xl);
  padding: 16px; display: none; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.mm.open .mm-panel { display: grid; }
.mm-panel h4 { font-size: 11px; font-weight: 600; 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(0, 0, 0, 0.45); }
.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-2); }
.drawer h4 { font-size: 11px; font-weight: 600; 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: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-xl); }
.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(29, 29, 31, 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; } }

/* print do app: a tela do celular numa moldura simples (borda escura e cantos do aparelho,
   sem entalhe nem botões falsos); a imagem é a captura inteira, em retrato */
.shot.celular { border: 7px solid #1d1d1f; border-radius: 38px; background: #000; max-width: 300px; margin-inline: auto; }
.shot.celular img { border-radius: 31px; }
.band .shot.celular { border-color: #3a3a3c; }
.topic-panel .shot.celular { max-width: 280px; }
.jour-view .shot.celular { max-width: 300px; }

/* ---------- app no celular ---------- */
.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.app-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 28px; }
.app-feats li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.app-feats .ic { width: 36px; height: 36px; padding: 8px; border-radius: var(--radius); background: rgba(125, 227, 255, 0.12); color: var(--mint); }
.app-feats b { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.app-feats span { display: block; font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); margin-top: 2px; }
.app-note { margin-top: 24px; font-size: 14px; color: var(--on-dark-muted); }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); align-items: start; }
.phones figure { margin: 0; }
.phones figure:nth-child(even) { margin-top: clamp(28px, 4vw, 56px); }
.phones .shot.celular { max-width: none; border-width: 5px; border-radius: 28px; }
.phones .shot.celular img { border-radius: 23px; }
.phones .cap { color: var(--on-dark-muted); font-size: 12.5px; text-align: center; }

/* ---------- faixas da marca ---------- */
/* O tile escuro do tema (a nav preta do login) com o azul da marca subindo no canto, como o
   gradiente da logo; por cima, o motivo de conversas em branco translúcido. */
.band {
  position: relative; isolation: isolate; color: var(--on-dark);
  background: var(--glow), linear-gradient(150deg, #000 0%, var(--tile) 48%, #12233a 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(29, 29, 31, 0.6); 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 .no path.balao { fill: rgba(125, 227, 255, 0.14); stroke: rgba(125, 227, 255, 0.55); stroke-width: 1.1; }
.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(--ink); box-shadow: none; }
.band .btn-primary:hover { background: #e8e8ed; color: var(--ink); }
.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.16); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); }
.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: radial-gradient(70% 60% at 50% 100%, rgba(47, 125, 196, 0.55), transparent 72%), radial-gradient(40% 40% at 12% 8%, rgba(79, 209, 255, 0.1), transparent 70%), linear-gradient(180deg, #000 0%, var(--tile) 50%, #15355f 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(--primary-soft); color: var(--primary-strong); font-family: var(--display); font-size: 13px; font-weight: 600; 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: 999px; background: var(--track); max-width: 100%;
}
.topic, .tab {
  border: 0; background: none; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  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.6); }
.topic[aria-selected='true'], .tab[aria-selected='true'] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.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: 600; }
.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(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.index > div { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 16px 8px 8px; }
.index h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); 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: var(--radius-lg); 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(0, 0, 0, 0.03); }
.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: 600; }
.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: calc(var(--radius-lg) + 4px); padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(70% 55% at 80% 100%, rgba(47, 125, 196, 0.55), transparent 70%),
    linear-gradient(170deg, #000 0%, var(--tile) 55%, #15355f 100%);
}
.flow-card .cap { color: var(--on-dark-muted); margin-top: 14px; }
.doc { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6); }
.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: 600; 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(--primary-soft); 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: #fff8eb; 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(212, 137, 0, 0.4); }
  100% { box-shadow: inset 0 0 0 2px var(--warn), 0 0 0 9px rgba(212, 137, 0, 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: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px 22px;
  transition: box-shadow 0.2s var(--ease);
}
.dl > div { position: relative; overflow: hidden; }
.dl > div::before, .inuse li::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand-mid) 50%, var(--brand-bright) 100%); }
.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: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); 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: var(--radius-lg); 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 { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 18px 20px; }
.inuse b { display: block; font-family: var(--display); font-size: 1rem; font-weight: 600; 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: var(--radius-lg); 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: var(--radius-lg); 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: var(--radius-lg); 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: var(--radius-lg);
}
.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(125, 227, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(125, 227, 255, 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 a[href^="mailto:"] { color: var(--mint); }
.contact-lines a[href^="mailto:"] .ic { color: var(--mint); }
.contact-lines .wa-linha .ic { fill: #25d366; stroke: none; width: 20px; height: 20px; }
.form { background: var(--card); color: var(--text); border-radius: calc(var(--radius-lg) + 4px); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-xl); }
.form h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.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: #6e6e73; }
.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 3px rgba(47, 125, 196, 0.15); }
.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(47, 125, 196, 0.18), transparent 70%), linear-gradient(180deg, var(--tile) 0%, #000 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: 600; 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: 600; }
.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: 600; 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: var(--radius-lg); 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: var(--radius-lg); 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: calc(var(--radius-lg) + 4px); background: var(--glow), linear-gradient(140deg, #000 0%, var(--tile) 55%, #15355f 100%); }
.next h2 { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; 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(--ink); }
.next .btn-primary:hover { background: #e8e8ed; color: var(--ink); }

/* ---------- texto (privacidade, 404) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-size: 1.2rem; font-weight: 600; 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(0, 0, 0, 0.9); }
.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: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(29, 29, 31, 0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(47, 125, 196, 0.45); }
.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(--ink); }
.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); }

/* ---------- WhatsApp flutuante ---------- */
/* Círculo verde do WhatsApp fixo no canto inferior direito, por cima do conteúdo. */
.wa-float {
  position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: calc(clamp(16px, 2.4vw, 28px) + env(safe-area-inset-bottom, 0px)); z-index: 45;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { color: #fff; transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.18); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #128c7e; }
@media print { .wa-float { display: none; } }

/* ---------- 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(0, 0, 0, 0.5); transform: translateY(160%); transition: transform 0.3s var(--ease);
  }
  .mcta.show { transform: none; }
  .wa-float { width: 56px; height: 56px; bottom: calc(12px + 44px + 14px + env(safe-area-inset-bottom, 0px)); right: 16px; }
  .wa-float svg { width: 30px; height: 30px; }
  .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, .app-grid { 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, .app-feats { grid-template-columns: 1fr; }
  /* os quatro celulares viram uma faixa que rola de lado dentro da seção, sem rolar a página */
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .phones figure { flex: 0 0 62%; scroll-snap-align: center; }
  .phones figure:nth-child(even) { margin-top: 0; }
  .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; }

