/* ==========================================================================
   Contatocha — folha de estilos
   Conceito: "Conta + Tocha" — a luz que ilumina as contas da sua empresa.
   Cores da marca (logótipo): dourado #C19949, dourado profundo #AE8A15, ardósia #333E47.
   ========================================================================== */

:root {
  --ink-950: #080B0D;
  --ink-900: #0C1114;
  --ink-850: #11171B;
  --ink-800: #161E23;
  --ink-750: #1C252B;
  --ink-700: #27323A;
  --slate: #333E47;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --text: #F4EFE7;
  --muted: #A4ABB1;
  --dim: #6C767E;

  --gold-light: #F1DFAE;
  --gold: #C19949;
  --gold-deep: #AE8A15;
  --bronze: #8A6A12;
  --on-gold: #17130A;
  --grad-gold: linear-gradient(100deg, #F3E4B9 0%, #D9B969 34%, #C19949 62%, #A9861A 100%);

  --paper: #F4EFE7;
  --paper-2: #E9E2D6;
  --paper-ink: #17140F;
  --paper-muted: #6B645A;

  --radius: 22px;
  --radius-lg: 30px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #2a2f3c var(--ink-950); }
html.is-loading, html.menu-open { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
/* grão subtil por cima de tudo */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .05;
  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 type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 400;
  padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--ink-950); font-weight: 700;
  transition: top .3s;
}
.skip-link:focus { top: 16px; }

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

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
  text-wrap: balance;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; }
.flame-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .08em;
}
.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 560px; margin: 24px 0 0; }

.section-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 84px); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; max-width: none; }
.section-head--split > div { max-width: 820px; }
.section-head--split .lead { max-width: 400px; margin: 0; flex: none; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow::after { content: ''; width: 22px; height: 1px; background: currentColor; }

/* palavras divididas para animação */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w__i { display: inline-block; }
.serif .w, .flame-text .w, .w--unit { padding-right: .1em; margin-right: -.1em; }

/* ---------- Botões ---------- */
.btn {
  --h: 56px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: box-shadow .4s, background-color .4s, border-color .4s, color .4s;
}
.btn--flame {
  color: var(--on-gold);
  background: var(--grad-gold);
  box-shadow: 0 12px 34px -12px rgba(174, 138, 21, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--flame::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--flame:hover::before { transform: translateX(120%); }
.btn--flame:hover { box-shadow: 0 18px 44px -12px rgba(174, 138, 21, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.link-arrow:hover span { background-size: 100% 1px; }
.link-arrow .icon { width: 18px; height: 18px; color: var(--gold); transition: transform .5s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(5px); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; font: 500 11px/1 var(--mono); white-space: nowrap; }
.chip--up { color: var(--gold-light); background: rgba(222, 196, 130, .1); border: 1px solid rgba(222, 196, 130, .25); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center;
  background: radial-gradient(50% 40% at 50% 60%, rgba(174, 138, 21, .12), transparent 70%), var(--ink-950);
  clip-path: inset(0 0 0 0);
}
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__symbol { width: 66px; height: auto; margin-bottom: 4px; }
.preloader__word { overflow: hidden; }
.preloader__word img { display: block; width: min(330px, 72vw); height: auto; }
.preloader__tag { margin-top: -10px; }
.preloader__tag img { display: block; width: min(186px, 46vw); height: auto; opacity: .85; }
.preloader__bar { width: 180px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); }
.preloader__count { font: 500 12px var(--mono); color: var(--dim); letter-spacing: .1em; }

/* ---------- Barra de progresso / brilho do cursor ---------- */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 120;
  width: 100%; height: 2px;
  background: var(--grad-gold);
  transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 153, 73, .07) 0%, rgba(174, 138, 21, .03) 35%, transparent 65%);
  pointer-events: none; will-change: transform;
  opacity: 0; transition: opacity .8s;
}
/* pausa animações CSS fora do ecrã (poupa CPU/GPU) */
.anim-paused, .anim-paused * { animation-play-state: paused !important; }
.cursor-glow.is-on { opacity: 1; }
.cursor-glow.is-off, .cursor-glow.is-off-paper { opacity: 0; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
  transition: transform .7s var(--ease-out);
}
.header.is-hidden { transform: translateY(-130%); }
.header__inner {
  pointer-events: auto;
  max-width: 1380px; height: 70px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(12, 14, 19, .42);
  border: 1px solid rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s, height .4s, box-shadow .4s;
}
.header.is-scrolled .header__inner { height: 62px; background: rgba(12, 14, 19, .8); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }

.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo__mark { width: auto; height: 38px; animation: torchGlow 3.2s ease-in-out infinite; }
.logo__word { width: auto; height: 17px; }

.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .3s, background-color .3s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 3px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.header__phone .icon { width: 17px; height: 17px; color: var(--gold); }
.header__phone:hover { color: var(--text); }

.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.7px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Menu móvel ---------- */
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 120px var(--gutter) 40px;
  background: radial-gradient(80% 60% at 85% 100%, rgba(174, 138, 21, .25), transparent 60%), var(--ink-950);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
  overflow-y: auto;
}
.menu-open .mmenu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s 0s; }
.mmenu__links { display: flex; flex-direction: column; }
.mmenu__links a { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; font-size: clamp(22px, 5.5vw, 28px); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; border-bottom: 1px solid var(--line); }
.mmenu__links a span { font: 500 12px var(--mono); color: var(--gold); letter-spacing: .05em; }
.mmenu__foot { display: grid; gap: 14px; color: var(--muted); }
.mmenu__foot .btn { justify-self: start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 130px;
  background: var(--ink-950);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(70% 55% at 78% 112%, rgba(174, 138, 21, .30), transparent 62%),
    radial-gradient(45% 45% at 0% 0%, rgba(64, 82, 96, .10), transparent 70%),
    var(--ink-950);
}
.hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(95% 75% at 60% 45%, transparent 40%, rgba(7, 8, 11, .75) 100%),
    linear-gradient(180deg, rgba(7, 8, 11, .7) 0%, transparent 20%, transparent 78%, var(--ink-950) 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 4vw, 72px); align-items: center; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 30px; padding: 9px 15px 9px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.dot-flame { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2.2s infinite; }

