/* ==========================================================================
   NSyncro — Design System & Styles
   --------------------------------------------------------------------------
   1. Tokens (cores, tipografia, espaçamento)  — Light / Dark
   2. Base & tipografia
   3. Layout
   4. Componentes (botões, header, menus, cards…)
   5. Seções das páginas
   6. Páginas legais
   7. Animações & acessibilidade
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

/* Fonte Archivo (variável: peso 100–900, largura 62–125) — hospedada localmente.
   Licença SIL OFL em fonts/OFL-Archivo.txt */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca NSyncro (cores originais do logotipo) */
  --brand-blue: #0A5CF0;
  --brand-sky: #12B5F5;
  --brand-teal: #11B0AE;
  --brand-green: #3CC84A;
  --brand-lime: #C4F02A;
  --brand-gradient: linear-gradient(90deg, var(--brand-blue), var(--brand-sky) 35%, var(--brand-teal) 55%, var(--brand-green) 80%, var(--brand-lime));

  /* Tipografia — uma família (Archivo) usando o eixo de largura como personalidade */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-condensed: 80;
  --w-normal: 100;
  --w-wide: 112;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

  /* Espaçamento e forma */
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 68px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .35s;
  /* Velocidade geral das animações de entrada: 1 = normal, 1.5 = 50% mais lento, 0.8 = mais rápido */
  --anim: 1.2;

  /* ---------- Light (padrão) ---------- */
  color-scheme: light;
  --bg: #F5F6F8;
  --bg-alt: #ECEFF2;
  --surface: #FAFBFC;
  --surface-raised: #FDFDFE;
  --sheet: #F8F9FA;
  --ink: #0E1A24;
  --ink-2: #33414D;
  --muted: #5A6874;
  --line: #DCE1E6;
  --line-strong: #C4CCD3;
  --grid: rgba(14, 26, 36, .045);

  --accent: #0A55DE;          /* links e destaques de texto (contraste AA) */
  --accent-2: #0B8F8D;
  --accent-soft: rgba(10, 92, 240, .08);
  --ok: #17913D;

  --btn-bg: #0A5CF0;
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #084BC6;

  --drawing: #0A5CF0;         /* linhas do desenho técnico */
  --drawing-dim: #7A8794;
  --drawing-fill: rgba(10, 92, 240, .06);

  --shadow-1: 0 1px 2px rgba(14, 26, 36, .06), 0 1px 1px rgba(14, 26, 36, .04);
  --shadow-2: 0 24px 48px -24px rgba(14, 26, 36, .22), 0 2px 6px rgba(14, 26, 36, .05);
  --header-bg: rgba(245, 246, 248, .86);
  --focus: 0 0 0 3px rgba(10, 92, 240, .35);
}

/* ---------- Dark ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0F13;
  --bg-alt: #0F1418;
  --surface: #12181D;
  --surface-raised: #171E24;
  --sheet: #0E1418;
  --ink: #E7EDF1;
  --ink-2: #C3CDD5;
  --muted: #95A2AD;
  --line: #222B33;
  --line-strong: #33404A;
  --grid: rgba(18, 181, 245, .05);

  --accent: #8FE45A;
  --accent-2: #3CC6F5;
  --accent-soft: rgba(143, 228, 90, .09);
  --ok: #8FE45A;

  --btn-bg: #8FE45A;
  --btn-fg: #06140A;
  --btn-bg-hover: #A6EE74;

  --drawing: #3CC6F5;
  --drawing-dim: #6F7E8A;
  --drawing-fill: rgba(18, 181, 245, .07);

  --shadow-1: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow-2: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02);
  --header-bg: rgba(11, 15, 19, .78);
  --focus: 0 0 0 3px rgba(143, 228, 90, .4);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

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

* { margin: 0; }

[hidden] { display: none !important; }

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

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-variation-settings: "wdth" var(--w-normal);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Transição suave entre temas (ativada só durante a troca, via JS) */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), fill .4s var(--ease), stroke .4s var(--ease) !important;
}

/* Evita "flash" de idioma enquanto o dicionário carrega */
html.i18n-pending body { visibility: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul[class], ol[class],
nav ul, nav ol, footer ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" var(--w-wide);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--brand-sky); color: #031420; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

/* Cabeçalho de seção: título à esquerda, texto de apoio à direita */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.5; max-width: 46ch; }
.section-head--stack { grid-template-columns: 1fr; max-width: 760px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

/* ==========================================================================
   4. COMPONENTES
   ========================================================================== */

/* ---------- Botões ---------- */
.btn {
  --_h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: var(--_h);
  padding: 0 1.35rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }

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

.btn--sm { --_h: 40px; padding: 0 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" var(--w-wide);
}
.brand img { width: 30px; height: 30px; }
.brand small {
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-variation-settings: "wdth" var(--w-normal);
  padding-left: .65rem;
  border-left: 1px solid var(--line-strong);
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a {
  position: relative;
  display: block;
  padding: .5rem .8rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.main-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: .55;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current]::after { transform: scaleX(1); opacity: 1; }
.main-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.main-nav a:hover { background: transparent; }

.header-tools { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn .icon { width: 18px; height: 18px; }

/* Theme toggle: ícone muda conforme tema */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Seletor de idiomas ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 40px;
  padding: 0 .7rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .03em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.lang-btn .icon { width: 16px; height: 16px; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: .4rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .7rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  text-align: left;
  color: var(--ink-2);
}
.lang-option:hover, .lang-option:focus-visible { background: var(--accent-soft); color: var(--ink); }
.lang-option span:last-child { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.lang-option[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.lang-option[aria-checked="true"] span:last-child { color: var(--accent); }

.menu-toggle { display: none; }

/* ---------- Menu mobile ---------- */
.mobile-panel {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-panel nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 600;
  font-variation-settings: "wdth" var(--w-wide);
  letter-spacing: -0.01em;
}
.mobile-panel nav a .icon { width: 20px; height: 20px; color: var(--muted); }
.mobile-panel nav a { position: relative; }
.mobile-panel nav a::before { content: ""; position: absolute; left: -1rem; top: 25%; bottom: 25%; width: 3px; border-radius: 3px; background: var(--brand-gradient); transform: scaleY(0); transition: transform .3s var(--ease); }
.mobile-panel nav a[aria-current]::before { transform: scaleY(1); }
.mobile-panel nav a[aria-current] .icon { color: var(--accent); }
.mobile-panel .mobile-settings {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}
.mobile-settings h2 { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: .6rem; font-variation-settings: "wdth" var(--w-normal); }
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.segmented button {
  min-height: 44px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-1); }
.mobile-panel .btn { margin-top: 2rem; min-height: 54px; }

body.menu-open { overflow: hidden; }

/* ---------- Sub-navegação de produto ---------- */
.product-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.product-bar .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 52px;
}
.product-bar strong { font-weight: 650; font-variation-settings: "wdth" var(--w-wide); white-space: nowrap; }
.product-bar ul {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}
.product-bar ul::-webkit-scrollbar { display: none; }
.product-bar a {
  display: block;
  padding: .4rem .7rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border-radius: var(--r-sm);
}
.product-bar a:hover, .product-bar a.is-active { color: var(--ink); }
.product-bar a.is-active { background: var(--accent-soft); }

/* ==========================================================================
   5. SEÇÕES
   ========================================================================== */

/* ---------- Hero (home): folha de desenho técnico ---------- */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) clamp(3rem, 2rem + 4vw, 5rem); }

.sheet {
  position: relative;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--sheet);
  border-radius: 2px;
}
/* Margem/zona da folha (como nas folhas A3 de engenharia) */
.sheet::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.sheet-zones {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  font-variation-settings: "wdth" var(--w-condensed);
}
.sheet-zones span { position: absolute; line-height: 14px; width: 14px; text-align: center; }

