/* =========================================================
   Cativa: base no sistema da marca (AI Brand Kit v01 + tokens oficiais)
   Fundo preto · violeta superfície · carbono camada · lima só em CTA e palavra-chave.
   Violeta e lima nunca se encostam sem preto no meio. Sem sombra, sem gradiente colorido.
   ========================================================= */

@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/funnel-display-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
}

:root {
  /* === Paleta oficial (tokens.css do pacote) === */
  --void-black: #000000;
  --carbon-grey: #3a3a3a;
  --signal-white: #e9e9e9;
  --pure-white: #ffffff;
  --electric-violet: #7900e4;   /* superfície */
  --deep-amethyst: #641fcb;     /* hover, profundidade */
  --soft-lavender: #9b7bd4;     /* texto secundário de acento */
  --acid-lime: #beff01;         /* CTA e palavra-chave, só sobre preto */
  --violet-text: #8a14f5;       /* violeta como TEXTO sobre escuro (contraste) */
  --pixel-line: #141414;
  --dot-subtle: rgba(255, 255, 255, 0.08);
  --surface-1: #0b0b0b;         /* card escuro */
  --surface-2: #141414;         /* card escuro elevado */
  --surface-3: #1c1c1c;

  /* === Apelidos usados pelas seções (mantidos para compatibilidade) === */
  --bg: var(--void-black);
  --bg-2: var(--surface-1);
  --bg-3: var(--surface-2);
  --surface: rgba(255, 255, 255, 0.04);
  --ink: var(--pure-white);
  --ink-2: rgba(255, 255, 255, 0.75);
  --ink-3: rgba(255, 255, 255, 0.58);
  --ink-4: rgba(255, 255, 255, 0.4);
  --violet: var(--electric-violet);
  --violet-deep: var(--deep-amethyst);
  --violet-hot: var(--violet-text);
  --lilac: var(--soft-lavender);
  --lilac-2: var(--signal-white);
  --lime: var(--acid-lime);
  --grad: var(--electric-violet);           /* sem gradiente colorido: violeta chapado */
  --grad-text: none;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --glow: rgba(121, 0, 228, 0.45);
  --glow-soft: rgba(121, 0, 228, 0.18);

  /* Marca fictícia do cliente nos mockups: dentro da paleta (sem cor quente) */
  --tenant: var(--electric-violet);
  --tenant-2: var(--soft-lavender);
  --tenant-ink: var(--pure-white);
  --wa: var(--signal-white);
  --ok: var(--acid-lime);
  --warn: var(--soft-lavender);
  --danger: #ef4444;

  /* === Tipografia === */
  --font: "Funnel Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  --fs-xl: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);        /* H2 Bold 36-56 */
  --fs-h1: clamp(3.5rem, 1.6rem + 6.4vw, 6rem);         /* H1 Extrabold 56-96 */
  --fs-mega: clamp(3.5rem, 1rem + 9vw, 8rem);

  /* === Espaçamento oficial === */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 160px;

  /* === Raios: nunca maiores que 24 === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius: 16px;
  --radius-lg: 24px;

  /* === Layout: 12 colunas, max 1440, respiro lateral 48 (24 no celular) === */
  --wrap: 1344px;
  --gutter: 48px;
  --section-y: var(--space-4xl);
  --hdr-h: 72px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-step: steps(6, end);
}
@media (max-width: 768px) {
  :root { --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); --section-y: 64px; --space-xl: 36px; --space-2xl: 48px; --space-3xl: 72px; }
}
@media (max-width: 960px) {
  :root { --hdr-h: calc(64px + env(safe-area-inset-top)); }
  .hdr { padding-top: env(safe-area-inset-top); }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Âncora nativa (sem JS ou com movimento reduzido): uma folga só, a altura do header. As seções não somam scroll-margin. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--void-black);
  color: var(--pure-white);
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* fallback para navegadores sem clip */
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, summary { touch-action: manipulation; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--acid-lime); outline-offset: 3px; }
a:not(.btn):focus-visible { border-radius: 4px; }
::selection { background: var(--signal-white); color: var(--void-black); }
/* Seleção sobre violeta: preto (lima e violeta nunca se encostam) */
.folder--violet::selection, .folder--violet ::selection, .folder--amethyst::selection, .folder--amethyst ::selection,
.btn--violet::selection, .btn--violet ::selection, .pill--violet::selection, .chip--trigger::selection, .chip--trigger ::selection,
[data-surface="violet"]::selection, [data-surface="violet"] ::selection { background: var(--void-black); color: var(--pure-white); }

