/* ==========================================================================
   kapta.si — folha de estilos principal
   Identidade Kapta: Satoshi (títulos), General Sans (texto), #161616, vermelho do ponto.
   ========================================================================== */

@font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/GeneralSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/GeneralSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/GeneralSans-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #161616;
  --ink-2: #222;
  --ink-3: #2c2c2c;
  --muted: #656565;
  --muted-2: #9a9a9a;
  --tone: #a3a3a3;
  --line: #dbdbdb;
  --line-soft: #ececec;
  --soft: #f6f6f4;
  --white: #fff;
  --red: #e32426;
  --red-soft: rgb(229 85 92 / 28%);
  --green: #2fbf71;
  --amber: #f2a541;

  --font-display: 'Satoshi', 'General Sans', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1350px;
  --gutter: 24px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --pill: 999px;
  --header-h: 112px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --section-y: clamp(90px, 11vw, 160px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
/* O atributo hidden esconde sempre (o display: block das imagens e de outros elementos sobrepunha-se) */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--pill); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: 1520px; }

.tone { color: var(--tone); }
.section--dark .tone, .band--dark .tone, .cta .tone, .site-footer .tone { color: #7d7d7d; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.section--dark .eyebrow, .band--dark .eyebrow { color: var(--muted-2); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.section--dark .lead { color: #a8a8a8; }

.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; }

/* Glow vermelho Kapta */
.glow {
  position: absolute; width: 788px; height: 788px; border-radius: 50%;
  background: var(--red-soft); filter: blur(220px); pointer-events: none; z-index: 0;
  transform: translate3d(0,0,0);
}
.glow--hero { left: -20vw; top: -24vw; }
.glow--band { right: -22vw; top: 30%; opacity: .55; }
.glow--auto { left: -25vw; bottom: -30vw; opacity: .6; }
.glow--cta { right: -300px; top: -360px; opacity: .9; }
.glow--footer { right: -20vw; bottom: -20vw; }

/* ---------- Botões, pills, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px; border-radius: var(--pill);
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.05rem; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #ececec; }
.btn--line { border-color: var(--line); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.22); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--pill);
  font-size: .95rem; color: var(--ink); background: rgba(255,255,255,.6);
}
.chips--dark li { border-color: #333; color: #cfcfcf; background: transparent; }
/* Chips com o favicon da marca (inc/integration-chips.php) */
.chips--logos li { padding: 0; }
.chips--logos li > a, .chips--logos li > span { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: inherit; color: inherit; transition: color .25s, background .25s; }
.chips--logos li { transition: border-color .25s; }
.chips--logos li:has(> a:hover), .chips--logos li:has(> a:focus-visible) { border-color: #5a5a5a; }
.chips--logos li > a:hover, .chips--logos li > a:focus-visible { color: var(--white); background: rgba(255,255,255,.04); }
.chips--logos img, .chips__icon { flex: none; width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.chips--light li { background: var(--white); }
.chips--light.chips--logos li:has(> a:hover), .chips--light.chips--logos li:has(> a:focus-visible) { border-color: var(--ink); }
.chips--light.chips--logos li > a:hover, .chips--light.chips--logos li > a:focus-visible { color: var(--ink); background: transparent; }
.chips--light .chips__icon { display: grid; place-items: center; background: var(--soft); }
.chips__icon { display: grid; place-items: center; background: #262626; color: #cfcfcf; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; padding: 5px 12px; border-radius: var(--pill); background: var(--soft); color: var(--muted); }
.tags--sm li { font-size: .78rem; padding: 4px 10px; }

.num-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; height: 40px; padding: 0 20px; border-radius: 35px;
  border: 1px solid var(--line); font-size: .95rem; color: var(--ink);
}

.pill { display: inline-block; font-size: .75rem; padding: 4px 10px; border-radius: var(--pill); background: var(--soft); color: var(--ink); font-weight: 500; }
.pill--red { background: #fde3e3; color: #b3191b; }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47,191,113,.5); animation: live 2s infinite; vertical-align: middle; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.55); } 70% { box-shadow: 0 0 0 9px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.topbar {
  background: var(--ink); color: #eaeaea; font-size: .85rem; text-align: center;
  max-height: 40px; overflow: hidden; transition: max-height .35s var(--ease);
}
.topbar a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; white-space: nowrap; }
.topbar a:hover { color: var(--white); }
.topbar__badge { background: var(--red); color: var(--white); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--pill); }
.site-header.is-scrolled .topbar { max-height: 0; }