.hero-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(680px, calc(100svh - var(--header-h) - 3rem));
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(1.75rem, 1rem + 3vw, 4.5rem);
}
.hero-copy h1 { font-size: var(--fs-3xl); margin-bottom: 1.5rem; max-width: 14ch; }
.hero-copy p { font-size: var(--fs-lg); color: var(--ink-2); max-width: 44ch; line-height: 1.55; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-drawing {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2.5rem 2.5rem 7.5rem;
  border-left: 1px dashed var(--line);
}
.hero-drawing svg { width: 100%; max-width: 520px; height: auto; overflow: visible; }

/* Desenho técnico — traços */
.dw-part { fill: var(--drawing-fill); stroke: var(--drawing); stroke-width: 1.6; }
.dw-line { fill: none; stroke: var(--drawing); stroke-width: 1.4; }
.dw-hidden { fill: none; stroke: var(--drawing-dim); stroke-width: 1; stroke-dasharray: 6 4; }
.dw-center { fill: none; stroke: var(--drawing-dim); stroke-width: .8; stroke-dasharray: 14 3 2 3; }
.dw-dim { fill: none; stroke: var(--drawing-dim); stroke-width: .8; }
.dw-arrow { fill: var(--drawing-dim); }
.dw-text { fill: var(--ink-2); font-family: var(--font); font-size: 11px; font-weight: 500; font-variation-settings: "wdth" var(--w-condensed); }
.dw-text--accent { fill: var(--accent); font-weight: 600; }
.dw-bend { fill: none; stroke: var(--brand-teal); stroke-width: 1; stroke-dasharray: 4 3; }

/* Legenda / carimbo (title block) */
.title-block {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  width: min(360px, calc(100% - 28px));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--sheet);
  font-size: 11px;
  line-height: 1.25;
  font-variation-settings: "wdth" var(--w-condensed);
}
.title-block > div { padding: .45rem .6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.title-block > div:nth-child(3n) { border-right: 0; }
.title-block dt, .title-block .tb-label { display: block; color: var(--muted); font-size: 10px; }
.title-block dd, .title-block .tb-value { margin: 0; font-weight: 600; color: var(--ink); font-size: 12px; }
.title-block .tb-logo { grid-row: span 2; display: grid; place-items: center; padding: .5rem .75rem; }
.title-block .tb-logo img { width: 34px; height: 34px; }
.title-block .tb-wide { grid-column: span 2; }

/* ---------- Hero produto (NSyncro Draw) ---------- */
.product-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 0; overflow: hidden; }
.product-hero .intro { max-width: 860px; }
.product-hero h1 { font-size: var(--fs-3xl); margin-bottom: 1.5rem; }
.product-hero .intro p { font-size: var(--fs-lg); color: var(--ink-2); max-width: 52ch; line-height: 1.55; margin-bottom: 2.25rem; }
.product-hero .app-stage { margin-top: clamp(3rem, 2rem + 4vw, 5rem); position: relative; }
.product-hero .app-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 45%;
  transform: translateX(-50%);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

/* ---------- Janela do app (mockup ilustrativo) ---------- */
.app-window {
  position: relative;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 42px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.app-titlebar .dots { display: flex; gap: 6px; }
.app-titlebar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.app-titlebar strong { color: var(--ink); font-weight: 600; }
.app-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 420px; }

