/* ==========================================================================
   SINTÉTICO — THE AI GUY · folha única

   01 Tokens              05 Footer + voltar ao topo   09 Insights e artigos
   02 Base e tipografia   06 Homepage                  10 FAQ · Contacto · Legais
   03 Primitivos          07 Serviços e detalhe        11 Responsivo
   04 Header              08 Casos · Sobre · Formação
   ========================================================================== */

/* ── 01 Tokens ─────────────────────────────────────────────────────────── */

:root,
[data-bs-theme="dark"] {
  --bg: #000000;
  --fg: #FFFFFF;
  --muted: #C4C4C4;
  --accent: #9488E5;
  --card: rgba(255, 255, 255, 0.1);
  --card2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line2: rgba(255, 255, 255, 0.14);
  --navBg: rgba(0, 0, 0, 0.82);
  --input: rgba(0, 0, 0, 0.35);
  --inv: #FFFFFF;
  --invFg: #000000;
  --botBg: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

[data-bs-theme="light"] {
  --bg: #F6F6F9;
  --fg: #14141A;
  --muted: #56565F;
  --accent: #5858FD;   /* mais escuro no claro, por contraste */
  --card: rgba(20, 20, 32, 0.045);
  --card2: rgba(20, 20, 32, 0.03);
  --line: rgba(20, 20, 32, 0.12);
  --line2: rgba(20, 20, 32, 0.16);
  --navBg: rgba(246, 246, 249, 0.85);
  --input: #FFFFFF;
  --inv: #14141A;
  --invFg: #FFFFFF;
  --botBg: #FFFFFF;
  color-scheme: light;
}

:root {
  /* Invariantes de marca — iguais nos dois temas. */
  --grad: linear-gradient(90deg, #9488E5 0%, #5858FD 100%);
  --accent-soft: rgba(148, 136, 229, 0.18);   /* pílulas de etiqueta */
  --accent-edge: rgba(148, 136, 229, 0.55);   /* hover / aberto */
  --linkedin: #0A66C2;

  --maxw: 1320px;
  --pad-x: 64px;                              /* padding lateral mínimo */

  --gutter: max(var(--pad-x), calc((100% - var(--maxw)) / 2));
  --shadow-top: 0 10px 30px rgba(0, 0, 0, 0.45);
  --t: 0.18s ease;                            /* transição base */

  /* Bootstrap: fazer o framework herdar os nossos tokens. */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--fg);
  --bs-border-color: var(--line);
  --bs-link-color: var(--fg);
  --bs-link-hover-color: var(--fg);
  --bs-font-sans-serif: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --bs-border-radius: 12px;
}

/* ── 02 Base e tipografia ──────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t), background-color var(--t), border-color var(--t), opacity var(--t);
}

a:hover { color: var(--fg); }

img, svg { max-width: 100%; }

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

/* Barra de scroll (10px, polegar translúcido) */
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 999px; }

/* Salto para o conteúdo (acessibilidade) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--inv);
  color: var(--invFg);
  border-radius: 0 0 12px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.h-hero    { font-size: clamp(38px, 4.6vw, 66px); line-height: 0.98; letter-spacing: -0.04em; }
.h-page    { font-size: clamp(34px, 4vw, 58px);  line-height: 1.02; letter-spacing: -0.035em; }
.h-article { font-size: clamp(32px, 3.7vw, 54px); line-height: 1.03; letter-spacing: -0.035em; }
.h-legal   { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -0.035em; }
.h2-xl     { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.h2-lg     { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -0.03em; }
.h2-md     { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1;  letter-spacing: -0.03em; }
.h2-sm     { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1;  letter-spacing: -0.03em; }
.h2-article{ font-size: clamp(25px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }

.lead-xl { font-size: 20px; line-height: 1.55; color: var(--muted); }
.lead-lg { font-size: 19px; line-height: 1.6;  color: var(--muted); }
.lead-md { font-size: 18px; line-height: 1.6;  color: var(--muted); }
.muted   { color: var(--muted); }

/* ── 03 Primitivos ─────────────────────────────────────────────────────── */

.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Pílula de etiqueta (mono, fundo translúcido de acento) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Pílula com borda (ex.: «CONSULTOR IA INDEPENDENTE · PORTUGAL») */
.pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Botões — três variantes, e nada mais. */
.btn-grad,
.btn-inv,
.btn-white,
.btn-outline-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--t), transform var(--t), background-color var(--t), border-color var(--t);
}