.hero__title {
  margin: 0 0 30px;
  font-size: clamp(34px, 3.55vw, 56px);
  line-height: .97;
  letter-spacing: -.05em;
  font-weight: 800;
}
.hero__title .flame-text {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  filter: drop-shadow(0 0 28px rgba(193, 153, 73, .35));
}
.hero__lead { margin: 0 0 40px; max-width: 540px; font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero__trust { display: flex; align-items: center; gap: 16px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.hero__trust p { margin: 0; }
.hero__trust strong { color: var(--text); }
.avatars { display: flex; }
.avatars img { width: 42px; height: 42px; margin-left: -12px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink-950); background: var(--ink-800); }
.avatars img:first-child { margin-left: 0; }

.hero__visual { position: relative; height: 580px; perspective: 1400px; }
.hero__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.fc { position: absolute; }
.fc--chart { top: 23%; left: 0; width: 390px; z-index: 2; }
.fc--iva { top: 0; right: 0; width: 262px; z-index: 3; }
.fc--toast { bottom: 13%; left: -7%; width: 340px; z-index: 4; }
.fc--deadline { bottom: 0; right: 4%; width: 220px; z-index: 3; }

.fcard {
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(34, 38, 50, .93), rgba(15, 17, 23, .95));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.fcard__label { margin: 0; font: 500 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.fcard__title { margin: 4px 0 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.fcard__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
/* cartões-ligação do hero (agenda, novidade, simulador) */
a.fcard { color: inherit; text-decoration: none; transition: border-color .3s; }
.fcard--agenda { display: block; }
a.fcard:hover { border-color: rgba(193, 153, 73, .45); }
a.fcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hagenda { display: grid; margin: 0 0 14px; padding: 0; list-style: none; }
.hagenda li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.hagenda li:first-child { padding-top: 2px; border-top: 0; }
.hagenda__d { font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--gold-light); }
.hagenda__t { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--text); }
.hagenda__t small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.fcard__more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold-light); }
.fcard__more .icon, .fcard__go { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.fcard__go { flex: none; margin-left: auto; color: var(--gold-light); }
a.fcard:hover .fcard__more .icon, a.fcard:hover .fcard__go { transform: translateX(3px); }
.toast__icon--soft { background: rgba(193, 153, 73, .14); color: var(--gold-light); box-shadow: inset 0 0 0 1px rgba(193, 153, 73, .35); }
.fcard--news .fcard__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fcard--toast .fcard__label { margin-top: 5px; }

.fcard--status { display: flex; align-items: center; gap: 14px; }

.fcard--toast { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.toast__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad-gold); color: var(--on-gold); box-shadow: 0 10px 24px -8px rgba(174, 138, 21, .7); }

.fcard__big { margin: 10px 0 14px; font-size: 30px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.fcard__big small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.meter i { display: block; width: 78%; height: 100%; border-radius: inherit; background: var(--grad-gold); transform-origin: left; }
.fcard__ok { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--gold-light); }
.fcard__ok .icon { width: 16px; height: 16px; stroke-width: 2.4; }

.hero__bottom {
  position: absolute; left: 0; right: 0; bottom: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; }
.hero__scroll i { position: relative; width: 1px; height: 42px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold); animation: scrollLine 2.2s var(--ease-in-out) infinite; }
.hero__hint em { font-style: normal; color: var(--gold-light); }

/* ---------- Ticker ---------- */
.ticker { position: relative; overflow: hidden; padding: 15px 0; background: var(--ink-950); border-block: 1px solid var(--line); }
.ticker__row { display: flex; white-space: nowrap; }
.ticker__track { display: flex; flex: none; will-change: transform; }
.ticker__item {
  display: inline-flex; align-items: center; gap: .45em; padding-right: .45em;
  font-size: clamp(15px, 1.15vw, 17px); font-weight: 800; letter-spacing: -.02em; line-height: 1.5;
}
.ticker__item img { width: auto; height: .62em; filter: drop-shadow(0 0 12px rgba(193, 153, 73, .45)); }
.ticker__row--outline .ticker__item { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: rgba(244, 239, 232, .34); }
.ticker__row--outline .ticker__item i { font-family: var(--font); font-style: normal; font-size: .6em; color: var(--gold); }