.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 {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--acid-lime); color: var(--void-black); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ---------- Fundo: pontos sutis + brilho violeta + grão ---------- */
.bg-cosmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--void-black); }
.bg-cosmos::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot-subtle) 1px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.7;
}
.bg-cosmos__a, .bg-cosmos__b { position: absolute; border-radius: 50%; pointer-events: none; }
.bg-cosmos__a {
  width: 70vmax; height: 70vmax; left: -28vmax; top: -34vmax;
  background: radial-gradient(closest-side, rgba(121, 0, 228, 0.22), rgba(121, 0, 228, 0) 70%);
}
.bg-cosmos__b {
  width: 60vmax; height: 60vmax; right: -30vmax; bottom: -34vmax;
  background: radial-gradient(closest-side, rgba(100, 31, 203, 0.18), rgba(100, 31, 203, 0) 70%);
}
.bg-cosmos__grain {
  position: absolute; inset: 0; opacity: 0.32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjM1IDAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4=");
}

/* ---------- Texturas reutilizáveis (assinatura) ---------- */
.tx-dots { background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1.5px); background-size: 14px 14px; }
.tx-dots--dark { background-image: radial-gradient(circle, rgba(0, 0, 0, 0.16) 1px, transparent 1.5px); background-size: 14px 14px; }
.tx-grid {
  background-image: linear-gradient(to right, var(--pixel-line) 1px, transparent 1px), linear-gradient(to bottom, var(--pixel-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.tx-scan { background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px); }
.glow-violet {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(121, 0, 228, 0.55), rgba(121, 0, 228, 0) 65%);
  filter: blur(60px);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1440px; }
.wrap--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Tipografia ---------- */
.h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 0.92; letter-spacing: -0.03em; font-weight: 800; }
.h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.02em; font-weight: 700; }
.h3, h3 { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.h4, h4 { font-size: var(--fs-lg); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); line-height: 1.5; }
/* Palavra-chave: lima em bold (só sobre fundo preto). Substitui o antigo gradiente de texto. */
.grad-text, .kw { color: var(--acid-lime); font-weight: 800; background: none; -webkit-text-fill-color: currentColor; }
.kw-violet { color: var(--violet-text); font-weight: 800; }
.accent { color: var(--acid-lime); }