.btn-grad { background: var(--grad); color: #FFFFFF; }
.btn-grad:hover { color: #FFFFFF; opacity: 0.9; }

.btn-inv { background: var(--inv); color: var(--invFg); }
.btn-inv:hover { color: var(--invFg); opacity: 0.88; }

.btn-outline-line {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line2);
}
.btn-outline-line:hover { border-color: var(--accent-edge); color: var(--fg); }

.btn-lg-pill { padding: 17px 28px; font-size: 15px; }

.btn-white { background: #FFFFFF; color: #14141A; }
.btn-white:hover { color: #14141A; opacity: 0.9; }

/* Cartões */
.card-s,
.card-lg,
.card-xl {
  background: var(--card);
  border: 1px solid var(--line);
}
.card-s  { border-radius: 18px; padding: 30px; }
.card-lg { border-radius: 20px; padding: 40px; }
.card-xl { border-radius: 22px; }

.card-quiet { background: var(--card2); }
.card-hollow { background: transparent; }

/* Quadrado de ícone com gradiente */
.icon-sq {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad);
  color: #FFFFFF;
  font-size: 20px;
}
.icon-sq-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }

.brand-mark {
  flex: none;
  display: block;
  width: 36px;
  height: 36px;
}
.brand-mark-sm { width: 30px; height: 30px; }
.brand-mark-lg { width: 40px; height: 40px; }

/* Faixas de página */
.page-pad { padding: 72px var(--gutter) 90px; }
.bleed-x  { padding-inline: var(--gutter); }

.rule-top { border-top: 1px solid var(--line); }
.rule-bottom { border-bottom: 1px solid var(--line); }

/* Ponto de lista (7px, roxo) */
.dot-7 {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: #9488E5;
}

/* ── 04 Header ─────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: var(--navBg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-name span {
  margin-top: 3px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.nav-menu a:not([class*="btn-"]) {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}
.nav-menu a:not([class*="btn-"]):hover { color: var(--fg); }
.nav-menu a[aria-current="page"] {
  background: var(--card);
  color: var(--fg);
}

/* CTA que só existe dentro do menu mobile — no desktop o botão vive no header. */
.nav-menu-cta { display: none; }

.nav-tools { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
}
.lang-switch button {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--inv);
  color: var(--invFg);
}
.lang-switch button[disabled] { cursor: not-allowed; opacity: 0.55; }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.theme-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--t), color var(--t);
}
[data-bs-theme="dark"] .theme-toggle .t-moon,
[data-bs-theme="light"] .theme-toggle .t-sun {
  background: var(--grad);
  color: #FFFFFF;
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
}

/* ── 05 Footer + voltar ao topo ────────────────────────────────────────── */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 56px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.footer-col a:not([class*="btn-"]),
.footer-col span:not(.mono) { font-size: 15px; color: var(--muted); }
.footer-col a:not([class*="btn-"]):hover { color: var(--fg); }

.social-round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  color: var(--fg);
  font-size: 17px;
}
.social-round:hover { border-color: var(--accent-edge); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8A8A8A;
}
.footer-bar a { color: #8A8A8A; }
.footer-bar a:hover { color: var(--fg); }

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #FFFFFF;
  font-size: 20px;
  box-shadow: var(--shadow-top);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ── 05b Consentimento de cookies ──────────────────────────────────────── */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 0 var(--gutter) 20px;
  /* Só o cartão apanha cliques — o resto da faixa deixa passar. */
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-bar.is-in { opacity: 1; transform: translateY(0); }

.cookie-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: var(--navBg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-top);
}

.cookie-text h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.cookie-text p { max-width: 760px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie-text a { color: var(--accent); text-decoration: underline; }

.cookie-acts { display: flex; align-items: center; flex: none; flex-wrap: wrap; gap: 10px; }

.cookie-link {
  padding: 12px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--t);
}
.cookie-link:hover { color: var(--fg); }

/* Enquanto a barra está no ecrã, o «voltar ao topo» sai da frente. */
.cookie-bar-on .to-top { display: none; }

/* ── Painel de definições ── */