/* ---------- Serviços (painéis expansíveis) ---------- */
.panels { display: flex; gap: 12px; height: clamp(540px, 74vh, 700px); }
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  flex: 1 1 0; min-width: 0;
  border-radius: var(--radius);
  background: var(--ink-850);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: flex-grow .9s var(--ease-out), border-color .5s;
}
.panel.is-active { flex-grow: 5.4; cursor: default; border-color: rgba(193, 153, 73, .28); }
.panel::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 3px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.panel.is-active::after { transform: scaleX(1); }
.panel__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.18);
  filter: saturate(.5) brightness(.45);
  transition: transform 1.4s var(--ease-out), filter .9s;
}
.panel:hover .panel__img { filter: saturate(.7) brightness(.55); }
.panel.is-active .panel__img { transform: scale(1); filter: saturate(.95) brightness(.72); }
.panel__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 8, 11, .35) 0%, rgba(7, 8, 11, .12) 30%, rgba(7, 8, 11, .72) 60%, rgba(7, 8, 11, .95) 100%);
}
.panel__num { position: absolute; top: 24px; left: 24px; font: 500 12.5px/1 var(--mono); color: var(--gold-light); letter-spacing: .05em; }
.panel__vtitle {
  position: absolute; left: 50%; bottom: 30px;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-size: 21px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap;
  transition: opacity .4s;
}
.panel.is-active .panel__vtitle { opacity: 0; }
.panel__body {
  position: absolute; left: 0; bottom: 0;
  width: min(560px, calc((min(100vw, var(--container)) - 2 * var(--gutter)) * .5));
  padding: 36px;
  opacity: 0; transform: translateY(28px); pointer-events: none;
  transition: opacity .4s, transform .8s var(--ease-out);
}
.panel.is-active .panel__body { opacity: 1; transform: none; pointer-events: auto; transition-delay: .3s; }
.panel__icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px;
  border-radius: 16px; color: var(--gold-light);
  background: rgba(40, 24, 14, .7); border: 1px solid rgba(193, 153, 73, .32);
}
.panel__icon .icon { width: 24px; height: 24px; }
.panel__title { margin: 0 0 12px; font-size: clamp(20px, 1.5vw, 22px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.panel__body p { margin: 0 0 22px; max-width: 46ch; color: rgba(244, 239, 232, .8); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(20, 22, 29, .55); border: 1px solid rgba(255, 255, 255, .14);
}

/* ---------- Sobre ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.about__media { position: relative; margin: 30px 10% 50px 30px; }
.about__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--ink-850); }
.about__img img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.about__img--small {
  position: absolute; right: -16%; bottom: -12%;
  width: 48%; aspect-ratio: 1;
  border: 6px solid var(--ink-900); border-radius: 26px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.about__img--small img { top: 0; height: 100%; }
.badge-rot {
  position: absolute; left: -34px; top: -34px; z-index: 2;
  width: 136px; height: 136px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11, 13, 18, .82); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.badge-rot__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.badge-rot__text text { font: 500 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; fill: var(--muted); }
.badge-rot__flame { width: 30px; height: auto; animation: torchGlow 3.2s ease-in-out infinite; }

.manifesto { margin: 0 0 34px; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -.025em; font-weight: 700; }
.manifesto .w { overflow: visible; }
.manifesto mark { background: none; color: inherit; }
.manifesto mark .w__i {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em; margin-right: -.08em;
}
.about__sub { margin: 0 0 30px; max-width: 580px; font-size: 17px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); }
.stat { padding: 36px 28px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 32px; }
.stat:last-child { border-right: 0; }
.stat__num { display: flex; align-items: flex-start; font-size: clamp(30px, 2.8vw, 44px); font-weight: 800; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num sup { margin: .1em 0 0 .06em; font-size: .42em; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { display: block; margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- Porquê (bento) ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "ded ded dead rep" "pap loc dead ale";
}
.b-ded { grid-area: ded; } .b-dead { grid-area: dead; } .b-rep { grid-area: rep; }
.b-pap { grid-area: pap; } .b-loc { grid-area: loc; } .b-ale { grid-area: ale; }

.bcard {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  min-height: 390px; padding: 28px;
  border-radius: 26px;
  background: linear-gradient(170deg, var(--ink-800), var(--ink-850) 60%);
  border: 1px solid var(--line);
}
/* lanterna que segue o rato */
.bcard::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(193, 153, 73, .13), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.bcard::after {
  content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -30%), rgba(230, 206, 145, .85), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
.bento:hover .bcard::before, .bento:hover .bcard::after { opacity: 1; }
.bcard h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.bcard p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.bcard__visual { position: relative; flex: 1; min-height: 180px; }

/* cartão "contabilista dedicado" */
.b-ded { flex-direction: row; align-items: stretch; }
.b-ded .bcard__text { align-self: flex-end; max-width: 280px; flex: none; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.orbit__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .1); transform: translate(-50%, -50%); }
.orbit__ring--1 { width: 132px; height: 132px; border-style: solid; border-color: rgba(193, 153, 73, .18); }
.orbit__ring--2 { width: 204px; height: 204px; }
.orbit__center {
  position: relative; z-index: 2;
  width: 86px; height: 86px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(193, 153, 73, .7);
  box-shadow: 0 0 0 8px rgba(193, 153, 73, .08), 0 0 50px rgba(193, 153, 73, .4);
}
.orbit__center img { width: 100%; height: 100%; object-fit: cover; }
.orbit__spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: spin 28s linear infinite; }
.orbit__chip { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: rotate(var(--a)) translateX(102px); }
.orbit__chip > span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); }
.orbit__chip > span > span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700;
  background: rgba(22, 26, 35, .92); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8);
  animation: spin 28s linear infinite reverse;
}
.orbit__chip .icon { width: 14px; height: 14px; color: var(--gold); }
.bubble {
  position: absolute; right: 0; top: 4px; z-index: 3;
  max-width: 220px; padding: 12px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--on-gold);
  background: var(--grad-gold);
  box-shadow: 0 16px 30px -12px rgba(174, 138, 21, .6);
  opacity: 0; transform: translateY(10px) scale(.9); transform-origin: 100% 100%;
  transition: opacity .6s .8s, transform .8s .8s var(--ease-out);
}
.is-inview .bubble { opacity: 1; transform: none; }

