/* =====================================================================
   Salvus — Folha de estilos principal
   Mobile-first · Variáveis em :root · Modo claro/escuro via [data-theme]
   Secções:
     1. Tokens (cores, tipografia, espaçamento)
     2. Reset e base
     3. Utilitários de layout (container, grid, section)
     4. Tipografia
     5. Botões e ligações
     6. Header / navegação
     7. Footer
     8. Componentes globais (WhatsApp, barra mobile, assistente, popup, cookies, cursor)
     9. Componentes de conteúdo (cards, FAQ, timeline, stats, testemunhos…)
    10. Hero e home
    11. Como funciona (scrollytelling)
    12. Simulador
    13. Contacto / marcação
    14. Blog / artigos / casos / sobre / legal
    15. Animações, reveal, transições de página
    16. Acessibilidade e reduced-motion
   ===================================================================== */

/* ------------------------------------------------------------------
   1. TOKENS
------------------------------------------------------------------ */
:root {
  /* Marca */
  --navy-950: #050c1a;
  --navy-900: #0a1730;
  --navy-800: #10244a;
  --navy-700: #163263;
  --navy-600: #1e4280;
  --emerald-700: #0a6b4b;
  --emerald-600: #0e8a60;
  --emerald-500: #16a878;
  --emerald-400: #3cc695;
  --emerald-100: #d8f3e8;
  --gold-500: #c9a44a;
  --gold-400: #dfc176;
  --gold-100: #f7eed6;
  --danger: #d6455d;
  --warning: #e0a428;
  --success: #16a878;

  /* Tema claro (por omissão) */
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --surface-3: #e3e9f3;
  --text: #0a1730;
  --text-muted: #51607a;
  --text-soft: #7b889e;
  --border: rgba(10, 23, 48, 0.1);
  --border-strong: rgba(10, 23, 48, 0.2);
  --accent: var(--emerald-600);
  --accent-strong: var(--emerald-700);
  --accent-soft: var(--emerald-100);
  --accent-contrast: #ffffff;
  --gold: var(--gold-500);
  --shadow-sm: 0 1px 2px rgba(10, 23, 48, .06), 0 2px 8px rgba(10, 23, 48, .05);
  --shadow-md: 0 8px 24px -8px rgba(10, 23, 48, .18), 0 2px 6px rgba(10, 23, 48, .06);
  --shadow-lg: 0 30px 60px -20px rgba(10, 23, 48, .28), 0 8px 20px -10px rgba(10, 23, 48, .12);
  --header-bg: rgba(245, 247, 251, 0.78);
  --on-dark: #eef2f9;
  --on-dark-muted: #a9b7cf;

  /* Tipografia */
  --font-serif: "Fraunces", "Georgia", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  --fs-3xl: clamp(2.4rem, 1.5rem + 4.5vw, 4.6rem);
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Espaçamento e forma */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(4rem, 6vw + 1rem, 7.5rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --container: 1180px;
  --gutter: 16px;
  --header-h: 84px;
  --header-h-small: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur: .5s;
  color-scheme: light;
}

/* Tema escuro: via preferência do sistema (sem escolha guardada) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070f20;
    --bg-alt: #0a1730;
    --surface: #0e1d3a;
    --surface-2: #132446;
    --surface-3: #1a2e55;
    --text: #eef2f9;
    --text-muted: #a9b7cf;
    --text-soft: #7f8fab;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --accent: var(--emerald-400);
    --accent-strong: var(--emerald-500);
    --accent-soft: rgba(60, 198, 149, 0.14);
    --accent-contrast: #061a12;
    --gold: var(--gold-400);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .55);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    --header-bg: rgba(7, 15, 32, 0.72);
    color-scheme: dark;
  }
}
/* Tema escuro: escolha explícita do utilizador */
:root[data-theme="dark"] {
  --bg: #070f20;
  --bg-alt: #0a1730;
  --surface: #0e1d3a;
  --surface-2: #132446;
  --surface-3: #1a2e55;
  --text: #eef2f9;
  --text-muted: #a9b7cf;
  --text-soft: #7f8fab;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: var(--emerald-400);
  --accent-strong: var(--emerald-500);
  --accent-soft: rgba(60, 198, 149, 0.14);
  --accent-contrast: #061a12;
  --gold: var(--gold-400);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  --header-bg: rgba(7, 15, 32, 0.72);
  color-scheme: dark;
}

/* ------------------------------------------------------------------
   2. RESET E BASE
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-small) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
body.has-mobile-bar { padding-bottom: 72px; }
@media (min-width: 900px) { body.has-mobile-bar { padding-bottom: 0; } }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
::selection { background: var(--accent); color: var(--accent-contrast); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 1000;
  background: var(--accent); color: var(--accent-contrast);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------
   3. LAYOUT
------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1360px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface-2); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--dark .section__eyebrow { color: var(--emerald-400); }
.section--dark .text-muted { color: var(--on-dark-muted); }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.stack { --gap: var(--space-4); }
.stack > * + * { margin-top: var(--gap); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--center { justify-content: center; }
[hidden] { display: none !important; }
.center { text-align: center; }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); } .mt-8 { margin-top: var(--space-8); }
.mb-6 { margin-bottom: var(--space-6); }
.mx-auto { margin-inline: auto; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.small { font-size: var(--fs-sm); }
.lead { font-size: var(--fs-md); color: var(--text-muted); max-width: 60ch; }
.measure { max-width: 68ch; }

/* ------------------------------------------------------------------
   4. TIPOGRAFIA
------------------------------------------------------------------ */
h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1, .h1 { font-size: var(--fs-3xl); }
h2, .h2 { font-size: var(--fs-2xl); }
h3, .h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.section__head { max-width: 760px; margin-bottom: var(--space-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-4);
}
.section__eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section__head--center .section__eyebrow::before { display: none; }
.highlight { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 .1em; }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--space-7); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--space-6); }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
  margin: var(--space-6) 0; padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif); font-size: var(--fs-md); font-style: italic;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout, .callout {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md);
  padding: var(--space-5); margin: var(--space-6) 0; display: flex; gap: var(--space-4);
}
.callout p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.callout p strong { color: var(--text); }
.prose .callout svg, .callout svg { flex: none; width: 24px; height: 24px; color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text-muted); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }

