/* ==========================================================================
   Vegga Seguros · folha de estilos do site institucional
   Estrutura: fontes > tokens > base > componentes > seções > utilidades
   ========================================================================== */

/* ---------- Fontes (hospedadas no próprio site, sem chamadas externas) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Tinta (escuros com leve fundo azulado, vindo do símbolo da marca) */
  --ink-950: #07090c;
  --ink-900: #0b0f14;
  --ink-850: #0f141a;
  --ink-800: #121920;
  --ink-750: #17202a;
  --ink-700: #1e2833;
  --ink-600: #2b3642;

  /* Aço (destaque frio do gradiente do símbolo) */
  --steel-500: #6f8c88;
  --steel-400: #8fa8a3;
  --steel-300: #b9c8c5;

  /* Vermelho Vegga */
  --red-800: #6e0000;
  --red-700: #8f0000;
  --red-600: #c20000;
  --red-500: #e10000;
  --red-300: #ff8a8a;

  /* Claros */
  --paper: #f6f5f3;
  --paper-2: #efede9;
  --white: #ffffff;

  /* Texto */
  --text: #12161b;
  --text-2: #444d58;
  --text-3: #66707b;
  --on-dark: #f1f3f5;
  --on-dark-2: #aab4bd;
  --on-dark-3: #7d8893;

  /* Linhas */
  --line: #e3e0db;
  --line-2: #d2cec7;
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-2: rgba(255, 255, 255, 0.14);

  /* Estados */
  --ok: #2f9e6e;
  --ok-dark: #4cc38a;
  --warn: #c98500;
  --nov: #1e5aa8;

  /* Séries de gráfico (validadas para daltonismo no fundo escuro) */
  --s-consultas: #3987e5;
  --s-exames: #c98500;
  --s-terapias: #199e70;
  --s-internacoes: #e66767;

  /* Tipografia */
  --f-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Medidas */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-1: 0 1px 2px rgba(16, 22, 29, 0.05), 0 6px 20px rgba(16, 22, 29, 0.06);
  --shadow-2: 0 2px 6px rgba(16, 22, 29, 0.06), 0 24px 60px rgba(16, 22, 29, 0.12);
  --shadow-dark: 0 30px 80px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--red-600); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--white);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- Tipografia de apoio ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: currentColor;
  transform: skewX(-20deg);
}
.on-dark .eyebrow { color: var(--red-300); }

.h1 { font-size: clamp(2.05rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.85rem, 1.25rem + 1.9vw, 2.85rem); }
.h3 { font-size: 1.2rem; letter-spacing: -0.012em; line-height: 1.3; }

.lead { font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.15rem); color: var(--text-2); line-height: 1.7; }
.on-dark .lead { color: var(--on-dark-2); }

.mono { font-family: var(--f-mono); font-feature-settings: "zero" 0; }

.section { padding-block: var(--section); position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink-900); color: var(--on-dark); }

.section-head { max-width: 720px; display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 24px 64px;
}
.section-head--split > div { display: grid; gap: 18px; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--red-600);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { box-shadow: 0 8px 24px -8px rgba(194, 0, 0, 0.6); }
.btn--primary:hover { --btn-bg: var(--red-500); box-shadow: 0 12px 30px -8px rgba(225, 0, 0, 0.65); }

.btn--ghost-dark { --btn-bg: rgba(255, 255, 255, 0.04); --btn-fg: var(--on-dark); --btn-bd: var(--line-dark-2); }
.btn--ghost-dark:hover { --btn-bg: rgba(255, 255, 255, 0.09); --btn-bd: rgba(255, 255, 255, 0.28); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--text); }

.btn--dark { --btn-bg: var(--ink-900); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--ink-700); }

.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--red-600);
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--ext:hover .icon { transform: translate(2px, -2px); }
.on-dark .link-arrow { color: var(--red-300); }

/* ---------- Faixa de campanha (Novembro Azul) ---------- */
.announce {
  position: relative;
  z-index: 60;
  background: var(--nov);
  color: #fff;
  font-size: 13.5px;
}
.announce .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding-right: 52px;
  text-align: center;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.announce__close {
  position: absolute;
  right: max(8px, calc(var(--gutter) - 10px));
  top: 50%;
  translate: 0 -50%;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: #fff;
  border-radius: 8px; cursor: pointer; opacity: 0.8;
}
.announce__close:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  background: rgba(11, 15, 20, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }
.brand .brand__dark { display: none; }