/* Rótulo da marca: JetBrains Mono, caixa alta, tracking largo, lima */
.eyebrow, .caption-mono {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--acid-lime); line-height: 1.4;
}
.eyebrow .n { color: var(--ink-3); }
.caption-mono { color: var(--ink-3); }
.section-head { max-width: 920px; }
.section-head > * + * { margin-top: var(--space-lg); }
.section-head .lead { margin-top: var(--space-lg); }
.section-head.center { margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* Separador e fechamento ritual: três asteriscos da marca (#b-asterisk do sprite). Nunca o caractere ✳:
   as fontes da marca não têm esse glifo, ele cai numa fonte do sistema e pode virar emoji. */
.ritual { display: inline-flex; align-items: center; gap: 21px; height: 21px; color: var(--acid-lime); }
.ritual .glyph { width: 11px; height: 11px; }

/* ---------- Glyphs (sprite da marca) ---------- */
.glyph { width: 1em; height: 1em; flex: none; fill: currentColor; }
.glyph--px { shape-rendering: crispEdges; image-rendering: pixelated; }

/* ---------- Botões ---------- */
.btn {
  --btn-h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 22px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn--sm { --btn-h: 44px; padding: 0 16px; font-size: 14px; }
/* Seta de botão: #px-arrow-btn tem grade 7x7, então 14px dá 2px por pixel e a borda fica nítida (8x8 em 12/14px virava borrão). */
.btn .glyph, .btn .ico { width: 14px; height: 14px; }
.btn--primary, .btn--lime { background: var(--acid-lime); color: var(--void-black); }
.btn--primary:hover, .btn--lime:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(190, 255, 1, 0.18); }
.btn--violet { background: var(--electric-violet); color: var(--pure-white); }
.btn--violet:hover { transform: translateY(-1px); background: var(--deep-amethyst); box-shadow: 0 0 0 4px rgba(121, 0, 228, 0.25); }
.btn--ghost { background: transparent; color: var(--pure-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn--ghost:hover { color: var(--acid-lime); box-shadow: inset 0 0 0 1px var(--acid-lime); }
.btn--dark { background: var(--void-black); color: var(--pure-white); }
.btn--dark:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .glyph { transition: transform 0.25s var(--ease-out); }
.btn:hover .glyph { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--acid-lime); font-weight: 700; }
.link-arrow svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Ícones de traço (UI) ---------- */
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pills e chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
}
.pill--violet { background: var(--electric-violet); color: var(--pure-white); }
.pill--lime { background: var(--acid-lime); color: var(--void-black); }
.pill--outline { color: var(--pure-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.pill--outline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid-lime); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; line-height: 1.2;
  background: var(--surface-2); color: var(--pure-white); box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.chip .ico { width: 15px; height: 15px; }
.chip > .flag { margin-left: -4px; }
.chip--wrap, .chip--block { white-space: normal; border-radius: var(--radius-md); }
/* Mecânica: gatilho = violeta chapado · condição = contorno · ação = branco sinal */
.chip--trigger { background: var(--electric-violet); color: var(--pure-white); box-shadow: none; }
.chip--cond { background: transparent; color: var(--pure-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.chip--action { background: var(--signal-white); color: var(--void-black); box-shadow: none; }
.chip-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.flag { display: none; }
.flag-legend { font-size: var(--fs-xs); color: var(--ink-3); }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Nota de fonte */
.fn { font-size: 0.6em; vertical-align: super; line-height: 0; margin-left: 2px; color: var(--acid-lime); font-weight: 600; }
.sources { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.6; }
.sources ol, ol.sources { list-style: decimal; padding-left: 1.4em; display: grid; gap: 6px; }
.sources a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* =========================================================
   Folder-tab: o card-assinatura (aba recortada no canto superior direito)
   Raio 16-24 (nunca mais), cor sólida da paleta, sem sombra.
   ========================================================= */
.folder {
  --tab-w: 120px; --tab-h: 20px; --tab-slope: 20px;
  position: relative; border-radius: var(--radius-lg); isolation: isolate; overflow: hidden;
  background: var(--surface-2); color: var(--pure-white);
  clip-path: polygon(0 0, calc(100% - var(--tab-w)) 0, calc(100% - var(--tab-w) + var(--tab-slope)) var(--tab-h), 100% var(--tab-h), 100% 100%, 0 100%);
}
.folder--tl { clip-path: polygon(0 var(--tab-h), calc(var(--tab-w) - var(--tab-slope)) var(--tab-h), var(--tab-w) 0, 100% 0, 100% 100%, 0 100%); }
.folder--black { background: var(--void-black); box-shadow: inset 0 0 0 1px var(--line); }
.folder--carbon { background: var(--surface-2); }
.folder--violet { background: var(--electric-violet); color: var(--pure-white); }
.folder--grey { background: var(--carbon-grey); }
.folder--amethyst { background: var(--deep-amethyst); }
.folder--light { background: var(--signal-white); color: var(--void-black); }
.folder--dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.5px); background-size: 14px 14px;
}
.folder--light.folder--dots::before, .folder--violet.folder--dots::before { background-image: radial-gradient(circle, rgba(0, 0, 0, 0.14) 1px, transparent 1.5px); }
@media (max-width: 640px) { .folder { --tab-w: 80px; --tab-h: 16px; --tab-slope: 16px; } }
.folder--sm { --tab-w: 56px; --tab-h: 12px; --tab-slope: 12px; border-radius: var(--radius); }
/* Preto com contorno que segue o recorte da aba: o contorno é o fundo, e uma camada preta (mesmo polígono, 1px para dentro) fica por cima */
.folder--line { background: rgba(255, 255, 255, 0.16); }
.folder--line::after {
  content: ""; position: absolute; inset: 1px; z-index: -2; pointer-events: none; background: var(--void-black);
  border-radius: calc(var(--radius-lg) - 1px);
  clip-path: polygon(0 0, calc(100% - var(--tab-w) + 1px) 0, calc(100% - var(--tab-w) + var(--tab-slope) + 0.6px) var(--tab-h), 100% var(--tab-h), 100% 100%, 0 100%);
}
.folder--line.folder--dots::before { z-index: -1; }
/* Foco sobre violeta: branco (lima e violeta nunca se encostam) */
.folder--violet :focus-visible, .folder--amethyst :focus-visible, .btn--violet:focus-visible, [data-surface="violet"] :focus-visible { outline-color: var(--pure-white); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr-h);
  transition: transform 0.45s var(--ease-out), background-color 0.3s, box-shadow 0.3s;
}
/* Rolado: preto quase opaco, sem desfoque (a marca não usa soft blur) */
.hdr.is-scrolled { background: rgba(0, 0, 0, 0.94); box-shadow: inset 0 -1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--pure-white); }
.logo__svg { width: 112px; height: auto; aspect-ratio: 1829 / 480; }
.hdr__nav { display: flex; gap: 26px; margin-left: auto; font-size: var(--fs-sm); color: var(--ink-2); }
.hdr__nav a { position: relative; padding: 12px 0; white-space: nowrap; transition: color 0.2s; }
.hdr__nav a:hover { color: var(--acid-lime); }
/* Barra lima de 2px sobre trilho preto de 4px: com o header escondido, sempre há preto entre o lima e uma superfície violeta */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 101; pointer-events: none; background: var(--void-black); }
.progress span { display: block; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--acid-lime); }
.hdr__burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-md); position: relative; margin-left: auto; background: var(--surface-2); }
.hdr__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--pure-white); transition: transform 0.3s var(--ease-out), top 0.3s; }
.hdr__burger span:first-child { top: 17px; }
.hdr__burger span:last-child { top: 25px; }
.hdr__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mnav {
  position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 99; padding: 24px var(--gutter) 40px;
  background: var(--void-black); display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  overscroll-behavior: contain; padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.mnav > a { flex-shrink: 0; }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mnav .btn { margin-top: 24px; }
@media (max-width: 1080px) { .hdr__nav { gap: 18px; } }
@media (max-width: 960px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: block; }
}