/* ------------------------------------------------------------------
   5. BOTÕES E LIGAÇÕES
------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--accent-contrast);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em; line-height: 1;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--btn-bg) 70%, transparent); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-contrast); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--navy-950); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--light { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--light:hover { --btn-bg: rgba(255,255,255,.18); box-shadow: none; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn--lg { padding: 1.1rem 2rem; font-size: var(--fs-base); }
.btn--sm { padding: .6rem 1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); font-size: var(--fs-sm);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.link-underline:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------
   6. HEADER
------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .35s var(--ease), background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled { height: var(--header-h-small); border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header.is-scrolled::before { opacity: 1; }
/* Em páginas com hero escuro o header começa transparente com texto claro */
.site-header.on-dark:not(.is-scrolled) { color: #fff; }
.site-header.on-dark:not(.is-scrolled) .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.3); }
.site-header .container { display: flex; align-items: center; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand__mark { width: 36px; height: 36px; flex: none; transition: width .3s, height .3s; }
.site-header.is-scrolled .brand__mark { width: 30px; height: 30px; }
.brand__name { display: none; }
@media (min-width: 350px) { .brand__name { display: inline; } }
.nav { display: none; margin-left: auto; }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
  display: inline-block; padding: .55rem .8rem; border-radius: 999px; font-weight: 600; font-size: var(--fs-sm);
  position: relative; transition: background .25s, color .25s; color: inherit;
}
.nav__link:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--accent);
}
/* Acções (telefone, modo claro/escuro, CTA, hambúrguer) sempre encostadas à direita.
   Em ecrãs pequenos a .nav está escondida, por isso o margin-left:auto fica aqui;
   em desktop passa para a .nav e as acções seguem-na. */
.header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 1024px) { .nav ~ .header__actions { margin-left: 0; } }
.header__phone { display: none; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--fs-sm); padding: .55rem .8rem; border-radius: 999px; }
.header__phone svg { width: 18px; height: 18px; }
.header__phone:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.header__cta { display: none; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent); transition: background .25s, transform .3s var(--ease);
}
.theme-toggle:hover { background: color-mix(in srgb, currentColor 8%, transparent); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.menu-toggle { position: relative; }
.menu-toggle span { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .nav { display: block; }
  .header__phone { display: inline-flex; }
  .header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 850; background: var(--bg);
  padding: calc(var(--header-h-small) + 1.5rem) var(--gutter) 6rem;
  display: flex; flex-direction: column; gap: var(--space-5);
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.mobile-menu__list a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; padding: .8rem 0; border-bottom: 1px solid var(--border);
}
.mobile-menu__list a svg { width: 20px; height: 20px; color: var(--accent); }
.mobile-menu__sub { display: flex; flex-direction: column; gap: .35rem; margin: .3rem 0 .6rem; }
.mobile-menu__sub a { font-family: var(--font-sans); font-size: var(--fs-sm); color: var(--text-muted); border: 0; padding: .35rem 0 .35rem 1rem; }
.mobile-menu__actions { display: flex; flex-direction: column; gap: .7rem; margin-top: auto; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header, body.menu-open .site-header.on-dark:not(.is-scrolled) { color: var(--text); }
body.menu-open .site-header::before { opacity: 1; }

/* ------------------------------------------------------------------
   7. FOOTER
------------------------------------------------------------------ */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: var(--space-8) 0 var(--space-6); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(22,168,120,.18), transparent 60%); pointer-events: none;
}
.footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: var(--space-4); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer__links li { margin-bottom: .55rem; }
.footer__links a { transition: color .2s; font-size: var(--fs-sm); }
.footer__links a:hover { color: #fff; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; font-size: var(--fs-sm); }
.footer__contact svg { width: 18px; height: 18px; flex: none; color: var(--emerald-400); margin-top: .15rem; }
.footer__bottom {
  margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: var(--fs-xs);
}
.footer__bottom a:hover { color: #fff; }
.footer__disclaimer { font-size: var(--fs-xs); margin-top: var(--space-5); max-width: 70ch; opacity: .8; }

/* ------------------------------------------------------------------
   8. COMPONENTES GLOBAIS
------------------------------------------------------------------ */
/* Balão de contacto flutuante: abre um menu com Agente de I.A. · WhatsApp · SMS */
.contact-fab { position: fixed; right: 18px; bottom: 90px; z-index: 800; }
@media (min-width: 900px) { .contact-fab { bottom: 28px; right: 28px; } }
.contact-fab__btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37,211,102,.7);
  transition: transform .3s var(--ease), background .3s;
}
.contact-fab__btn svg { width: 28px; height: 28px; }
.contact-fab__btn:hover { transform: scale(1.06); }
.contact-fab__btn::before, .contact-fab__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s infinite; pointer-events: none;
}
.contact-fab__btn::after { animation-delay: 1.2s; }
.contact-fab.is-open .contact-fab__btn { background: var(--navy-900); transform: rotate(90deg); box-shadow: var(--shadow-md); }
.contact-fab.is-open .contact-fab__btn::before, .contact-fab.is-open .contact-fab__btn::after { animation: none; opacity: 0; }
.contact-fab__icon-open, .contact-fab__icon-close { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .25s, transform .3s var(--ease); }
.contact-fab__icon-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.contact-fab.is-open .contact-fab__icon-open { opacity: 0; transform: scale(.6); }
.contact-fab.is-open .contact-fab__icon-close { opacity: 1; transform: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.contact-fab__menu {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: min(320px, calc(100vw - 36px));
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: .6rem; display: grid; gap: .35rem;
  transform-origin: bottom right; transform: scale(.92) translateY(10px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.contact-fab.is-open .contact-fab__menu { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.contact-fab__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); padding: .4rem .6rem .2rem; margin: 0; }
.contact-fab__opt {
  display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--radius-md);
  text-align: left; color: inherit; transition: background .2s, transform .2s var(--ease); width: 100%;
}
.contact-fab__opt:hover, .contact-fab__opt:focus-visible { background: var(--surface-2); transform: translateX(2px); }
.contact-fab__opt strong { display: block; font-size: var(--fs-sm); }
.contact-fab__opt small { display: block; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.3; }
.contact-fab__opt > svg { width: 16px; height: 16px; color: var(--text-soft); }
.contact-fab__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.contact-fab__ico svg { width: 20px; height: 20px; }
.contact-fab__opt--ai .contact-fab__ico { background: linear-gradient(135deg, var(--navy-600, #1e4280), var(--emerald-500, #16a878)); }
.contact-fab__opt--wa .contact-fab__ico { background: #25d366; }
.contact-fab__opt--sms .contact-fab__ico { background: var(--navy-900); }
/* Nome antigo mantido por compatibilidade (links data-site="whatsapp" nas páginas) */
.whatsapp-fab { display: none; }

/* Barra inferior mobile */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 820;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.25);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem;
  font-weight: 700; font-size: var(--fs-sm); background: var(--surface); color: var(--text);
}
.mobile-bar a svg { width: 18px; height: 18px; }
.mobile-bar a.is-accent { background: var(--accent); color: var(--accent-contrast); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* Assistente "Precisa de ajuda?" */
.assistant { position: fixed; left: 18px; bottom: 90px; z-index: 800; }
@media (min-width: 900px) { .assistant { left: auto; right: 100px; bottom: 32px; } }
.assistant__toggle {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem .7rem .7rem; border-radius: 999px;
  background: var(--navy-900); color: #fff; font-weight: 700; font-size: var(--fs-sm); box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--ease);
}
.assistant__toggle:hover { transform: translateY(-2px); }
.assistant__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--emerald-500); display: grid; place-items: center; position: relative; }
.assistant__avatar svg { width: 16px; height: 16px; }
.assistant__avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; border: 2px solid var(--navy-900); }
.assistant__panel {
  position: absolute; bottom: calc(100% + 12px); left: 0; width: min(360px, calc(100vw - 36px));
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh;
  transform-origin: bottom left; transform: scale(.92) translateY(10px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
@media (min-width: 900px) { .assistant__panel { left: auto; right: 0; transform-origin: bottom right; } }
.assistant.is-open .assistant__panel { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.assistant__head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--navy-900); color: #fff; }
.assistant__head strong { display: block; font-size: var(--fs-sm); }
.assistant__head small { font-size: var(--fs-xs); opacity: .7; }
.assistant__close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.assistant__close:hover { background: rgba(255,255,255,.1); }
.assistant__close svg { width: 16px; height: 16px; }
.assistant__body { padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; scroll-behavior: smooth; }
.chat-msg { max-width: 88%; padding: .7rem .9rem; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.5; animation: chatIn .35s var(--ease) both; }
.chat-msg--bot { background: var(--surface-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg--user { background: var(--accent); color: var(--accent-contrast); border-bottom-right-radius: 4px; align-self: flex-end; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } }
.chat-options { display: flex; flex-wrap: wrap; gap: .45rem; animation: chatIn .35s var(--ease) both; }
.chat-options button, .chat-options a {
  padding: .5rem .85rem; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-size: var(--fs-xs); font-weight: 700;
  transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: .4rem;
}
.chat-options button:hover, .chat-options a:hover { background: var(--accent); color: var(--accent-contrast); }
.chat-options a.is-solid { background: var(--accent); color: var(--accent-contrast); }
.chat-options a svg { width: 14px; height: 14px; }
.chat-typing { display: inline-flex; gap: 4px; padding: .8rem 1rem; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-soft); animation: typing 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.assistant__input { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--border); background: var(--surface); }
.assistant__input[hidden] { display: none; }
.assistant__input input { flex: 1; min-width: 0; padding: .6rem .8rem; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface-2); font-size: var(--fs-sm); color: var(--text); }
.assistant__input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.assistant__input input:disabled { opacity: .6; }
.assistant__input button { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); display: grid; place-items: center; flex: none; transition: transform .2s var(--ease); }
.assistant__input button:hover { transform: translateX(2px); }
.assistant__input button svg { width: 18px; height: 18px; }
.assistant__foot { padding: .6rem 1rem; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-soft); text-align: center; }