.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative;
  display: block;
  padding: 10px 11px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  color: inherit;
  opacity: 0.78;
  border-radius: 8px;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav a:hover { opacity: 1; }
.nav a[aria-current="true"] { opacity: 1; }
.nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  background: var(--red-500);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn--ghost-dark { padding-inline: 14px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-dark-2);
  background: transparent;
  cursor: pointer;
}

.progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--red-700), var(--red-500));
}

/* Estado claro (após o hero) */
.site-header.is-light {
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(16, 22, 29, 0.18);
}
.site-header.is-light .brand__light { display: none; }
.site-header.is-light .brand__dark { display: block; }
.site-header.is-light .btn--ghost-dark { --btn-fg: var(--text); --btn-bd: var(--line-2); --btn-bg: transparent; }
.site-header.is-light .btn--ghost-dark:hover { --btn-bd: var(--text); }
.site-header.is-light .menu-toggle { border-color: var(--line-2); }

/* Menu móvel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink-900);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-nav__top img { height: 34px; width: auto; }
.mobile-nav ul { display: grid; border-top: 1px solid var(--line-dark); }
.mobile-nav li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 2px;
  font-family: var(--f-head);
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav__cta { display: grid; gap: 12px; margin-top: 28px; }
.mobile-nav__meta { margin-top: auto; padding-top: 28px; font-size: 13px; color: var(--on-dark-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink-900);
  color: var(--on-dark);
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 78%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero__glow--red { width: 620px; height: 620px; left: -220px; bottom: -320px; background: rgba(194, 0, 0, 0.38); }
.hero__glow--steel { width: 560px; height: 560px; right: -160px; top: -260px; background: rgba(111, 140, 136, 0.22); }
.hero__spot {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, 0.06), transparent 60%);
  transition: opacity 0.4s;
}
.hero__stripes {
  position: absolute;
  right: -120px; bottom: -80px;
  width: 720px;
  opacity: 0.5;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 72px) clamp(56px, 6vw, 80px);
}
.hero__copy { display: grid; gap: 26px; justify-items: start; }

.chip-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-dark-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--on-dark-2);
}
.chip-live b { color: var(--on-dark); font-weight: 600; }
.chip-live .short { display: none; }
.dot-live {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-500);
}
.dot-live::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--red-500);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}

.hero h1 { max-width: 20ch; }
.hero h1 .nowrap { white-space: nowrap; }
.hero h1 .hl {
  background: linear-gradient(100deg, #ffffff 0%, var(--steel-300) 55%, var(--steel-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__alt { font-size: 14.5px; color: var(--on-dark-2); display: inline-flex; align-items: center; gap: 8px; margin-top: -6px; }
.hero__alt a { color: var(--on-dark); font-weight: 500; border-bottom: 1px solid var(--line-dark-2); padding-bottom: 1px; display: inline-flex; align-items: center; gap: 6px; transition: border-color .2s; }
.hero__alt a:hover { border-color: var(--on-dark); }

/* Painel ilustrativo do hero */
.dash-wrap { position: relative; }
.dash {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30, 40, 51, 0.92), rgba(17, 23, 30, 0.94));
  border: 1px solid var(--line-dark-2);
  box-shadow: var(--shadow-dark);
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dash::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.22), transparent 35%, transparent 70%, rgba(225, 0, 0, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dash__title { font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--on-dark); }
.dash__sub { font-family: var(--f-mono); font-size: 11.5px; color: var(--on-dark-3); margin-top: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-dark-2);
  color: var(--on-dark-2);
  white-space: nowrap;
}

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
}
.kpi__label { font-size: 11.5px; color: var(--on-dark-3); line-height: 1.3; }
.kpi__value {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi__delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--ok-dark); margin-top: 2px; }