/* calendário */
.cal { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.cal__month { text-transform: capitalize; }
.cal__badge { padding: 4px 8px; border-radius: 999px; font: 500 10.5px var(--mono); color: var(--gold-light); background: rgba(193, 153, 73, .12); }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal__dow span { padding-bottom: 4px; font: 500 10px var(--mono); color: var(--dim); }
.cal__d { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font: 500 11px var(--mono); color: var(--muted); }
.cal__d.is-today { color: var(--text); background: rgba(255, 255, 255, .09); }
.cal__d.is-due { color: var(--text); background: rgba(193, 153, 73, .1); box-shadow: inset 0 0 0 1px rgba(193, 153, 73, .38); }
.cal__d.is-done::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0D05' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 60% no-repeat, var(--grad-gold);
  transform: scale(0); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .3s;
  transition-delay: calc(var(--i, 0) * .22s + .3s);
}
.is-inview .cal__d.is-done::after { transform: scale(1); opacity: 1; }
.cal__d.is-due:not(.is-done)::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px var(--gold); animation: ping 2s var(--ease-out) infinite; }

/* feriados no calendário: nacional (azul) e municipal (terracota, não altera os prazos) */
.cal__d.is-hol { color: #CFE0EE; background: rgba(91, 132, 168, .22); }
.cal__d.is-hol-mun { color: #F0CDBF; background: rgba(190, 102, 74, .22); }
.cal__d.is-hol-mun.is-due { box-shadow: inset 0 0 0 1px rgba(193, 153, 73, .5); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font: 500 10px var(--mono); color: var(--dim); }
.cal__lg { display: inline-flex; align-items: center; gap: 6px; }
.cal__lg::before { content: ''; width: 9px; height: 9px; border-radius: 3px; }
.cal__lg--due::before { background: rgba(193, 153, 73, .25); box-shadow: inset 0 0 0 1px rgba(193, 153, 73, .6); }
.cal__lg--hol::before { background: rgba(91, 132, 168, .45); }
.cal__lg--mun::before { background: rgba(190, 102, 74, .5); }

/* agenda fiscal: prazos de amanhã e dos próximos dias (assets/data/agenda-fiscal.js) */
.b-dead .bcard__visual { display: flex; flex-direction: column; gap: 16px; }
.agenda { display: grid; gap: 10px; }
.agenda[hidden] { display: none; }
.agenda__when { margin: 2px 0 0; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.agenda__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agenda__list > li { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.agenda__date { justify-self: start; padding: 3px 8px; border-radius: 8px; font: 600 10.5px var(--mono); line-height: 1.3; color: var(--gold-light); background: rgba(193, 153, 73, .12); }
.agenda__items { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.agenda__items li { position: relative; padding-left: 10px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--text); cursor: help; }
.agenda__items li::before { content: ''; position: absolute; left: 0; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.agenda__none { margin: 0; padding: 10px 12px; border-radius: 14px; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); }
.agenda__more { margin: 0; font-size: 12px; color: var(--dim); }
.agenda__more a, .bcard .link-inline { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }

/* relatórios */
.rep__kpi { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.rep__kpi .fcard__label { width: 100%; }
.rep__kpi strong { font-size: 26px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.rep__bars { display: flex; align-items: flex-end; gap: 7px; height: 150px; margin-top: 22px; }
.rep__bars i {
  flex: 1; height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--n) * .08s + .1s);
}
.rep__bars i:last-child { background: linear-gradient(180deg, #F1DFAE, #AE8A15 60%, #8A6A12); box-shadow: 0 0 30px rgba(193, 153, 73, .45); }
.is-inview .rep__bars i { transform: scaleY(1); }
.rep__axis { display: flex; justify-content: space-between; margin-top: 10px; font: 500 10px var(--mono); color: var(--dim); }
.rep__axis span { flex: 1; text-align: center; }

/* faturas */
.feed { position: relative; height: 178px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.feed__list { margin: 0; padding: 0; list-style: none; animation: feed 9s var(--ease-in-out) infinite; }
.feed__list li { display: flex; align-items: center; gap: 12px; height: 52px; margin-bottom: 8px; padding: 0 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.feed__ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; color: var(--gold-light); background: rgba(193, 153, 73, .12); }
.feed__ic .icon { width: 16px; height: 16px; }
.feed__t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.feed__t b { font-size: 13px; }
.feed__t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--dim); }
.feed__ok { padding: 4px 8px; border-radius: 999px; font: 500 10px var(--mono); color: var(--gold-light); background: rgba(193, 153, 73, .12); }

/* mapa */
.b-loc { justify-content: flex-end; }
.mapart { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.b-loc::before { z-index: 0; }
.b-loc .bcard__text { position: relative; z-index: 1; max-width: 330px; }
.b-loc .bcard__text::before {
  content: ''; position: absolute; z-index: -1;
  left: -28px; right: -28px; top: -44px; bottom: -28px;
  background: linear-gradient(180deg, transparent, rgba(16, 19, 26, .94) 38%);
}
.mapart__land { fill: url(#pDots); }
.mapart__centro { fill: url(#gCentro); }
.mapart__coast { fill: none; stroke: rgba(255, 255, 255, .26); stroke-width: 1; stroke-linejoin: round; }
.mapart__region { font: 600 7.5px var(--mono); letter-spacing: .14em; fill: var(--gold-light); }
.mapart__roads path { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: .8; }
.mapart__flow path { fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .8; animation: flow 1.6s linear infinite; }
.mapart__towns circle { fill: var(--ink-850); stroke: rgba(255, 255, 255, .5); stroke-width: 1; }
.mapart__towns text { font: 500 7.5px var(--mono); fill: var(--muted); }
.mapart__core { fill: #FFF3D6; stroke: var(--gold); stroke-width: 2; }
.mapart__pulse { fill: none; stroke: var(--gold); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.6s var(--ease-out) infinite; }
.mapart__pulse--2 { animation-delay: 1.3s; }

/* alertas */
.alerts { position: relative; display: grid; align-content: start; gap: 18px; }
.alerts__bell {
  position: relative;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  color: var(--gold-light); background: rgba(193, 153, 73, .12); border: 1px solid rgba(193, 153, 73, .3);
}
.alerts__bell .icon { width: 24px; height: 24px; transform-origin: 50% 10%; animation: bell 4s ease-in-out infinite; }
.alerts__bell i {
  position: absolute; right: -6px; top: -6px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font: 700 10.5px/1 var(--font); font-style: normal; color: var(--on-gold); background: var(--grad-gold);
  box-shadow: 0 0 0 3px var(--ink-800);
}
.alerts__stack { display: grid; gap: 8px; }
.note {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(30, 34, 45, .9); border: 1px solid var(--line-strong);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateX(40px);
  transition: opacity .6s, transform .9s var(--ease-out);
  transition-delay: calc(var(--n) * .35s + .2s);
}
.is-inview .note { opacity: 1; transform: none; }
.note__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.note div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.note b { font-size: 12.5px; }
.note small { font-size: 11.5px; color: var(--dim); }

/* ---------- Processo ---------- */
.process { position: relative; }
.process__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 90px; overflow: hidden; }
.process__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 60px; }
.process__head > div { max-width: 780px; }
.process__head .lead { max-width: 380px; margin: 0; flex: none; }
.process__track-wrap { position: relative; }
.process__line {
  position: relative; height: 2px;
  margin: 0 var(--gutter) 46px max(var(--gutter), calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, .08);
}
.process__burn { position: absolute; inset: 0; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 18px rgba(193, 153, 73, .6); }
.process__spark {
  position: absolute; left: 0; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #FFF3D6;
  box-shadow: 0 0 12px 4px rgba(225, 200, 135, .8), 0 0 40px 12px rgba(174, 138, 21, .5);
}
.process__track {
  display: flex; gap: 24px; width: max-content;
  margin: 0; padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - var(--container)) / 2));
  list-style: none;
}
.step {
  position: relative;
  width: clamp(300px, 27vw, 400px);
  padding: 34px 30px 38px;
  border-radius: 26px;
  background: var(--ink-850);
  border: 1px solid var(--line);
  transition: border-color .6s, background-color .6s;
}
.step::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(193, 153, 73, .1), transparent 55%);
  opacity: 0; transition: opacity .6s;
}
.step.is-lit { border-color: rgba(193, 153, 73, .38); }
.step.is-lit::before { opacity: 1; }
.step__num {
  display: block; margin-bottom: 18px;
  font-size: 50px; font-weight: 800; letter-spacing: -.05em; line-height: .85;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
  transition: -webkit-text-stroke-color .6s;
}
.step.is-lit .step__num { -webkit-text-stroke-color: rgba(230, 206, 145, .75); }
.step__icon {
  position: absolute; top: 32px; right: 28px;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--line-strong);
  transition: background-color .6s, color .6s, box-shadow .6s, border-color .6s;
}
.step.is-lit .step__icon { color: var(--on-gold); background: var(--gold); border-color: transparent; box-shadow: 0 0 34px rgba(193, 153, 73, .55); }
.step h3 { position: relative; margin: 0 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.step p { position: relative; margin: 0; color: var(--muted); }

/* ---------- Setores ---------- */
.sectors__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sector { position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 4 / 4.7; border-radius: 26px; background: var(--ink-850); }
.sector__img { position: absolute; inset: 0; z-index: -2; overflow: hidden; transition: transform 1.3s var(--ease-out); }
.sector__img img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; filter: saturate(.85) brightness(.82); transition: filter .8s; }
.sector:hover .sector__img { transform: scale(1.07); }
.sector:hover .sector__img img { filter: saturate(1) brightness(.92); }
.sector::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgba(7, 8, 11, .92) 100%); }
.sector::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(174, 138, 21, .5), transparent 60%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .7s;
}
.sector:hover::after { opacity: 1; }
.sector__info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 26px; }
.sector__num { display: block; margin-bottom: 10px; font: 500 12px var(--mono); color: var(--gold-light); }
.sector h3 { margin: 0 0 6px; font-size: clamp(21px, 1.9vw, 26px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.sector p { margin: 0; font-size: 14.5px; color: rgba(244, 239, 232, .74); }
.sector__arrow {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(20, 22, 29, .5); border: 1px solid rgba(255, 255, 255, .22);
  transition: background-color .4s, color .4s, transform .7s var(--ease-out), border-color .4s;
}
.sector:hover .sector__arrow { color: var(--on-gold); background: var(--gold); border-color: transparent; transform: rotate(45deg); }

/* ---------- Simulador ---------- */
.sim::before {
  content: ''; position: absolute; left: 50%; top: 0; width: min(1100px, 100%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(193, 153, 73, .4), transparent);
}
.sim__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sim__notes { display: grid; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.sim__notes li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--muted); }
.sim__notes .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); stroke-width: 2.2; }