/* Popup de saída */
.exit-popup {
  position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: var(--gutter);
  background: rgba(5,12,26,.6); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.exit-popup.is-open { opacity: 1; visibility: visible; }
.exit-popup__card {
  width: 100%; max-width: 520px; background: var(--surface); color: var(--text); border-radius: var(--radius-xl);
  padding: var(--space-6); box-shadow: var(--shadow-lg); position: relative; border: 1px solid var(--border);
  transform: translateY(16px) scale(.97); transition: transform .4s var(--ease);
}
.exit-popup.is-open .exit-popup__card { transform: none; }
.exit-popup__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.exit-popup__close:hover { background: var(--surface-2); }
.exit-popup__close svg { width: 18px; height: 18px; }
.exit-popup__card h3 { margin-top: var(--space-3); }
.exit-popup__card .cluster { margin-top: var(--space-5); }

/* Banner de cookies */
.cookie-banner {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 940;
  width: min(680px, calc(100% - 2 * var(--gutter)));
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .4s, transform .4s var(--ease), visibility .4s;
}
@media (min-width: 900px) { .cookie-banner { bottom: 28px; } }
.cookie-banner.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cookie-banner p { flex: 1 1 280px; font-size: var(--fs-sm); margin: 0; }
.cookie-banner .cluster { gap: .5rem; }

/* Cursor personalizado (desktop) */
.cursor-dot, .cursor-ring { display: none; }
@media (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor textarea, body.has-cursor select, body.has-cursor label { cursor: none; }
  body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { display: block; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2000; border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: difference; }
  .cursor-dot { width: 6px; height: 6px; background: #fff; }
  .cursor-ring { width: 36px; height: 36px; border: 1.5px solid rgba(255,255,255,.9); transition: width .25s var(--ease), height .25s var(--ease), opacity .25s; }
  body.cursor-hover .cursor-ring { width: 56px; height: 56px; opacity: .7; }
  body.cursor-hidden .cursor-dot, body.cursor-hidden .cursor-ring { opacity: 0; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); z-index: 990;
  background: var(--navy-900); color: #fff; padding: .8rem 1.2rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .35s var(--ease);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------
   9. COMPONENTES DE CONTEÚDO
------------------------------------------------------------------ */
/* Card base */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm); position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card--link { display: flex; flex-direction: column; gap: var(--space-4); height: 100%; }
.card--link:hover { transform: translateY(-4px); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: var(--space-2);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }
.card .link-arrow { margin-top: auto; }
.card--featured { background: var(--navy-900); color: var(--on-dark); border-color: transparent; }
.card--featured p { color: var(--on-dark-muted); }
.card--featured .card__icon { background: rgba(255,255,255,.08); color: var(--emerald-400); }

/* Tilt 3D */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt] .tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 60%);
}
[data-tilt]:hover .tilt-glare { opacity: 1; }
[data-tilt] > *:not(.tilt-glare) { transform: translateZ(20px); }

/* Pills / badges */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--surface-2); color: var(--text-muted); }
.pill--accent { background: var(--accent-soft); color: var(--accent); }
.pill--gold { background: var(--gold-100); color: #7a5c13; }
[data-theme="dark"] .pill--gold { background: rgba(201,164,74,.16); color: var(--gold-400); }
.pill--danger { background: rgba(214,69,93,.12); color: var(--danger); }

/* Lista com ícones de verificação */
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .75rem; }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: .2rem; }