.mini-chart {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-dark);
  padding: 12px 12px 8px;
  margin-bottom: 14px;
}
.mini-chart__head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--on-dark-3); margin-bottom: 4px; }
.mini-chart__head b { font-weight: 500; color: var(--on-dark-2); }
.mini-chart svg { width: 100%; height: auto; overflow: visible; }
.mini-chart .grid-line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.mini-chart .target-line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 3 4; }
.mini-chart .target-label { fill: var(--on-dark-3); font-family: var(--f-mono); font-size: 9px; }
.mini-chart .axis-label { fill: var(--on-dark-3); font-family: var(--f-mono); font-size: 9px; }
.mini-chart .series { fill: none; stroke: var(--steel-300); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mini-chart .area { fill: url(#miniArea); }
.mini-chart .last-dot { fill: var(--red-500); stroke: var(--ink-800); stroke-width: 2; }
.mini-chart .last-ring { fill: none; stroke: var(--red-500); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

.feed { display: grid; gap: 8px; }
.feed__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  font-size: 13px;
}
.feed__icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--steel-300);
}
.feed__title { color: var(--on-dark); line-height: 1.3; }
.feed__meta { color: var(--on-dark-3); font-size: 11.5px; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--on-dark-2);
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--ok-dark); }
.status--wait { color: #e0a93b; }
.status--info { color: #7fb0ee; }
.status--steel { color: var(--steel-300); }

.float-card {
  position: absolute;
  left: -28px; bottom: -34px;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  max-width: 340px;
  white-space: nowrap;
  animation: floaty 7s ease-in-out infinite;
}
.float-card__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #fbeaea;
  color: var(--red-600);
  flex: none;
}
.float-card b { display: block; font-family: var(--f-head); font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.float-card span { font-size: 12px; color: var(--text-3); line-height: 1.35; display: block; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }


/* Faixa de credenciais */
.creds {
  border-top: 1px solid var(--line-dark);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.creds__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
}
.cred dd { margin: 0; }
.cred {
  padding: 22px 24px 22px 0;
  display: grid;
  gap: 4px;
  align-content: center;
}
.cred + .cred { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.cred dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
.cred dd { font-family: var(--f-head); font-size: 14.5px; font-weight: 600; color: var(--on-dark); letter-spacing: -0.01em; }
.creds__link { display: flex; align-items: center; padding-left: 24px; border-left: 1px solid var(--line-dark); }

.badge--live { color: var(--on-dark); gap: 8px; }
.badge--live .dot-live { width: 6px; height: 6px; background: var(--ok-dark); }
.badge--live .dot-live::after { border-color: var(--ok-dark); }
.feed { min-height: 196px; align-content: start; overflow: hidden; }
.feed__item { animation: rowIn .55s var(--ease) both; }
.float-card.is-swap { opacity: 0; transform: translateY(6px); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- Lista com marcação ---------- */
.checks { display: grid; gap: 10px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px dashed var(--line-2); }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.checks .icon { width: 18px; height: 18px; color: var(--red-600); margin-top: 2px; stroke-width: 2.2; }

/* ---------- Como atuamos: rolagem guiada ---------- */
.story__intro { display: grid; gap: 18px; }
.fronts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.fronts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--f-head); font-weight: 600; font-size: 14px;
}
.fronts b { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; color: var(--red-600); }

.story__grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.story__steps { list-style: none; margin: 0; padding: 0; }
.story-step {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 40px 0 40px 28px;
  border-left: 1px solid var(--line-2);
  opacity: 0.3;
  transition: opacity 0.5s var(--ease);
}
.story-step:first-child { min-height: 56vh; align-content: start; padding-top: 12px; }
.story-step:last-child { min-height: 64vh; }
.story-step::before {
  content: "";
  position: absolute; left: -1px; top: 50%;
  width: 2px; height: 0;
  background: var(--red-600);
  transition: top 0.6s var(--ease), height 0.6s var(--ease);
}
.story-step:first-child::before { top: 12px; }
.story-step.is-active { opacity: 1; }
.story-step.is-active::before { top: 18%; height: 64%; }
.story-step:first-child.is-active::before { top: 12px; height: 70%; }
.story-step__meta { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.story-step__meta b { color: var(--red-600); font-weight: 500; }
.story-step h3 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); }
.story-step p { color: var(--text-2); font-size: 16px; max-width: 48ch; }
.story-step .checks { max-width: 48ch; }

.story__stage { position: sticky; top: calc(var(--header-h) + 28px); }
.stage-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--ink-700);
  box-shadow: 0 2px 6px rgba(16, 22, 29, 0.08), 0 40px 80px -30px rgba(11, 15, 20, 0.55);
  color: var(--on-dark);
}
.stage-panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.stage-panel::after {
  content: "";
  position: absolute; z-index: -1;
  width: 420px; height: 420px; right: -200px; bottom: -220px;
  border-radius: 50%;
  background: rgba(194, 0, 0, 0.22);
  filter: blur(80px);
}
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); }
.stage-bar__title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 600; font-size: 14px; }
.stage-bar__title .dot-live { width: 6px; height: 6px; }
.stage-dots { display: flex; gap: 6px; }
.stage-dots span { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); transition: background-color 0.4s; }
.stage-dots span.is-done { background: rgba(225, 0, 0, 0.45); }
.stage-dots span.is-on { background: var(--red-500); }
.stage-viewport { position: relative; height: var(--sh, 500px); }