.app-side { border-right: 1px solid var(--line); padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.app-side h3 { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0; font-variation-settings: "wdth" var(--w-normal); }

.job-list { display: grid; gap: 2px; }
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .7rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
}
.job .ext { display: inline-flex; align-items: center; gap: .55rem; }
.job .ext .icon { width: 16px; height: 16px; color: var(--muted); }
.job .state {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.job .state .icon { width: 12px; height: 12px; stroke-width: 2.4; color: var(--btn-fg); opacity: 0; transform: scale(.6); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.job.is-done { color: var(--ink); }
.job.is-done .state { background: var(--ok); border-color: var(--ok); }
:root:not([data-theme="dark"]) .job.is-done .state .icon { color: #fff; }
.job.is-done .state .icon { opacity: 1; transform: none; }
.job.is-running { background: var(--accent-soft); }
.job.is-running .state { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }

.progress { margin-top: auto; }
.progress-meta { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-bottom: .5rem; }
.progress-meta b { color: var(--ink); font-weight: 600; }
.progress-track { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--brand-gradient); transition: width .5s var(--ease); }
.progress-done { font-size: var(--fs-xs); color: var(--ok); font-weight: 600; margin-top: .55rem; min-height: 1.2em; opacity: 0; transition: opacity .4s var(--ease); }
.progress-done.is-visible { opacity: 1; }

.app-canvas {
  position: relative;
  padding: 1.25rem;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--sheet);
}
.app-canvas .canvas-sheet { position: relative; height: 100%; border: 1px solid var(--line-strong); background: var(--sheet); display: grid; place-items: center; padding: 1.5rem 1.5rem 4.5rem; }
.app-canvas .canvas-sheet::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.app-canvas svg { width: 100%; max-width: 560px; height: auto; }
.app-canvas .title-block { right: 8px; bottom: 8px; width: min(300px, calc(100% - 16px)); }

.illustrative-note { margin-top: .9rem; font-size: var(--fs-xs); color: var(--muted); text-align: right; position: relative; }

/* ---------- Ecossistema / produtos ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-4px); }
.product--lead { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box; border-width: 1.5px; }
.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--sheet);
  display: grid;
  place-items: center;
  padding: 2.9rem 1.25rem 1rem;
}
.product-media svg { width: 100%; height: 100%; overflow: visible; transition: transform .6s var(--ease); }
.product:hover .product-media svg { transform: scale(1.03); }
.product-media .product-mark { position: absolute; top: .9rem; right: 1.1rem; z-index: 1; width: auto; height: 68px; filter: drop-shadow(0 4px 8px rgba(10, 30, 60, .18)); transition: transform .4s var(--ease); }
.product:hover .product-media .product-mark { transform: rotate(-6deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .product:hover .product-media .product-mark { transform: none; } }
.product-media .status { position: absolute; top: .9rem; left: .9rem; background: var(--surface-raised); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.75rem; }
.product h3 { font-size: var(--fs-xl); margin-bottom: .6rem; }
.product p { color: var(--muted); font-size: var(--fs-sm); }
.product .formats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0 0; }
.product .product-foot { margin-top: auto; padding-top: 1.5rem; }
.product .soon { margin-top: auto; padding-top: 1.5rem; font-size: var(--fs-sm); color: var(--muted); display: inline-flex; align-items: center; gap: .45rem; }
.product .soon .icon { width: 16px; height: 16px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #D29A1E; }
.status--live { color: var(--ink); }
.status--live::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
}
.chip .icon { width: 14px; height: 14px; color: var(--accent-2); }

/* ---------- Princípios (home) ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.principle { padding: 2rem 2rem 0 0; }
.principle + .principle { padding-left: 2rem; border-left: 1px solid var(--line); }
.principle .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 1.5rem; stroke-width: 1.4; }
.principle h3 { font-size: var(--fs-lg); margin-bottom: .6rem; letter-spacing: -0.01em; }
.principle p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Destaque split (home → Draw) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.split h2 { font-size: var(--fs-2xl); margin-bottom: 1.25rem; }
.split > div > p { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.55; margin-bottom: 2rem; max-width: 46ch; }
.check-list { display: grid; gap: .85rem; margin-bottom: 2.25rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); }
.check-list .icon { width: 20px; height: 20px; color: var(--accent-2); margin-top: 2px; stroke-width: 2; }

/* ---------- Fluxo SolidWorks → NSyncro → saídas ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1.1fr;
  align-items: center;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.flow-node img { width: 40px; height: 40px; object-fit: contain; }
.flow-node strong { display: block; font-size: var(--fs-lg); font-weight: 650; font-variation-settings: "wdth" var(--w-wide); letter-spacing: -0.01em; }
.flow-node span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.flow-node--hub { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box; border-width: 1.5px; border-style: solid; }

.flow-link { position: relative; height: 2px; background: var(--line-strong); overflow: hidden; }
.flow-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--brand-gradient);
  animation: pulse-x 2.4s var(--ease) infinite;
}
.flow-link:nth-of-type(2)::after { animation-delay: 1.2s; }

.flow-outputs { display: grid; gap: .5rem; }
.flow-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-sm);
}
.flow-out b { font-weight: 650; }
.flow-out span { color: var(--muted); font-size: var(--fs-xs); text-align: right; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  counter-reset: step;
}
.step { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: .5rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Comparação de tempo ---------- */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.compare h2 { font-size: var(--fs-2xl); margin-bottom: 1rem; }
.compare > div > p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.5; }
.bars { display: grid; gap: 2rem; }
.bar-row header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.bar-row header span { font-weight: 600; color: var(--ink-2); }
.bar-row header b { font-size: var(--fs-xl); font-weight: 650; font-variation-settings: "wdth" var(--w-wide); letter-spacing: -0.02em; }
.bar-track { height: 14px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); border-radius: inherit; transform-origin: left; }
.js .bar-fill { transform: scaleX(0); transition: transform calc(2.2s * var(--anim)) var(--ease) calc(.3s * var(--anim)); }
.js .bar-row + .bar-row .bar-fill { transition-delay: calc(.9s * var(--anim)); }
.js .bars.is-visible .bar-fill { transform: scaleX(1); }
.bar-fill--manual { background: var(--ink-2); opacity: .35; }
.bar-fill--auto { background: var(--brand-gradient); }
.footnote { margin-top: 1.5rem; font-size: var(--fs-xs); color: var(--muted); max-width: 70ch; }