/* FAQ (details) */
.faq { display: flex; flex-direction: column; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  transition: transform .35s var(--ease), background .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq__body { padding: 0 1.25rem 1.2rem; color: var(--text-muted); font-size: var(--fs-sm); }
.faq__body p:last-child { margin: 0; }

/* Barra de números */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: var(--space-4) 0; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--border); }
@media (max-width: 899px) { .stat:nth-child(3)::before { display: none; } }
.stat__value { font-family: var(--font-serif); font-size: clamp(2.2rem, 2rem + 2vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.stat__value small { font-size: .5em; vertical-align: super; color: var(--accent); }
.stat__label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: .5rem; }

/* Timeline horizontal (home) */
.timeline { position: relative; display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); } }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.timeline__progress { position: absolute; left: 23px; top: 10px; width: 2px; height: 0; background: var(--accent); transition: height 1.6s var(--ease-io); }
@media (min-width: 900px) {
  .timeline::before { left: 10%; right: 10%; top: 23px; bottom: auto; width: auto; height: 2px; }
  .timeline__progress { left: 10%; top: 23px; height: 2px; width: 0; transition: width 1.8s var(--ease-io); }
  .timeline.is-active .timeline__progress { width: 80%; }
}
@media (max-width: 899px) { .timeline.is-active .timeline__progress { height: calc(100% - 20px); } }
.timeline__item { position: relative; padding-left: 64px; }
@media (min-width: 900px) { .timeline__item { padding-left: 0; text-align: center; } }
.timeline__num {
  counter-increment: step; position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; color: var(--text-muted); transition: all .5s var(--ease); transition-delay: var(--d, 0s);
}
.timeline__num::before { content: counter(step, decimal-leading-zero); }
@media (min-width: 900px) { .timeline__num { position: relative; margin: 0 auto var(--space-4); } }
.timeline.is-active .timeline__num { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); box-shadow: 0 0 0 8px var(--accent-soft); }
.timeline__item h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: .3rem; }
.timeline__item p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* Testemunhos carousel */
.carousel { position: relative; }
.carousel__track { display: grid; overflow: hidden; }
.carousel__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.carousel__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.testimonial {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6);
  display: grid; gap: var(--space-5); box-shadow: var(--shadow-sm);
}
@media (min-width: 800px) { .testimonial { grid-template-columns: 1fr auto; align-items: end; padding: var(--space-7); } }
.testimonial__quote { font-family: var(--font-serif); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); line-height: 1.4; font-weight: 500; margin: 0; }
.testimonial__quote::before { content: "“"; color: var(--gold); font-size: 1.6em; line-height: 0; vertical-align: -.3em; margin-right: .1em; }
.testimonial__meta { display: flex; align-items: center; gap: .9rem; }
.testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-serif); }
.testimonial__meta strong { display: block; font-size: var(--fs-sm); }
.testimonial__meta span { font-size: var(--fs-xs); color: var(--text-muted); }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-5); }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__dots { display: flex; gap: .5rem; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: all .3s; padding: 0; }
.carousel__dots button[aria-selected="true"] { width: 24px; border-radius: 4px; background: var(--accent); }

/* Antes / Depois */
.compare { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--surface); user-select: none; }
.compare__panel { padding: var(--space-6) var(--space-5); min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 700px) { .compare__panel { padding: var(--space-7); } }
.compare__panel--before { background: linear-gradient(160deg, #3a1020, #1b0a14); color: #fbe3e8; }
.compare__panel--after { position: absolute; inset: 0; background: linear-gradient(160deg, var(--navy-800), #0b3a2d); color: #e3f8ef; clip-path: inset(0 0 0 var(--split, 50%)); }
.compare__panel .pill { background: rgba(255,255,255,.12); color: inherit; margin-bottom: var(--space-4); align-self: flex-start; }
.compare__panel h3 { color: inherit; }
.compare__rows { display: grid; gap: .6rem; max-width: 440px; }
.compare__row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); padding: .6rem .9rem; background: rgba(255,255,255,.07); border-radius: 10px; }
.compare__row strong { font-variant-numeric: tabular-nums; }
.compare__panel--after .compare__row:last-child { background: rgba(60,198,149,.22); }
.compare__panel--before .compare__row:last-child { background: rgba(214,69,93,.3); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none;
}
.compare__handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy-900); display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
  box-shadow: var(--shadow-md);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.compare__range:focus-visible ~ .compare__handle::after { outline: 3px solid var(--accent); }
.compare__labels { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-soft); margin-top: .8rem; }

/* CTA final */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--navy-900); color: var(--on-dark); padding: clamp(2.5rem, 5vw, 5rem);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40%; background:
    radial-gradient(circle at 20% 30%, rgba(22,168,120,.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,164,74,.25), transparent 40%);
  animation: drift 18s linear infinite alternate;
}
@keyframes drift { to { transform: translate(6%, 4%) rotate(8deg); } }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); max-width: 56ch; margin-inline: auto; }
.cta-band .cluster { justify-content: center; margin-top: var(--space-6); }
.cta-band .section__eyebrow::before { display: none; }
.cta-band__note { font-size: var(--fs-xs); margin-top: var(--space-4); opacity: .7; }