.screen {
  position: absolute; left: 0; top: 0;
  width: 520px; height: 500px;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transform-origin: 0 0;
  transform: scale(var(--sc, 1));
  opacity: 0; visibility: hidden;
  translate: 0 10px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease), visibility 0.5s;
  font-size: 13px;
  color: var(--on-dark-2);
}
.screen.is-on { opacity: 1; visibility: visible; translate: 0 0; }
.scr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.scr-title { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--on-dark); }
.scr-sub { font-size: 12px; color: var(--on-dark-3); margin-top: 2px; }
.scr-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--on-dark-3); }
.scr-foot b { color: var(--on-dark); font-weight: 600; }
.scr-note { margin-top: auto; display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--on-dark-3); line-height: 1.5; }
.scr-note .icon { color: var(--steel-400); margin-top: 1px; }

.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--steel-300); transition: width 0.9s var(--ease); }
.bar--lg { height: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); font-size: 12px; color: var(--on-dark); animation: rowIn 0.5s var(--ease) both; }
.cmp { display: grid; gap: 9px; }
.cmp__row {
  display: grid; grid-template-columns: 66px 1fr 70px 62px; gap: 14px; align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  transition: border-color 0.45s, background-color 0.45s, box-shadow 0.45s;
}
.cmp__row.is-best { border-color: rgba(225, 0, 0, 0.55); background: rgba(225, 0, 0, 0.07); box-shadow: inset 0 0 0 1px rgba(225, 0, 0, 0.3); }
.cmp__row.is-best .bar i { background: linear-gradient(90deg, var(--red-600), #ff6b6b); }
.cmp__name { font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--on-dark); }
.cmp__metrics { display: grid; gap: 6px; }
.metric { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; font-size: 11px; }
.cmp__price small, .cmp__score small { display: block; font-size: 10.5px; color: var(--on-dark-3); }
.cmp__price b, .cmp__score b { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--on-dark); font-variant-numeric: tabular-nums; }

.impl-top { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-dark); }
.impl-pct { font-family: var(--f-head); font-size: 28px; font-weight: 600; color: var(--on-dark); font-variant-numeric: tabular-nums; min-width: 86px; }
.impl-top .bar i { background: linear-gradient(90deg, var(--red-600), #ff6b6b); transition: width 0.4s linear; }
.impl-list { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.impl-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.02); transition: border-color 0.3s, background-color 0.3s; }
.impl-list b { display: block; color: var(--on-dark); font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.impl-list small { font-size: 11.5px; color: var(--on-dark-3); }
.impl-list em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--on-dark-3); }
.st { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.2); display: grid; place-items: center; }
.impl-list li.is-run { border-color: rgba(225, 0, 0, 0.35); background: rgba(225, 0, 0, 0.05); }
.impl-list li.is-run .st { border-color: rgba(255, 255, 255, 0.12); border-top-color: var(--red-500); animation: spin 0.9s linear infinite; }
.impl-list li.is-run em { color: #e0a93b; }
.impl-list li.is-done .st { background: var(--ok-dark); border-color: var(--ok-dark); }
.impl-list li.is-done .st::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ink-900); border-bottom: 2px solid var(--ink-900); transform: translateY(-1px) rotate(-45deg); }
.impl-list li.is-done em { color: var(--ok-dark); }
@keyframes spin { to { transform: rotate(360deg); } }