.sim__card {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 42px);
  border-radius: 30px;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9);
}
.sim__card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 320px at 100% 0%, rgba(174, 138, 21, .16), transparent 70%);
}
.range { position: relative; display: block; margin-bottom: 28px; }
.range__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.range__top output { font-size: 28px; font-weight: 800; letter-spacing: -.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.range__scale { display: flex; justify-content: space-between; margin-top: 10px; font: 500 11px var(--mono); color: var(--dim); }
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin: 0; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, #E2C47C 0%, #AE8A15 var(--p, 50%), rgba(255, 255, 255, .1) var(--p, 50%));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: #FFF4E6;
  box-shadow: 0 0 0 7px rgba(193, 153, 73, .22), 0 6px 16px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 11px rgba(193, 153, 73, .22), 0 6px 16px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #FFF4E6; box-shadow: 0 0 0 7px rgba(193, 153, 73, .22), 0 6px 16px rgba(0, 0, 0, .5); }

.sim__result { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.donut { position: relative; width: 220px; height: 220px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut__track { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 22; }
.donut__seg { fill: none; stroke-width: 22; stroke-dasharray: 0 503; }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center span { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.donut__center strong { margin-top: 4px; font-size: 27px; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.legend { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.legend b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.sim__summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.sim__summary > div { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.sim__summary span { display: block; margin-bottom: 4px; font-size: 13px; color: var(--dim); }
.sim__summary strong { font-size: 24px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sim__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.sim__disclaimer { margin: 0; max-width: 330px; font-size: 12.5px; color: var(--dim); }

/* ---------- Testemunhos (secção clara) ---------- */
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .eyebrow { color: #8C6D12; }
.section--paper .lead { color: var(--paper-muted); }
.section--paper ::selection { background: var(--paper-ink); color: var(--paper); }
.ts { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.ts__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 30px; background: var(--paper-2); }
.ts__img { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 100%); }
.ts__img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.ts__img img { width: 100%; height: 100%; object-fit: cover; }
.ts__mark { display: block; height: 36px; margin-bottom: 6px; font-family: var(--serif); font-size: 85px; line-height: .8; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ts__quotes { display: grid; }
.ts__quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.ts__quote.is-active { opacity: 1; visibility: visible; }
.ts__quote p { margin: 0 0 34px; font-size: clamp(18px, 1.35vw, 20px); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; text-wrap: pretty; }
.ts__who { display: flex; flex-direction: column; gap: 2px; }
.ts__who strong { font-size: 17px; }
.ts__who span { font-size: 15px; color: var(--paper-muted); }
.ts__nav { display: flex; align-items: center; gap: 12px; margin-top: 50px; }
.ts__btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(23, 20, 15, .2); transition: background-color .3s, color .3s, border-color .3s; }
.ts__btn:hover { color: var(--paper); background: var(--paper-ink); border-color: var(--paper-ink); }
.ts__bars { display: flex; gap: 8px; flex: 1; max-width: 240px; margin-left: 14px; }
.ts__bar { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(23, 20, 15, .12); }
.ts__bar i { display: block; height: 100%; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); }
.ts__count { margin-left: auto; font: 500 13px var(--mono); color: var(--paper-muted); }

/* ---------- Guias ---------- */
.guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--ink-850); border: 1px solid var(--line); transition: transform .7s var(--ease-out), border-color .5s; }
.guide:hover { transform: translateY(-6px); border-color: rgba(193, 153, 73, .32); }
.guide__img { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.guide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.guide:hover .guide__img img { transform: scale(1.06); }
.guide__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 24px 26px 28px; }
.guide__meta { display: flex; justify-content: space-between; gap: 10px; font: 500 11.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.guide__tag { color: var(--gold-light); }
.guide h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.28; }
.guide__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--muted); transition: color .3s; }
.guide__more .icon { width: 17px; height: 17px; color: var(--gold); transition: transform .5s var(--ease-out); }
.guide:hover .guide__more { color: var(--text); }
.guide:hover .guide__more .icon { transform: translateX(4px); }

/* ---------- Contactos ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.contact__bg img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; opacity: .5; }
.contact__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink-900) 0%, rgba(11, 13, 18, .55) 30%, rgba(11, 13, 18, .82) 62%, var(--ink-900) 100%); }
.contact__head { max-width: 1000px; margin: 0 auto clamp(56px, 7vw, 92px); text-align: center; }
.contact__head .eyebrow::after { content: ''; width: 22px; height: 1px; background: currentColor; }
.contact__head .lead { margin-inline: auto; }
.contact__title { margin: 0; font-size: clamp(28px, 3.3vw, 50px); font-weight: 800; letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
.contact__title .flame-text { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 22px; align-items: start; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px; border-radius: 20px;
  background: rgba(16, 19, 26, .74); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .3s, background-color .3s;
}
a.info:hover { border-color: rgba(193, 153, 73, .38); background: rgba(22, 26, 35, .88); }
.info .icon { margin-bottom: 10px; color: var(--gold); }
.info__label { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.info__value { font-size: 18px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.info__note { font-size: 12.5px; color: var(--dim); }
.map { position: relative; grid-column: 1 / -1; min-height: 250px; overflow: hidden; border-radius: 20px; background: var(--ink-850); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.55) brightness(.92) contrast(.92); }

.form {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: rgba(16, 19, 26, .82); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; padding: 27px 18px 11px;
  border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .035); color: var(--text);
  font: inherit; font-size: 16px; outline: none; resize: vertical;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; }
.field label { position: absolute; left: 19px; top: 19px; font-size: 15px; color: var(--dim); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus { border-color: rgba(193, 153, 73, .6); background: rgba(193, 153, 73, .04); box-shadow: 0 0 0 4px rgba(193, 153, 73, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); color: var(--gold-light); }
.field__err { display: none; margin-top: 6px; font-size: 12.5px; color: #FF8A96; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF5D6C; }
.field.is-invalid .field__err { display: block; }
.chips { margin: 4px 0 18px; padding: 0; border: 0; }
.chips legend { margin-bottom: 12px; padding: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-flex; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: background-color .3s, border-color .3s, color .3s;
}
.chip-check span:hover { border-color: rgba(255, 255, 255, .28); color: var(--text); }
.chip-check input:checked + span { color: var(--text); background: rgba(193, 153, 73, .14); border-color: rgba(193, 153, 73, .55); }
.chip-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 22px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none;
  display: grid; place-items: center; width: 20px; height: 20px; margin: 1px 0 0;
  border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); cursor: pointer;
}
.check input:checked { background: var(--grad-gold); border-color: transparent; }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid var(--on-gold); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid input { border-color: #FF5D6C; box-shadow: 0 0 0 3px rgba(255, 93, 108, .15); }
.form__success {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  padding: 40px; border-radius: inherit; text-align: center;
  background: radial-gradient(60% 50% at 50% 40%, rgba(174, 138, 21, .16), transparent 70%), var(--ink-850);
  opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
}
.form.is-sent .form__success { opacity: 1; visibility: visible; }
.form__flame { width: 58px; height: auto; margin-bottom: 14px; animation: torchGlow 3.2s ease-in-out infinite; }
.form__success h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.form__success p { max-width: 320px; margin: 0; color: var(--muted); }
/* campo-armadilha para robôs: fora do ecrã, nunca visível */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 93, 108, .35); background: rgba(255, 93, 108, .08); color: #FFC2C8; font-size: 14px; line-height: 1.5; }
.form__error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form.is-sending button[type="submit"] { opacity: .65; pointer-events: none; }

/* ---------- Rodapé ---------- */
.footer { position: relative; overflow: hidden; padding-top: clamp(80px, 9vw, 120px); background: var(--ink-950); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo { display: inline-block; }
.footer__logo img { display: block; width: 200px; height: auto; }
.footer__brand p { max-width: 320px; margin: 20px 0 24px; font-size: 15px; color: var(--muted); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); transition: color .3s, background-color .3s, border-color .3s; }
.social a:hover { color: var(--on-gold); background: var(--gold); border-color: transparent; }
.social .icon { width: 18px; height: 18px; }
.footer h4 { margin: 6px 0 20px; font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.footer ul a { transition: color .3s; }
.footer ul a:hover { color: var(--text); }
.footer ul small { font-size: 12px; color: var(--dim); }
.footer__mega {
  margin-top: clamp(50px, 7vw, 100px);
  font-size: 6.7vw; font-weight: 800; letter-spacing: -.055em; line-height: .78;
  text-align: center; white-space: nowrap; user-select: none;
  padding-bottom: .06em;
}
.footer__mega span {
  display: inline-block;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 70%), #FFF3D6 0%, #D9B969 8%, #AE8A15 17%, #1A2126 32%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a, .to-top { transition: color .3s; }
.footer__legal a:hover, .to-top:hover { color: var(--text); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.to-top .icon { width: 16px; height: 16px; }

/* ---------- Destaque flutuante (Legislação) ---------- */
@property --lp-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lpromo {
  position: fixed; right: var(--gutter); bottom: 24px; z-index: 85;
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  opacity: 0; visibility: hidden;
  transform: translateX(calc(100% + 48px)) rotate(3deg);
  transition: transform 1.1s var(--ease-out), opacity .6s, visibility 0s 1.1s;
}
.lpromo.is-in { opacity: 1; visibility: visible; transform: none; transition: transform 1.1s var(--ease-out), opacity .6s, visibility 0s; }
.lpromo.is-in.is-away { opacity: 0; visibility: hidden; transform: translateY(28px); transition: transform .5s var(--ease-out), opacity .4s, visibility 0s .5s; }
.menu-open .lpromo { opacity: 0; pointer-events: none; }
.lpromo__float { position: relative; animation: lpFloat 5s ease-in-out infinite; }
.lpromo__card {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 46px 16px 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(28, 37, 43, .96), rgba(12, 17, 20, .97));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(193, 153, 73, .2);
  color: var(--text);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
/* luz dourada a correr à volta do cartão */
.lpromo__card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--lp-angle), transparent 0 60%, rgba(241, 223, 174, .95) 75%, #C19949 84%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: lpSpin 4.5s linear infinite;
}
.lpromo__card:hover { transform: translateY(-3px); box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(193, 153, 73, .4), 0 0 44px -12px rgba(193, 153, 73, .5); }
.lpromo__card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.lpromo__icon {
  position: relative; flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-gold); color: var(--on-gold);
}
.lpromo__icon .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.lpromo__icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(241, 223, 174, .8); animation: ping 2.2s var(--ease-out) infinite; }
.lpromo__body { display: grid; gap: 5px; min-width: 0; }
.lpromo__tag { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lpromo__tag b { padding: 4px 7px 3px; border-radius: 999px; border: 1px solid rgba(193, 153, 73, .45); background: rgba(193, 153, 73, .16); color: var(--gold-light); font-weight: 500; animation: pulse 2.4s infinite; }
.lpromo__title { font-size: 16px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.lpromo__text { font-size: 13px; line-height: 1.45; color: var(--muted); }
.lpromo__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--gold-light); }
.lpromo__cta .icon { width: 16px; height: 16px; animation: lpNudge 2.4s ease-in-out infinite; }
.lpromo__close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--muted);
  cursor: pointer; transition: background .3s, color .3s;
}
.lpromo__close:hover, .lpromo__close:focus-visible { background: rgba(255, 255, 255, .14); color: var(--text); }
.lpromo__close .icon { width: 14px; height: 14px; }
@keyframes lpFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-.6deg); } }
@keyframes lpSpin { to { --lp-angle: 360deg; } }
@keyframes lpNudge { 0%, 55%, 100% { transform: translateX(0); } 75% { transform: translateX(5px); } }
@media (max-width: 640px) {
  .lpromo { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .lpromo__card { gap: 12px; padding: 12px 42px 12px 12px; border-radius: 16px; }
  .lpromo__icon { width: 40px; height: 40px; border-radius: 12px; }
  .lpromo__icon .icon { width: 21px; height: 21px; }
  .lpromo__text { display: none; }
  .lpromo__title { font-size: 14.5px; }
  .lpromo__cta { margin-top: 1px; font-size: 12.5px; }
}
@media print { .lpromo { display: none; } }

/* ---------- Animações ---------- */
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  20% { transform: scale(.97, 1.04) skewX(-2deg); }
  40% { transform: scale(1.02, .97) skewX(1.5deg); }
  60% { transform: scale(.98, 1.03) skewX(-1deg); }
  80% { transform: scale(1.01, .99) skewX(.8deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes torchGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(193, 153, 73, .3)); }
  50% { filter: drop-shadow(0 0 18px rgba(214, 180, 100, .6)); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(193, 153, 73, .6); }
  70% { box-shadow: 0 0 0 10px rgba(193, 153, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(193, 153, 73, 0); }
}
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes scrollLine { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes feed {
  0%, 22% { transform: translateY(0); }
  33%, 55% { transform: translateY(-60px); }
  66%, 88% { transform: translateY(-120px); }
  100% { transform: translateY(-180px); }
}
@keyframes bell {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(14deg); }
  78% { transform: rotate(-12deg); }
  82% { transform: rotate(9deg); }
  86% { transform: rotate(-6deg); }
  90% { transform: rotate(3deg); }
}
@keyframes flow { to { stroke-dashoffset: -34; } }
@keyframes mapPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__phone span { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__content { max-width: 760px; }
  .hero__visual { width: min(560px, 100%); height: 540px; margin: 10px auto 0; }
  .fc--toast { left: 0; width: 316px; }
  .fc--deadline { right: 0; }
  .hero__bottom { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "ded ded" "dead dead" "rep pap" "loc ale"; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .process__pin { min-height: 0; padding: 100px 0; }
  .process__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .process__head .lead { max-width: 560px; }
  .process__track { flex-direction: column; width: auto; gap: 16px; padding: 0 var(--gutter) 0 calc(var(--gutter) + 40px); }
  .step { width: auto; }
  .process__line { position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 12px); width: 2px; height: auto; margin: 0; }
  .process__burn { transform-origin: top; transform: scaleY(0); }
  .process__spark { left: 50%; top: 0; }
  .about__grid, .sim__grid, .ts, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 520px; }
  .ts__media { max-width: 460px; aspect-ratio: 1; }
  .sectors__grid, .guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-head--split .lead { max-width: 560px; }
}