/* Formulários */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field label small { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: var(--fs-xs); color: var(--danger); display: none; }
.field.is-invalid .field__error { display: block; }
.field textarea { min-height: 120px; resize: vertical; }
.field--inline { display: flex; align-items: flex-start; gap: .7rem; }
.field--inline input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--accent); }
.field--inline label { font-weight: 400; font-size: var(--fs-sm); color: var(--text-muted); }
.form__success {
  display: none; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid var(--accent); text-align: center;
}
.form__success svg { width: 48px; height: 48px; color: var(--accent); margin: 0 auto var(--space-3); }
.form.is-sent { display: none; }
.form.is-sent + .form__success { display: block; }
.radio-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio-chip span {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--border-strong);
  font-size: var(--fs-sm); font-weight: 600; transition: all .2s; background: var(--surface);
}
.radio-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.radio-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Breadcrumbs e page hero */
.page-hero { padding: calc(var(--header-h) + 3rem) 0 var(--space-7); background: var(--navy-900); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 20%, rgba(22,168,120,.25), transparent 50%), radial-gradient(ellipse at 10% 90%, rgba(201,164,74,.14), transparent 45%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: var(--on-dark-muted); }
.page-hero--light { background: var(--bg); color: var(--text); }
.page-hero--light::after { display: none; }
.page-hero--light h1 { color: var(--text); }
.page-hero--light .lead { color: var(--text-muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-xs); margin-bottom: var(--space-5); opacity: .8; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Secção de serviço (problema → o que fazemos → a seguir) */
.service-steps { display: grid; gap: var(--space-5); counter-reset: ss; }
@media (min-width: 900px) { .service-steps { grid-template-columns: repeat(3, 1fr); } }
.service-step { position: relative; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.service-step::before {
  counter-increment: ss; content: counter(ss, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--accent-soft); position: absolute; top: 1rem; right: 1.2rem; font-weight: 700;
}
[data-theme="dark"] .service-step::before { color: rgba(60,198,149,.25); }
.service-step h3 { font-size: 1.25rem; padding-right: 3rem; }
.service-step ul { padding-left: 1.1rem; color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.service-step li { margin-bottom: .4rem; }
.service-step--highlight { background: var(--navy-900); color: var(--on-dark); border-color: transparent; }
.service-step--highlight ul { color: var(--on-dark-muted); }
.service-step--highlight::before { color: rgba(255,255,255,.08); }

/* Sticky sidebar CTA */
.sticky-cta { position: sticky; top: calc(var(--header-h-small) + 1.5rem); }
.sticky-cta .card { padding: var(--space-5); }
.sticky-cta .card h3 { font-size: 1.2rem; }
.sticky-cta .btn { width: 100%; margin-top: .6rem; }
.article-layout { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); }
.article-layout > * { min-width: 0; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }

/* ------------------------------------------------------------------
   10. HERO E HOME
------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 6rem; background: var(--navy-950);
}
.hero__media { position: absolute; inset: -10% 0; z-index: 0; will-change: transform; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,12,26,.55) 0%, rgba(5,12,26,.35) 40%, rgba(5,12,26,.92) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(22,168,120,.22), transparent 55%);
}
.hero__grain { position: absolute; inset: 0; z-index: 1; opacity: .08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .container { position: relative; z-index: 2; }
.hero__content { max-width: 760px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-400); margin-bottom: var(--space-5); }
.hero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-400); box-shadow: 0 0 0 4px rgba(60,198,149,.25); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero h1 .typed { color: var(--gold-400); font-style: italic; font-weight: 500; }
.hero h1 .caret { display: inline-block; width: 3px; height: .9em; background: var(--gold-400); vertical-align: -.1em; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* As 3 mensagens empilham-se na mesma célula de grelha: o contentor cresce até à mais alta e nunca sobrepõe os botões */
.hero__slider { position: relative; display: grid; margin-bottom: var(--space-6); max-width: 54ch; }
.hero__slide { grid-area: 1 / 1; font-size: var(--fs-md); color: var(--on-dark-muted); opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; margin: 0; }
.hero__slide.is-active { opacity: 1; transform: none; transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); margin-top: var(--space-7); font-size: var(--fs-xs); color: var(--on-dark-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__trust svg { width: 16px; height: 16px; color: var(--emerald-400); }
.hero__scroll { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2; color: var(--on-dark-muted); font-size: var(--fs-xs); display: none; flex-direction: column; align-items: center; gap: .5rem; letter-spacing: .1em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--emerald-400), transparent); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 900px) { .hero__scroll { display: flex; } }

/* Barra de números a seguir ao hero */
.stats-band { margin-top: -3.5rem; position: relative; z-index: 3; }
.stats-band .stats { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5) var(--space-4); box-shadow: var(--shadow-lg); }

/* Secção serviços na home */
.services-grid .card { padding: var(--space-5); }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* Imagem com moldura */
.frame { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.frame__badge {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; background: rgba(10,23,48,.78); backdrop-filter: blur(10px); color: #fff;
  border-radius: var(--radius-md); padding: 1rem 1.2rem; font-size: var(--fs-sm); display: flex; gap: .8rem; align-items: center; border: 1px solid rgba(255,255,255,.1);
}
.frame__badge svg { width: 28px; height: 28px; color: var(--emerald-400); flex: none; }

/* ------------------------------------------------------------------
   11. COMO FUNCIONA — SCROLLYTELLING
------------------------------------------------------------------ */
.scrolly { --step-color: var(--navy-900); position: relative; transition: background-color 1s var(--ease); background: color-mix(in srgb, var(--step-color) 6%, var(--bg)); }
.scrolly__inner { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .scrolly__inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; } }
.scrolly__visual { position: sticky; top: calc(var(--header-h-small) + 1.5rem); height: 320px; display: none; }
@media (min-width: 900px) { .scrolly__visual { display: block; height: calc(100vh - var(--header-h-small) - 3rem); } }
.scrolly__stage {
  position: relative; height: 100%; border-radius: var(--radius-xl); overflow: hidden; background: var(--step-color); color: #fff;
  transition: background-color 1s var(--ease); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.scrolly__stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.14), transparent 50%); }
.scrolly__fig { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; opacity: 0; transform: scale(.92) translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.scrolly__fig.is-active { opacity: 1; transform: none; }
.scrolly__fig svg { width: min(70%, 360px); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.scrolly__counter { position: absolute; top: 1.5rem; left: 1.5rem; font-family: var(--font-serif); font-size: 5rem; line-height: 1; opacity: .18; font-weight: 700; }
.scrolly__caption { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; font-size: var(--fs-sm); opacity: .85; }
.scrolly__steps { display: grid; gap: 30vh; padding-block: 10vh; }
@media (max-width: 899px) { .scrolly__steps { gap: var(--space-7); padding-block: 0; } }
.scrolly__step { opacity: .35; transition: opacity .5s; min-height: 40vh; }
@media (max-width: 899px) { .scrolly__step { opacity: 1; min-height: 0; } }
.scrolly__step.is-active { opacity: 1; }
.scrolly__step .pill { margin-bottom: var(--space-4); }
.scrolly__step h2 { font-size: var(--fs-xl); }
.scrolly__mobile-fig { display: grid; place-items: center; height: 200px; border-radius: var(--radius-lg); margin-bottom: var(--space-5); color: #fff; }
.scrolly__mobile-fig svg { width: 120px; height: auto; }
@media (min-width: 900px) { .scrolly__mobile-fig { display: none; } }

/* ------------------------------------------------------------------
   12. SIMULADOR
------------------------------------------------------------------ */
.sim { max-width: 980px; margin-inline: auto; }
.sim__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: var(--space-6); }
.sim__progress button { padding: .6rem .2rem; border-top: 3px solid var(--border); text-align: left; font-size: var(--fs-xs); font-weight: 700; color: var(--text-soft); transition: all .3s; }
.sim__progress button span { display: none; }
@media (min-width: 640px) { .sim__progress button span { display: inline; } }
.sim__progress button.is-done { border-color: var(--accent); color: var(--text-muted); }
.sim__progress button.is-current { border-color: var(--accent); color: var(--accent); }
.sim__progress button[disabled] { cursor: default; }
.sim__panel { display: none; animation: fadeUp .5s var(--ease) both; }
.sim__panel.is-active { display: block; }
.sim__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: var(--shadow-md); }
@media (min-width: 700px) { .sim__card { padding: var(--space-7); } }
.sim__nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.sim__hint { font-size: var(--fs-sm); color: var(--text-muted); }

/* Passo 1 — tipos de dívida (drag & drop) */
.sim__builder { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .sim__builder { grid-template-columns: 1fr 1.1fr; } }
.debt-palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 480px) { .debt-palette { grid-template-columns: repeat(3, 1fr); } }
.debt-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .9rem; border-radius: var(--radius-md);
  background: var(--surface-2); border: 1.5px dashed var(--border-strong); cursor: grab; text-align: left; transition: all .25s var(--ease); width: 100%;
}
.debt-chip:hover, .debt-chip:focus-visible { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.debt-chip:active { cursor: grabbing; }
.debt-chip.is-dragging { opacity: .5; }
.debt-chip.is-used { opacity: .45; border-style: solid; }
.debt-chip svg { width: 24px; height: 24px; color: var(--accent); }
.debt-chip strong { font-size: var(--fs-sm); }
.debt-chip small { font-size: var(--fs-xs); color: var(--text-soft); }
.debt-drop {
  min-height: 220px; border-radius: var(--radius-lg); border: 2px dashed var(--border-strong); padding: var(--space-4);
  display: flex; flex-direction: column; gap: .7rem; transition: all .25s; background: var(--surface);
}
.debt-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.debt-drop__empty { margin: auto; text-align: center; color: var(--text-soft); font-size: var(--fs-sm); max-width: 28ch; }
.debt-drop__empty svg { width: 36px; height: 36px; margin: 0 auto .6rem; opacity: .5; }
.debt-item { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .9rem; border-radius: var(--radius-md); background: var(--surface-2); border-left: 4px solid var(--c, var(--accent)); animation: fadeUp .4s var(--ease) both; }
.debt-item__title { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--fs-sm); }
.debt-item__title i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.debt-item__fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.debt-item__fields label { font-size: var(--fs-xs); color: var(--text-muted); display: grid; gap: .25rem; }
.debt-item__fields .money { position: relative; }
.debt-item__fields .money input { width: 100%; padding: .55rem 1.6rem .55rem .7rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--surface); }
.debt-item__fields .money::after { content: "€"; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: var(--text-soft); font-size: var(--fs-sm); pointer-events: none; }
.debt-item__fields input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.debt-item__remove { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-soft); }
.debt-item__remove:hover { background: rgba(214,69,93,.12); color: var(--danger); }
.debt-item__remove svg { width: 16px; height: 16px; }
.donut-wrap { display: grid; gap: var(--space-4); align-items: center; grid-template-columns: 1fr; margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-2); }
@media (min-width: 560px) { .donut-wrap { grid-template-columns: 200px 1fr; } }
/* O anel tem raio 60 e espessura 14 numa viewBox de 160: o miolo livre tem ~106px.
   O valor fica confinado a esse miolo (inset) e encolhe conforme o número de dígitos
   (classes .is-long / .is-xlong aplicadas pelo JS), para nunca pisar o anel. */