.q-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.q-counter { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-dark); }
.q-counter small { display: block; font-size: 11px; color: var(--on-dark-3); }
.q-counter b { font-family: var(--f-head); font-weight: 600; font-size: 21px; color: var(--on-dark); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tickets { display: grid; gap: 8px; height: 318px; overflow: hidden; align-content: start; }
.ticket { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-dark); animation: rowIn 0.55s var(--ease) both; }
.ticket__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--steel-300); }
.ticket__title { color: var(--on-dark); font-size: 13.5px; line-height: 1.3; }
.ticket__sub { font-size: 11.5px; color: var(--on-dark-3); }
.ticket .status, .feed__item .status { transition: color 0.3s; }

.k-chart svg { width: 100%; height: auto; overflow: visible; }
.k-chart .gl { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.k-chart .tgt { stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.2; stroke-dasharray: 4 5; }
.k-chart .tick { fill: var(--on-dark-3); font-family: var(--f-mono); font-size: 10px; }
.k-chart .ln { fill: none; stroke: var(--steel-300); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.k-chart .ln-area { fill: url(#kArea); }
.k-chart .pt-last { fill: var(--red-500); stroke: var(--ink-800); stroke-width: 2; }
.k-chart .lbl { fill: var(--on-dark); font-family: var(--f-mono); font-size: 10.5px; }
.k-cats { display: grid; gap: 7px; }
.k-cat { display: grid; grid-template-columns: 96px 1fr 42px; gap: 10px; align-items: center; font-size: 12px; }
.k-cat span { display: inline-flex; align-items: center; gap: 7px; }
.k-cat .sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.k-cat b { text-align: right; font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; color: var(--on-dark); }

.calc { display: grid; gap: 7px; }
.calc__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 11px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-dark); transition: opacity 0.45s var(--ease), translate 0.45s var(--ease), border-color 0.45s; }
.calc__row.is-hidden { opacity: 0.18; translate: 0 6px; }
.calc__row.is-hot { border-color: rgba(185, 200, 197, 0.35); }
.calc__row span { font-size: 12.5px; }
.calc__row b { font-family: var(--f-mono); font-weight: 500; color: var(--on-dark); font-size: 13px; font-variant-numeric: tabular-nums; }
.calc__result {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(194, 0, 0, 0.24), rgba(194, 0, 0, 0.06));
  border: 1px solid rgba(225, 0, 0, 0.45);
  transition: opacity 0.45s var(--ease);
}
.calc__result.is-hidden { opacity: 0.25; }
.calc__result small { font-size: 12px; color: var(--on-dark-2); }
.calc__result .formula { grid-column: 1; font-family: var(--f-mono); font-size: 11.5px; color: var(--on-dark-3); }
.calc__result strong { grid-column: 2; grid-row: 1 / span 2; font-family: var(--f-head); font-weight: 600; font-size: 34px; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gauge { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); margin-top: 8px; overflow: hidden; }
.gauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, var(--steel-400), var(--red-500)); transition: width 1s var(--ease); }
.gauge-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--on-dark-3); }