@media (max-width: 900px) {
  .panels { flex-direction: column; height: auto; gap: 10px; }
  .panel, .panel.is-active { flex: none; }
  .panel { height: 84px; transition: height .8s var(--ease-out), border-color .5s; }
  .panel.is-active { height: 520px; }
  .panel__num { top: 32px; }
  .panel__vtitle { left: 64px; top: 26px; bottom: auto; writing-mode: horizontal-tb; transform: none; font-size: 20px; }
  .panel__body { width: 100%; padding: 26px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n + 3) { padding-top: 30px; border-top: 1px solid var(--line); margin-top: 30px; }
}

@media (max-width: 640px) {
  .section { padding-block: 88px; }
  .header__actions .btn { display: none; }
  .header__inner { height: 62px; padding-left: 18px; }
  .hero { padding: 112px 0 64px; }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: .05em; }
  .hero__vignette { background: linear-gradient(180deg, rgba(7, 8, 11, .62) 0%, rgba(7, 8, 11, .42) 50%, rgba(7, 8, 11, .7) 100%); }
  .hero__visual { height: auto; margin-top: 8px; perspective: none; }
  .hero__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .fc { position: relative; inset: auto; width: auto; display: flex; }
  .fc > .fcard { flex: 1; min-width: 0; }
  .fc--chart { grid-column: 1 / -1; order: 1; }
  .fc--toast { grid-column: 1 / -1; order: 2; }
  .fc--iva { order: 3; }
  .fc--deadline { order: 4; }
  .fcard--status { flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; }
  .fcard__big { font-size: 26px; }
  .hero__trust { align-items: flex-start; flex-direction: column; gap: 12px; }
  .about__media { margin: 30px 18% 50px 20px; }
  .badge-rot { width: 108px; height: 108px; left: -12px; top: -26px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ded" "dead" "rep" "pap" "ale" "loc"; }
  .b-ded { flex-direction: column-reverse; }
  .b-ded .bcard__visual { min-height: 290px; }
  .bcard { min-height: 0; }
  .b-loc { min-height: 430px; }
  .sectors__grid, .guides__grid, .contact__info, .form__row { grid-template-columns: minmax(0, 1fr); }
  .sector { aspect-ratio: 4 / 4.2; }
  .sim__result { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .legend { width: 100%; }
  .sim__summary { grid-template-columns: minmax(0, 1fr); }
  .ts__nav { flex-wrap: wrap; }
  .ts__bars { order: 3; flex-basis: 100%; max-width: none; margin: 8px 0 0; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (hover: none) {
  .hero__hint { display: none; }
}

/* ---------- Texto corrido justificado (com hifenização em português) ----------
   Só nos parágrafos principais e em ecrãs largos: em colunas estreitas (cartões,
   telemóvel) a justificação abre espaços grandes entre palavras. */
@media (min-width: 700px) {
  .hero__lead, .lead, .about__sub, .panel__body p, .simv__intro, .digest__intro, .ni p {
    text-align: justify;
    -webkit-hyphens: auto; hyphens: auto;
  }
  .section-head--center .lead, .contact__head .lead, .contact__head p { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