.donut { width: 180px; height: 180px; margin-inline: auto; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; transition: stroke-dasharray .6s var(--ease), stroke-dashoffset .6s var(--ease); }
.donut__center { position: absolute; inset: 22%; display: grid; place-items: center; text-align: center; overflow: hidden; }
.donut__center strong { font-family: var(--font-serif); font-size: 1.35rem; display: block; line-height: 1.05; white-space: nowrap; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: font-size .2s; }
.donut__center strong.is-long { font-size: 1.05rem; }
.donut__center strong.is-xlong { font-size: .85rem; }
.donut__center small { font-size: var(--fs-xs); color: var(--text-soft); display: block; margin-top: .15rem; }
.donut__legend { display: grid; gap: .4rem; font-size: var(--fs-sm); }
.donut__legend li { display: flex; align-items: center; gap: .6rem; justify-content: space-between; }
.donut__legend li span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.donut__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.donut__legend strong { font-variant-numeric: tabular-nums; }
.donut__totals { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.donut__totals div { background: var(--surface); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.donut__totals small { display: block; font-size: var(--fs-xs); color: var(--text-soft); }
.donut__totals strong { font-variant-numeric: tabular-nums; }

/* Passo 2 — velocímetro (v2)
   A escala (0%, 35%, 50%, 100%) vive dentro do SVG, posicionada pelo ângulo real
   de cada marca; o valor grande fica em fluxo normal por baixo do ponteiro.
   Assim nada se sobrepõe, em qualquer largura. */
.gauge-wrap { display: grid; gap: var(--space-5); align-items: center; margin-top: var(--space-5); }
@media (min-width: 760px) { .gauge-wrap { grid-template-columns: 300px 1fr; } }
.gauge { width: 300px; max-width: 100%; margin-inline: auto; position: relative; text-align: center; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge__arc { fill: none; stroke-width: 14; stroke-linecap: butt; }
.gauge__arc--ok { stroke: #16a878; }
.gauge__arc--warn { stroke: #e0a428; }
.gauge__arc--bad { stroke: #d6455d; }
.gauge__arc--track { stroke: var(--surface-3); stroke-width: 14; }
.gauge__tick { stroke: var(--text-soft); stroke-width: 1.5; stroke-linecap: round; }
.gauge__label { font-family: var(--font-sans); font-size: 9.5px; font-weight: 700; fill: var(--text-soft); letter-spacing: .02em; }
.gauge__label--ok { fill: #16a878; } .gauge__label--warn { fill: #e0a428; } .gauge__label--bad { fill: #d6455d; }
.gauge__needle { transform-origin: 100px 110px; transition: transform 1.2s cubic-bezier(.34, 1.4, .64, 1); }
.gauge__needle path { fill: var(--text); }
.gauge__needle circle { fill: var(--text); }
.gauge__needle circle.gauge__pin { fill: var(--surface); }
.gauge__value { margin-top: .2rem; text-align: center; }
.gauge__value strong { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; display: block; color: var(--gauge-color, var(--text)); transition: color .5s; font-variant-numeric: tabular-nums; }
.gauge__value small { font-size: var(--fs-xs); color: var(--text-soft); display: block; margin-top: .25rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.gauge__zone { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .3rem .7rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; color: var(--gauge-color, var(--text-soft)); background: color-mix(in srgb, var(--gauge-color, var(--text-soft)) 12%, transparent); transition: color .5s, background .5s; }
.gauge__zone i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gauge__explain { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-2); border-left: 4px solid var(--gauge-color, var(--border-strong)); transition: border-color .5s; }
.gauge__explain h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: .4rem; color: var(--gauge-color, var(--text)); }
.gauge__explain p { font-size: var(--fs-sm); color: var(--text-muted); }
.gauge__scale { display: none; }

/* Botões do simulador: animações leves */
.sim__nav .btn svg { transition: transform .3s var(--ease); }
.sim__nav .btn--primary:hover svg { transform: translateX(4px); }
.sim__nav .btn--primary.is-ready { animation: readyGlow 2.4s var(--ease) infinite; }
@keyframes readyGlow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
.sim__nav .btn--primary.is-pressed { animation: pressPop .35s var(--ease); }
@keyframes pressPop { 0% { transform: scale(1); } 40% { transform: scale(.96); } 100% { transform: scale(1); } }
.btn--reset svg { transition: transform .5s var(--ease); }
.btn--reset:hover svg { transform: rotate(-180deg); }
.btn--reset.is-confirm { --btn-fg: var(--danger); border-color: var(--danger); animation: shake .4s var(--ease); }
.btn--reset.is-spinning svg { animation: spin .6s var(--ease); }
@keyframes spin { to { transform: rotate(-360deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.sim__panel.is-leaving { animation: fadeOutDown .25s var(--ease) both; }
@keyframes fadeOutDown { to { opacity: 0; transform: translateY(10px); } }
.sim__house-note { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--text); font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.sim__house-note svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: .1rem; }
@media (prefers-reduced-motion: reduce) { .sim__nav .btn--primary.is-ready, .btn--reset.is-spinning svg, .btn--reset.is-confirm { animation: none; } }

/* Resultado */
.diag { display: grid; gap: var(--space-5); }
.diag__summary { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .diag__summary { grid-template-columns: repeat(4, 1fr); } }
.diag__summary div { padding: .9rem 1rem; border-radius: var(--radius-md); background: var(--surface-2); }
.diag__summary small { display: block; font-size: var(--fs-xs); color: var(--text-soft); margin-bottom: .2rem; }
.diag__summary strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.diag__verdict { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--navy-900); color: var(--on-dark); }
.diag__verdict h3 { color: #fff; }
.diag__verdict p { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.diag__scenarios { display: grid; gap: .8rem; }
@media (min-width: 700px) { .diag__scenarios { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.scenario { padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); }
.scenario h4 { font-size: var(--fs-base); margin-bottom: .3rem; display: flex; align-items: center; gap: .5rem; }
.scenario h4 svg { width: 18px; height: 18px; color: var(--accent); }
.scenario p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.bars { display: grid; gap: 1rem; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-2); }
.bar { display: grid; gap: .4rem; }
.bar__label { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.bar__label strong { font-variant-numeric: tabular-nums; }
.bar__track { height: 18px; border-radius: 9px; background: var(--surface); overflow: hidden; border: 1px solid var(--border); }
.bar__fill { height: 100%; width: 0; border-radius: 9px; background: var(--bar-c, var(--accent)); transition: width 1.2s var(--ease-io); }
.bar--current .bar__fill { --bar-c: var(--danger); }
.bar--potential .bar__fill { --bar-c: linear-gradient(90deg, var(--emerald-600), var(--emerald-400)); }
.bars__note { font-size: var(--fs-xs); color: var(--text-soft); margin: 0; }
.diag__cta { text-align: center; padding-top: var(--space-4); }
.sim__form-wrap { margin-top: var(--space-6); display: none; }
.sim__form-wrap.is-open { display: block; animation: fadeUp .5s var(--ease) both; }
.sim__summary-box { font-size: var(--fs-xs); color: var(--text-muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: .8rem 1rem; white-space: pre-wrap; font-family: ui-monospace, monospace; max-height: 160px; overflow: auto; }

/* ------------------------------------------------------------------
   13. CONTACTO E MARCAÇÃO
------------------------------------------------------------------ */
.contact-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.contact-cards { display: grid; gap: .8rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); transition: all .3s var(--ease); }
.contact-card:hover { transform: translateX(4px); border-color: var(--accent); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card strong { display: block; font-size: var(--fs-sm); }
.contact-card span { font-size: var(--fs-xs); color: var(--text-muted); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(.7); }
[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* Filtro antes da marcação: convite ao simulador (ver contacto.js) */
.booking-gate { max-width: 720px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-md); }
.booking-gate__icon { width: 64px; height: 64px; margin: 0 auto var(--space-4); border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.booking-gate__icon svg { width: 30px; height: 30px; }
.booking-gate h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: var(--space-3); }
.booking-gate p { color: var(--text-muted); margin-bottom: var(--space-4); }
.booking-gate .cluster { margin-bottom: var(--space-3); }
.booking-gate .small { margin: 0; }
.booking__badge { display: flex; gap: .7rem; align-items: flex-start; max-width: 720px; margin: 0 auto var(--space-5); padding: .9rem 1.2rem; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--text); font-size: var(--fs-sm); }
.booking__badge svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: .1rem; }
@media (max-width: 599px) { .booking-gate { padding: var(--space-5) var(--space-4); } .booking-gate .cluster .btn { width: 100%; } }

/* Widget de marcação */
.booking { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .booking { grid-template-columns: 1fr 1fr; } }
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.cal__head strong { font-family: var(--font-serif); font-size: 1.1rem; }
.cal__nav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); }
.cal__nav:hover { background: var(--surface-2); }
.cal__nav svg { width: 16px; height: 16px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: var(--fs-xs); color: var(--text-soft); font-weight: 700; padding: .3rem 0; }
.cal__day { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 600; transition: all .2s; }
.cal__day:not([disabled]):hover { background: var(--accent-soft); color: var(--accent); }
.cal__day[disabled] { color: var(--text-soft); opacity: .4; cursor: not-allowed; }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.cal__day[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); }
.cal__day.is-empty { visibility: hidden; }
.slots { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
.slots__title { font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--space-3); display: flex; justify-content: space-between; align-items: center; }
.slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.slots__grid button { padding: .6rem .3rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); font-size: var(--fs-sm); font-weight: 600; transition: all .2s; }
.slots__grid button:hover { border-color: var(--accent); color: var(--accent); }
.slots__grid button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.slots__empty { color: var(--text-soft); font-size: var(--fs-sm); text-align: center; padding: var(--space-5) 0; }
.booking__selected { grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--text); font-size: var(--fs-sm); display: none; align-items: center; gap: .7rem; }
.booking__selected.is-visible { display: flex; }
.booking__selected svg { width: 20px; height: 20px; color: var(--accent); }

/* ------------------------------------------------------------------
   14. BLOG / ARTIGOS / CASOS / SOBRE / LEGAL
------------------------------------------------------------------ */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .4s; height: 100%; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.post-card__meta { display: flex; gap: .8rem; font-size: var(--fs-xs); color: var(--text-soft); }
.post-card h3 { font-size: 1.25rem; margin: 0; }
.post-card p { color: var(--text-muted); font-size: var(--fs-sm); }
.post-card .link-arrow { margin-top: auto; }
.article-hero { padding: calc(var(--header-h) + 2.5rem) 0 var(--space-6); }
.article-hero h1 { font-size: var(--fs-2xl); max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: var(--fs-sm); color: var(--text-muted); align-items: center; }
.article-meta .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: .9rem; }
.article-cover { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: var(--space-7); box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.toc { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); margin-bottom: var(--space-5); }
.toc h4 { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .8rem; }
.toc a { display: block; padding: .35rem 0; font-size: var(--fs-sm); color: var(--text-muted); border-left: 2px solid var(--border); padding-left: .8rem; transition: all .2s; }
.toc a:hover { color: var(--accent); border-color: var(--accent); }
.share { display: flex; gap: .5rem; margin-top: var(--space-6); }

/* Casos */
.case { display: grid; gap: var(--space-5); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 900px) { .case { grid-template-columns: 1fr 340px; padding: var(--space-7); } }
.case__story h3 { font-size: 1.5rem; }
.case__story p { color: var(--text-muted); }
.case__numbers { display: grid; gap: .6rem; align-content: start; }
.case__numbers div { padding: .9rem 1rem; border-radius: var(--radius-md); background: var(--surface-2); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--fs-sm); }
.case__numbers div span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .5rem; align-items: center; text-align: right; }
.case__numbers .before { color: var(--danger); text-decoration: line-through; opacity: .7; font-weight: 500; white-space: nowrap; }
.case__numbers .after { color: var(--accent); white-space: nowrap; }
.case__tag { display: inline-flex; gap: .5rem; align-items: center; margin-bottom: var(--space-3); }
.case__quote { font-family: var(--font-serif); font-style: italic; padding-left: 1rem; border-left: 3px solid var(--gold); margin-top: var(--space-4); }

/* Equipa */
.team { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.member { text-align: center; }
.member__photo { aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: var(--space-4); position: relative; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: transform .8s var(--ease), filter .5s; }
.member:hover .member__photo img { transform: scale(1.04); filter: none; }
.member h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.member p { font-size: var(--fs-sm); color: var(--text-muted); }
.values { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.value__num { font-family: var(--font-serif); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: .6rem; }
.value h3 { font-size: 1.2rem; }
.value p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.certs { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.cert { flex: 1 1 200px; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px dashed var(--border-strong); font-size: var(--fs-sm); color: var(--text-muted); display: flex; gap: .8rem; align-items: center; }
.cert svg { width: 28px; height: 28px; color: var(--gold); flex: none; }

/* Legal */
.legal .prose h2 { font-size: var(--fs-lg); }
.legal .updated { font-size: var(--fs-xs); color: var(--text-soft); }

/* Página 404 / obrigado */
.simple-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }

/* ------------------------------------------------------------------
   15. ANIMAÇÕES, REVEAL, TRANSIÇÕES
------------------------------------------------------------------ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.stagger > * { --d: calc(var(--i, 0) * .08s); }

/* View Transitions API (cross-document) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
/* Fallback sem View Transitions */
.no-vt body { animation: pageIn .5s var(--ease) both; }
.no-vt body.is-leaving { animation: pageOut .25s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } }
@keyframes pageOut { to { opacity: 0; } }

/* Fundo decorativo (linhas) */
.bg-lines { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); }

/* ------------------------------------------------------------------
   15b. AFINAÇÕES MOBILE (até 599px / 699px)
------------------------------------------------------------------ */
.hide-mobile { display: none; }
@media (min-width: 700px) { .hide-mobile { display: inline; } }
@media (max-width: 699px) {
  /* Antes/Depois: em ecrã estreito os dois painéis empilham-se em vez do slider */
  .compare__panel--after { position: static; clip-path: none; }
  .compare__panel { min-height: 0; padding: var(--space-5) var(--space-4); }
  .compare__range, .compare__handle, .compare__labels { display: none; }
  .compare__rows { max-width: none; }
}
@media (max-width: 599px) {
  :root { --header-h: 68px; }
  .site-header .container { gap: var(--space-2); }
  .page-hero { padding: calc(var(--header-h) + 1.25rem) 0 var(--space-6); }
  .page-hero h1 { font-size: clamp(2rem, 1.4rem + 3.6vw, 2.6rem); }
  .page-hero .lead { font-size: var(--fs-base); }
  .breadcrumbs { margin-bottom: var(--space-4); }
  /* Botões a toda a largura nos heróis e CTAs para evitar larguras irregulares */
  .page-hero .cluster .btn, .hero__ctas .btn, .cta-band .cluster .btn, .mobile-menu__actions .btn, .sim__nav .btn, .diag__cta .btn { width: 100%; }
  .hero { padding-bottom: 11rem; }
  .hero__eyebrow { font-size: .66rem; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(2.1rem, 1.6rem + 3.5vw, 2.6rem); }
  .hero__trust { gap: var(--space-2) var(--space-4); margin-top: var(--space-5); }
  .stat__value { font-size: 2.1rem; }
  .stat__label { font-size: var(--fs-xs); }
  .stats-band .stats { padding: var(--space-4) var(--space-3); gap: var(--space-3); }
  .frame { aspect-ratio: 4 / 3; }
  .frame__badge { font-size: var(--fs-xs); padding: .7rem .9rem; }
  .service-step::before { font-size: 2.1rem; top: 1.1rem; right: 1rem; }
  .service-step { padding: var(--space-5); }
  .service-step h3 { padding-right: 2.6rem; font-size: 1.15rem; }
  .card { padding: var(--space-5); }
  .testimonial { padding: var(--space-5); }
  .testimonial__quote { font-size: 1.15rem; }
  .cta-band { padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg); }
  .section__head { margin-bottom: var(--space-6); }
  .timeline__item h3 { font-size: 1.05rem; }
  .sim__card { padding: var(--space-4); border-radius: var(--radius-lg); }
  .sim__nav { flex-direction: column-reverse; }
  .donut-wrap { padding: var(--space-4); }
  .diag__summary strong { font-size: 1rem; }
  .cal { padding: var(--space-3); }
  .slots__grid { grid-template-columns: repeat(4, 1fr); }
  .prose table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .prose table th, .prose table td { min-width: 8.5rem; }
  .prose table td:first-child, .prose table th:first-child { min-width: 7rem; position: sticky; left: 0; background: var(--bg); }
  .team { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .member h3 { font-size: 1rem; }
  .member p { font-size: var(--fs-xs); }
  .member__photo { border-radius: var(--radius-lg); }
  .scrolly__step h2 { font-size: var(--fs-lg); }
  .scrolly__mobile-fig { height: 160px; }
  .article-hero h1 { font-size: clamp(1.8rem, 1.3rem + 3vw, 2.3rem); }
  .article-cover { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; margin-bottom: var(--space-6); }
  .case { padding: var(--space-5); border-radius: var(--radius-lg); }
  .case__story h3 { font-size: 1.3rem; }
  .assistant__toggle span:last-child { display: none; } /* só o avatar, para não tapar conteúdo */
  .assistant__toggle { padding: .45rem; }
  .cookie-banner { padding: var(--space-4); bottom: 80px; }
  .exit-popup__card { padding: var(--space-5); }
}

/* ------------------------------------------------------------------
   16. ACESSIBILIDADE
------------------------------------------------------------------ */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media { transform: none !important; }
  [data-tilt] { transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.has-cursor, body.has-cursor * { cursor: auto; }
  @view-transition { navigation: none; }
}
@media print {
  .site-header, .site-footer, .whatsapp-fab, .contact-fab, .mobile-bar, .assistant, .cookie-banner, .exit-popup, .cursor-dot, .cursor-ring { display: none !important; }
  body { background: #fff; color: #000; }
}