/* ---------- Quem somos: painel da marca ---------- */
.brand-panel {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, var(--paper) 55%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 560px;
  isolation: isolate;
}
.brand-panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(18, 22, 27, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 22, 27, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.brand-panel::after {
  content: "";
  position: absolute; z-index: -1;
  width: 380px; height: 380px; left: 50%; top: 40%;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(225, 0, 0, 0.12);
  filter: blur(70px);
}
.brand-panel__art { position: relative; display: grid; place-items: center; padding: 48px 32px 24px; }
.brand-panel__lines { position: absolute; width: min(92%, 420px); height: auto; animation: slowspin 60s linear infinite; }
.brand-panel__art img { position: relative; width: min(46%, 220px); height: auto; filter: drop-shadow(0 24px 30px rgba(18, 22, 27, 0.18)); animation: floaty 8s ease-in-out infinite; }
@keyframes slowspin { to { transform: rotate(360deg); } }
.brand-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.brand-facts div { padding: 18px 22px; display: grid; gap: 2px; }
.brand-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.brand-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.brand-facts dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.brand-facts dd { margin: 0; font-family: var(--f-head); font-weight: 650; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }

/* ---------- Soluções ---------- */
.tabs-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tabs button[aria-selected="true"] { background: var(--ink-900); color: #fff; box-shadow: 0 6px 16px -6px rgba(11, 15, 20, 0.5); }
.tabs-hint { font-size: 14px; color: var(--text-3); }
.tabs .short { display: none; }

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.products[hidden] { display: none; }
.product {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.product__icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.product:hover .product__icon { background: var(--red-600); color: #fff; border-color: var(--red-600); }
.product p { color: var(--text-2); font-size: 14.5px; }
.product .link-arrow { margin-top: 6px; justify-self: start; }

.product--feature {
  grid-row: span 2;
  background: var(--ink-900);
  color: var(--on-dark);
  border-color: var(--ink-900);
  padding: 32px;
  gap: 16px;
  isolation: isolate;
}
.product--feature::before {
  content: "";
  position: absolute; z-index: -1;
  width: 420px; height: 420px;
  right: -180px; bottom: -200px;
  border-radius: 50%;
  background: rgba(194, 0, 0, 0.35);
  filter: blur(70px);
}
.product--feature::after {
  content: "";
  position: absolute; z-index: -1; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%);
  mask-image: linear-gradient(200deg, #000, transparent 70%);
}
.product--feature .product__icon { background: var(--red-600); color: #fff; border-color: var(--red-600); }
.product--feature .h3 { font-size: 1.6rem; }
.product--feature p { color: var(--on-dark-2); font-size: 15.5px; }
.product--feature .link-arrow { color: #fff; }
.product--feature:hover { box-shadow: 0 30px 60px -20px rgba(11, 15, 20, 0.6); }
.tag {
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(225, 0, 0, 0.14);
  color: var(--red-300);
  border: 1px solid rgba(225, 0, 0, 0.3);
}
.product--feature .checks { margin-top: 4px; border-top-color: var(--line-dark-2); }
.product--feature .checks li { color: var(--on-dark-2); }
.product--feature .checks .icon { color: var(--red-300); }
.product--feature .h3 { text-wrap: wrap; }

.product--cta {
  grid-column: span 2;
  background: var(--paper);
  border-style: dashed;
  border-color: var(--line-2);
  grid-template-rows: none;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}
.product--cta:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.product--cta h3 { font-size: 1.15rem; }
.product--cta p { margin-top: 4px; }

/* ---------- Por que a Vegga ---------- */
.why { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__intro { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 40px); }
.slogan {
  font-family: var(--f-head);
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.slogan span { color: var(--red-600); }
.why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why__item {
  padding: 32px 28px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  align-content: start;
  position: relative;
  transition: background-color 0.3s;
}
.why__item:hover { background: var(--paper); }
.why__item::before {
  content: "";
  position: absolute; left: -1px; top: -1px;
  width: 0; height: 2px;
  background: var(--red-600);
  transition: width 0.45s var(--ease);
}
.why__item:hover::before { width: calc(100% + 2px); }
.why__num { font-family: var(--f-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.08em; }
.why__item .icon { color: var(--red-600); width: 28px; height: 28px; stroke-width: 1.5; }
.why__item p { color: var(--text-2); font-size: 15px; }

/* ---------- Quem somos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__copy { display: grid; gap: 22px; }
.about__copy > p { color: var(--text-2); font-size: 16.5px; }
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.mv__card { padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); display: grid; gap: 8px; }
.mv__card h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.mv__card h3 .icon { color: var(--red-600); }
.mv__card p { font-size: 14.5px; color: var(--text-2); }

.values { margin-top: clamp(56px, 7vw, 88px); }
.values__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.values__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.value {
  padding: 22px 20px 24px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
  display: grid; gap: 10px; align-content: start;
}
.value__num { font-family: var(--f-mono); font-size: 12px; color: var(--red-600); }
.value h3 { font-size: 1rem; }
.value p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ---------- Dúvidas ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__intro { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 40px); }
.faq__intro p { color: var(--text-2); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.012em;
  line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--red-600); }
.qa__toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  position: relative;
  transition: background-color 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.qa__toggle::before, .qa__toggle::after {
  content: "";
  position: absolute;
  width: 12px; height: 1.6px;
  background: currentColor;
  border-radius: 2px;
}
.qa__toggle::after { transform: rotate(90deg); transition: transform 0.35s var(--ease); }
.qa[open] .qa__toggle { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.qa[open] .qa__toggle::after { transform: rotate(0deg); }
.qa__body { padding: 0 52px 26px 0; color: var(--text-2); display: grid; gap: 12px; }
.qa__body a { color: var(--red-600); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contato ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, #000 20%, transparent 75%);
}
.contact::after {
  content: "";
  position: absolute; z-index: -1;
  width: 640px; height: 640px;
  left: -260px; bottom: -320px;
  border-radius: 50%;
  background: rgba(194, 0, 0, 0.3);
  filter: blur(100px);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__copy { display: grid; gap: 22px; }
.channels { display: grid; gap: 10px; margin-top: 10px; }
.channel {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s, background-color 0.25s;
}
a.channel:hover { border-color: var(--line-dark-2); background: rgba(255, 255, 255, 0.05); }
.channel__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}
.channel__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
.channel__value { color: var(--on-dark); font-weight: 500; font-size: 15px; line-height: 1.4; }
.channel > .icon { color: var(--on-dark-3); transition: transform 0.25s var(--ease), color 0.25s; }
a.channel:hover > .icon { color: var(--on-dark); transform: translate(2px, -2px); }

.form-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  position: relative;
}
.form-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.form-card__head h3 { font-size: 1.35rem; }
.form-card__head .badge { color: var(--text-3); border-color: var(--line); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; color: var(--text); padding: 0; }
.field .opt { font-weight: 400; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366707b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9aa2ab; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9b4ac; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink-900); box-shadow: 0 0 0 4px rgba(11, 15, 20, 0.08); }
.field.is-invalid .input { border-color: var(--red-600); box-shadow: 0 0 0 4px rgba(194, 0, 0, 0.08); }
.field__error { font-size: 12.5px; color: var(--red-600); display: none; }
.field.is-invalid .field__error { display: block; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice label {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice label .icon { color: var(--text-3); transition: color 0.2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:hover { border-color: #b9b4ac; }
.choice input:checked + label { border-color: var(--ink-900); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-900); }
.choice input:checked + label .icon { color: var(--red-600); }
.choice input:focus-visible + label { outline: 2px solid var(--red-500); outline-offset: 2px; }

.cond { display: grid; gap: 14px; }
.cond[hidden] { display: none; }
.form__note { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.form__note .icon { color: var(--text-3); margin-top: 1px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink-950); color: var(--on-dark-2); padding-top: clamp(56px, 7vw, 88px); font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.8fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 360px; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { color: var(--on-dark-3); font-size: 14px; }
.footer__col h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--on-dark-2); transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__legal { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; padding-block: 28px; font-size: 12.5px; color: var(--on-dark-3); align-items: start; }
.footer__legal p + p { margin-top: 6px; }
.footer__legal a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: #fff; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Botão flutuante ---------- */
.fab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.25s;
}
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--ink-700); }
.fab .icon { width: 22px; height: 22px; color: #25d366; }

/* ---------- Revelação ao rolar ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Página interna (privacidade) ---------- */
.page-hero { background: var(--ink-900); color: var(--on-dark); padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px)); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .wrap { display: grid; gap: 16px; }
.prose { max-width: 760px; display: grid; gap: 18px; color: var(--text-2); }
.prose h2 { font-size: 1.35rem; color: var(--text); margin-top: 22px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--red-600); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.policy { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.policy__toc { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 14px; font-size: 14px; }
.policy__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-3); }
.policy__toc a { color: var(--text-2); }
.policy__toc a:hover { color: var(--red-600); }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .nav a { padding-inline: 9px; font-size: 14px; }
  .header-actions .btn--whats span { display: none; }
}

@media (max-width: 1080px) {
  .nav, .header-actions .btn--whats { display: none; }
  .menu-toggle { display: grid; }
  .site-header .wrap { justify-content: space-between; }
  .header-actions { margin-left: auto; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .dash-wrap { max-width: 640px; }
    .float-card { left: auto; right: 16px; }

  .creds { grid-template-columns: 1fr; }
  .creds__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred { padding: 18px 20px 18px 0; border-top: 1px solid var(--line-dark); }
  .cred + .cred { padding-left: 0; border-left: 0; }
  .cred:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); }
  .creds__link { grid-column: 1 / -1; padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .creds { border-top: 0; }


  .why, .about, .faq, .contact__grid { grid-template-columns: 1fr; }
  .brand-panel { max-width: 560px; min-height: 480px; }
  .policy { grid-template-columns: 1fr; }
  .policy__toc { position: static; }
  .why__intro, .faq__intro { position: static; }
  .values__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage { order: -1; top: var(--header-h); z-index: 4; padding: 8px 0 6px; background: var(--paper); }
  .stage-bar__title { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .stage-dots span { width: 14px; }
  .story-step { min-height: 62vh; align-content: start; padding-top: 28px; }
  .story-step:first-child { min-height: 50vh; padding-top: 28px; }
  .story-step:last-child { min-height: 50vh; }
  .stage-bar { padding: 10px 14px; }
}

@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; }

  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product--feature { grid-row: auto; grid-column: 1 / -1; }
  .product--cta { grid-column: span 1; grid-template-columns: 1fr; }

}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 15.5px; }
  .brand img { height: 32px; }
  .header-actions .btn--primary { display: none; }

  .announce { font-size: 12.5px; }
  .announce .wrap { justify-content: flex-start; text-align: left; }

  .hero__ctas { display: grid; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .kpi { padding: 10px; }
  .kpi__value { font-size: 1.1rem; }
  .kpi__label { font-size: 10.5px; }
  .kpi__delta { font-size: 10px; }
  .dash { padding: 14px; }
  .feed__item { grid-template-columns: auto 1fr; }
  .feed__item .status { grid-column: 2; }
  .float-card { position: relative; left: auto; right: auto; bottom: auto; margin: -18px auto 0; max-width: calc(100% - 24px); white-space: normal; animation: none; }
  
  .creds__list { grid-template-columns: 1fr; }
  .cred:nth-child(even) { padding-left: 0; border-left: 0; }

  .products { grid-template-columns: 1fr; }
  .product--feature .h3 { font-size: 1.4rem; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; justify-content: center; padding-inline: 10px; font-size: 13px; }

  .why__grid { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
  .values__list { grid-template-columns: 1fr; }

  .qa__body { padding-right: 0; }
  .form__row { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .choice label { grid-template-columns: auto 1fr; align-items: center; }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .chip-live .long { display: none; }
  .chip-live .short { display: inline; }
  .form-card__head .badge { display: none; }
  .tabs button .icon { display: none; }
  .tabs-hint { display: none; }
  .tabs .long { display: none; }
  .tabs .short { display: inline; }
  .product:not(.product--feature):not(.product--cta) {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: none;
    column-gap: 16px;
    row-gap: 4px;
    padding: 20px;
    align-items: start;
  }
  .product:not(.product--feature):not(.product--cta) .product__icon { grid-row: 1 / span 3; width: 44px; height: 44px; }
  .product:not(.product--feature):not(.product--cta) .h3 { font-size: 1.05rem; }
  .product:not(.product--feature):not(.product--cta) p { font-size: 14px; }
  .product:not(.product--feature):not(.product--cta) .link-arrow { margin-top: 4px; font-size: 14px; }
  .product--feature { padding: 26px 22px; }
  .products { gap: 12px; }
  .footer__legal { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }

  .fab { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .fab span { display: none; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .float-card { animation: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .announce, .site-header, .fab, .mobile-nav, .hero__bg { display: none !important; }
  .hero, .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
}