.nav-wrap { transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s; }
.site-header.is-scrolled .nav-wrap,
.site-header.mega-open .nav-wrap {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav__logo img { width: 112px; height: auto; }
.nav__menu > ul { display: flex; align-items: center; gap: 6px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--pill); border: 0; background: none;
  font-size: .98rem; color: var(--ink); transition: background .25s var(--ease);
}
.nav__link:hover, .nav__trigger[aria-expanded="true"] { background: rgba(22,22,22,.06); }
.nav__trigger svg { transition: transform .3s var(--ease); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line-soft); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding-top: 28px; padding-bottom: 32px; }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mega__item {
  display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); transition: border-color .25s, background .25s;
}
.mega__item:hover { border-color: var(--ink); background: var(--soft); }
.mega__num { font-size: .8rem; color: var(--muted-2); }
.mega__item strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.mega__item span:last-child { color: var(--muted); font-size: .95rem; }
.mega__feature { position: relative; border-radius: var(--radius); overflow: hidden; background: #d9d9d9; min-height: 240px; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature-copy {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-radius: var(--radius-sm); display: grid; gap: 2px;
}
.mega__feature-copy small { color: var(--muted); font-size: .8rem; }
.mega__feature-copy strong { font-weight: 500; font-size: .98rem; line-height: 1.3; }
.mega__grid--3 { grid-template-columns: repeat(3, 1fr); }
.mega__num img { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.mega__icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--white); }
/* Destaque do menu Automações: acesso dos clientes FareHarbor */
.mega__feature--fh { background: radial-gradient(120% 90% at 20% 0%, #3a1f20 0%, #1a1a1a 55%, #121212 100%); }
.mega__feature-logo { position: absolute; left: 22px; top: 22px; width: 64px; height: 64px; border-radius: 18px; background: var(--white); display: grid; place-items: center; box-shadow: 0 20px 40px -18px rgba(0,0,0,.9); transition: transform .6s var(--ease); }
.mega__feature-logo img { position: static; width: 40px; height: 40px; object-fit: contain; }
.mega__feature--fh:hover .mega__feature-logo { transform: translateY(-3px) rotate(-4deg); }

/* Burger + menu móvel */
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--white);
  padding: 120px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__glow { position: absolute; width: 500px; height: 500px; right: -200px; bottom: -200px; border-radius: 50%; background: var(--red-soft); filter: blur(120px); pointer-events: none; }
.mobile-menu ul { display: grid; gap: 4px; position: relative; }
.mobile-menu nav a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.25; display: inline-block; }
.mobile-menu__footer { display: grid; gap: 12px; margin-top: 40px; position: relative; color: #bbb; }
.mobile-menu__footer .btn { justify-self: start; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header .nav-wrap { background: transparent; box-shadow: none; backdrop-filter: none; }
.nav__logo .logo-light { display: none; }
body.menu-open .nav__logo .logo-dark { display: none; }
body.menu-open .nav__logo .logo-light { display: block; }
body.menu-open .burger { background: transparent; border-color: #444; }
body.menu-open .burger span { background: var(--white); }
body.menu-open .topbar { max-height: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(50px, 7vw, 100px)); overflow: hidden; overflow: clip; }
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero__title { font-size: clamp(2.7rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -0.025em; }
.hero__title .tone { display: block; }
.hero__aside p { font-size: 1.2rem; color: #555; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { margin-top: 48px; }
.automation__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__media {
  position: relative; margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius-lg); overflow: hidden;
  background: #d6d6d6; aspect-ratio: 16 / 8.2;
}
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.hero__media.is-visible > img { transform: scale(1); }

.float-card {
  position: absolute; z-index: 2; background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.7); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.28); font-size: .9rem; max-width: 300px;
  animation: float 7s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-size: .76rem; }
.float-card strong { font-weight: 500; }
.float-card--ai { left: 4%; top: 9%; animation-delay: -1s; }
.float-card--ai p { margin-top: 8px; min-height: 2.9em; color: #333; }
.float-card__head { display: flex; align-items: center; gap: 8px; }
.float-card--triage { right: 4%; top: 30%; animation-delay: -3s; }
.float-card--triage p { margin: 4px 0 10px; font-weight: 500; }
.float-card__route { display: flex; align-items: center; gap: 6px; color: var(--muted-2); }
.float-card--flow { left: 30%; bottom: 7%; display: flex; gap: 12px; align-items: center; animation-delay: -5s; }
.check { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; }

.spark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8b, var(--red) 60%); box-shadow: 0 0 14px rgba(227,36,38,.5); }
.typing { display: inline-flex; gap: 3px; margin-left: auto; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Logos marquee ---------- */
.logos { padding: clamp(70px, 8vw, 110px) 0 clamp(60px, 7vw, 90px); }
.logos__title { text-align: center; color: var(--muted); font-size: .98rem; margin-bottom: 40px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee__track--slow { animation-duration: 40s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: clamp(48px, 6vw, 90px); padding-right: clamp(48px, 6vw, 90px); }
.marquee__list img { height: auto; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s; }
.marquee__list img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Banda escura ---------- */
.band { position: relative; overflow: hidden; }
.band--dark, .section--dark { background: var(--ink); color: var(--white); }
.band > .container { position: relative; z-index: 1; }

.statement { text-align: center; padding-top: var(--section-y); padding-bottom: var(--section-y); display: grid; justify-items: center; gap: 32px; }
.statement__text { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.22; max-width: 26ch; }

.avatars { display: flex; align-items: center; }
.avatars img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); background: #333; }
.avatars img + img { margin-left: -12px; }
.avatars__more { margin-left: 12px; font-size: .9rem; color: #aaa; }
.cta .avatars img { border-color: #1e1e1e; }

.pillars { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 48px; border-top: 1px solid #2a2a2a; padding-top: clamp(60px, 7vw, 100px); padding-bottom: clamp(60px, 7vw, 100px); }
.pillars__head { position: relative; }
.pillars__title { position: sticky; top: 120px; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.1; }
.pillars__list { display: grid; gap: clamp(40px, 5vw, 72px); }
.pillar { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pillar__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: #222; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.04); }
.pillar__copy h3 { font-size: 1.6rem; margin-bottom: 14px; }
.pillar__copy p { color: #a8a8a8; font-size: 1.08rem; }

.feature-stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 72px); align-items: center; border-top: 1px solid #2a2a2a; padding-top: clamp(60px, 7vw, 100px); padding-bottom: var(--section-y); }
.feature-stat__copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.15; margin-bottom: 22px; }
.feature-stat__copy p { color: #a8a8a8; margin-bottom: 32px; }
.feature-stat__num { display: grid; gap: 4px; margin-bottom: 36px; }
.feature-stat__num span:last-child { color: #a8a8a8; }
.big-num { font-family: var(--font-display); font-size: clamp(3.6rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.03em; }
.feature-stat__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.feature-stat__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-stat__legend { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.feature-stat__legend li { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; padding: 7px 14px; border-radius: var(--pill); background: rgba(20,20,20,.7); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--red { background: var(--red); }
.dot--amber { background: var(--amber); }
.dot--white { background: #fff; }

/* ---------- Secções genéricas ---------- */
.section { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section--soft { background: var(--soft); }
/* Duas secções brancas seguidas: sem cor a separá-las, o espaço de baixo e o de cima somavam-se num vazio grande */
.section:not(.section--soft):not(.section--dark) + .section:not(.section--soft):not(.section--dark) { padding-top: calc(var(--section-y) * .25); }
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; }
.section-head--split > div { flex: 1 1 560px; max-width: 800px; }
.section-head--split > .lead { flex: 0 1 420px; margin-bottom: 6px; }

/* ---------- Soluções ---------- */
.solutions__list { border-bottom: 1px solid var(--line); }
.solution {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.25fr) 48px; gap: 32px; align-items: start;
  padding: 44px 0; border-top: 1px solid var(--line); position: relative; transition: padding .4s var(--ease);
}
.solution h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; transition: transform .4s var(--ease); }
.solution__body p { color: var(--muted); font-size: 1.1rem; margin-bottom: 18px; }
.solution__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s; }
.solution:hover h3 { transform: translateX(8px); }
.solution:hover .solution__arrow { background: var(--ink); color: var(--white); border-color: var(--ink); transform: rotate(45deg); }
.solution:hover .num-pill { border-color: var(--red); color: var(--red); }

.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 260px; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.8);
  transition: opacity .3s var(--ease), transform .3s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.hover-preview.is-visible { opacity: 1; }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- IA aplicada ---------- */
.ai__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ai__copy h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 24px; }
.ai__copy .lead { margin-bottom: 36px; }
.ai__features { display: grid; gap: 22px; }
.ai__features li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.ai__features strong { display: block; font-weight: 500; margin-bottom: 2px; }
.ai__features span { color: var(--muted); }
.ai__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-soft); display: grid; place-items: center; }
.ai__icon svg { width: 22px; height: 22px; }
.ai__case .case__media { height: clamp(320px, 34vw, 480px); background: #e3f5e0; }
.page-hero__visual { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #e3f5e0; box-shadow: 0 40px 80px -40px rgba(0,0,0,.25); }
.page-hero__visual img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 40%; }
.page-hero__visual figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content; font-size: .82rem; color: var(--white); background: rgba(0,0,0,.55); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: var(--pill); }

@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Automatismos ---------- */
.automation .section-head h2 { max-width: 16ch; }
.flow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.flow__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.flow__step {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 24px 20px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-soft);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.flow__step strong { font-weight: 500; font-size: 1.02rem; margin-top: 14px; }
.flow__step small { color: var(--muted); font-size: .82rem; }
.flow__step:not(:last-child)::after {
  content: ''; position: absolute; top: 46px; right: -15px; width: 16px; height: 1px; background: var(--line);
}
.flow__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 1.1rem; color: var(--ink); transition: background .4s, color .4s, box-shadow .4s; }
.flow__icon svg { width: 22px; height: 22px; }
.flow__step.is-active { border-color: rgba(227,36,38,.5); background: #fff8f8; transform: translateY(-4px); }
.flow__step.is-active .flow__icon { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -8px rgba(227,36,38,.55); }
.flow__step.is-done .flow__icon { background: rgba(47,191,113,.12); color: var(--green); }

.flow__log { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -48px rgba(22,22,22,.4); padding: 18px 20px; min-height: 230px; display: flex; flex-direction: column; }
.flow__log-head { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
.flow__log-head small { margin-left: auto; color: var(--muted); }
.flow__log ul { display: grid; gap: 10px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .8rem; color: #5c5c5c; }
.flow__log li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; animation: msgIn .4s var(--ease); }
.flow__log time { color: #a3a3a3; }
.flow__log b { color: var(--ink); font-weight: 500; }

/* Fluxo como cenário num editor de automações (assets/js/flow-graph.js). Sem JavaScript ficam os cartões acima. */
.flow.is-graph { position: relative; }
.flow.is-graph .flow__steps { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.flowgraph {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; min-height: 380px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -48px rgba(22,22,22,.4);
  background: radial-gradient(circle, #dedcd7 1px, transparent 1.4px) 0 0 / 22px 22px, #fbfbfa;
  opacity: 0; transition: opacity .6s var(--ease);
}
.flowgraph.is-live { opacity: 1; }
.flowgraph__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flowgraph__wire { fill: none; stroke: #c9c7c1; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 7; }
.flowgraph__trail { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; opacity: 0; }
.flowgraph__packet { fill: var(--red); opacity: 0; }
.flowgraph__halo { fill: rgba(227,36,38,.18); opacity: 0; }
.flowgraph__node { position: absolute; z-index: 1; width: var(--s, 72px); height: var(--s, 72px); margin: calc(var(--s, 72px) / -2) 0 0 calc(var(--s, 72px) / -2); }
.flowgraph__node::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; pointer-events: none;
}
.flowgraph__node.is-active::before { animation: graphPing 1.4s var(--ease) infinite; }
@keyframes graphPing { from { opacity: .7; transform: scale(.92); } to { opacity: 0; transform: scale(1.35); } }
.flowgraph__bubble {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--white);
  box-shadow: 0 14px 30px -18px rgba(22,22,22,.5), 0 0 0 1px rgba(22,22,22,.07);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.flowgraph__bubble img { width: 52%; height: 52%; object-fit: contain; border-radius: 8px; }
.flowgraph__mail { width: 54%; height: 54%; }
.flowgraph__node--app .flowgraph__bubble img { width: 62%; height: 62%; border-radius: 22%; box-shadow: 0 0 0 1px rgba(22,22,22,.06); }
.flowgraph__node.is-active .flowgraph__bubble { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(227,36,38,.16), 0 18px 34px -16px rgba(227,36,38,.55); }
.flowgraph__node--router .flowgraph__bubble { background: var(--soft); color: #6a6a6a; }
.flowgraph__count, .flowgraph__check {
  position: absolute; display: grid; place-items: center; border-radius: var(--pill); transform: scale(0);
  transition: transform .4s var(--ease); pointer-events: none;
}
.flowgraph__count { top: -6px; right: -10px; min-width: 22px; height: 22px; padding: 0 6px; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 500; }
.flowgraph__node.has-count .flowgraph__count { transform: scale(1); }
.flowgraph__check { bottom: -3px; right: -5px; width: 20px; height: 20px; background: var(--green); color: var(--white); box-shadow: 0 0 0 2px var(--white); }
.flowgraph__node.is-done .flowgraph__check { transform: scale(1); }
.flowgraph__node--router .flowgraph__count, .flowgraph__node--router .flowgraph__check { display: none; }
.flowgraph__bolt {
  position: absolute; top: -4px; left: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: var(--white); box-shadow: 0 0 0 2px var(--white);
}
.flowgraph__label {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(calc(-50% + var(--dx, 0px)));
  display: grid; gap: 2px; text-align: center; white-space: nowrap; font-size: 12.5px; line-height: 1.25;
}
.flowgraph__label strong { font-weight: 500; }
.flowgraph__label small { color: var(--muted); font-size: 11px; }
.flowgraph__bar {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: var(--pill); background: var(--white); font-size: 12.5px;
  box-shadow: 0 10px 26px -16px rgba(22,22,22,.45), 0 0 0 1px rgba(22,22,22,.06);
}
.flowgraph__run { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--white); }
.flowgraph__bar.is-running .flowgraph__run { animation: graphRun .9s var(--ease); }
@keyframes graphRun { 0% { box-shadow: 0 0 0 0 rgba(227,36,38,.45); } 100% { box-shadow: 0 0 0 12px rgba(227,36,38,0); } }
.flowgraph__name { font-weight: 500; }
.flowgraph__switch { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--line-soft); color: var(--muted); }
.flowgraph__switch i { position: relative; width: 26px; height: 15px; border-radius: var(--pill); background: var(--green); }
.flowgraph__switch i::after { content: ''; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); }
@media (max-width: 991px) {
  .flowgraph { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 640px) {
  .flowgraph { aspect-ratio: 1 / 1; }
  .flowgraph__label { width: 84px; white-space: normal; font-size: 11px; }
  .flowgraph__label small { display: none; }
  .flowgraph__bar { left: 10px; bottom: 10px; font-size: 11.5px; }
  .flowgraph__switch { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flowgraph__node.is-active::before { animation: none; }
}
.integrations { margin-top: 40px; }

/* ---------- Projetos ---------- */
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.case { display: flex; flex-direction: column; gap: 22px; }
.case--wide { grid-column: span 7; }
.case--narrow { grid-column: span 5; }
.case__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #e9e9e9; height: clamp(320px, 38vw, 560px); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case:hover .case__media img { transform: scale(1.045); }
.case__view {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85); opacity: 0;
  background: var(--white); color: var(--ink); border-radius: var(--pill); padding: 12px 22px; font-weight: 500; font-size: .95rem;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.case:hover .case__view { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.case__copy { display: grid; gap: 10px; }
.case__client { color: var(--muted); font-size: .98rem; margin-top: 4px; }
.case__metric { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.12; }
.case__text { color: var(--muted); max-width: 52ch; }

/* ---------- Porquê + números ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.why__item { border-top: 1px solid var(--ink); padding-top: 24px; }
.why__item h3 { font-size: 1.55rem; margin-bottom: 12px; }
.why__item p { color: var(--muted); }
.why__photo { margin: clamp(48px, 6vw, 88px) 0 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.why__photo img { width: 100%; aspect-ratio: 1320 / 450; object-fit: cover; }
.why__photo figcaption { position: absolute; left: 16px; bottom: 16px; font-size: .82rem; color: var(--white); background: rgba(0,0,0,.45); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: var(--pill); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 6vw, 88px) 0 0; border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.stat dt { color: var(--muted); font-size: .98rem; max-width: 22ch; }

/* ---------- Processo ---------- */
.steps { border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.step h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.step p { color: var(--muted); font-size: 1.12rem; }

/* ---------- Citação + para quem ---------- */
.fit__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 32px; }
.quote p { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.25; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { display: block; font-weight: 500; }
.quote figcaption span { color: var(--muted); font-size: .95rem; }
.fit__copy .h3 { margin-bottom: 28px; }

/* ---------- Imprensa ---------- */
.press { padding: clamp(70px, 8vw, 110px) 0; border-bottom: 1px solid var(--line-soft); }
.marquee--text .marquee__list li { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.4rem); color: #c4c4c4; white-space: nowrap; display: inline-flex; align-items: center; gap: clamp(48px, 6vw, 90px); }
.marquee--text .marquee__list li::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }

/* ---------- FAQ ---------- */
/* Duas secções brancas seguidas: o espaço entre elas é um só, não o dobro */
.section:not(.section--soft):not(.section--dark) + .faq { padding-top: 0; }
/* O título fixo das perguntas precisa de uma secção que não crie a sua própria área de scroll */
.section.faq { overflow: visible; overflow: clip; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin-bottom: 22px; }
.faq__head a { color: var(--ink); border-bottom: 1px solid currentColor; }
.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0; font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--ink); color: var(--white); border-color: var(--ink); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item summary:hover .faq__icon { border-color: var(--ink); }
.faq__answer { padding: 0 64px 30px 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- CTA final ---------- */
.cta { padding: 0 0 var(--section-y); }
.section--soft + .cta, .section--dark + .cta, .band--dark + .cta { padding-top: var(--section-y); }
.cta__card {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  border-radius: var(--radius-lg); padding: clamp(60px, 9vw, 130px) clamp(24px, 6vw, 80px);
  text-align: center; display: grid; justify-items: center; gap: 24px;
}
.cta__card > *:not(.glow) { position: relative; z-index: 1; }
.cta__card h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.cta__card h2 .tone { display: block; }
.cta__card > p { color: #a8a8a8; font-size: 1.15rem; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; margin-top: 8px; }
.cta__phone { display: grid; justify-items: center; gap: 8px; }
.cta__phone small { font-size: .78rem; color: #8f8f8f; }
.mobile-menu__footer small { display: block; margin-top: -4px; font-size: .78rem; color: #8a8a8a; }
body.menu-open #kapta-cookie-manage { display: none !important; }
.cta__mail { font-size: .95rem; }
.cta__mail a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: #f6f6f4; padding: clamp(70px, 8vw, 110px) 0 32px; }
.site-footer > .container { position: relative; z-index: 1; }
.footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid #2c2c2c; }
.footer__claim { flex: 1 1 auto; min-width: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.08; }
.footer__top .btn { flex: none; }
@media (max-width: 760px) { .footer__top { flex-direction: column; align-items: flex-start; } }
.footer__claim span { color: #7d7d7d; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0; }
.footer__title { font-family: var(--font-body); font-size: .9rem; color: #8a8a8a; margin-bottom: 18px; font-weight: 400; }
.footer__cols ul { display: grid; gap: 10px; }
.footer__cols a { transition: color .25s; }
.footer__cols a:hover { color: var(--red); }
.footer__cols small { display: block; color: #777; font-size: .78rem; }
.footer__address { color: #bdbdbd; }
.footer__wordmark { opacity: .08; padding: 8px 0 32px; }
.footer__wordmark img { width: 100%; height: auto; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid #2c2c2c; font-size: .86rem; color: #8a8a8a; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__bottom a:hover { color: var(--white); }

/* Círculo de contacto rotativo (assinatura Kapta) */
.orbit-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 92px; height: 92px; border-radius: 50%;
  background: var(--white); box-shadow: 0 16px 40px -12px rgba(0,0,0,.3); display: grid; place-items: center;
  opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.orbit-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.orbit-cta svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.orbit-cta text { font-size: 7.8px; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); font-family: var(--font-body); font-weight: 500; }
.orbit-cta__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--red); transition: transform .3s var(--ease); }
.orbit-cta:hover .orbit-cta__dot { transform: scale(1.5); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__menu { display: none; }
  .burger { display: inline-block; }
  .solution { grid-template-columns: 90px minmax(0, 1fr) 48px; }
  .solution__body { grid-column: 2 / 3; }
  .solution__arrow { grid-column: 3; grid-row: 1; }
  .flow { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  :root { --header-h: 104px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__media { aspect-ratio: 4 / 4.2; }
  .hero__media > img { object-position: 46% 50%; }
  .float-card { max-width: 250px; font-size: .84rem; }
  .float-card--ai { left: 4%; top: 5%; }
  .float-card--triage { right: 4%; top: auto; bottom: 26%; }
  .float-card--flow { left: 4%; bottom: 4%; }
  .pillars { grid-template-columns: 1fr; }
  .pillars__title { position: static; }
  .feature-stat { grid-template-columns: 1fr; }
  .ai__grid { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: repeat(2, 1fr); }
  .flow__step:not(:last-child)::after { display: none; }
  .case--wide, .case--narrow { grid-column: span 12; }
  .why__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .step .num-pill { justify-self: start; }
  .fit__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .mega { display: none; }
  .hover-preview { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .topbar { font-size: .76rem; }
  .topbar a { padding: 8px 10px; gap: 6px; }
  .topbar a svg { display: none; }
  .hide-sm { display: none; }
  .nav { height: 68px; }
  .nav__actions .btn { display: none; }
  .nav__logo img { width: 96px; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3rem); }
  .hero__aside p { font-size: 1.08rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__chips { margin-top: 32px; gap: 8px; }
  .hero__chips li { font-size: .85rem; padding: 7px 14px; }
  .hero__media { aspect-ratio: 3 / 4; border-radius: var(--radius); }
  .hero__media > img { object-position: 44% 50%; }
  .float-card { max-width: calc(100% - 32px); padding: 12px 14px; }
  .float-card--ai { left: 12px; right: 12px; top: 12px; max-width: none; }
  .float-card--triage { display: none; }
  .float-card--flow { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .pillar { grid-template-columns: 1fr; }
  .pillar__media { aspect-ratio: 4 / 3; }
  .solution { grid-template-columns: 1fr 48px; gap: 16px; padding: 32px 0; }
  .solution .num-pill { grid-column: 1; grid-row: 1; justify-self: start; }
  .solution h3 { grid-column: 1 / -1; }
  .solution__body { grid-column: 1 / -1; }
  .solution__arrow { grid-column: 2; grid-row: 1; width: 42px; height: 42px; }
  .flow__steps { grid-template-columns: 1fr; gap: 10px; }
  .flow__step { grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 14px 16px; align-items: center; }
  .flow__step .flow__icon { grid-row: span 2; }
  .flow__step strong { margin-top: 0; }
  .flow__step.is-active { transform: none; }
  .flow__log { min-height: 200px; }
  .case__media { height: auto; aspect-ratio: 4 / 4.2; border-radius: var(--radius); }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-left: 0; padding-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); margin-top: 28px; }
  .why__photo img { aspect-ratio: 4 / 3; }
  .faq__answer { padding-right: 0; }
  .cta__actions .btn { width: 100%; }
  .cta__phone { width: 100%; }
  .footer__cols { grid-template-columns: 1fr; }
  .orbit-cta { width: 76px; height: 76px; right: 14px; bottom: 14px; }
}

/* ==========================================================================
   Páginas internas: Autarquias, IA aplicada, Contacto
   ========================================================================== */

.nav__link[aria-current="page"] { background: rgba(22,22,22,.06); }

.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.solution .stretched-link { color: inherit; }
.ai__more { margin-top: 36px; }
.link-arrow--sm { font-size: .9rem; padding-bottom: 2px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: .92rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--ink); border-bottom: 1px solid var(--line); }
.breadcrumb a:hover { border-color: var(--ink); }

.hero__title--md { font-size: clamp(2.5rem, 5.2vw, 4.8rem); }
.page-hero__lead { font-size: 1.2rem; color: #555; max-width: 40ch; margin: 28px 0 32px; }
.page-hero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-bottom: clamp(70px, 8vw, 120px); }
.page-hero__split .hero__chips { margin-top: 36px; }

.hero__media--photo { aspect-ratio: 16 / 7.4; background: #9bb7cf; }
.hero__media--photo > img { object-position: 50% 60%; }
.float-card--kpi { display: grid; gap: 4px; min-width: 210px; }
.float-card--kpi small { display: flex; align-items: center; gap: 6px; }
.float-card--kpi strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.float-card--kpi > span:last-child:not(.pill) { color: var(--muted); font-size: .84rem; }
.float-card--kpi .pill { justify-self: start; margin-top: 4px; background: #e6f6ed; color: #1d7a48; }
.kpi-num { font-family: var(--font-display); font-weight: 400 !important; font-size: 2.6rem !important; line-height: 1; color: var(--green); }
.float-card--k1 { left: 4%; top: 10%; animation-delay: -2s; }
.float-card--k2 { right: 5%; top: 16%; animation-delay: -4s; }
.float-card--k3 { left: 34%; bottom: 8%; animation-delay: -6s; }
.media-caption { font-size: .82rem; color: var(--muted-2); margin-top: 14px; padding: 0 4px; }

/* Faixa de entidades */
.entity-strip { padding: clamp(60px, 7vw, 90px) 0 0; }
.entity-strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.entity-strip__list li { font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.35rem); padding: 12px 22px; border: 1px solid var(--line); border-radius: var(--pill); }

/* Grelha de serviços */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card {
  display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 30px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--white); transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.service-card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; margin-bottom: 10px; transition: background .3s, color .3s; }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card:hover .service-card__icon { background: var(--ink); color: var(--white); }
.service-card h3 { font-size: 1.55rem; line-height: 1.15; }
.service-card p { color: var(--muted); }
.service-card ul { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.service-card li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.service-card li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* Caso em destaque (escuro) */
.case-feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.case-feature__copy h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 22px; }
.case-feature__copy .lead { margin-bottom: 32px; }
.case-feature__media { border-radius: var(--radius-lg); overflow: hidden; background: #d8d3cc; }
.case-feature__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(56px, 7vw, 96px); }
.feature-list li { border-top: 1px solid #333; padding-top: 24px; display: grid; gap: 12px; align-content: start; }
.feature-list h3 { font-size: 1.35rem; }
.feature-list p { color: #a8a8a8; font-size: .98rem; }
.num-pill--dark { border-color: #3a3a3a; color: #cfcfcf; justify-self: start; min-width: 56px; height: 34px; font-size: .85rem; }

/* Projetos públicos */
.public-work__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.public-card { display: flex; flex-direction: column; gap: 20px; }
.public-card__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); aspect-ratio: 1 / 1; }
.public-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a.public-card:hover .public-card__media img { transform: scale(1.04); }
.public-card__copy { display: grid; gap: 10px; align-content: start; justify-items: start; }
.public-card__copy h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.15; }
.public-card__copy p { color: var(--muted); }
.public-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.public-card--lead .public-card__media { aspect-ratio: 16 / 10; background: #1a1a1a; }
.public-card--lead h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.public-card--lead .link-arrow { margin-top: 10px; }

/* Princípios em 4 colunas */
.why__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why__grid--4 .why__item h3 { font-size: 1.4rem; }

/* Chamada para o simulador */
.simulator-callout {
  margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
}
.simulator-callout > div { flex: 1 1 420px; }
.simulator-callout h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.simulator-callout p { color: var(--muted); max-width: 62ch; }

/* Arquitetura da IA */
.arch { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr; align-items: stretch; row-gap: 14px; }
.arch__col { background: var(--white); border: 1px solid var(--line-soft); box-shadow: 0 24px 50px -42px rgba(22,22,22,.4); border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 16px; align-content: start; }
.arch__col--core { border-color: rgba(227,36,38,.5); background: #fff8f8; box-shadow: 0 24px 50px -30px rgba(227,36,38,.35); }
.arch__label { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.arch__col--core .arch__label { color: var(--red); }
.arch__col ul { display: grid; gap: 10px; }
.arch__col li { font-size: 1rem; color: var(--ink); padding-left: 16px; position: relative; }
.arch__col li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #b5b5b5; }
.arch__col--core li::before { background: var(--red); }
.arch__arrow { position: relative; align-self: center; height: 1px; background: #c9c7c1; }
.arch__arrow::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid #9a9a9a; border-right: 1px solid #9a9a9a; transform: rotate(45deg); }
.arch__base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 24px; padding: 18px 24px; border-radius: var(--radius); border: 1px dashed #c9c7c1; color: #4a4a4a; font-size: .95rem; }
.arch__base > span { display: inline-flex; align-items: center; gap: 8px; }

.case--half { grid-column: span 6; }

/* Contacto */
.contact { padding-bottom: clamp(70px, 8vw, 120px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact__cards li { display: grid; gap: 4px; align-content: start; padding: 20px 22px; border-radius: var(--radius); background: rgba(255,255,255,.7); border: 1px solid var(--line-soft); }
.contact__cards li:last-child { grid-column: 1 / -1; }
.contact__cards small { color: var(--muted); font-size: .82rem; }
.contact__cards a:not(.link-arrow) { font-weight: 500; font-size: 1.05rem; }
.contact__cards span { color: var(--muted); font-size: .85rem; }
.contact__cards .contact__address { color: var(--ink); font-size: 1rem; }
.contact__cards .link-arrow { justify-self: start; margin-top: 8px; }
.next-steps { margin-top: 48px; }
.next-steps ol { display: grid; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.next-steps .num-pill { min-width: 56px; height: 34px; font-size: .85rem; padding: 0 14px; }
.next-steps strong { display: block; font-weight: 500; }
.next-steps li span:not(.num-pill) { color: var(--muted); }

.form-card {
  position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 40px 90px -50px rgba(0,0,0,.35);
}
.form-card__title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 24px; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .92rem; font-weight: 500; padding: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--soft);
  border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); background: #fff5f5; }
.check-field.is-invalid span { color: #b3191b; }

.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; padding: 9px 16px; border-radius: var(--pill); border: 1px solid var(--line); font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.check-field { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; cursor: pointer; }
.check-field input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.check-field a { border-bottom: 1px solid currentColor; }

.form-status { font-size: .92rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status--error { color: #b3191b; background: #fff1f1; border-radius: 12px; padding: 12px 14px; }
.form-submit { justify-self: start; }
.form-submit.is-loading { opacity: .7; pointer-events: none; }
.form-submit.is-loading svg { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.form-note { font-size: .8rem; color: var(--muted-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { display: grid; justify-items: start; gap: 14px; padding: 12px 0; }
.form-done h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.form-done p { color: var(--muted); }
.check--lg { width: 48px; height: 48px; }

@media (max-width: 1180px) {
  .arch { grid-template-columns: 1fr 1fr; gap: 14px; }
  .arch__arrow { display: none; }
}

@media (max-width: 991px) {
  .page-hero__split { grid-template-columns: 1fr; }
  .hero__media--photo { aspect-ratio: 4 / 3.4; }
  .float-card--k1 { left: 4%; top: 6%; }
  .float-card--k2 { right: 4%; top: auto; bottom: 30%; }
  .float-card--k3 { left: 4%; bottom: 5%; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-feature__grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-card--lead { grid-template-columns: 1fr; }
  .public-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case--half { grid-column: span 12; }
  .contact__grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
}

@media (max-width: 640px) {
  .hero__media--photo { aspect-ratio: 4 / 5; }
  .float-card--kpi { min-width: 0; }
  .float-card--k1 { left: 12px; right: auto; top: 12px; }
  .float-card--k2 { display: none; }
  .float-card--k3 { left: 12px; right: 12px; bottom: 12px; }
  .entity-strip__list { justify-content: flex-start; }
  .entity-strip__list li { font-size: 1rem; padding: 9px 16px; }
  .service-grid, .public-work__grid, .why__grid--4, .feature-list { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }
}

/* ==========================================================================
   Projetos, casos de estudo, simulador, páginas de texto
   ========================================================================== */

/* Filtro de projetos */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(36px, 5vw, 56px); }
/* Fim do hero: o brilho desvanece em vez de acabar num corte, e os filtros ganham espaço por baixo */
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 12vw, 180px); background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white)); pointer-events: none; z-index: 0; }
.page-hero--filters { padding-bottom: clamp(44px, 6vw, 80px); }
.page-hero--plain { padding-bottom: clamp(64px, 8vw, 120px); }
.filter-chip { border: 1px solid var(--line); background: var(--white); border-radius: var(--pill); padding: 10px 18px; font-size: .95rem; transition: background .2s, color .2s, border-color .2s; }
.filter-chip:hover { border-color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.work--index { padding-top: clamp(40px, 5vw, 64px); }
.work__grid.is-filtered .case { grid-column: span 6; }
.work__grid .case[hidden] { display: none; }
.filter-empty { color: var(--muted); padding: 40px 0; }
.case__metric { font-weight: 400; }

/* Caso de estudo */
.case-hero .hero__aside .tags { margin-top: -8px; }
.case-cover { margin-top: clamp(40px, 5vw, 72px); border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.case-cover img { width: 100%; max-height: 82vh; object-fit: cover; }
.case-detail__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.case-meta { position: sticky; top: 110px; display: grid; gap: 28px; }
.case-meta__group h2 { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 400; margin-bottom: 10px; }
.case-meta__group ul { display: grid; gap: 6px; }
.case-meta__group li { font-size: .98rem; }
.case-meta__stores { gap: 10px !important; }
.case-main__headline { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 28px; }
.case-main__intro { display: grid; gap: 16px; font-size: 1.15rem; color: #444; max-width: 62ch; }
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 44px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.case-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.case-metrics dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; }
.case-metrics dt { color: var(--muted); font-size: .95rem; max-width: 30ch; }
.case-body { display: grid; gap: clamp(40px, 6vw, 88px); margin-top: clamp(60px, 8vw, 120px); }
.case-gallery { display: grid; gap: clamp(16px, 2vw, 24px); }
.case-gallery--pair { grid-template-columns: 1fr 1fr; }
.case-gallery--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.case-gallery__item { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.case-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
/* Imagem por publicar (caso de estudo à espera das imagens finais) */
.img-ph { display: grid; place-items: center; width: 100%; padding: 24px; color: var(--muted); background-color: var(--soft); background-image: radial-gradient(circle, rgba(22, 22, 22, .13) 1px, transparent 1.3px); background-size: 18px 18px; box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; }
.case-cover .img-ph { max-height: 82vh; }
.img-ph__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 30ch; padding: 18px 22px; text-align: center; background: rgba(255, 255, 255, .86); border: 1px dashed var(--line); border-radius: 18px; }
.img-ph__inner svg { margin-bottom: 4px; color: var(--ink); opacity: .5; }
.img-ph__inner strong { color: var(--ink); font-size: .98rem; font-weight: 600; line-height: 1.3; }
.img-ph__inner small { font-size: .82rem; font-variant-numeric: tabular-nums; }
.case-text__link { margin-top: 6px; }
.case-text__link .link-arrow { color: var(--ink); font-size: 1rem; }
.case-text { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.case-text h2 { grid-column: 2; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; }
.case-text__body { grid-column: 2; display: grid; gap: 14px; color: var(--muted); font-size: 1.1rem; max-width: 66ch; }

.next-project { padding: 0 0 var(--section-y); }
.next-project__link {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto auto 1fr; column-gap: 40px;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--soft); overflow: hidden; transition: background .3s var(--ease);
}
.next-project__link:hover { background: #efefec; }
.next-project__link .eyebrow { grid-column: 1; margin-bottom: 8px; }
.next-project__title { grid-column: 1; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; }
.next-project__metric { grid-column: 1; color: var(--muted); margin-top: 12px; }
.next-project__media { grid-column: 2; grid-row: 1 / -1; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; align-self: center; }
.next-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.next-project__link:hover .next-project__media img { transform: scale(1.05); }

/* Simulador */
.simulator { padding-top: clamp(30px, 4vw, 50px); }
.simulator__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }
.sim-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.sim-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sim-card__head h2 { font-size: 1.5rem; }
.sim-card__muted { color: var(--muted); font-size: .88rem; }
.sim-services { position: sticky; top: 100px; }
.sim-services__list { display: grid; gap: 8px; }
.sim-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.sim-toggle:hover { border-color: var(--ink); }
.sim-toggle.is-on { background: var(--soft); border-color: var(--ink); }
.sim-toggle.is-disabled { opacity: .55; cursor: not-allowed; }
.sim-toggle.is-disabled:hover { border-color: var(--line-soft); }
.sim-toggle__copy { display: grid; gap: 2px; }
.sim-toggle__copy strong { font-weight: 500; }
.sim-toggle__copy small { color: var(--muted); font-size: .85rem; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #d9d9d9; position: relative; cursor: pointer; transition: background .25s; margin: 0; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sim-note { margin-top: 18px; font-size: .82rem; color: var(--muted-2); }
.sim-results { display: grid; gap: 20px; }
.sim-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sim-plan {
  text-align: left; display: grid; gap: 6px; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); background: var(--white); transition: border-color .25s, background .25s, color .25s, transform .3s var(--ease);
}
.sim-plan:hover { border-color: var(--ink); }
.sim-plan.is-selected { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sim-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sim-plan__head strong { font-weight: 500; }
.sim-plan.is-selected .pill { background: var(--red); color: var(--white); }
.sim-plan__price { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sim-plan__sub, .sim-plan__mini { font-size: .88rem; color: var(--muted); }
.sim-plan.is-selected .sim-plan__sub, .sim-plan.is-selected .sim-plan__mini { color: #a8a8a8; }
.sim-plan__mini { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.sim-plan.is-selected .sim-plan__mini { border-color: #333; }
.sim-table-wrap { overflow-x: auto; }
.sim-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sim-table th, .sim-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line-soft); font-weight: 400; }
.sim-table thead th { color: var(--muted); font-size: .82rem; }
.sim-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted-2); white-space: nowrap; }
.sim-table thead th:not(:first-child) { text-align: right; }
.sim-table tr.is-on th, .sim-table tr.is-on td { color: var(--ink); }
.sim-table tr.is-on th { font-weight: 500; }
.sim-empty { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.sim-empty[hidden] { display: none; }
.sim-cta { margin-top: 20px; }
.sim-cta:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.sim-proposal[hidden] { display: none; }
.sim-proposal .form-done { padding: 8px 0; }

/* Páginas de texto (legal) */
.prose-page .hero__title { max-width: 18ch; }
.prose-layout { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose-toc { position: sticky; top: 110px; display: grid; gap: 4px; font-size: .92rem; }
.prose-toc p { color: var(--muted); margin-bottom: 8px; }
.prose-toc a { color: var(--muted); padding: 4px 0; border-left: 2px solid transparent; padding-left: 12px; transition: color .2s, border-color .2s; }
.prose-toc a:hover { color: var(--ink); border-color: var(--red); }
.prose { max-width: 72ch; color: #333; font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; margin: 56px 0 16px; color: var(--ink); scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--red); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line-soft); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose-updated { color: var(--muted); font-size: .9rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* Sobre */
.about-cover { margin: clamp(40px, 5vw, 72px) 0 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.about-cover img { width: 100%; aspect-ratio: 1320 / 450; object-fit: cover; }
.about-cover figcaption { position: absolute; left: 16px; bottom: 16px; font-size: .82rem; color: var(--white); background: rgba(0,0,0,.45); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: var(--pill); }
.about-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-founders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.about-founders figure { margin: 0; display: grid; gap: 14px; justify-items: center; text-align: center; align-content: start; }
.about-founders img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--soft); }
.about-founders figcaption { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.about-founders figcaption strong { display: block; color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.about-story__copy { display: grid; gap: 18px; justify-items: start; }
.about-story__copy p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 58ch; }
.about-story__copy .eyebrow { margin-bottom: 0; }
.team-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.team-mosaic__item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 561 / 320; background: #e8e8e6; }
.team-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.team-mosaic__item:hover img { transform: scale(1.05); }
.press-rail { --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad); padding: 0 var(--rail-pad) 12px; scrollbar-width: thin; }
.press-card { flex: 0 0 clamp(220px, 24vw, 300px); margin: 0; scroll-snap-align: start; display: grid; gap: 12px; }
.press-card img { width: 100%; aspect-ratio: 960 / 1358; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); }
.press-card figcaption { font-size: .92rem; color: var(--muted); }
/* Artigos online: um cartão com o título, do mesmo tamanho dos recortes */
.press-card__paper {
  display: flex; flex-direction: column; gap: 10px; aspect-ratio: 960 / 1358; overflow: hidden; padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-soft); color: var(--ink);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); transition: transform .45s var(--ease), border-color .45s;
}
.press-card__paper:hover { transform: translateY(-4px); border-color: var(--line); }
.press-card__source { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.press-card__date { font-size: .82rem; color: var(--muted); }
.press-card__headline { margin-top: auto; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.press-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .9rem; font-weight: 500; }
.about-careers__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.about-careers h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; }
.about-careers .lead { margin-bottom: 28px; }
@media (max-width: 991px) {
  .about-story__grid, .about-careers__grid { grid-template-columns: 1fr; }
  .team-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .about-cover img { aspect-ratio: 4 / 3; }
  .team-mosaic { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* Blog */
.container--narrow { max-width: 880px; }
.blog-index { padding-top: clamp(30px, 4vw, 50px); }
.post-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.post-meta--lg { font-size: .95rem; margin-top: 24px; }
.post-featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.post-featured__media, .post-card__media { border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, #f1efec, #e6e3df); aspect-ratio: 16 / 10; }
.post-featured__media img, .post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-featured:hover img, .post-card:hover img { transform: scale(1.04); }
.post-featured__copy { display: grid; gap: 16px; justify-items: start; }
.post-featured__copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; }
.post-featured__copy p { color: var(--muted); font-size: 1.08rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 32px); }
.post-card { display: grid; gap: 12px; align-content: start; }
.post-card__media { border-radius: var(--radius); margin-bottom: 6px; }
.post-card h2 { font-size: 1.3rem; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: .95rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(56px, 7vw, 88px); color: var(--muted); font-size: .95rem; }
.article-hero { padding-bottom: 0; }
.article-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.06; letter-spacing: -0.02em; }
.article-cover { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1100px; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.article-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.article-body { padding-top: clamp(48px, 6vw, 80px); }
.prose--article { max-width: none; font-size: 1.12rem; }
.prose--article img { border-radius: var(--radius); margin: 24px 0; }
.prose--article blockquote { margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--red); color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }
.prose--article code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: .92rem; color: var(--muted); }
.article-share a { color: var(--ink); border-bottom: 1px solid var(--line); }
.article-share a:hover { border-color: var(--red); }

/* Integrações */
.integrations-index { padding-top: clamp(30px, 4vw, 50px); }
.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.integration-grid .integration-card[hidden] { display: none; }
.integration-card {
  display: grid; gap: 12px; align-content: start; padding: 26px 24px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--white); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.integration-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.integration-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.integration-card__logo { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--white); display: grid; place-items: center; overflow: hidden; font-family: var(--font-display); font-size: 1.4rem; }
.integration-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.integration-card__logo--lg { width: 72px; height: 72px; border-radius: 18px; }
.integration-card h2 { font-size: 1.35rem; }
.integration-card p { color: var(--muted); font-size: .95rem; }
.integration-card__price { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .9rem; color: var(--muted); }
.integration-card__price strong { color: var(--ink); font-weight: 500; }
.integration-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 380px); gap: clamp(32px, 5vw, 80px); align-items: end; }
.integration-hero__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.price-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 40px 80px -50px rgba(0,0,0,.35); display: grid; gap: 6px; }
.price-card .btn { margin-top: 16px; }
.price-card__label { color: var(--muted); font-size: .9rem; }
.price-card__value { font-family: var(--font-display); font-size: 3rem; line-height: 1; letter-spacing: -0.02em; }
.price-card__value small { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.price-card__alt { color: var(--muted); }
.price-card__note { font-size: .8rem; color: var(--muted-2); margin-top: 8px; }
.requirements-card { margin: 56px 0 40px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--soft); }
.requirements-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.requirements-card p { color: var(--muted); }
.requirements-card ul { display: grid; gap: 10px; margin: 18px 0; }
.requirements-card li { display: flex; gap: 12px; }
.requirements-card li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--red); }
.requirements-card__security { font-size: .9rem; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 991px) {
  .post-featured, .integration-hero__grid { grid-template-columns: 1fr; }
  .post-grid, .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .post-grid, .integration-grid { grid-template-columns: 1fr; }
  .about-founders figcaption { font-size: .82rem; }
  .about-founders figcaption strong { font-size: .95rem; }
}

/* Páginas de soluções: extras */
.hero__media--dark { background: #111; }
.hero__media--dark > img { object-position: 60% 50%; }
.automation__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.automation__foot .integrations { margin-top: 0; flex: 1 1 520px; }
.app-list { display: grid; gap: clamp(48px, 7vw, 96px); }
.app-item { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.app-item:nth-child(even) .app-item__media { order: 2; }
.app-item__media { border-radius: var(--radius-lg); overflow: hidden; background: #1a1a1a; }
.app-item__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s var(--ease); }
.app-item:hover .app-item__media img { transform: scale(1.03); }
.app-item__copy { display: grid; gap: 14px; justify-items: start; }
.app-item__copy h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; }
.app-item__metric { font-family: var(--font-display); font-size: 1.25rem; color: #ff8a8b; }
.app-item__copy p:not(.app-item__metric) { color: #a8a8a8; max-width: 46ch; }
.app-item__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.store-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--pill); border: 1px solid #3a3a3a; font-size: .92rem; color: var(--white); transition: border-color .2s, background .2s; }
.store-link:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.link-arrow--light { color: var(--white); }
.mobile-menu nav a { font-size: clamp(1.6rem, 7vw, 2.3rem); }
.mobile-menu__sep { margin-top: 16px; padding-top: 16px; border-top: 1px solid #2c2c2c; }
.nav__trigger.is-current, .nav__link.is-current { background: rgba(22,22,22,.06); }
.nav__link--fh img { width: 16px; height: 16px; border-radius: 4px; }

@media (max-width: 991px) {
  .app-item { grid-template-columns: 1fr; }
  .app-item:nth-child(even) .app-item__media { order: 0; }
}

@media (max-width: 991px) {
  .case-detail__grid, .case-text, .prose-layout { grid-template-columns: 1fr; }
  .case-meta { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-text h2, .case-text__body { grid-column: 1; }
  .next-project__link { grid-template-columns: 1fr; }
  .next-project__media { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .simulator__grid { grid-template-columns: 1fr; }
  .sim-services { position: static; }
  .prose-toc { position: static; display: none; }
}

@media (max-width: 640px) {
  .case-meta { grid-template-columns: 1fr; }
  .case-gallery--pair { grid-template-columns: 1fr; }
  .sim-plans { grid-template-columns: 1fr; }
  .sim-table { font-size: .85rem; }
  .sim-table th, .sim-table td { padding: 10px 4px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .work__grid.is-filtered .case { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ============================================================
   Integrações (/integracoes): painel em órbita + explorador
   JS em assets/js/integracoes.js
   ============================================================ */
.int-hero { padding-bottom: 0; }
.int-hub {
  position: relative; margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  padding-bottom: clamp(24px, 3vw, 40px); color: var(--ink); border: 1px solid var(--line-soft);
  background:
    radial-gradient(34% 46% at 50% 46%, rgba(227,36,38,.09) 0%, rgba(227,36,38,0) 70%),
    radial-gradient(circle, rgba(22,22,22,.07) 1px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(180deg, #fbfbfa 0%, var(--soft) 100%);
}
.int-hub__stage { position: relative; aspect-ratio: 16 / 7; min-height: 400px; }
.int-hub__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.int-hub__core {
  position: absolute; left: 50%; top: 50%; z-index: 5; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: 0 0 0 12px rgba(227,36,38,.05), 0 0 0 26px rgba(227,36,38,.03), 0 26px 60px -22px rgba(227,36,38,.45), 0 10px 26px -14px rgba(22,22,22,.25);
}
.int-hub__core img { width: 76px; height: auto; }
.int-hub__ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(227,36,38,.75); opacity: 0; pointer-events: none; }
.int-hub__core.is-hit .int-hub__ring { animation: hubPing .9s var(--ease); }
@keyframes hubPing { from { opacity: .95; transform: scale(.9); } to { opacity: 0; transform: scale(1.55); } }
.int-hub__tiles { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.int-hub.is-ready .int-hub__tiles { opacity: 1; }
.int-hub__tile { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.int-hub__tile a {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 17px;
  background: var(--white); color: var(--ink); font-family: var(--font-display); font-size: 1.3rem;
  box-shadow: 0 16px 30px -16px rgba(22,22,22,.35), 0 0 0 1px rgba(22,22,22,.07); transition: box-shadow .35s var(--ease);
}
.int-hub__tile img { width: 36px; height: 36px; object-fit: contain; border-radius: 7px; }
.int-hub__tile em {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: var(--pill);
  background: var(--ink); color: var(--white); font: 500 .74rem/1.2 var(--font-body); font-style: normal; white-space: nowrap;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.int-hub__tile:hover em { opacity: 1; }
.int-hub__tile.is-hot a { box-shadow: 0 0 0 3px var(--red), 0 18px 40px -14px rgba(227,36,38,.6); }
.int-hub__stats { position: relative; z-index: 20; display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 clamp(22px, 3vw, 44px); }
.int-hub__stats strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -0.02em; }
.int-hub__stats span { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }

.int-explorer { padding-top: clamp(80px, 9vw, 130px); }
.int-toolbar { display: grid; gap: 18px; margin-bottom: clamp(20px, 3vw, 32px); }
.int-search {
  display: flex; align-items: center; gap: 12px; max-width: 580px; height: 60px; padding: 0 22px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--white); color: var(--muted); transition: border-color .25s, box-shadow .25s;
}
.int-search:focus-within { border-color: var(--ink); box-shadow: 0 14px 34px -22px rgba(0,0,0,.45); }
.int-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.int-search input::-webkit-search-cancel-button { cursor: pointer; }
.int-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.int-cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px 9px 16px; border-radius: var(--pill); border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.int-cat span { min-width: 24px; padding: 2px 7px; border-radius: var(--pill); background: var(--soft); color: var(--muted); font-size: .74rem; text-align: center; font-variant-numeric: tabular-nums; }
.int-cat:hover { border-color: var(--ink); }
.int-cat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.int-cat[aria-pressed="true"] span { background: rgba(255,255,255,.14); color: #e2e2e2; }

.int-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: clamp(28px, 4vw, 72px); padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.int-group[hidden] { display: none; }
.int-group__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 10px; }
.int-group__count { font-size: .82rem; color: var(--red); font-variant-numeric: tabular-nums; }
.int-group__head h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.int-group__head p { max-width: 34ch; color: var(--muted); }
.int-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.int-card {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px 18px; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white); color: inherit; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.int-card[hidden] { display: none; }
.int-card:hover, .int-card:focus-visible { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.int-card__logo {
  width: 58px; height: 58px; border-radius: 17px; border: 1px solid var(--line-soft); background: var(--white);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; transition: box-shadow .3s;
}
.int-card:hover .int-card__logo { box-shadow: 0 12px 26px -14px rgba(0,0,0,.35); }
.int-card__logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 7px; }
.int-card__body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.int-card__kind { font-size: .76rem; color: var(--muted); }
.int-card__name { font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; line-height: 1.1; }
.int-card__text { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.int-card__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .88rem; color: var(--muted); }
.int-card__foot b { color: var(--ink); font-weight: 500; }
.int-card__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.int-card:hover .int-card__go, .int-card:focus-visible .int-card__go { background: var(--red); border-color: var(--red); color: var(--white); transform: translateX(3px); }
.int-empty { display: grid; justify-items: start; gap: 18px; margin-top: 8px; padding: clamp(28px, 4vw, 44px); border: 1px dashed var(--line); border-radius: var(--radius); }
.int-empty[hidden] { display: none; }
.int-empty p { max-width: 52ch; color: var(--muted); }
.int-empty strong { display: block; color: var(--ink); font-weight: 500; font-size: 1.15rem; margin-bottom: 4px; }

@media (max-width: 991px) {
  .int-hub__stage { aspect-ratio: 4 / 3; min-height: 0; }
  .int-group { grid-template-columns: 1fr; gap: 22px; }
  .int-group__head { position: static; }
}
@media (max-width: 640px) {
  .int-hub { padding-bottom: 22px; border-radius: var(--radius); }
  .int-hub__stage { aspect-ratio: 1 / 1.08; }
  .int-hub__core { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .int-hub__core img { width: 54px; }
  .int-hub__tile a { width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 12px; }
  .int-hub__tile img { width: 26px; height: 26px; border-radius: 5px; }
  .int-hub__stats { justify-content: space-between; padding: 0 20px; }
  .int-hub__stats strong { font-size: 1.7rem; }
  .int-hub__stats span { font-size: .74rem; }
  .int-grid { grid-template-columns: 1fr; }
  .int-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .int-cats::-webkit-scrollbar { display: none; }
  .int-cat { flex: none; }
}

/* ---------- FareHarbor (/fareharbor) ---------- */
.fh-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 26px; padding: 6px 18px 6px 6px; border-radius: var(--pill);
  background: rgba(255,255,255,.75); border: 1px solid var(--line); font-size: .9rem; backdrop-filter: blur(8px);
}
.fh-badge__logo { width: 36px; height: 36px; border-radius: 11px; background: var(--white); border: 1px solid var(--line-soft); display: grid; place-items: center; }
.fh-badge__logo img { width: 24px; height: 24px; object-fit: contain; }
.fh-badge__plus { margin: 0 -3px; color: var(--muted); }
@media (max-width: 1180px) {
  .mega__grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fh-badge { font-size: .82rem; }
}

/* ---------- Automações (/automacoes): os três caminhos ---------- */
.auto-paths-section { padding-top: 0; }
.auto-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.auto-path {
  display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 26px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line-soft); color: var(--ink);
  box-shadow: 0 24px 50px -40px rgba(22,22,22,.45); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.auto-path:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 34px 60px -38px rgba(22,22,22,.5); }
.auto-path > :not(.auto-path__visual) { margin-inline: 12px; }
.auto-path h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.08; letter-spacing: -0.02em; }
.auto-path p { color: var(--muted); }
.auto-path__kicker { margin-top: 12px; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.auto-path__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; font-weight: 500; }
.auto-path__cta svg { transition: transform .35s var(--ease); }
.auto-path:hover .auto-path__cta svg { transform: translateX(4px); }
.auto-path__visual {
  position: relative; height: 210px; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden;
  background: radial-gradient(circle, rgba(22,22,22,.07) 1px, transparent 1.3px) 0 0 / 18px 18px, var(--soft);
}
.auto-path__visual--logos { display: grid; grid-template-columns: repeat(4, 54px); gap: 14px; place-content: center; }
.auto-path__visual--logos span {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--white);
  box-shadow: 0 12px 24px -16px rgba(22,22,22,.4), 0 0 0 1px rgba(22,22,22,.05);
  animation: autoFloat 5s var(--ease) calc(var(--i) * -.6s) infinite alternate;
}
.auto-path__visual--logos img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
@keyframes autoFloat { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.auto-path--fh .auto-path__visual { background: radial-gradient(60% 70% at 50% 40%, rgba(227,36,38,.14), rgba(227,36,38,0) 70%), radial-gradient(circle, rgba(22,22,22,.07) 1px, transparent 1.3px) 0 0 / 18px 18px, var(--soft); }
.auto-path__visual--fh { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 12px; }
.auto-path__brand { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: var(--white); box-shadow: 0 16px 30px -18px rgba(22,22,22,.45), 0 0 0 1px rgba(22,22,22,.05); }
.auto-path__brand img { width: 40px; height: 40px; object-fit: contain; }
.auto-path__plus { font-size: 1.4rem; color: var(--muted); }
.auto-path__codes { display: flex; justify-content: center; gap: 6px; flex-basis: 100%; }
.auto-path__codes b { padding: 4px 9px; border-radius: var(--pill); background: var(--ink); color: var(--white); font-size: .72rem; font-weight: 500; letter-spacing: .05em; }
.auto-path__visual--log { display: grid; align-content: center; gap: 8px; padding: 0 clamp(18px, 2.4vw, 30px); }
.auto-path__visual--log span {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: #3a3a3a;
  box-shadow: 0 10px 20px -16px rgba(22,22,22,.4), 0 0 0 1px rgba(22,22,22,.05);
}
.auto-path__visual--log i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.auto-path__visual--log .is-alert i { background: var(--red); }
.auto-path__visual--log span:nth-child(2) { margin-left: 16px; }
.auto-path__visual--log span:nth-child(3) { margin-left: 32px; }
.auto-path__visual--log span:nth-child(4) { margin-left: 48px; }
.auto-connect .integrations { margin-top: 0; }
@media (max-width: 991px) {
  .auto-paths { grid-template-columns: 1fr; }
  .auto-path__visual { height: 190px; }
}
@media (max-width: 420px) {
  .auto-path__visual--logos { grid-template-columns: repeat(4, 48px); gap: 10px; }
  .auto-path__visual--logos span { width: 48px; height: 48px; }
  .auto-path__visual--log span:nth-child(n) { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .auto-path__visual--logos span { animation: none; } }

/* ---------- FareHarbor: globo dos países (assets/js/fh-globe.js) ----------
   Sem o globo (sem JavaScript ou sem WebGL), os cartões ficam numa grelha. */
.fh-world { overflow: hidden; overflow: clip; }
.fh-world__map { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fh-world__col { display: contents; }
.fh-world__stage, .fh-world__lines, .fh-world__event { display: none; }
.fh-wcard {
  position: relative; z-index: 2; display: grid; align-content: start; gap: 12px; padding: 16px 16px 12px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -34px rgba(22,22,22,.45); transition: border-color .4s, background .4s, box-shadow .4s;
}
.fh-wcard__head { display: flex; align-items: center; gap: 10px; }
.fh-wcard__code { padding: 3px 9px; border-radius: var(--pill); background: var(--soft); color: var(--ink); font-size: .72rem; letter-spacing: .05em; transition: background .4s, color .4s; }
.fh-wcard h3 { font-size: 1.18rem; color: var(--ink); }
.fh-wcard__list { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-wcard__sys {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: var(--pill);
  border: 1px solid var(--line); color: var(--ink); font-size: .84rem; white-space: nowrap;
  transition: border-color .3s, background .3s, color .3s;
}
a.fh-wcard__sys:hover { border-color: var(--ink); }
.fh-wcard__sys.is-hit { border-color: var(--red); background: rgba(227,36,38,.07); color: var(--red); }
.fh-wcard__logo { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--line-soft); display: grid; place-items: center; color: var(--ink); font-size: .7rem; font-weight: 600; }
.fh-wcard__logo img { width: 14px; height: 14px; object-fit: contain; }
/* Os logótipos em SVG são marcas compridas: mostra-se só o símbolo, à esquerda */
.fh-wcard__logo img[src$=".svg"] { width: 15px; height: 15px; object-fit: cover; object-position: 0 50%; }
.fh-wcard__logo { overflow: hidden; }
.fh-wcard__note { color: var(--muted); font-size: .9rem; }
.fh-wcard__live { min-height: 1.35em; margin-top: -4px; font-size: .78rem; color: var(--red); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-wcard.is-hit { border-color: rgba(227,36,38,.55); box-shadow: 0 18px 40px -26px rgba(227,36,38,.45); }
.fh-wcard.is-hit .fh-wcard__code { background: var(--red); color: var(--white); }
.fh-wcard.is-hit .fh-wcard__live { opacity: 1; transform: none; }

.fh-world.is-3d .fh-world__map {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1fr);
  column-gap: clamp(16px, 2vw, 32px); row-gap: 0; align-items: center; margin-top: clamp(8px, 2vw, 24px);
}
.fh-world.is-3d .fh-world__col { display: grid; gap: 14px; grid-row: 1; }
.fh-world.is-3d .fh-world__col--left { grid-column: 1; }
.fh-world.is-3d .fh-world__col--right { grid-column: 3; }
.fh-world.is-3d .fh-world__stage { display: block; position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.fh-world.is-3d .fh-world__stage:active { cursor: grabbing; }
.fh-world__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.fh-world.is-3d .fh-world__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.fh-world__lines path { fill: none; stroke: rgba(22,22,22,.2); stroke-width: 1; transition: stroke .3s, opacity .3s; }
.fh-world__lines path.is-hot { stroke: var(--red); }
.fh-world__lines circle { fill: var(--ink); transition: opacity .3s; }
.fh-world__lines .fh-world__ring { fill: none; stroke: var(--red); stroke-width: 1.5; }
.fh-world.is-3d .fh-world__event {
  display: flex; grid-column: 2; grid-row: 2; justify-self: center; align-items: center; gap: 10px; max-width: 100%;
  padding: 9px 16px; border-radius: var(--pill); background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: 0 10px 30px -18px rgba(22,22,22,.35); font-size: .86rem; color: var(--ink);
}
.fh-world__event [data-fh-event] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .2s; }
.fh-world__event small { flex: none; color: var(--muted); font-size: .74rem; }
@media (max-width: 999px) {
  .fh-world.is-3d .fh-world__map { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; column-gap: 14px; align-items: stretch; }
  .fh-world.is-3d .fh-world__col { display: contents; }
  .fh-world.is-3d .fh-world__stage { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(100%, 520px); }
  .fh-world.is-3d .fh-world__event { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .fh-world.is-3d .fh-world__lines { display: none; }
}
@media (max-width: 640px) {
  .fh-world__map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-wcard { padding: 14px 12px 10px; }
  .fh-wcard__sys { font-size: .8rem; }
}
@media (max-width: 420px) {
  .fh-world__map, .fh-world.is-3d .fh-world__map { column-gap: 10px; row-gap: 10px; }
  .fh-wcard { gap: 10px; padding: 12px 10px 8px; }
  .fh-wcard h3 { font-size: 1.05rem; }
  .fh-wcard__list { gap: 5px; }
  .fh-wcard__sys { gap: 5px; padding-right: 8px; font-size: .76rem; }
  .fh-wcard__logo { width: 20px; height: 20px; }
  .fh-wcard__note { font-size: .82rem; }
}

/* ---------- FareHarbor: adesão em passos (assets/js/fareharbor.js) ---------- */
.fh-join { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.fh-join__intro h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; }
.fh-join__list { display: grid; gap: 22px; margin-top: clamp(28px, 4vw, 44px); }
.fh-join__list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.fh-join__list strong { display: block; font-weight: 500; font-size: 1.08rem; margin-bottom: 4px; }
.fh-join__list p { color: var(--muted); }
.fh-form-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
.fh-form {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 22px; padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-lg); color: var(--ink); border: 1px solid var(--line-soft);
  background: radial-gradient(90% 70% at 90% 0%, rgba(227,36,38,.07) 0%, rgba(227,36,38,0) 60%), var(--white);
  box-shadow: 0 50px 100px -55px rgba(22,22,22,.35);
}
.fh-form [hidden] { display: none !important; }
.fh-form__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); }
.fh-form__brand { display: inline-flex; align-items: center; gap: 8px; }
.fh-form__brand img { width: 20px; height: 20px; border-radius: 5px; background: var(--white); padding: 2px; box-shadow: 0 0 0 1px var(--line-soft); }
.fh-form__progress { height: 3px; border-radius: var(--pill); background: var(--line-soft); overflow: hidden; }
.fh-form__progress span { display: block; width: 100%; height: 100%; background: var(--red); transition: width .45s var(--ease); }
.fh-form.is-stepper .fh-form__progress span { width: 16%; }
.fh-step { display: grid; gap: 16px; }
.fh-form.is-stepper .fh-step { min-height: 170px; align-content: start; animation: msgIn .35s var(--ease); }
.fh-step__q { font-family: var(--font-display); font-weight: 400 !important; font-size: clamp(1.45rem, 2.4vw, 2rem) !important; line-height: 1.15; color: var(--ink); }
.fh-step__hint { font-size: .9rem; color: var(--muted); }
.fh-step__hint b { color: var(--ink); font-weight: 500; }
.fh-form .field label { color: #3a3a3a; }
.fh-form .field input, .fh-form .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--soft);
  border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; transition: border-color .2s, background .2s;
}
.fh-form .field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23656565' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.fh-form .field select:disabled { opacity: .5; cursor: not-allowed; }
.fh-form .field select option, .fh-form .field select optgroup { color: var(--ink); background: var(--white); }
.fh-form .field input::placeholder { color: #9a9a9a; }
.fh-form .field input:focus, .fh-form .field select:focus { outline: none; border-color: var(--ink); background: var(--white); }
.fh-form .field.is-invalid input, .fh-form .field.is-invalid select { border-color: var(--red); background: rgba(227,36,38,.05); }
.fh-form .check-field { color: #3a3a3a; }
.fh-form .check-field input { accent-color: var(--red); }
.fh-form .check-field.is-invalid span { color: var(--red); }
.fh-form .form-status--error { color: #b3191b; background: rgba(227,36,38,.08); }
.fh-form__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fh-form__nav [data-fh-next], .fh-form__nav [data-fh-submit] { margin-left: auto; }
.fh-form__nav .btn:disabled { opacity: .35; pointer-events: none; }
.fh-form--done { justify-items: start; gap: 14px; min-height: 320px; align-content: center; }
.fh-form--done h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.fh-form--done p { color: var(--muted); max-width: 40ch; }
@media (max-width: 991px) {
  .fh-join { grid-template-columns: 1fr; }
  .fh-form-wrap { position: static; }
}
@media (max-width: 640px) {
  .fh-join__list li { grid-template-columns: 52px minmax(0, 1fr); }
  .fh-form__brand { display: none; }
}

/* ---------- Começar uma integração (/comecar): módulos ligados, como no fluxo da homepage ---------- */
.onb-hero { padding-bottom: clamp(70px, 9vw, 120px); }
.onb-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; margin-bottom: clamp(30px, 4vw, 48px); }
.onb-head .hero__title { font-size: clamp(2.4rem, 4.4vw, 4.1rem); }
.onb-head .page-hero__lead { margin: 0; max-width: 42ch; }
.onb-hint { display: flex; align-items: center; gap: 12px; min-height: 24px; margin: 0 0 14px; font-size: .97rem; color: var(--muted); }
.onb-hint::before {
  content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(227,36,38,.14); transition: background .3s, box-shadow .3s;
}
.onb-studio.is-connected .onb-hint { color: var(--ink); }
.onb-studio.is-connected .onb-hint::before { background: var(--green); box-shadow: 0 0 0 4px rgba(47,191,113,.18); }

.onb-canvas {
  position: relative; height: clamp(420px, 40vw, 510px); overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -48px rgba(22,22,22,.4);
  background: radial-gradient(circle, #dedcd7 1px, transparent 1.4px) 0 0 / 22px 22px, #fbfbfa;
}
.onb-canvas__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.onb-wire { fill: none; stroke: #c9c7c1; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 7; }
.onb-trail { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; }
.onb-packet { fill: var(--red); }
.onb-halo { fill: rgba(227,36,38,.18); }

/* Módulos */
.onb-node {
  --s: clamp(66px, 6.6vw, 84px);
  position: absolute; z-index: 1; top: 44%; left: var(--x); width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink); font: inherit; cursor: pointer;
}
.onb-node[data-onb-node="source"] { --x: 17%; }
.onb-node[data-onb-node="target"] { --x: 50%; }
.onb-node[data-onb-node="end"] { --x: 83%; cursor: default; }
.onb-node::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; pointer-events: none;
}
.onb-node.is-next::before { border-color: rgba(22,22,22,.45); animation: onbPing 1.8s var(--ease) infinite; }
.onb-node.is-active::before { border-color: var(--red); animation: onbPing 1.1s var(--ease); }
@keyframes onbPing { from { opacity: .8; transform: scale(.94); } to { opacity: 0; transform: scale(1.4); } }
.onb-node__bubble {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--white); border: 2px dashed #c4c2bc;
  transition: transform .45s var(--ease), border-color .25s, box-shadow .45s var(--ease);
}
.onb-node:hover .onb-node__bubble { border-color: var(--ink); transform: scale(1.05); }
.onb-node:focus-visible { outline: none; }
.onb-node:focus-visible .onb-node__bubble { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.onb-node.is-open .onb-node__bubble { border-style: solid; border-color: var(--ink); transform: scale(1.05); }
.onb-node__plus { font-size: 2rem; font-weight: 300; line-height: 1; color: #8d8b86; transition: color .25s, transform .35s var(--ease); }
.onb-node:hover .onb-node__plus, .onb-node.is-open .onb-node__plus { color: var(--ink); transform: rotate(90deg); }
.onb-node__bubble img { width: 52%; height: 52%; object-fit: contain; border-radius: 8px; }
.onb-node__bubble img[src$=".svg"] { object-fit: cover; object-position: 0 50%; border-radius: 0; }
.onb-node__doc, .onb-node__mail { display: none; width: 50%; height: 50%; }
.onb-node__mail { display: block; width: 54%; height: 54%; }
.onb-node.is-filled .onb-node__bubble, .onb-node--end .onb-node__bubble {
  border: 0; box-shadow: 0 14px 30px -18px rgba(22,22,22,.5), 0 0 0 1px rgba(22,22,22,.07);
}
.onb-node.is-filled .onb-node__plus { display: none; }
.onb-node.is-other .onb-node__doc { display: block; color: var(--ink); }
.onb-node.is-pop .onb-node__bubble { animation: onbPop .55s var(--ease); }
@keyframes onbPop { 0% { transform: scale(.6); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
.onb-node.is-active .onb-node__bubble { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(227,36,38,.16), 0 18px 34px -16px rgba(227,36,38,.55); }
.onb-node--end { opacity: .5; transition: opacity .5s var(--ease); }
.onb-node--end.is-done, .onb-node--end.is-active { opacity: 1; }

.onb-node__bolt, .onb-node__edit, .onb-node__check {
  position: absolute; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 0 0 2px var(--white);
  transform: scale(0); transition: transform .4s var(--ease); pointer-events: none;
}
.onb-node__bolt { top: -4px; left: -8px; width: 22px; height: 22px; background: var(--red); color: var(--white); }
.onb-node__edit { top: -4px; right: -6px; width: 24px; height: 24px; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(22,22,22,.4); }
.onb-node__check { bottom: -3px; right: -5px; width: 20px; height: 20px; background: var(--green); color: var(--white); }
.onb-node.is-filled .onb-node__bolt, .onb-node.is-filled .onb-node__edit, .onb-node.is-done .onb-node__check { transform: scale(1); }
.onb-node__label {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  display: grid; gap: 3px; text-align: center; white-space: nowrap; font-size: 13.5px; line-height: 1.25;
}
.onb-node__label strong { font-weight: 500; }
.onb-node__label small { color: var(--muted); font-size: 12px; }
.onb-node:not(.is-filled):not(.onb-node--end) .onb-node__label strong { color: #6f6d68; }

/* Barra do cenário */
.onb-bar {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 28px);
  padding: 5px 14px 5px 5px; border-radius: var(--pill); background: var(--white); font-size: 12.5px;
  box-shadow: 0 10px 26px -16px rgba(22,22,22,.45), 0 0 0 1px rgba(22,22,22,.06);
}
.onb-bar__run { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #d8d6d1; color: var(--white); transition: background .3s; }
.onb-studio.is-connected .onb-bar__run { background: var(--red); }
.onb-bar__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onb-bar__switch { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--line-soft); color: var(--muted); white-space: nowrap; }
.onb-bar__switch i { position: relative; width: 26px; height: 15px; border-radius: var(--pill); background: #d8d6d1; transition: background .3s; }
.onb-bar__switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease); }
.onb-studio.is-connected .onb-bar__switch i { background: var(--green); }
.onb-studio.is-connected .onb-bar__switch i::after { transform: translateX(11px); }

/* Painel de escolha (ao lado dos módulos; no telemóvel, folha que sobe do fundo) */
.onb-picker {
  position: absolute; z-index: 5; top: 12px; right: 12px; bottom: 12px; width: min(370px, 40%);
  display: flex; flex-direction: column; background: var(--white); border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(22,22,22,.45), 0 0 0 1px rgba(22,22,22,.07);
  animation: onbPanel .35s var(--ease);
}
.onb-picker[hidden] { display: none; }
@keyframes onbPanel { from { opacity: 0; transform: translateX(14px); } }
.onb-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px 20px; }
.onb-picker__head h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.onb-picker__head h2:focus { outline: none; }
.onb-picker__close { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; }
.onb-picker__close:hover { border-color: var(--ink); }
.onb-picker__search { display: flex; align-items: center; gap: 8px; height: 42px; margin: 0 16px 8px; padding: 0 12px; border-radius: 12px; background: var(--soft); color: var(--muted); }
.onb-picker__search:focus-within { box-shadow: 0 0 0 1px var(--ink); }
.onb-picker__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 16px; color: var(--ink); }
.onb-picker__search input::-webkit-search-cancel-button { display: none; }
.onb-picker__list { flex: 1; min-height: 0; margin: 0; padding: 2px 8px 10px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.onb-picker__list li[hidden] { display: none; }
.onb-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px;
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s;
}
.onb-pick:hover, .onb-pick:focus-visible { background: var(--soft); outline: none; }
.onb-pick:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); }
.onb-pick__logo {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; overflow: hidden; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 1px rgba(22,22,22,.09); font-weight: 500;
}
.onb-pick__logo img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
.onb-pick__logo img[src$=".svg"] { object-fit: cover; object-position: 0 50%; border-radius: 0; }
.onb-pick__logo--plus { font-size: 1.3rem; font-weight: 300; color: var(--muted); }
.onb-pick__text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.onb-pick__text strong { font-weight: 500; font-size: .95rem; line-height: 1.25; }
.onb-pick__text small { font-size: .8rem; color: var(--muted); }
.onb-pick__check { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; color: var(--white); background: var(--ink); transform: scale(0); transition: transform .3s var(--ease); }
.onb-pick[aria-pressed="true"] { background: var(--soft); }
.onb-pick[aria-pressed="true"] .onb-pick__check { transform: scale(1); }
.onb-picker__other { display: grid; gap: 8px; padding: 4px 10px 10px 60px; font-size: .9rem; }
.onb-picker__other[hidden] { display: none; }
.onb-picker__other div { display: flex; gap: 8px; }
.onb-picker__other input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; }
.onb-picker__other input:focus { outline: none; border-color: var(--ink); }
.onb-picker__empty { margin: 0; padding: 4px 20px 14px; color: var(--muted); font-size: .9rem; }
.onb-picker__foot { margin: 0; padding: 12px 20px 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .86rem; }
.onb-picker__foot a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.onb-scrim { display: none; }

/* Continuar */
.onb-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 22px; }
.onb-cta p { margin: 0; max-width: 58ch; color: var(--muted); }
.onb-studio.is-connected .onb-cta p { color: var(--ink); }
.onb-go { cursor: pointer; }
.onb-go[aria-disabled="true"] { opacity: .35; }
.onb-studio.is-connected .onb-go { animation: onbGo 1.4s var(--ease) 2; }
@keyframes onbGo { 0% { box-shadow: 0 0 0 0 rgba(22,22,22,.35); } 100% { box-shadow: 0 0 0 14px rgba(22,22,22,0); } }
.onb-noscript { margin-top: 18px; }

@media (max-width: 900px) {
  .onb-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .onb-canvas { height: 360px; }
  .onb-node { --s: 60px; top: 42%; }
  .onb-node[data-onb-node="source"] { --x: 18%; }
  .onb-node[data-onb-node="end"] { --x: 82%; }
  .onb-node__label { width: 104px; white-space: normal; font-size: 12.5px; }
  .onb-node__label small { font-size: 11px; }
  .onb-bar { left: 10px; bottom: 10px; font-size: 11.5px; }
  .onb-picker {
    position: fixed; z-index: 210; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: min(78vh, 620px);
    border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: onbSheet .35s var(--ease);
  }
  @keyframes onbSheet { from { transform: translateY(40px); opacity: 0; } }
  .onb-scrim { display: block; position: fixed; z-index: 205; inset: 0; background: rgba(22,22,22,.38); animation: onbFade .25s ease; }
  .onb-scrim[hidden] { display: none; }
  @keyframes onbFade { from { opacity: 0; } }
  html.onb-lock { overflow: hidden; }
  /* O contentor do topo tem z-index 1; com a folha aberta sobe acima do cabeçalho e do rodapé */
  html.onb-lock .onb-hero > .container { z-index: 210; }
  .onb-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .onb-node::before, .onb-node.is-pop .onb-node__bubble, .onb-picker, .onb-studio.is-connected .onb-go { animation: none !important; }
}

/* Entradas para o onboarding (/comecar) */
.topbar__cta { font-weight: 500; color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.nav__start { white-space: nowrap; }
.process__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(36px, 5vw, 56px); }
.process__cta span { color: var(--muted); max-width: 44ch; }
.automation__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .nav__start { display: none; }
}
.nav__start[aria-current="page"] { border-color: var(--ink); }

/* Artigos na imprensa num caso de estudo (bloco 'press'): cartões na coluna do texto */
.case-press__grid { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-press .press-card { flex: none; grid-template-rows: 1fr auto; }
.case-press .press-card__paper { aspect-ratio: auto; min-height: 280px; padding: 22px; }
.case-press .press-card__headline { font-size: 1.2rem; }
@media (max-width: 991px) {
  .case-press__grid { grid-column: 1; }
}
@media (max-width: 640px) {
  .case-press__grid { grid-template-columns: 1fr; }
  .case-press .press-card__paper { min-height: 0; }
  .case-press .press-card__headline { margin-top: 18px; }
}

/* ---------- fareharbor.kapta.si (fareharbor-adesao.php): globo à esquerda, formulário à direita ---------- */
.fhl-top__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 86px; }
.fhl-top__logo img { display: block; height: 34px; width: auto; }
.fhl-top__right { display: flex; align-items: center; gap: 12px; }
.fhl-lang { display: flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: var(--soft); }
.fhl-lang a { padding: 6px 12px; border-radius: var(--pill); font-size: .82rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.fhl-lang a:hover { color: var(--ink); }
.fhl-lang a[aria-current] { background: var(--ink); color: var(--white); }
.fhl-lang a { padding: 6px 9px; }
/* Menu de línguas do telemóvel */
.fhl-langmenu { position: relative; display: none; }
.fhl-langmenu summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--pill); background: var(--soft);
  font-size: .86rem; font-weight: 500; cursor: pointer; list-style: none;
}
.fhl-langmenu summary::-webkit-details-marker { display: none; }
.fhl-langmenu[open] summary svg { transform: rotate(180deg); }
.fhl-langmenu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  border-radius: 16px; background: var(--white); box-shadow: 0 24px 50px -24px rgba(22,22,22,.4), 0 0 0 1px rgba(22,22,22,.07);
}
.fhl-langmenu a { display: block; padding: 9px 12px; border-radius: 10px; font-size: .95rem; }
.fhl-langmenu a:hover { background: var(--soft); }
.fhl-langmenu a[aria-current] { font-weight: 600; }

.fhl-hero { position: relative; padding: clamp(8px, 2vw, 24px) 0 clamp(64px, 8vw, 110px); overflow: hidden; overflow: clip; }
.fhl-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "globe intro" "globe form";
  grid-template-rows: auto 1fr; column-gap: clamp(28px, 4.5vw, 72px); row-gap: 26px; align-items: start;
}
.fhl-intro { grid-area: intro; display: grid; gap: 18px; padding-top: clamp(4px, 2vw, 28px); }
.fhl-intro .fh-badge { justify-self: start; margin: 0; }
.fhl-intro h1 { font-size: clamp(2.3rem, 3.9vw, 3.9rem); line-height: 1.02; letter-spacing: -0.025em; }
.fhl-intro__lead { margin: 0; color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
.fhl-form { grid-area: form; display: grid; gap: 16px; align-content: start; }
.fhl-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0 6px; list-style: none; font-size: .86rem; color: var(--muted); }
.fhl-trust li { display: inline-flex; align-items: center; gap: 8px; }
.fhl-trust li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.fhl-globe { grid-area: globe; position: sticky; top: 16px; display: grid; justify-items: center; gap: 16px; }
.fhl-globe__stage { display: none; position: relative; width: min(100%, 57vh, 660px); aspect-ratio: 1 / 1; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.fhl-globe__stage:active { cursor: grabbing; }
.fhl-globe__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.fhl-globe__event { display: none; align-items: center; gap: 10px; max-width: 100%; margin: -34px 0 0; position: relative; z-index: 1;
  padding: 9px 16px; border-radius: var(--pill); background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: 0 10px 30px -18px rgba(22,22,22,.35); font-size: .86rem; color: var(--ink); }
.fhl-globe__event [data-fh-event] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .2s; }
/* O espaço do globo fica reservado desde o início (com uma silhueta enquanto carrega); sem WebGL desaparece */
.js .fhl-globe__stage, .fhl-hero.is-3d .fhl-globe__stage { display: block; }
.js .fhl-globe__event, .fhl-hero.is-3d .fhl-globe__event { display: flex; }
.fhl-hero[data-globe="off"] .fhl-globe__stage, .fhl-hero[data-globe="off"] .fhl-globe__event { display: none; }
.fhl-globe__stage::before {
  content: ''; position: absolute; inset: 5.5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #fbfbfa 62%, #e9e8e4 100%); transition: opacity .8s var(--ease);
}
.fhl-hero.is-3d .fhl-globe__stage::before { opacity: 0; }

.fhl-countries {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; width: 100%; max-width: 620px;
  margin: 4px 0 0; padding: 0; list-style: none;
}
.fhl-country { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 2px; border-top: 1px solid var(--line-soft); }
.fhl-country__code {
  flex: none; display: grid; place-items: center; width: 34px; height: 26px; border-radius: var(--pill);
  background: var(--soft); color: var(--ink); font-size: .7rem; font-weight: 500; letter-spacing: .05em;
  transition: background .35s, color .35s;
}
.fhl-country__body { display: grid; gap: 2px; min-width: 0; }
.fhl-country__name { font-weight: 500; font-size: .92rem; line-height: 1.2; }
.fhl-country__programs { display: flex; flex-wrap: wrap; gap: 3px 12px; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.fhl-country__programs [data-program] { display: inline-flex; align-items: center; gap: 5px; transition: color .3s; }
.fhl-country__programs img {
  flex: none; width: 16px; height: 16px; object-fit: contain; border-radius: 4px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.fhl-country__programs--note { font-style: normal; }
.fhl-country.is-hit .fhl-country__code, .fhl-country.is-focus .fhl-country__code { background: var(--red); color: var(--white); }
.fhl-country__programs [data-program].is-hit { color: var(--red); }
.fhl-country__programs [data-program].is-hit img { transform: scale(1.15); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px rgba(227,36,38,.6); }

.fhl-how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fhl-how__steps li { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-soft); }
.fhl-how__steps .num-pill { justify-self: start; }
.fhl-how__steps h3 { font-size: 1.35rem; }
.fhl-how__steps p { margin: 0; color: var(--muted); }

.fhl-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.fhl-cta h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; }

.fhl-footer { background: var(--ink); color: #f6f6f4; padding: clamp(56px, 7vw, 90px) 0 30px; }
.fhl-footer__cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-bottom: 48px; }
.fhl-footer__cols h2 { font-family: var(--font-body); font-size: .9rem; color: #8a8a8a; font-weight: 400; margin-bottom: 16px; }
.fhl-footer__cols ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fhl-footer__cols a { transition: color .25s; }
.fhl-footer__cols a:hover { color: var(--red); }
.fhl-footer__cols small { display: block; color: #777; font-size: .78rem; }
.fhl-footer__cols p { margin: 0; color: #cfcfcf; }
.fhl-footer__claim { margin-top: 16px !important; color: #bdbdbd; max-width: 24ch; }
.fhl-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid #2c2c2c; font-size: .86rem; color: #8a8a8a; }
.fhl-footer__bottom p { margin: 0; }
.fhl-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.fhl-footer__bottom a:hover { color: var(--white); }

@media (max-width: 999px) {
  /* No telemóvel e no tablet, o formulário vem logo a seguir ao título; o globo fica por baixo */
  .fhl-hero__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "globe"; grid-template-rows: auto; }
  .fhl-globe { margin-top: 18px; }
  .fhl-globe { position: static; }
  .fhl-globe__stage { width: min(100%, 460px); }
  .fhl-how__steps { grid-template-columns: 1fr; }
  .fhl-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .fhl-top__bar { min-height: 72px; }
  .fhl-top__logo img { height: 28px; }
  .fhl-top__right .btn { display: none; }
  .fhl-lang { display: none; }
  .fhl-langmenu { display: block; }
  .fhl-globe__stage { width: min(100%, 360px); }
  .fhl-countries { grid-template-columns: 1fr; }
  .fhl-globe__event { font-size: .78rem; }
  .fhl-footer__cols { grid-template-columns: 1fr; }
}

/* ---------- Seletor de língua (PT / EN) ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: rgba(22,22,22,.05); }
.lang-switch a { padding: 5px 9px; border-radius: var(--pill); font-size: .76rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); transition: background .2s, color .2s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(22,22,22,.12); }
.lang-switch--menu { justify-self: start; margin-top: 8px; background: rgba(255,255,255,.08); }
.lang-switch--menu a { color: #bbb; }
.lang-switch--menu a[aria-current] { background: var(--white); color: var(--ink); }
@media (max-width: 640px) {
  .nav__actions .lang-switch { display: none; }
}