/* Enquanto o painel está aberto, a página por baixo não rola. */
.cookie-open, .cookie-open body { overflow: hidden; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.cookie-modal.is-in .cookie-backdrop { opacity: 1; }

.cookie-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line2);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-top);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cookie-modal.is-in .cookie-panel { opacity: 1; transform: translateY(0); }
.cookie-panel:focus { outline: none; }

.cookie-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-panel-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

.cookie-x {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.cookie-x:hover { background: var(--card); color: var(--fg); }

.cookie-rows { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }

.cookie-row {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card2);
}
.cookie-row-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.cookie-row-head label { font-size: 15px; font-weight: 600; }
.cookie-row p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.cookie-fixed {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}
.cookie-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform var(--t), background-color var(--t);
}
.cookie-switch:checked { background: var(--accent); border-color: var(--accent); }
.cookie-switch:checked::after { transform: translateX(20px); background: #FFFFFF; }

.cookie-nota { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cookie-panel-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ── Cartão do calendário com os serviços externos desligados (cal.js) ── */

.cal-locked {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card2);
}
.cal-locked i { color: var(--accent); font-size: 18px; line-height: 1.35; }
.cal-locked p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

@media (max-width: 768px) {
  .cookie-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .cookie-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-acts .cookie-link { grid-column: 1 / -1; padding-bottom: 2px; }
  .cookie-panel { padding: 22px; }
  .cookie-panel-acts { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar,
  .cookie-panel,
  .cookie-backdrop { transition: none; }
  .cookie-bar { transform: none; }
  .cookie-panel { transform: none; }
}

/* ── 06 Homepage ───────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 88px var(--gutter) 72px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-copy p { max-width: 560px; }
.hero-proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Cartão do assistente */
.assistant {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.assistant-title b { font-size: 14px; font-weight: 600; }
.assistant-title span {
  display: block;
  margin-top: 2px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.assistant-actions { display: flex; gap: 6px; flex: none; }
.assistant-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line2);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.assistant-actions button:hover { color: var(--fg); border-color: var(--accent-edge); }

.assistant-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 220px;
  max-height: 340px;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
}
.bubble {
  max-width: 82%;
  padding: 14px 17px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}
.bubble-me {
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  background: var(--grad);
  color: #FFFFFF;
}
.bubble-bot {
  align-self: flex-start;
  border-radius: 18px 18px 18px 4px;
  background: var(--botBg);
  border: 1px solid var(--line2);
  color: var(--fg);
}
.bubble-typing { display: inline-flex; gap: 4px; align-items: center; }
.bubble-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite;
}
.bubble-typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 14px;
}
.assistant-chips button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.assistant-chips button:hover { color: var(--fg); border-color: var(--accent-edge); }
.assistant-chips i { color: var(--accent); font-size: 14px; }

.assistant-form {
  display: flex;
  gap: 10px;
  padding: 0 20px 16px;
}
.assistant-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 17px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--input);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}
.assistant-form input::placeholder { color: var(--muted); }
.assistant-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.assistant-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Barra de ferramentas */
.toolbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.toolbar-label {
  flex: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.toolbar-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
.toolbar-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
}

.toolbar-track.is-marquee {
  animation: toolbar-slide var(--marquee-dur, 45s) linear infinite;
}
.toolbar-viewport:hover .toolbar-track.is-marquee,
.toolbar-viewport:focus-within .toolbar-track.is-marquee {
  animation-play-state: paused;
}

@keyframes toolbar-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-shift, 0px))); }
}