/* ---------- Footer: fechamento ritual ---------- */
.ftr { position: relative; overflow: hidden; padding-top: var(--space-3xl); border-top: 1px solid var(--line); }
.ftr__punch { padding-bottom: var(--space-3xl); }
.ftr__punch .ritual { display: flex; margin-bottom: var(--space-lg); }
.ftr__punch-t { font-size: var(--fs-mega); font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; }
.ftr__punch-en { margin-top: var(--space-lg); }
.ftr__in { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding-top: var(--space-xl); border-top: 1px solid var(--line); }
.ftr__brand p { color: var(--ink-2); margin: 18px 0 24px; max-width: 34ch; }
.ftr__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ftr__cols a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: var(--fs-sm); transition: color 0.2s; }
.ftr__cols a:hover { color: var(--acid-lime); }
.ftr__h { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-3); font-weight: 500; margin-bottom: 10px; }
.ftr__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; padding-bottom: 24px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.ftr__bottom { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.ftr__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
@media (max-width: 860px) {
  .ftr__in { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Marquee ---------- */
.marquee { --gap: 56px; --speed: 50s; display: flex; overflow: hidden; gap: var(--gap); user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; gap: var(--gap); min-width: 100%; justify-content: space-around; animation: marquee var(--speed) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

/* =========================================================
   Celular (mock) e kit de interface do app do cliente (paleta da marca, sem sombra)
   ========================================================= */
.phone {
  --phone-w: 300px;
  position: relative; width: var(--phone-w); aspect-ratio: 9 / 19.2; flex: none;
  border-radius: min(24px, calc(var(--phone-w) * 0.16));  /* marca: raio nunca acima de 24 */
  padding: calc(var(--phone-w) * 0.035);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform-style: preserve-3d;
  align-self: flex-start;
  font-style: normal;
}
.phone i, .toast i { font-style: normal; }
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: min(18px, calc(var(--phone-w) * 0.13));
  background: var(--void-black); color: var(--pure-white);
  font-size: calc(var(--phone-w) * 0.042);
  line-height: 1.35;
}
.phone__island {
  position: absolute; z-index: 5; top: calc(var(--phone-w) * 0.06); left: 50%; transform: translateX(-50%);
  width: 30%; height: calc(var(--phone-w) * 0.075); border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone__status {
  position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center;
  height: calc(var(--phone-w) * 0.13); padding: calc(var(--phone-w) * 0.035) calc(var(--phone-w) * 0.08) 0;
  font-size: 0.82em; font-weight: 600;
}
.phone__status-icons { display: flex; gap: 4px; align-items: center; }
.phone__status-icons i { display: block; width: 1.1em; height: 0.7em; border-radius: 2px; background: rgba(255, 255, 255, 0.85); }
.phone__status-icons i:first-child { width: 0.95em; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.phone__body { position: absolute; inset: calc(var(--phone-w) * 0.13) 0 0 0; padding: 0 calc(var(--phone-w) * 0.05) calc(var(--phone-w) * 0.05); overflow: hidden; }
.phone__glare { display: none; }
.phone--sm { --phone-w: 230px; }
.phone--xs { --phone-w: 180px; }

.ui-appbar { display: flex; align-items: center; gap: 0.6em; padding: 0.4em 0 0.8em; }
.ui-logo {
  width: 2.1em; height: 2.1em; border-radius: 0.55em; flex: none; display: grid; place-items: center;
  background: var(--tenant); color: var(--tenant-ink); font-weight: 800; font-size: 0.95em;
}
.ui-title { font-weight: 700; letter-spacing: -0.02em; }
.ui-sub { font-size: 0.78em; color: rgba(255, 255, 255, 0.6); }
.ui-card { background: var(--surface-2); border-radius: 0.9em; padding: 0.85em; }
.ui-card + .ui-card { margin-top: 0.6em; }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.55em 1em; border-radius: 0.6em; background: var(--tenant); color: var(--tenant-ink); font-weight: 700; font-size: 0.88em; }
.ui-btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ui-avatar { width: 2em; height: 2em; border-radius: 50%; flex: none; background: var(--soft-lavender); display: grid; place-items: center; font-weight: 700; font-size: 0.8em; color: var(--void-black); }
.ui-avatar--b { background: var(--electric-violet); color: #fff; }
.ui-avatar--c { background: var(--signal-white); color: var(--void-black); }
.ui-avatar--d { background: var(--carbon-grey); color: #fff; }
.ui-avatars { display: flex; }
.ui-avatars .ui-avatar { margin-left: -0.5em; box-shadow: 0 0 0 2px var(--void-black); }
.ui-avatars .ui-avatar:first-child { margin-left: 0; }
.ui-progress { display: block; height: 0.4em; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ui-progress > span { display: block; height: 100%; width: var(--p, 40%); border-radius: inherit; background: var(--tenant); }
.ui-pill { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.25em 0.6em; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 0.75em; font-weight: 600; }
.ui-pill--tenant { background: rgba(121, 0, 228, 0.3); color: #fff; }
.ui-pill--ok { background: rgba(190, 255, 1, 0.14); color: var(--acid-lime); }

/* Selo: pixel-arte, não hexágono com gradiente */
.ui-seal {
  --seal: var(--electric-violet);
  width: 3.2em; height: 3.2em; flex: none; display: grid; place-items: center; border-radius: 0.7em;
  background: var(--seal); color: var(--pure-white); font-weight: 800; font-size: 0.9em;
}
.ui-seal--violet { --seal: var(--electric-violet); }
.ui-seal--gold { --seal: var(--signal-white); color: var(--void-black); }

/* Notificação push */
.ui-push {
  display: flex; gap: 0.7em; align-items: flex-start; padding: 0.8em 0.9em; border-radius: 1em;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 0.9em;
}
.ui-push .ui-logo { width: 2.3em; height: 2.3em; }
.ui-push__app { display: flex; justify-content: space-between; font-size: 0.78em; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.04em; }
.ui-push__title { font-weight: 700; }
.ui-push__text { color: rgba(255, 255, 255, 0.82); }

/* Notificação fora do celular (tamanho fixo) */
.toast {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--radius);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 14px; line-height: 1.35; color: var(--pure-white); max-width: 300px;
}
.toast__icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; }
.toast__icon .ico { width: 20px; height: 20px; }
.toast__meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.14em; }
.toast b { font-weight: 700; }

/* WhatsApp (mock em tons neutros da paleta) */
.wa { background: #0a0a0a; }
.wa__bar { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.2em 0.8em; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.wa__bubble { position: relative; max-width: 88%; padding: 0.6em 0.8em 0.4em; border-radius: 0.9em; border-top-left-radius: 0.2em; background: var(--surface-3); color: var(--signal-white); font-size: 0.92em; }
.wa__bubble--out { margin-left: auto; background: var(--carbon-grey); border-radius: 0.9em; border-top-right-radius: 0.2em; }
.wa__time { display: block; text-align: right; font-size: 0.7em; color: rgba(233, 233, 233, 0.6); margin-top: 0.2em; }
.wa__cta { display: block; text-align: center; color: var(--soft-lavender); font-weight: 600; padding: 0.55em; margin-top: 0.4em; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.92em; }

/* ---------- Contadores e pausa fora da tela ---------- */
[data-count] { font-variant-numeric: tabular-nums; }
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------- Revelação (estados iniciais só com js-anim) ---------- */
html.js-anim [data-reveal] { opacity: 0; }
html.js-anim [data-reveal="up"] { transform: translate3d(0, 32px, 0); }
html.js-anim [data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
html.js-anim [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
html.js-anim [data-reveal="scale"] { transform: scale(0.96); }
html.js-anim [data-reveal-stagger] > * { opacity: 0; transform: translate3d(0, 24px, 0); }
html.js-anim [data-split] .w { display: inline-block; opacity: 0; transform: translate3d(0, 0.45em, 0); }
[data-split] .w { white-space: nowrap; }
/* Revelação "pixel": a palavra entra em degraus (assinatura 8-bit) */
/* Folga vertical no recorte para não cortar acentos e letras com perna (g, j, p, ç) */
html.js-anim [data-split^="pixel"] .w { transform: none; clip-path: inset(-0.3em 100% -0.35em -0.06em); opacity: 1; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex: 1 1 100%; flex-wrap: wrap; justify-content: center; row-gap: 12px; padding-inline: var(--gutter); }
  .marquee__track > * { white-space: normal; }
  .marquee__track[aria-hidden="true"], .marquee__track + .marquee__track { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

.content-page { background: #000; }
.content-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.content-header nav { display: flex; gap: 24px; color: var(--ink-2); }
.content-header nav a:hover, .content-footer a:hover { color: var(--acid-lime); }
.content-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 40px; color: var(--ink-3); font-size: 14px; }
.content-hero { max-width: 1050px; padding-block: 64px 80px; }
.content-hero h1 { font-size: clamp(2.7rem, 5.5vw, 5.5rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; margin: 24px 0; text-wrap: balance; }
.content-hero .lead { max-width: 65ch; }
.content-hero .btn { margin-top: 28px; }
.content-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.content-hero .content-actions .btn { margin-top: 0; }
.content-experience { max-width: 720px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.content-experience h2 { font-size: clamp(1.25rem, 1rem + .7vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.content-experience p { margin-top: 10px; max-width: 67ch; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.content-access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.content-access__link { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .2s, background-color .2s; }
.content-access__link:hover { border-color: var(--acid-lime); background: var(--surface-2); }
.content-access__icon { width: 26px; height: 26px; flex: none; }
.content-access__link span { min-width: 0; }
.content-access__link small { display: block; font-size: 11px; line-height: 1.4; color: var(--ink-3); }
.content-access__link strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--pure-white); }
.content-access__store { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 72px; border-radius: 8px; }
.content-access__store img { display: block; width: auto; height: 48px; object-fit: contain; }
/* A imagem oficial do Google já inclui margem transparente: igualar a altura visível dos selos. */
.content-access__store--google img { height: 63px; }
.content-section { padding-block: 56px; border-top: 1px solid var(--line); }
.content-section h2, .content-cta h2 { font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; max-width: 27ch; margin-bottom: 24px; text-wrap: balance; }
.content-section p { max-width: 78ch; color: var(--ink-2); font-size: 18px; line-height: 1.65; margin-top: 16px; }
.content-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 40px; }
.content-grid h3 { font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.content-grid h3::before { content: ''; display: block; height: 10px; width: 10px; background: var(--electric-violet); margin-bottom: 20px; }
.content-grid p { font-size: 17px; }
.content-section .content-source, .content-hero .content-source { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin-top: 24px; max-width: 90ch; }
.content-source a, .content-links a { text-decoration: underline; text-underline-offset: 4px; }
.content-links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 28px; color: var(--acid-lime); }
.content-table-wrap { overflow-x: auto; margin-block: 32px; }
.content-table-wrap:focus-visible { outline-offset: 4px; }
.content-table-hint { display: none; }
.content-table-wrap table { border-collapse: collapse; width: 100%; text-align: left; line-height: 1.5; }
.content-table-wrap caption { text-align: left; font-size: 14px; margin-bottom: 16px; color: var(--ink-3); }
.content-table-wrap th, .content-table-wrap td { padding: 20px 24px 20px 0; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.content-table-wrap thead { color: var(--acid-lime); }
.content-table-wrap tbody td { color: var(--ink-2); }
.content-table-wrap th:first-child { width: 24%; }
.content-steps { list-style: decimal; padding-left: 24px; max-width: 80ch; }
.content-steps li { padding: 0 0 20px 12px; color: var(--ink-2); font-size: 18px; }
.content-steps strong { color: #fff; }
.content-faq .ct-faq__item { border-bottom: 1px solid var(--line-2); }
.content-faq summary { cursor: pointer; padding: 24px 0; font-size: 20px; font-weight: 700; }
.content-faq .ct-faq__a { padding-bottom: 24px; }
.content-faq .ct-faq__a p { margin: 0; }
.content-cta { padding: 56px 0 80px; }
.content-cta p { margin-bottom: 24px; color: var(--ink-2); font-size: 20px; }
.content-footer { padding-block: 32px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 14px; }
.content-footer nav { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 20px; }
@media (max-width: 760px) {
  .content-header { flex-wrap: wrap; gap: 8px; padding-block: max(12px, env(safe-area-inset-top)) 8px; }
  .content-header nav { order: 3; flex-basis: 100%; gap: 24px; font-size: 15px; }
  .content-header nav a, .content-footer nav a, .content-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .content-footer nav { column-gap: 24px; row-gap: 0; }
  .content-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .content-header .btn { font-size: 12px; padding: 12px; }
  .content-header .logo__svg { width: 105px; }
  .content-breadcrumb { padding-top: 28px; font-size: 12px; }
  .content-hero { padding-block: 28px 40px; }
  .content-hero h1 { font-size: clamp(2.25rem, 7vw + .5rem, 3.25rem); line-height: 1.02; margin-block: 20px; }
  .content-actions { flex-direction: column; align-items: stretch; }
  .content-hero .btn, .content-cta .btn { max-width: 100%; white-space: normal; text-align: center; padding-block: 12px; }
  .content-section { padding-block: 40px; }
  .content-grid { grid-template-columns: 1fr; gap: 28px; }
  .content-section p { font-size: 17px; }
  .content-table-wrap table { min-width: 630px; }
  .content-table-hint { display: block; color: var(--acid-lime); margin-top: 8px; }
}
@media (max-width: 540px) {
  .content-experience { margin-top: 24px; padding-top: 20px; }
  .content-access { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .content-access__link { min-height: 60px; padding: 10px; gap: 8px; }
  .content-access__link--web { grid-column: 1 / -1; }
  .content-access__icon { width: 22px; height: 22px; }
  .content-access__link strong { font-size: clamp(14px, 3.85vw, 15px); }
  .content-access__link small { font-size: 11px; }
  .content-access__store { min-height: 64px; }
  .content-access__store img { height: 40px; }
  .content-access__store--google img { height: 52px; }
}