/* ---------- Recursos / benefícios ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature { padding: 2rem 1.75rem 2.25rem; background: var(--surface); transition: background-color var(--dur) var(--ease); }
.feature:hover { background: var(--surface-raised); }
.feature .icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 2.5rem; stroke-width: 1.4; transition: transform var(--dur) var(--ease); }
.feature:hover .icon { transform: translateY(-3px); }
.feature h3 { font-size: var(--fs-lg); margin-bottom: .55rem; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Resultados ---------- */
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.result { padding: 2rem 2rem 0 0; }
.result + .result { padding-left: 2rem; border-left: 1px solid var(--line); }
.result .value {
  display: block;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" var(--w-condensed);
  font-variant-numeric: tabular-nums;
  margin-bottom: .75rem;
}
.result p { color: var(--muted); }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan-tag--soft { background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line-strong); }
.plan--custom { border-style: dashed; border-color: var(--line-strong); }
.plan .plan-lead { font-size: var(--fs-sm); color: var(--muted); margin: -.5rem 0 1.5rem; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.plan:hover { border-color: var(--line-strong); }
.plan--featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box; border-width: 1.5px; box-shadow: var(--shadow-2); }
.plan-tag {
  position: absolute;
  top: -12px;
  left: 1.75rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.plan h3 { font-size: var(--fs-lg); margin-bottom: .35rem; }
.plan .plan-desc { color: var(--muted); font-size: var(--fs-sm); min-height: 3em; }
.plan .price { margin: 1.5rem 0; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.plan .price b { font-size: clamp(2.1rem, 1.6rem + 1.2vw, 2.75rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "wdth" var(--w-condensed); }
.plan .price span { color: var(--muted); font-size: var(--fs-sm); }
.plan ul { list-style: none; padding-left: 0; display: grid; gap: .7rem; margin-bottom: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.plan li .icon { width: 18px; height: 18px; color: var(--accent-2); margin-top: 1px; stroke-width: 2; }
.plan .btn { margin-top: auto; }

/* ---------- Vídeos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.video { display: block; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--bg-alt); border: 1px solid var(--line); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-thumb .play {
  position: absolute;
  left: 1rem; bottom: 1rem;
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #0E1A24;
  transition: transform var(--dur) var(--ease);
}
.video-thumb .play .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 3px; }
.video:hover .video-thumb img { transform: scale(1.04); }
.video:hover .play { transform: scale(1.08); }
.video h3 { margin-top: 1rem; font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.005em; font-variation-settings: "wdth" var(--w-normal); line-height: 1.35; }
.video .meta { display: flex; align-items: center; gap: .35rem; margin-top: .3rem; font-size: var(--fs-xs); color: var(--muted); }
.video .meta .icon { width: 13px; height: 13px; }

/* ---------- Depoimentos ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.quote {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.quote .stars { display: flex; gap: 2px; color: #E5A50A; margin-bottom: 1.25rem; }
.quote .stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.quote blockquote { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink); margin-bottom: 1.75rem; letter-spacing: -0.005em; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.quote figcaption strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.quote figcaption span { display: block; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Avaliações (faixa contínua) ---------- */
.reviews-head-side { display: grid; gap: 1rem; justify-items: start; }
.reviews-summary { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-sm) !important; font-weight: 600; color: var(--ink) !important; }
.review-stars { display: inline-flex; gap: 2px; color: #E5A50A; }
.review-stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.review-stars .icon.is-off { color: var(--line-strong); }

.reviews { position: relative; }
.reviews-controls { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.reviews-controls .icon-btn .icon-play { display: none; }
.reviews.is-paused .reviews-controls .icon-play { display: block; }
.reviews.is-paused .reviews-controls .icon-pause { display: none; }
.reviews-controls .icon { fill: currentColor; }

.reviews-row { overflow: hidden; padding-block: .5rem; }
.reviews.is-marquee .reviews-row {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.reviews-row + .reviews-row { margin-top: 1.25rem; }
.reviews-track { display: flex; gap: 1.25rem; width: max-content; }
.reviews.is-marquee .reviews-track { animation: marquee var(--dur, 60s) linear infinite; }
.reviews.is-marquee .is-reverse .reviews-track { animation-direction: reverse; }
.reviews.is-paused .reviews-track,
.reviews.is-marquee .reviews-row:hover .reviews-track,
.reviews.is-marquee .reviews-row:focus-within .reviews-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--dist, 50%))); } }

/* Poucas avaliações ou movimento reduzido: lista rolável com encaixe */
.reviews.is-static .reviews-row { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.reviews.is-static .reviews-track { padding-bottom: .75rem; }
.reviews.is-static .review { scroll-snap-align: start; }

.review {
  display: flex;
  flex-direction: column;
  width: clamp(280px, 30vw, 380px);
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.review:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.review blockquote { margin: 1rem 0 1.5rem; font-size: var(--fs-base); line-height: 1.55; color: var(--ink); }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--brand-gradient); color: #08140A; font-size: var(--fs-xs); font-weight: 700; }
.review strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.review-meta { display: block; font-size: var(--fs-xs); color: var(--muted); }

.reviews-empty {
  display: grid;
  justify-items: center;
  gap: .9rem;
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  background: var(--surface);
}
.reviews-empty-stars { display: flex; gap: 4px; color: var(--line-strong); }
.reviews-empty-stars .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.reviews-empty h3 { font-size: var(--fs-xl); }
.reviews-empty p { color: var(--muted); max-width: 48ch; margin-bottom: .5rem; }

/* Formulário */
.review-dialog {
  margin: auto;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45);
}
.review-dialog::backdrop { background: rgba(11, 15, 19, .55); backdrop-filter: blur(3px); }
.review-dialog[open] { animation: bubble .3s var(--ease); }
.review-form { display: grid; gap: 1.1rem; padding: 1.5rem; }
.review-form header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review-form h3 { font-size: var(--fs-xl); }
.rf-stars { border: 0; padding: 0; margin: 0; }
.rf-stars legend, .rf-field > span { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: .45rem; }
.rf-field small { font-weight: 400; color: var(--muted); }
.rf-stars-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rf-stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rf-stars-row label { cursor: pointer; color: var(--line-strong); transition: color .15s, transform .15s; }
.rf-stars-row label .icon { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.rf-stars-row label:hover, .rf-stars-row label:hover ~ label,
.rf-stars-row input:checked ~ label { color: #E5A50A; }
.rf-stars-row label:hover { transform: scale(1.1); }
.rf-stars-row input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rf-field input, .rf-field textarea {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  resize: vertical;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rf-field input:focus, .rf-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.rf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rf-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.rf-consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.rf-consent a { color: var(--accent); text-decoration: underline; }
.rf-msg { font-size: var(--fs-sm); min-height: 0; }
.rf-msg:empty { display: none; }
.rf-msg--ok { color: var(--ok); font-weight: 600; }
.rf-msg--error { color: #D6453D; font-weight: 600; }
.rf-msg--info { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .review:hover { transform: none; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq-layout h2 { font-size: var(--fs-2xl); margin-bottom: 1rem; }
.faq-layout > div:first-child p { color: var(--muted); margin-bottom: 1.5rem; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform var(--dur) var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 3rem 1.5rem 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-radius: var(--r-lg);
  background: #0B0F13;
  color: #E7EDF1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: end;
}
:root[data-theme="dark"] .cta-band { background: var(--surface-raised); border: 1px solid var(--line); }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(18, 181, 245, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(18, 181, 245, .06) 1px, transparent 1px) 0 0 / 24px 24px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta-band::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--brand-gradient); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--fs-2xl); margin-bottom: 1rem; max-width: 18ch; }
.cta-band p { color: #A9B6C0; font-size: var(--fs-lg); max-width: 48ch; }
.cta-band .hero-actions { justify-content: flex-end; }
.cta-band .btn--primary { background: #8FE45A; color: #06140A; }
.cta-band .btn--primary:hover { background: #A6EE74; }
.cta-band .btn--ghost { color: #E7EDF1; border-color: rgba(231, 237, 241, .25); }
.cta-band .btn--ghost:hover { border-color: #E7EDF1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-top: clamp(3.5rem, 3rem + 2vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); margin-top: 1.1rem; max-width: 34ch; }
.footer-col h2 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; margin-bottom: 1.1rem; font-variation-settings: "wdth" var(--w-normal); }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { font-size: var(--fs-sm); color: var(--muted); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-col p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.1rem; max-width: 30ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.footer-bottom ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 52px;
  padding: 0 1.15rem 0 1rem;
  border-radius: 999px;
  background: #1FAF5A;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(16, 90, 50, .6);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.wa-float:hover { background: #179A4D; transform: translateY(-2px); }
.wa-float .icon { width: 22px; height: 22px; stroke-width: 1.8; }

/* ---------- Assistente (mini bot) ---------- */
.wa-float .icon-x { display: none; }
.wa-float.is-active .icon-x { display: block; }
.wa-float.is-active .icon-chat { display: none; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(31, 175, 90, .45);
  animation: ring 2.8s var(--ease) 2s 3;
  pointer-events: none;
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(31, 175, 90, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(31, 175, 90, 0); } }

.bot {
  position: fixed;
  right: 20px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 85;
  width: min(380px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  box-shadow: 0 30px 60px -20px rgba(14, 26, 36, .35), 0 2px 8px rgba(14, 26, 36, .08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.bot.is-open { opacity: 1; transform: none; }
:root[data-theme="dark"] .bot { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.bot-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.bot-head::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--brand-gradient); }
.bot-head img { width: 34px; height: 34px; }
.bot-head div { flex: 1; min-width: 0; }
.bot-head h2 { font-size: var(--fs-base); letter-spacing: -0.01em; }
.bot-head p { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); color: var(--muted); }
.bot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.bot-close { width: 34px; height: 34px; }

.bot-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; min-height: 200px; overscroll-behavior: contain; }
.bot-msg { max-width: 88%; animation: bubble .3s var(--ease) both; }
.bot-msg p { padding: .65rem .85rem; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.5; }
.bot-msg--bot { align-self: flex-start; }
.bot-msg--bot p { background: var(--bg-alt); color: var(--ink); border-top-left-radius: 4px; }
.bot-msg--user { align-self: flex-end; }
.bot-msg--user p { background: var(--btn-bg); color: var(--btn-fg); border-top-right-radius: 4px; }
.bot-msg .link-arrow, .bot-msg .btn { margin-top: .5rem; font-size: var(--fs-sm); }
.bot-typing { display: inline-flex; gap: 4px; padding: .8rem .9rem; border-radius: 14px; border-top-left-radius: 4px; background: var(--bg-alt); }
.bot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dots 1s infinite ease-in-out; }
.bot-typing span:nth-child(2) { animation-delay: .15s; }
.bot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes bubble { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bot-replies { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem 1rem; max-height: 132px; overflow-y: auto; border-top: 1px solid var(--line); }
.bot-replies:empty { display: none; }
.bot-chip {
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  animation: bubble .3s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.bot-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.bot-foot { padding: .9rem 1rem 1rem; border-top: 1px solid var(--line); }
.bot-foot .btn { background: #1FAF5A; color: #fff; }
.bot-foot .btn:hover { background: #179A4D; }
.bot-foot p { margin-top: .55rem; font-size: 11px; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .bot { right: 8px; left: 8px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); height: calc(100svh - 100px); max-height: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::after { animation: none; }
  .bot { transform: none; }
}

/* ==========================================================================
   6. PÁGINAS LEGAIS
   ========================================================================== */

.doc-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: var(--fs-3xl); margin-bottom: 1.25rem; }
.doc-hero p { font-size: var(--fs-lg); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: var(--fs-sm); color: var(--muted); }
.doc-meta .note { flex-basis: 100%; font-size: var(--fs-xs); }

.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section-y); }
.doc-toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; }
.doc-toc h2 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; margin-bottom: 1rem; font-variation-settings: "wdth" var(--w-normal); }
.doc-toc ol { display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px; border-left: 2px solid transparent; font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.is-active { color: var(--ink); border-left-color: var(--accent); }

.doc { max-width: 72ch; }
.doc section { padding-block: 0 2.75rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.doc section + section { padding-top: 2.75rem; border-top: 1px solid var(--line); }
.doc h2 { font-size: var(--fs-xl); margin-bottom: 1.1rem; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 1rem; }
.doc ul { margin-top: 1rem; padding-left: 1.25rem; display: grid; gap: .45rem; }
.doc li::marker { color: var(--accent-2); }
.doc a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc .contact-box { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-alt); display: grid; gap: .35rem; font-size: var(--fs-sm); }
.doc .contact-box strong { font-size: var(--fs-base); }
.doc .btn { margin-top: 1.5rem; }

/* ==========================================================================
   7. ANIMAÇÕES, RESPONSIVO, ACESSIBILIDADE
   ========================================================================== */

/* Reveal ao rolar (só com JS ativo — sem JS o conteúdo aparece normalmente) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity calc(1s * var(--anim)) var(--ease), transform calc(1s * var(--anim)) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Revelação em sequência (itens de grades) */
.js .stagger > * { opacity: 0; transform: translateY(32px); transition: opacity calc(1s * var(--anim)) var(--ease), transform calc(1s * var(--anim)) var(--ease); transition-delay: calc(var(--i, 0) * 180ms * var(--anim)); }
.js .stagger.is-visible > * { opacity: 1; transform: none; }
/* Garante que hovers com transform voltem a funcionar após a entrada */
.js .stagger.is-done > * { transition-delay: 0s; }

/* Desenhos que se traçam ao entrar na tela */
.js .draw-scroll { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-visible .draw-scroll { animation: draw calc(1.6s * var(--anim)) var(--ease) forwards; animation-delay: calc((var(--d, 0s) + var(--i, 0) * 180ms + .3s) * var(--anim)); }
.js .fade-scroll { opacity: 0; }
.js .is-visible .fade-scroll { animation: fade calc(.8s * var(--anim)) var(--ease) forwards; animation-delay: calc((var(--d, .8s) + var(--i, 0) * 180ms + .3s) * var(--anim)); }

/* Sequência de entrada do hero: o desenho "é traçado" */
.js .draw-in { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw calc(1.8s * var(--anim)) var(--ease) forwards; animation-delay: calc((var(--d, 0s) + .4s) * var(--anim)); }
.js .fade-in { opacity: 0; animation: fade calc(.8s * var(--anim)) var(--ease) forwards; animation-delay: calc((var(--d, 0s) + .4s) * var(--anim)); }
.js .rise-in { opacity: 0; transform: translateY(20px); animation: rise calc(1.1s * var(--anim)) var(--ease) forwards; animation-delay: calc((var(--d, 0s) + .15s) * var(--anim)); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-x { 0% { left: -40%; } 100% { left: 100%; } }

/* ---------- Notebook ---------- */
.main-nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .header-tools > .btn--primary { display: none; }
  .site-header .container { gap: 1.25rem; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-tools .lang, .header-tools .theme-toggle, .header-tools .btn { display: none; }
  .menu-toggle { display: inline-grid; margin-left: auto; }
  .header-tools { margin-left: auto; }

  .hero-sheet { grid-template-columns: 1fr; min-height: 0; }
  .hero-drawing { border-left: 0; border-top: 1px dashed var(--line); padding: 2rem 1.5rem 8rem; }
  .hero-copy h1 { max-width: 18ch; }

  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { padding-top: 2.5rem; }

  .flow { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
  .flow-link { width: 2px; height: 40px; margin-left: 2.4rem; }
  .flow-link::after { left: 0; top: -40%; width: 100%; height: 40%; animation-name: pulse-y; }

  .app-body { grid-template-columns: 240px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; max-height: none; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-alt); }
  .doc-toc ol { grid-template-columns: 1fr 1fr; border-left: 0; gap: .1rem 1.5rem; }
  .doc-toc a { padding-left: 0; border-left: 0; }
}
@keyframes pulse-y { 0% { top: -40%; } 100% { top: 100%; } }

/* ---------- Tablet retrato / mobile grande ---------- */
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .products { grid-template-columns: 1fr; }
  .product--lead { grid-row: auto; }
  .split, .compare, .faq-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .videos { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; max-width: 620px; }
  .results { grid-template-columns: 1fr; }
  .result + .result { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
  .cta-band { grid-template-columns: 1fr; align-items: start; }
  .cta-band .hero-actions { justify-content: flex-start; }

  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .job-list { grid-template-columns: 1fr 1fr; }
  .app-canvas { order: -1; }
  .product-bar strong { display: none; }
  .product-bar ul { margin-left: 0; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  body { font-size: 1rem; }
  .brand small { display: none; }
  .hero { padding-top: 1rem; }
  .sheet::before { inset: 8px; }
  .sheet-zones { display: none; }
  .hero-copy { padding: 2.25rem 1.5rem 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; min-height: 52px; }
  .hero-drawing { padding: 1.5rem 1rem 9rem; }
  .title-block { right: 8px; bottom: 8px; width: calc(100% - 16px); }

  .features, .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 1.75rem 0 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); margin-top: 1.75rem; }
  .principle:nth-child(n+3) { padding-top: 1.75rem; }
  .feature .icon { margin-bottom: 1.25rem; }

  .videos { grid-template-columns: 1fr; }
  .job-list { grid-template-columns: 1fr; }
  .app-canvas { padding: .75rem; }
  .app-canvas .canvas-sheet { padding: 1rem .5rem 5.25rem; }
  .app-titlebar span:last-child { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .doc-toc ol { grid-template-columns: 1fr; }
  .faq summary { font-size: var(--fs-base); }
  .faq .answer { padding-right: 0; }

  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Telas de toque: alvos maiores e sem hovers "presos" */
@media (hover: none) {
  .feature:hover .icon, .video:hover .video-thumb img { transform: none; }
}

/* Preferência por movimento reduzido (ex.: "Efeitos de animação" desligados no Windows):
   mantém fades e traçados, remove deslocamentos, zoom e loops contínuos. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .stagger > *, .js .rise-in { transform: none !important; }
  .js .rise-in { animation-name: fade; }
  .flow-link::after { display: none; }
  .product:hover, .product:hover .product-media svg, .video:hover .video-thumb img, .video:hover .play, .feature:hover .icon, .wa-float:hover { transform: none; }
}

/* Impressão (páginas legais) */
@media print {
  .site-header, .site-footer, .wa-float, .doc-toc, .product-bar, .mobile-panel { display: none !important; }
  .doc-layout { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
}

/* Marca do produto na sub-navegação */
.product-bar-brand { display: inline-flex; align-items: center; gap: .5rem; }
.product-bar-brand img { width: auto; height: 26px; }

/* ==========================================================================
   Consultoria
   ========================================================================== */
.consult-hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem); }
.consult-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.consult-copy h1 { font-size: var(--fs-3xl); margin-bottom: 1.5rem; }
.consult-copy > p:not(.kicker) { font-size: var(--fs-lg); color: var(--ink-2); max-width: 50ch; line-height: 1.55; margin-bottom: 2.25rem; }

.creds { display: grid; gap: 1rem; }
.cred {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cred::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-gradient); }
.cred--pro { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box; border-width: 1.5px; }
.cred:hover { transform: translateY(-3px); }
.cred { align-items: center; }
.cred-badge { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(10, 30, 60, .18)); transition: transform .5s var(--ease); }
.cred:hover .cred-badge { transform: rotate(-6deg) scale(1.04); }
.cred-verify {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .9rem; padding: .45rem .8rem;
  border-radius: 8px; border: 1px solid var(--line-strong);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.cred-verify:hover { border-color: var(--accent); background: var(--accent-soft); }
.cred-verify .icon { width: 15px; height: 15px; color: var(--accent-2); }
@media (max-width: 560px) { .cred-badge { width: 88px; height: 88px; } }
@media (prefers-reduced-motion: reduce) { .cred:hover .cred-badge { transform: none; } }
.cred-code {
  font-size: 1.75rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; margin-bottom: .35rem;
}
.cred-name { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; margin-bottom: .5rem; font-variation-settings: "wdth" 100; }
.cred-desc { font-size: var(--fs-sm); color: var(--muted); }
.cred-issuer { font-size: var(--fs-xs); color: var(--muted); padding-left: .25rem; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service { display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.service:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.service .icon { width: 26px; height: 26px; color: var(--accent); stroke-width: 1.4; margin-bottom: 1rem; }
.service h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.service p { color: var(--muted); font-size: var(--fs-sm); }
.service .link-arrow { margin-top: auto; padding-top: .75rem; font-size: var(--fs-sm); }

.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .consult-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services, .steps--4 { grid-template-columns: 1fr; }
  .cred { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cred:hover, .service:hover { transform: none; }
}

/* Três certificações: cartões mais compactos */
.creds { gap: .85rem; }
.creds .cred { padding: 1.15rem 1.35rem; gap: 1.1rem; }
.creds .cred-badge { width: 84px; height: 84px; }
.creds .cred-code { font-size: 1.45rem; }
.creds .cred-name { margin-bottom: .35rem; }
.creds .cred-verify { margin-top: .7rem; }

/* ==========================================================================
   Páginas internas: Contato, Sobre, Download, 404
   ========================================================================== */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(1.5rem, 1rem + 2vw, 3rem); }
.page-hero h1 { font-size: var(--fs-3xl); margin-bottom: 1.25rem; max-width: 18ch; }
.page-hero p:not(.kicker) { font-size: var(--fs-lg); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }

/* Rodapé: e-mail */
.footer-mail { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; font-size: var(--fs-sm); color: var(--muted); word-break: break-all; }
.footer-mail:hover { color: var(--ink); }
.footer-mail .icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.contact-channels { display: grid; gap: .85rem; }
.channel {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1.25rem 1.35rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.channel:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.channel-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.channel-icon .icon { width: 22px; height: 22px; }
.channel strong { display: block; font-size: var(--fs-base); font-weight: 600; }
.channel span > span { display: block; font-size: var(--fs-sm); color: var(--ink-2); word-break: break-all; }
.channel small { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: .15rem; }
.channel-arrow { width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur) var(--ease); }
.channel:hover .channel-arrow { transform: translateX(3px); color: var(--ink); }

.contact-form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.contact-form::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--brand-gradient); }
.contact-form h2 { font-size: var(--fs-xl); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rf-field select {
  width: 100%; padding: .75rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-sm);
}
.rf-field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.contact-form .btn { justify-self: start; }
.rf-msg a { color: inherit; text-decoration: underline; }

/* Sobre */
.about-mission { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.about-mission h2 { font-size: var(--fs-2xl); }
.about-mission p { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.6; }
.about-mission p + p { margin-top: 1rem; }
.service--link { color: inherit; }
.service--link .link-arrow { margin-top: auto; padding-top: .75rem; font-size: var(--fs-sm); }
.badge-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.badge-item { display: grid; justify-items: center; gap: .35rem; padding: 2rem 1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-align: center; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.badge-item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.badge-item img { width: 110px; height: 110px; margin-bottom: .75rem; filter: drop-shadow(0 8px 16px rgba(10, 30, 60, .18)); }
.badge-item strong { font-size: var(--fs-lg); background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-item span { font-size: var(--fs-sm); color: var(--muted); }

/* Download */
.download-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem; align-items: center; }
.download-hero .hero-actions { margin-top: 2rem; }
.download-mark { display: grid; place-items: center; }
.download-mark img { width: min(260px, 100%); height: auto; filter: drop-shadow(0 20px 40px rgba(10, 30, 60, .25)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.dl-version { font-weight: 400; opacity: .7; }
.dl-note { margin-top: .9rem; font-size: var(--fs-sm); color: var(--muted); }
.req-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.req-list li { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.req-list .icon { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.req-list strong { display: block; font-weight: 600; margin-bottom: .25rem; }
.req-list span { color: var(--muted); font-size: var(--fs-sm); }
.footnote a { color: var(--accent); text-decoration: underline; }
.releases { display: grid; gap: 1rem; }
.release { padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.release h3 { font-size: var(--fs-lg); display: inline; margin-right: .75rem; }
.release time { font-size: var(--fs-sm); color: var(--muted); }
.release ul { margin-top: .75rem; padding-left: 1.2rem; display: grid; gap: .35rem; color: var(--ink-2); }

/* 404 */
.notfound { padding-block: clamp(3rem, 2rem + 6vw, 8rem); }
.notfound-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.notfound h1 { font-size: var(--fs-3xl); margin-bottom: 1.25rem; max-width: 14ch; }
.notfound p:not(.kicker) { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; margin-bottom: 2rem; }
.nf-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; list-style: none; padding: 0; font-size: var(--fs-sm); }
.nf-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.nf-links a:hover { color: var(--ink); }
.nf-drawing svg { width: 100%; max-width: 460px; margin-inline: auto; overflow: visible; }
.nf-float { animation: nfFloat 4s ease-in-out infinite; transform-origin: center; }
@keyframes nfFloat { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(0, -10px) rotate(3deg); } }

@media (max-width: 860px) {
  .contact-grid, .about-mission, .download-hero, .notfound-grid { grid-template-columns: 1fr; }
  .download-mark { display: none; }
  .badge-row { grid-template-columns: 1fr; max-width: 420px; }
  .req-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .download-mark img, .nf-float { animation: none; }
  .channel:hover, .badge-item:hover { transform: none; }
}

/* Print real do NSyncro Draw (js/site-config.js → drawScreenshot) */
.app-shot { display: block; width: 100%; height: auto; }


/* "Avise-me quando lançar" */
.notify { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .6rem; }
.notify-title { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.notify-title .icon { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }
.notify-row { display: flex; gap: .5rem; }
.notify-row input { flex: 1; min-width: 0; height: 40px; padding: 0 .8rem; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-sm); }
.notify-row input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.notify-note { font-size: 11px; color: var(--muted); }
.notify-note a { text-decoration: underline; }

/* Redes sociais (rodapé) */
.social-row { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social-row a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.social-row a:hover { color: var(--ink); border-color: var(--line-strong); }
.social-row .icon { width: 18px; height: 18px; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card-link { display: flex; flex-direction: column; gap: .85rem; height: 100%; padding: clamp(1.4rem, 1rem + 1vw, 2rem); color: inherit; text-decoration: none; }
.post-card h2, .post-card h3 { font-size: var(--fs-lg); line-height: 1.25; letter-spacing: -0.01em; }
.post-card p:not(.post-meta) { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.post-more .icon { width: 16px; height: 16px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: var(--fs-xs); color: var(--muted); }
.post-cat { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.post-narrow { max-width: 760px; }
.post-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.post-hero h1 { font-size: var(--fs-3xl); line-height: 1.08; margin: .9rem 0 1.1rem; }
.post-lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.55; }
.post-back { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.5rem; }
.post-back:hover { color: var(--ink); }
.post-back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.post-author { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--muted); }
.post-author img { border-radius: 50%; }
.post-body { max-width: none; padding-bottom: 1rem; }
.post-body h2 { font-size: var(--fs-xl); margin: 2.25rem 0 .9rem; letter-spacing: -0.015em; }
.post-body > p:first-child { font-size: var(--fs-lg); }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .1em .4em; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); overflow-wrap: anywhere; }
.post-more-title { font-size: var(--fs-xl); margin-bottom: 1.25rem; }

/* ==========================================================================
   CENTRAL DE AJUDA
   ========================================================================== */
.help-search { position: relative; max-width: 560px; margin-top: 2rem; }
.help-search .icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.help-search input { width: 100%; padding: 1rem 1.2rem 1rem 3rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-base); }
.help-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.help-count { min-height: 1.4em; margin-top: .6rem; font-size: var(--fs-sm); color: var(--muted); }
.help-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.help-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface); }
.help-chip:hover { border-color: var(--accent); color: var(--ink); }
.help-chip .icon { width: 16px; height: 16px; color: var(--accent); }
.help-body { padding-bottom: 1rem; }
.help-body > * { max-width: 900px; }
.help-cat { padding-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.help-cat h2 { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-xl); margin-bottom: .75rem; }
.help-cat h2 .icon { width: 22px; height: 22px; color: var(--accent); }
.help-cat .answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.help-empty { padding: 2.5rem 0 1rem; color: var(--muted); }
.faq-help { margin-top: .75rem; }

@media (max-width: 900px) {
  .post-grid, .post-grid--2 { grid-template-columns: minmax(0, 1fr); }
}
.faq-layout .link-arrow { display: flex; width: fit-content; }
.app-window.app-window--media { border-radius: var(--r-lg); border-bottom: 1px solid var(--line-strong); }

/* Planos: alternância mensal / anual */
.billing { display: flex; width: fit-content; margin: 0 auto 2.25rem; padding: 4px; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.billing-opt { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.billing-opt:hover { color: var(--ink); }
.billing-opt.is-active { background: var(--ink); color: var(--bg); }
.billing-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing-badge { padding: .15rem .5rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.billing-opt.is-active .billing-badge { background: var(--brand-gradient, var(--accent)); color: #fff; }
[data-period="m"] .bill-y, [data-period="y"] .bill-m { display: none; }
.plan .price-note { margin: -1rem 0 1.25rem; font-size: var(--fs-sm); color: var(--accent); }

/* ==========================================================================
   PAGAMENTO CONCLUÍDO (obrigado.html)
   ========================================================================== */
.checkout-wrap { max-width: 720px; }
.checkout-state > * + * { margin-top: 1rem; }
.checkout-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; }
.checkout-sub { font-size: var(--fs-xl); margin-top: 2.5rem !important; }
.checkout-state > .checkout-icon, .checkout-state > .checkout-spinner { margin-bottom: .5rem; }
.checkout-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); }
.checkout-icon .icon { width: 26px; height: 26px; }
.checkout-icon--ok { background: var(--accent); border-color: transparent; color: var(--bg); }
.checkout-spinner { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: ns-spin 0.9s linear infinite; }
@keyframes ns-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checkout-spinner { animation-duration: 2.5s; } }
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem !important; padding: 1.1rem 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.key-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1rem, .9rem + .6vw, 1.35rem); letter-spacing: .04em; overflow-wrap: anywhere; color: var(--ink); }
.key-copied { min-height: 1.3em; font-size: var(--fs-sm); color: var(--accent); margin-top: .5rem !important; }
.key-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 1rem; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.key-meta dt { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.key-meta dd { margin: .25rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.checkout-steps { padding-left: 1.25rem; display: grid; gap: .6rem; color: var(--ink-2); }
.checkout-steps a, .checkout-help a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.checkout-help { color: var(--muted); font-size: var(--fs-sm); }
.key-meta [data-email-row] { grid-column: 1 / -1; }