@media (prefers-reduced-motion: reduce) {
  .toolbar-track.is-marquee { animation: none; }
}
.toolbar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.toolbar-item .logo-img,
.toolbar-item i { width: 24px; height: 24px; font-size: 20px; color: var(--accent); }
.logo-img {
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* O problema */
.problem {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 72px;
  padding: 90px var(--gutter);
}
.problem-sticky { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.problem-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.problem-item h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.problem-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Método */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 32px;
}
.method-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.method-card > i { font-size: 30px; color: var(--accent); }
.method-card hr { margin: 0; border: 0; border-top: 1px solid var(--line2); opacity: 1; }
.method-card h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.method-card p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Linhas de serviço */
.service-row {
  display: grid;
  grid-template-columns: 56px 172px minmax(220px, 0.9fr) minmax(260px, 1.1fr) 40px;
  gap: 28px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  transition: background-color var(--t);
}
.service-row:hover { background: var(--card2); }
.service-row h3 { font-size: clamp(28px, 2.7vw, 38px); font-weight: 700; letter-spacing: -0.03em; }
.service-row p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.service-row .arrow { font-size: 26px; color: var(--muted); text-align: right; }
.service-row:hover .arrow { color: var(--fg); }

/* Métricas */
.metrics {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 84px var(--gutter);
  background: var(--card2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metrics-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 48px;
}
.metric { padding-left: 28px; border-left: 1px solid var(--line2); }
.metric b {
  display: block;
  font-size: clamp(46px, 5.3vw, 76px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Citação */
.quote-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
  padding: 90px var(--gutter);
}
.quote-grid blockquote {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* CTA final */
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 0 var(--gutter) 90px;
  padding: 60px;
  border-radius: 24px;
  background: var(--grad);
  color: #FFFFFF;
}
.cta-card h2 { font-size: clamp(30px, 3.1vw, 42px); font-weight: 700; letter-spacing: -0.03em; }
.cta-card p { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); max-width: 620px; }

/* ── 07 Serviços / Consultoria / Automação ─────────────────────────────── */

.svc-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  padding: 40px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.svc-card-left { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.svc-card-left h2 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; }
.svc-card-left p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.deliverables { display: flex; flex-direction: column; }
.deliverables li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.deliverables li:last-child { border-bottom: 0; }

/* Topo das páginas de detalhe */
.detail-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.back-link {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.back-link:hover { color: var(--fg); }

.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.kv-row:last-child { border-bottom: 0; }
.kv-row dt { font-size: 14px; color: var(--muted); font-weight: 400; }
.kv-row dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.step-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.step-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-head i { font-size: 22px; color: var(--accent); }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-list { display: flex; flex-direction: column; gap: 12px; }
.fit-list li { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ── 08 Casos · Sobre · Formação · Stack ───────────────────────────────── */

.case-card {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 285px;
  gap: 36px;
  align-items: center;
  padding: 40px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.case-card h2 { font-size: 26px; letter-spacing: -0.02em; }
.case-card p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.case-card p b { color: var(--fg); font-weight: 600; }
.case-num-par { font-size: clamp(24px, 2.3vw, 32px) !important; }

.case-figure {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 32px;
  border-left: 1px solid var(--line2);
}

.case-num {
  white-space: nowrap;
  font-size: clamp(32px, 3.1vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sobre */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card2);
}
.creds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cred {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.cred h3 { font-size: 17px; font-weight: 600; }
.cred p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cred > i, .cred > .logo-img { width: 24px; height: 24px; font-size: 24px; color: var(--accent); }

/* Formação */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.program-card h2 { font-size: 25px; letter-spacing: -0.03em; }
.program-card > p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.topics { display: flex; flex-direction: column; }
.topics li {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.topics li:last-child { border-bottom: 0; }
.topics i { color: var(--accent); }

.cert-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cert-mock {
  max-width: 480px;
  padding: 30px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line2);
}
.cert-mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cert-mock-foot > span:first-child { flex: 1 1 140px; min-width: 0; }
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--linkedin);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-linkedin:hover { color: #FFFFFF; opacity: 0.9; }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stack-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.stack-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.stack-card-head h2 { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 22px; letter-spacing: -0.02em; }
.stack-card-head .logo-img,
.stack-card-head > h2 > i { width: 26px; height: 26px; font-size: 24px; color: var(--accent); }
.stack-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ── 09 Insights e artigos ─────────────────────────────────────────────── */

.insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.subscribe-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.subscribe-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;                 /* em telemóvel o botão desce em vez de empurrar */
}
.subscribe-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 0;                    /* deixa encolher abaixo do conteúdo */
}
.subscribe-field i {
  position: absolute;
  left: 18px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;            /* o clique no ícone tem de focar o campo */
}
.subscribe-field input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--input);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color var(--t);
}
.subscribe-field input::placeholder { color: var(--muted); }
.subscribe-field input:focus {
  outline: none;
  border-color: var(--accent-edge);
}
.subscribe-row .btn-grad { flex: none; }


/* Faixa da ferramenta gratuita, acima da grelha de artigos. */
.tool-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
  border: 1px solid var(--line2);
  border-radius: 20px;
  background: var(--card2);
}
.tool-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tool-banner-txt h2 { font-size: 21px; letter-spacing: -0.02em; }
.tool-banner-txt p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.tool-banner .btn-grad { flex: none; }

.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--t);
}
.insight-card:hover { border-color: var(--accent-edge); }
.insight-cover {
  height: 150px;
  width: 100%;
  object-fit: cover;
  background: rgba(148, 136, 229, 0.14);
}
.insight-body { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.insight-body h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.insight-body p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.insight-meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Artigo */
.article {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: calc(760px + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 64px var(--pad-x) 96px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.article-lead { font-size: 22px; line-height: 1.5; color: var(--fg); }

.article-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(148, 136, 229, 0.14);
}
.author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #FFFFFF;
  font-size: 18px;
}
.article-sections { display: flex; flex-direction: column; gap: 34px; }
.article-sections section { display: flex; flex-direction: column; gap: 14px; }
.article-sections p { font-size: 18px; line-height: 1.7; color: var(--muted); }
.fix-box {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.fix-box i { flex: none; font-size: 20px; color: var(--accent); }
.fix-box p { font-size: 16px; line-height: 1.6; color: var(--fg); }
.takeaways {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px;
  border-radius: 20px;
  background: var(--card2);
  border: 1px solid var(--line);
}
.takeaways h2 { font-size: 28px; letter-spacing: -0.03em; }
.takeaways li { display: flex; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ── 10 FAQ · Contacto · Legais · 404 ──────────────────────────────────── */

.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* Acordeão do Bootstrap vestido com os tokens do site */
.accordion { --bs-accordion-border-width: 0; display: flex; flex-direction: column; gap: 14px; }
.accordion-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  transition: border-color var(--t);
}
.accordion-item:has(.accordion-collapse.show) { border-color: var(--accent-edge); }
.accordion-button {
  padding: 26px 28px;
  background: transparent;
  color: var(--fg);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: none;
}
.accordion-button:not(.collapsed) { background: transparent; color: var(--fg); box-shadow: none; }
.accordion-button::after {
  content: "+";
  width: auto;
  height: auto;
  background: none;
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transform: none;
}
.accordion-button:not(.collapsed)::after {
  content: "−";
  background: none;
  transform: none;
}
.accordion-body { padding: 0 28px 26px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ── Revelação no scroll ──────────────────────────────────────────────────── */
.reveal-on main > section,
.reveal-on main > .page-pad > *,
.reveal-on main > .article > *,
.reveal-on main > .legal > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-anchor: none;
}
.reveal-on main > section.is-in,
.reveal-on main > .page-pad > .is-in,
.reveal-on main > .article > .is-in,
.reveal-on main > .legal > .is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on main > section,
  .reveal-on main > .page-pad > *,
  .reveal-on main > .article > *,
  .reveal-on main > .legal > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot {
  padding: 14px 10px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}
.slot:hover { border-color: var(--accent-edge); }
.slot[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #FFFFFF; }

.cal-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cal-cta .btn-grad { flex: none; }
.cal-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.cal-meta i { margin-right: 6px; opacity: 0.8; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); }
.field .req { color: var(--accent); }
.form-control,
.field input,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--input);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #E5484D; }
.field-error { font-size: 13px; color: #E5484D; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: #5858FD; width: 16px; height: 16px; flex: none; }

/* Estados de sucesso e erro */
.alert-box {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: var(--card2);
  font-size: 15px;
  line-height: 1.55;
}
.alert-box i { flex: none; font-size: 19px; }
.alert-ok { border-color: var(--accent-edge); }
.alert-ok i { color: var(--accent); }
.alert-bad { border-color: rgba(229, 72, 77, 0.55); }
.alert-bad i { color: #E5484D; }

.is-busy { opacity: 0.6; pointer-events: none; }

/* Honeypot: fora do ecrã, mas não display:none (alguns bots ignoram). */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Legais */
/* Mesma razão que .article: 820px de texto, padding por fora. */
.legal { max-width: calc(820px + 2 * var(--pad-x)); margin: 0 auto; padding: 64px var(--pad-x) 90px; display: flex; flex-direction: column; gap: 24px; }
.legal-nav { display: flex; gap: 8px; }
.legal-nav a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  font-size: 14px;
  color: var(--muted);
}
.legal-nav a[aria-current="page"] { background: var(--grad); border-color: transparent; color: #FFFFFF; }
.legal-block { padding: 30px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.legal-block[id] { scroll-margin-top: 92px; }
.legal-block h2 { font-size: 22px; margin-bottom: 16px; letter-spacing: -0.02em; }
.legal-block li { display: flex; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.legal-block li i { color: var(--accent); }
.legal-block a { color: var(--accent); text-decoration: underline; }
.legal-block a:hover { color: var(--fg); }
.legal-updated {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Listas sem marcas em todo o site */
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Padrão de riscas dos placeholders (retrato, capas) */
.stripes {
  background-image: repeating-linear-gradient(45deg,
    var(--line2) 0, var(--line2) 1px, transparent 1px, transparent 11px);
}

/* 404 */
.notfound { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 140px var(--gutter); }

/* ── 11 Responsivo ───────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  :root { --pad-x: 40px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .assistant { min-height: 480px; }
  .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-top { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid,
  .stack-grid,
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-row {
    grid-template-columns: 56px 1fr 40px;
    column-gap: 24px;
    row-gap: 10px;
  }
  .service-row .icon-sq { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .service-row .svc-tag { grid-column: 2; grid-row: 1; }
  .service-row h3       { grid-column: 2; grid-row: 2; }
  .service-row p        { grid-column: 2; grid-row: 3; }
  .service-row .arrow   { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  .case-card { grid-template-columns: 1fr; gap: 24px; }
  .case-num { padding-left: 0; border-left: 0; }
  .problem { gap: 40px; padding-block: 64px; }
  .problem-sticky { position: static; }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu .nav-menu-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 12px;
  }
  .nav-burger { display: flex; }
  .site-nav { position: sticky; padding: 14px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-card { grid-template-columns: 1fr; gap: 24px; }
  .cta-card { padding: 40px; margin-inline: var(--pad-x); }
  .cert-block { gap: 32px; padding: 48px 0; }
}

@media (max-width: 768px) {
  :root { --pad-x: 22px; }
  body { font-size: 15px; }
  .page-pad { padding: 48px var(--pad-x) 64px; }
  .hero { padding: 48px var(--pad-x) 48px; }
  .article { padding: 40px var(--pad-x) 64px; }
  .legal { padding: 40px var(--pad-x) 64px; }
  .method-grid,
  .steps-grid,
  .program-grid,
  .stack-grid,
  .insight-grid,
  .creds-grid,
  .fit-grid,
  .form-grid { grid-template-columns: 1fr; }
  .tool-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .problem { grid-template-columns: 1fr; }
  .problem-item { grid-template-columns: 1fr; gap: 10px; }
  .metrics { padding: 48px var(--pad-x); gap: 28px; }
  .metric { padding-left: 18px; }
  .service-row {
    grid-template-columns: auto 1fr auto;
    gap: 14px 16px;
    padding: 28px 0;
    align-items: center;
  }
  .service-row .icon-sq { grid-row: 1; align-self: center; }
  .service-row .svc-tag { grid-column: 2; }
  .service-row .arrow {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    font-size: 22px;
  }
  .service-row h3,
  .service-row p { grid-column: 1 / -1; }
  .card-lg, .svc-card, .case-card { padding: 26px; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .subscribe { width: 100%; }
  .subscribe-row .btn-grad { flex: 1 1 100%; justify-content: center; }
  .assistant-log { max-height: 300px; }
  .to-top { right: 16px; bottom: 16px; }
  .article-lead { font-size: 19px; }
  .article-sections p { font-size: 17px; }
}

@media (max-width: 576px) {
  .site-nav { gap: 10px; padding: 12px 16px; }
  .nav-tools { gap: 8px; }

  .lang-switch { font-size: 10px; }
  .lang-switch button { padding: 5px 8px; }

  .theme-toggle { padding: 3px; gap: 2px; }
  .theme-toggle span { width: 26px; height: 26px; }
  .theme-toggle i { font-size: 12px; }

  .nav-burger { width: 34px; height: 34px; font-size: 16px; }

  .brand { gap: 9px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name b { font-size: 15px; }
}

@media print {
  .site-nav, .site-footer, .to-top, .assistant-form, .assistant-chips, .assistant-actions,
  .cookie-bar, .cookie-modal { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
}
