/* ==========================================================================
   GESTOR TELECOM - Landing Page
   1.  Tokens
   2.  Reset e base
   3.  Utilitários e layout
   4.  Botões
   5.  Formulários
   6.  Header e navegação
   7.  Hero
   8.  Faixa de confiança
   9.  Problema
   10. Soluções
   11. Formulário principal e sucesso
   12. Como funciona
   13. Quiz
   14. Secção Internet
   15. Comparação
   16. Benefícios
   17. Banner vermelho
   18. Prova social e métricas
   19. FAQ
   20. CTA final
   21. Footer
   22. Flutuantes (WhatsApp, barra mobile)
   23. Cookies e modais
   24. Animações de revelação
   25. Media queries
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Cores */
  --red: #E60023;
  --red-2: #C9001E;
  --red-3: #970017;
  --graphite: #171717;
  --gray-800: #242424;
  --gray-700: #333333;
  --gray-600: #4A4A4A;
  --gray-500: #6E6E6E;
  --gray-400: #9A9A9A;
  --gray-300: #D8D8D8;
  --gray-200: #E8E8E8;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;

  --success: #0F9D58;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EB456;

  /* Gradientes */
  --grad-red: linear-gradient(135deg, var(--red) 0%, var(--red-2) 62%, var(--red-3) 100%);
  --grad-red-soft: linear-gradient(135deg, rgba(230,0,35,.10) 0%, rgba(151,0,23,.04) 100%);
  --grad-dark: linear-gradient(160deg, #1E1E1E 0%, var(--graphite) 55%, #0E0E0E 100%);

  /* Tipografia */
  --font: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.15rem, 1.25rem + 3.9vw, 4.15rem);
  --fs-h2: clamp(1.72rem, 1.12rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.14rem, 1rem + .6vw, 1.42rem);
  --fs-lead: clamp(1rem, .95rem + .42vw, 1.19rem);
  --fs-body: clamp(.97rem, .93rem + .18vw, 1.03rem);
  --fs-sm: .875rem;
  --fs-xs: .78rem;

  /* Raios */
  --r-xs: 12px;
  --r-sm: 18px;
  --r-md: 22px;
  --r-lg: 26px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras suaves */
  --sh-xs: 0 1px 2px rgba(23,23,23,.05);
  --sh-sm: 0 4px 14px rgba(23,23,23,.06);
  --sh-md: 0 10px 30px rgba(23,23,23,.07);
  --sh-lg: 0 22px 54px rgba(23,23,23,.10);
  --sh-red: 0 14px 32px rgba(230,0,35,.24);
  --sh-red-sm: 0 8px 20px rgba(230,0,35,.18);

  /* Espaçamento */
  --gutter: clamp(1.15rem, .6rem + 2.2vw, 2.5rem);
  --section-y: clamp(2.6rem, 1.9rem + 2.6vw, 4.4rem);
  --maxw: 1240px;

  /* Estados */
  --ease: cubic-bezier(.22, .68, .36, 1);
  --header-h: 76px;
}

/* ==========================================================================
   2. RESET E BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.62;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 .6rem;
  color: var(--graphite);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.021em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

blockquote { margin: 0; }

figure { margin: 0; }

:focus-visible {
  outline: 3px solid rgba(230,0,35,.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .8rem 1.2rem;
  background: var(--graphite);
  color: var(--white);
  border-radius: 0 0 var(--r-xs) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   3. UTILITÁRIOS E LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--white { background: var(--white); }
.section--light { background: var(--gray-100); }
/* overflow: as ondas e os pulsos animados usam scale() e alargam a caixa;
   o recorte tem de estar na secção, não nos elementos animados. */
.section--dark { background: var(--grad-dark); color: rgba(255,255,255,.78); overflow: hidden; }
.section--form { background: var(--gray-100); }

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
  text-align: center;
}

.section__title { font-size: var(--fs-h2); margin-bottom: .9rem; }
.section__title--light { color: var(--white); }

.section__lead {
  font-size: var(--fs-lead);
  color: var(--gray-500);
  line-height: 1.65;
}
.section__lead--light { color: rgba(255,255,255,.72); }

.section__foot { margin-top: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); text-align: center; }

/* Secção partida: título à esquerda, conteúdo à direita.
   Poupa cerca de 180px de altura por secção face ao cabeçalho centrado,
   e dá à página um ritmo de duas colunas em vez de blocos empilhados. */
.section--split .section__head { max-width: 640px; }

.txt-red { color: var(--red); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  /* clamp no tamanho e no espaçamento: no telemóvel a etiqueta do hero
     tem de caber numa linha, senão rouba 50px ao primeiro ecrã. */
  padding: .38rem .82rem .38rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(230,0,35,.09);
  color: var(--red);
  font-size: clamp(.68rem, .62rem + .22vw, .78rem);
  font-weight: 700;
  letter-spacing: clamp(.045em, .02em + .12vw, .09em);
  text-transform: uppercase;
}
.eyebrow--dark { background: rgba(230,0,35,.08); }
.eyebrow--light { background: rgba(255,255,255,.10); color: #FF7A8C; }
.eyebrow .icon { width: 1em; height: 1em; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(230,0,35,.10);
  color: var(--red);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
}
.chip--light { background: rgba(255,255,255,.16); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem 1.1rem; }
.field--full { grid-column: 1 / -1; }

/* ==========================================================================
   4.  Botões
   ========================================================================== */
.btn {
  --btn-py: .92rem;
  --btn-px: 1.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .008em;
  text-align: center;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), opacity .2s var(--ease);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .22s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.995); }

.btn--sm { --btn-py: .74rem; --btn-px: 1.15rem; font-size: .86rem; }
.btn--lg { --btn-py: 1.06rem; --btn-px: 1.9rem; font-size: 1rem; }
.btn--xl { --btn-py: 1.16rem; --btn-px: 2.15rem; font-size: 1.03rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--grad-red);
  color: var(--white);
  box-shadow: var(--sh-red-sm);
}
.btn--primary:hover { box-shadow: var(--sh-red); transform: translateY(-2px); }

.btn--dark { background: var(--graphite); color: var(--white); box-shadow: var(--sh-md); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }

.btn--white { background: var(--white); color: var(--red); box-shadow: var(--sh-md); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }

.btn--outline {
  background: var(--white);
  color: var(--graphite);
  border-color: var(--gray-200);
}
.btn--outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.btn--ghost-dark {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn--ghost-dark:hover { border-color: var(--graphite); color: var(--graphite); }

.btn--ghost-light {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-color: rgba(255,255,255,.24);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.45); }

.btn--whatsapp { background: var(--whatsapp); color: #073B22; box-shadow: 0 10px 24px rgba(37,211,102,.28); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); color: #052E1A; transform: translateY(-2px); }

.btn--link {
  padding: .72rem .4rem;
  background: none;
  color: var(--gray-500);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: var(--r-xs);
}
.btn--link:hover { color: var(--red); }

/* Estado de carregamento */
.btn__spinner {
  display: none;
  width: 1.05em;
  height: 1.05em;
  border: 2.4px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .86; }
.btn.is-loading .btn__spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Abre um painel na própria página, não navega: é botão, não é link.
   Herda a aparência do texto onde está inserido. */
.link-inline {
  /* O browser converte sempre um button para inline-block, por isso o alvo
     de toque vem da padding e não do display. */
  display: inline-block;
  padding: .25rem 0;
  font: inherit;
  color: var(--red);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
  transition: color .2s var(--ease);
}
.link-inline:hover { color: var(--red-3); }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--red);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: gap .22s var(--ease), color .22s var(--ease);
}
.link-cta .icon { width: 1.05em; height: 1.05em; }
.link-cta:hover { gap: .85rem; }
.link-cta--light { color: var(--white); }

/* ==========================================================================
   5. FORMULÁRIOS
   ========================================================================== */
.field { position: relative; display: flex; flex-direction: column; }

.field__label {
  display: block;
  margin-bottom: .42rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gray-700);
}
.field__label small { font-weight: 500; color: var(--gray-500); }

.req { color: var(--red); }

.field__control { position: relative; display: block; }

.field__icon {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--gray-400);
  pointer-events: none;
  transition: color .2s var(--ease);
}

.input {
  width: 100%;
  min-height: 54px;
  padding: .9rem 1.1rem .9rem 2.9rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--graphite);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--gray-400); font-weight: 400; }
.input:hover { border-color: var(--gray-300); }
.input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(230,0,35,.11);
}
.input:focus + .field__icon,
.field__control:focus-within .field__icon { color: var(--red); }

.select { padding-left: 1.1rem; padding-right: 2.9rem; cursor: pointer; }
.select__arrow {
  position: absolute;
  right: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  color: var(--gray-500);
  pointer-events: none;
}

.field.has-error .input { border-color: var(--red); background: rgba(230,0,35,.035); }
.field.has-error .field__icon { color: var(--red); }

.field__error {
  display: none;
  margin: .42rem 0 0;
  padding-left: .1rem;
  color: var(--red-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}
.field.has-error .field__error { display: block; animation: errIn .24s var(--ease); }
.field__error--light { color: #FFE1E5; }

@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Checkbox de consentimento */
/* Campo isco: invisível e inalcançável por teclado, mas presente no DOM
   para que um robô o encontre. Não usar display:none, que muitos ignoram. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field--consent { margin-top: 1.35rem; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: var(--gray-100);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.checkbox:hover { border-color: var(--gray-300); }
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.checkbox__box {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  place-items: center;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.checkbox__box .icon { width: 15px; height: 15px; color: var(--white); opacity: 0; transform: scale(.6); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.checkbox input:checked + .checkbox__box { background: var(--red); border-color: var(--red); }
.checkbox input:checked + .checkbox__box .icon { opacity: 1; transform: scale(1); }
.checkbox input:focus-visible + .checkbox__box { outline: 3px solid rgba(230,0,35,.5); outline-offset: 3px; }
.checkbox__text { font-size: var(--fs-sm); line-height: 1.55; color: var(--gray-700); }

.consent-hint {
  margin: .55rem 0 0;
  padding-inline: .2rem;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--gray-500);
}

.field--consent.has-error .checkbox { border-color: var(--red); background: rgba(230,0,35,.04); }

/* ==========================================================================
   6.  Header e navegação
   ========================================================================== */
/* Camadas do site (uma escala, um significado):
   180 WhatsApp flutuante · 190 barra mobile · 250 banner de cookies
   300 header (o painel de menu vive dentro dele) · 400 modais            */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.55) 60%, rgba(255,255,255,0) 100%);
  opacity: 1;
  transition: opacity .3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
/* Sem backdrop-filter abaixo de 1024px: um filtro no header cria bloco de
   contenção e o painel de menu (position: fixed) deixaria de cobrir o ecrã. */
.header.is-stuck {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23,23,23,.06), 0 10px 26px rgba(23,23,23,.06);
}
.header.is-stuck::after { opacity: 0; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.header.is-stuck .header__inner { height: 66px; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: .68rem; }

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-red);
  box-shadow: var(--sh-red-sm);
  transition: transform .3s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__mark svg { width: 28px; height: 28px; }
.bm-ring { fill: none; stroke: #fff; stroke-width: 3.8; }
.bm-fiber { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; }
.bm-dot { fill: none; stroke: #fff; stroke-width: 3.4; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: .12em;
}
.brand__text strong {
  font-size: .95rem;
  font-weight: 800;
  color: var(--graphite);
}
.brand__text span {
  font-size: .68rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .27em;
}

/* Navegação desktop */
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(.4rem, .1rem + .9vw, 1.1rem); }
.nav__list a {
  position: relative;
  display: inline-block;
  padding: .72rem .3rem;   /* 44px de alvo, mínimo confortável de clique */
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color .2s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--red); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__cta, .nav__close { display: none; }

/* Telefone no menu: exposto, mas discreto. O canal principal é o WhatsApp. */
.nav__telefone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .8rem;
  padding: .6rem;
  border-radius: var(--r-pill);
  color: var(--gray-700);
  font-size: .95rem;
  font-weight: 700;
  transition: color .2s var(--ease);
}
.nav__telefone .icon { width: 18px; height: 18px; color: var(--red); }
.nav__telefone:hover { color: var(--red); }

.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__cta { display: none; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--graphite);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle:hover { border-color: var(--red); color: var(--red); }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 3.6rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.4rem);
  background: var(--white);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.hero__glow--a {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  top: -14%; right: -12%;
  background: radial-gradient(circle, rgba(230,0,35,.24) 0%, rgba(230,0,35,0) 70%);
}
.hero__glow--b {
  width: 34vw; height: 34vw;
  max-width: 460px; max-height: 460px;
  bottom: -18%; left: -10%;
  background: radial-gradient(circle, rgba(23,23,23,.12) 0%, rgba(23,23,23,0) 70%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,23,23,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,23,23,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 78%);
  opacity: .8;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.6rem, 2rem + 3vw, 4rem);
  align-items: center;
}

.hero__title { font-size: var(--fs-display); letter-spacing: -.032em; margin-bottom: 1.15rem; }
/* A quebra do título é escolhida, não deixada ao acaso da largura. */
.hero__title-line { display: block; }

.hero__subtitle {
  max-width: 32rem;
  font-size: var(--fs-lead);
  color: var(--gray-500);
  margin-bottom: 1.6rem;
}

.hero__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: .62rem .9rem;
  margin-bottom: 1.9rem;
}
.hero__benefits li {
  display: flex;
  align-items: center;
  gap: .58rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-700);
}
.hero__benefits .icon {
  width: 20px; height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(230,0,35,.1);
  color: var(--red);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.hero__actions .btn { flex: 1 1 auto; min-width: 15rem; }

.hero__note {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--gray-500);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.hero__note .icon { width: 1.05em; height: 1.05em; }

/* Composição visual do hero */
.hero__visual { position: relative; }

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.hero-stage__ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1.6px dashed rgba(230,0,35,.2);
  animation: spinSlow 46s linear infinite;
}
.hero-stage__ring--2 {
  inset: 21%;
  border-style: solid;
  border-color: rgba(23,23,23,.07);
  animation-direction: reverse;
  animation-duration: 62s;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Fotografia do hero: recorte com transparência, assente na base da cena. */
.hero-foto {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  height: auto;
  align-self: end;
  filter: drop-shadow(0 26px 42px rgba(23, 23, 23, .22));
}

/* Badges flutuantes */
.float-badge {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .48rem .82rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-md);
  color: var(--graphite);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.float-badge .icon { width: 14px; height: 14px; color: var(--red); }
.float-badge--internet { top: 4%; left: 4%; animation: floatY 6.4s ease-in-out infinite; }
.float-badge--tv { top: 15%; right: 0; animation: floatY 7.2s ease-in-out infinite .4s; }
.float-badge--voz { bottom: 26%; left: 0; animation: floatY 6.8s ease-in-out infinite .9s; }
.float-badge--movel { top: 41%; right: -2%; animation: floatY 7.6s ease-in-out infinite 1.4s; }
.float-badge--fibra {
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--graphite);
  color: var(--white);
}
.float-badge--fibra .icon { color: #FF5A72; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-badge--fibra { animation: floatFibra 7s ease-in-out infinite; }
@keyframes floatFibra {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -9px); }
}

/* Mini formulário do hero */
.hero-form {
  display: none;
  position: relative;
  z-index: 6;
  width: 100%;
  margin-top: -2.2rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(23,23,23,.06);
}
.hero-form__title {
  margin: 0 0 .9rem;
  font-size: .95rem;
  font-weight: 800;
  color: var(--graphite);
  line-height: 1.3;
}
.hero-form__fields { display: grid; gap: .7rem; margin-bottom: .9rem; }
.hero-form .input { min-height: 48px; font-size: .93rem; }
.hero-form__note { margin: .7rem 0 0; font-size: var(--fs-xs); color: var(--gray-500); text-align: center; }

/* ==========================================================================
   8.  Faixa de confiança
   ========================================================================== */
.trust {
  padding-block: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  background: var(--graphite);
  color: rgba(255,255,255,.86);
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .7rem clamp(1rem, .4rem + 2vw, 2.6rem);
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .02em;
}
.trust__item .icon { width: 20px; height: 20px; color: #FF5A72; }

/* ==========================================================================
   9. PROBLEMA
   ========================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.problem-card {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--sh-xs);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.problem-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: rgba(230,0,35,.25); }
.problem-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--grad-red-soft);
  color: var(--red);
}
.problem-card__icon .icon { width: 25px; height: 25px; }
.problem-card h3 { font-size: var(--fs-h3); margin-bottom: .4rem; }
.problem-card p { color: var(--gray-500); font-size: var(--fs-sm); margin: 0; }
.problem-card--accent { background: var(--graphite); border-color: var(--graphite); }
.problem-card--accent h3 { color: var(--white); }
.problem-card--accent p { color: rgba(255,255,255,.66); }
.problem-card--accent .problem-card__icon { background: rgba(230,0,35,.2); color: #FF5A72; }

/* Carta com fotografia: a imagem entra em cima, a sangrar até às bordas. */
.problem-card--foto { padding-top: 0; overflow: hidden; }
.problem-card__foto {
  width: calc(100% + 3rem);
  max-width: none;
  margin: 0 -1.5rem 1.2rem;
  height: 140px;
  object-fit: cover;
  object-position: center 42%;
}

/* ==========================================================================
   10. Soluções
   ========================================================================== */
.solutions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.6rem;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.solution-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.solution-card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--grad-red-soft);
  color: var(--red);
}
.solution-card__icon .icon { width: 27px; height: 27px; }
.solution-card h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); margin-bottom: .5rem; }
.solution-card p { color: var(--gray-500); font-size: var(--fs-sm); margin-bottom: 0; }
.solution-card__deco {
  position: absolute;
  right: -70px; bottom: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,0,35,.09) 0%, rgba(230,0,35,0) 70%);
  pointer-events: none;
}
.solution-card__deco--light { background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 70%); }

/* A foto do equipamento vem recortada, com fundo transparente: assenta
   diretamente no cartão, sem caixa por baixo. */
.solution-card__foto {
  width: calc(100% + 2rem);
  max-width: none;
  margin: .6rem -1rem -.6rem;
  height: auto;
}

.solution-card--dark { background: var(--grad-dark); border-color: transparent; }
.solution-card--dark h3 { color: var(--white); }
.solution-card--dark p { color: rgba(255,255,255,.68); }
.solution-card--dark .solution-card__icon { background: rgba(255,255,255,.1); color: #FF5A72; }

.solution-card--red { background: var(--grad-red); border-color: transparent; box-shadow: var(--sh-red-sm); }
.solution-card--red h3 { color: var(--white); }
.solution-card--red p { color: rgba(255,255,255,.85); }
.solution-card--red .solution-card__icon { background: rgba(255,255,255,.18); color: var(--white); }
.solution-card--red:hover { box-shadow: var(--sh-red); }

/* ==========================================================================
   11. FORMULÁRIO PRINCIPAL E SUCESSO
   ========================================================================== */
.section--form { position: relative; overflow: hidden; }
.section--form::before {
  content: "";
  position: absolute;
  top: -140px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,0,35,.10) 0%, rgba(230,0,35,0) 68%);
  pointer-events: none;
}

.form-block {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 1.2rem + 2vw, 3rem);
  align-items: start;
}

.form-block__aside {
  padding: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  border-radius: var(--r-xl);
  background: var(--grad-dark);
  color: rgba(255,255,255,.76);
  box-shadow: var(--sh-md);
}
.form-block__title { font-size: clamp(1.55rem, 1.2rem + 1.7vw, 2.35rem); color: var(--white); margin-bottom: .85rem; }
.form-block__lead { color: rgba(255,255,255,.72); font-size: var(--fs-lead); margin-bottom: 1.6rem; }

.form-block__list { display: grid; gap: .72rem; margin-bottom: 1.8rem; }
.form-block__list li {
  display: flex;
  align-items: flex-start;
  gap: .62rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,.84);
}
.form-block__list .icon {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(230,0,35,.25);
  color: #FF7A8C;
}

/* O rosto de quem atende, ao lado da promessa de atendimento humano. */
.form-block__foto {
  display: none;
  width: 62%;
  height: auto;
  margin: -.6rem 0 1.2rem auto;
  border-radius: var(--r-lg);
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .45));
}
@media (min-width: 620px) { .form-block__foto { display: block; } }

.form-block__contact { display: grid; gap: .7rem; }
.contact-line {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  transition: background-color .22s var(--ease), transform .22s var(--ease);
}
.contact-line:hover { background: rgba(255,255,255,.12); transform: translateX(3px); }

/* O WhatsApp é o canal principal: ganha destaque sobre o telefone. */
.contact-line--destaque {
  background: rgba(37, 211, 102, .14);
  border-color: rgba(37, 211, 102, .4);
}
.contact-line--destaque:hover { background: rgba(37, 211, 102, .22); }
.contact-line__ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 13px;
  background: var(--grad-red);
  color: var(--white);
}
.contact-line__ico--wa { background: var(--whatsapp); color: #073B22; }
.contact-line__ico .icon { width: 20px; height: 20px; }
.contact-line small { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.55); }
.contact-line strong { display: block; font-size: .95rem; color: var(--white); }

.form-card {
  position: relative;
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--gray-200);
}

.lead-form__head { margin-bottom: 1.5rem; }
.lead-form__head h3 { font-size: var(--fs-h3); margin-bottom: .3rem; }
.lead-form__head p { color: var(--gray-500); font-size: var(--fs-sm); margin: 0; }

.lead-form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 1rem 0 0;
  color: var(--gray-500);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.lead-form__note .icon { width: 1.1em; height: 1.1em; color: var(--success); }

#leadSubmit { margin-top: 1.4rem; }

.quiz-summary {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--grad-red-soft);
  border: 1px dashed rgba(230,0,35,.32);
}
.quiz-summary__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
  color: var(--red);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.quiz-summary__badge .icon { width: 14px; height: 14px; }
.quiz-summary p { margin: 0; font-size: var(--fs-sm); color: var(--gray-700); font-weight: 600; }

/* Ecrã de sucesso */
.success { text-align: center; padding: 1rem 0 .4rem; }
.success__icon {
  display: grid;
  place-items: center;
  width: 78px; height: 78px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: rgba(15,157,88,.12);
  color: var(--success);
  animation: popIn .45s var(--ease);
}
.success__icon .icon { width: 38px; height: 38px; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: .7rem; }
.success p { color: var(--gray-500); margin-bottom: .35rem; }
.success__actions { display: grid; gap: .7rem; margin-top: 1.7rem; }

/* ==========================================================================
   12. COMO FUNCIONA
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
.step { position: relative; display: flex; gap: 1.1rem; }
.step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 62px;
  bottom: -1.6rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(230,0,35,.35), rgba(230,0,35,0));
}
.step:last-child::before { display: none; }
/* Ícone e número juntos: o ícone diz o que é, o número diz a ordem. */
.step__mark {
  position: relative;
  z-index: 1;
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--white);
  border: 2px solid rgba(230, 0, 35, .16);
  box-shadow: var(--sh-sm);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}
.step__mark img { width: 44px; height: 44px; object-fit: contain; }
.step:hover .step__mark { transform: scale(1.05); border-color: rgba(230, 0, 35, .45); }

.step__num {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding-inline: .38rem;
  border-radius: var(--r-pill);
  background: var(--grad-red);
  color: var(--white);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: var(--sh-red-sm);
}
.step__body { padding-top: .35rem; }
.step__body h3 { font-size: var(--fs-h3); margin-bottom: .35rem; }
.step__body p { color: var(--gray-500); font-size: var(--fs-sm); margin: 0; }

/* ==========================================================================
   13. QUIZ
   ========================================================================== */
.quiz {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.6rem);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-md);
  border: 1px solid var(--gray-200);
}
.quiz__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.7rem; }
.quiz__progress {
  flex: 1;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--gray-200);
  overflow: hidden;
}
.quiz__bar {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: var(--r-pill);
  background: var(--grad-red);
  transition: width .4s var(--ease);
}
.quiz__counter { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--gray-500); white-space: nowrap; }

.quiz__stage { position: relative; }
.quiz-step { display: none; animation: stepIn .34s var(--ease); }
.quiz-step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.quiz-step__q {
  display: block;
  margin-bottom: 1.2rem;
  font-size: clamp(1.2rem, 1.05rem + .8vw, 1.6rem);
  font-weight: 800;
  color: var(--graphite);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.quiz-options { display: grid; grid-template-columns: 1fr; gap: .65rem; }
.quiz-option {
  position: relative;
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: .97rem;
  font-weight: 700;
  text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease),
              transform .2s var(--ease), color .2s var(--ease);
}
.quiz-option:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.quiz-option.is-selected { border-color: var(--red); background: rgba(230,0,35,.06); color: var(--red); }

.quiz__foot { margin-top: 1.4rem; min-height: 2rem; }

.quiz-result { text-align: center; animation: stepIn .34s var(--ease); }
.quiz-result__icon {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--grad-red-soft);
  color: var(--red);
}
.quiz-result__icon .icon { width: 30px; height: 30px; }
.quiz-result h3 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.8rem); margin-bottom: .7rem; }
.quiz-result__text { color: var(--gray-500); max-width: 42ch; margin: 0 auto 1.5rem; }
.quiz-result #quizRestart { display: block; margin: .9rem auto 0; }

/* ==========================================================================
   14. Secção Internet
   ========================================================================== */
.internet {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  align-items: center;
}
.internet__content .btn { margin-top: 1.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.7rem; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .95rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.86);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
.chips li:hover { background: rgba(230,0,35,.2); border-color: rgba(230,0,35,.45); transform: translateY(-2px); }
.chips .icon { width: 17px; height: 17px; color: #FF5A72; }

/* Duas fotografias sobrepostas: a sala inteira, e um detalhe por cima.
   A segunda entra a partir dos 620px, para não espremer o telemóvel. */
.internet__visual {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
}
.internet__visual .foto--principal {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .45);
}
.internet__visual .foto--sobreposta { display: none; }

@media (min-width: 620px) {
  .internet__visual .foto--sobreposta {
    display: block;
    position: absolute;
    left: -6%;
    bottom: -8%;
    width: 38%;
    height: auto;
    border-radius: var(--r-lg);
    border: 5px solid var(--graphite);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
  }
}

/* Usado pelo halo do botão de WhatsApp. */
@keyframes pulseOut {
  0% { opacity: .85; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.4); }
}

/* ==========================================================================
   15. Comparação
   ========================================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  align-items: center;
}
.compare__list { display: grid; gap: .7rem; margin-top: 1.6rem; }
.compare__list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-700);
}
.compare__list .icon {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(230,0,35,.1);
  color: var(--red);
}

.compare__foto {
  width: 100%;
  height: auto;
  margin-top: 1.8rem;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}

.compare-form {
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
  border-radius: var(--r-xl);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.compare-form__title { font-size: var(--fs-h3); margin-bottom: 1.2rem; }
.compare-form .btn { margin-top: 1.3rem; }
.compare-form__note { margin: .85rem 0 0; font-size: var(--fs-xs); color: var(--gray-500); text-align: center; }

/* ==========================================================================
   16. BENEFÍCIOS
   ========================================================================== */
.benefits { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.benefit {
  padding: 1.7rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.benefit__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.05rem;
  border-radius: 16px;
  background: var(--grad-red-soft);
  color: var(--red);
}
.benefit__icon .icon { width: 25px; height: 25px; }
.benefit h3 { font-size: var(--fs-h3); margin-bottom: .35rem; }
.benefit p { color: var(--gray-500); font-size: var(--fs-sm); margin: 0; }

/* ==========================================================================
   17. BANNER VERMELHO
   ========================================================================== */
.banner {
  position: relative;
  padding-block: clamp(2.8rem, 2rem + 3vw, 4.4rem);
  background: var(--grad-red);
  color: var(--white);
  overflow: hidden;
}
.banner__deco { position: absolute; inset: 0; pointer-events: none; }
.banner__circle { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.16); }
.banner__circle--1 { width: 320px; height: 320px; top: -120px; left: -80px; }
.banner__circle--2 { width: 460px; height: 460px; bottom: -260px; right: -100px; border-style: dashed; }

.banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: center;
}
.banner__text h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  margin-bottom: .5rem;
}
.banner__text p { color: rgba(255,255,255,.86); font-size: var(--fs-lead); margin: 0; }

.banner-form { display: grid; gap: .8rem; }
.banner-form .input { border-color: transparent; }
.banner-form .input:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.35); border-color: var(--white); }

/* ==========================================================================
   18. Prova social e métricas
   ========================================================================== */
/* Compromissos: o que substitui a prova social enquanto não há clientes
   com avaliação autorizada. Tudo aqui é verificável. */
.promessas { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.promessa {
  padding: 1.7rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--sh-xs);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.promessa:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.promessa__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--grad-red-soft);
  color: var(--red);
}
.promessa__icon .icon { width: 24px; height: 24px; }
.promessa h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.promessa p { color: var(--gray-500); font-size: var(--fs-sm); margin: 0; }

@media (min-width: 620px) { .promessas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.testimonials { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.testimonial {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--sh-xs);
}
.testimonial__flag {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .25rem .6rem;
  border-radius: 8px;
  background: rgba(230,0,35,.08);
  color: var(--red-2);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stars { display: flex; gap: .18rem; margin-bottom: .9rem; color: var(--red); }
.stars .icon { width: 18px; height: 18px; }
.testimonial blockquote p { color: var(--gray-600); font-size: .96rem; font-style: italic; }
.testimonial figcaption { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.testimonial figcaption strong { display: block; color: var(--graphite); font-size: .95rem; }
.testimonial figcaption span { color: var(--gray-400); font-size: var(--fs-sm); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-top: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  padding: clamp(1.3rem, 1rem + 1.4vw, 2.2rem) 1rem;
  border-radius: var(--r-xl);
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
}
.metric { text-align: center; }
.metric__value {
  display: block;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.metric__label { display: block; margin-top: .3rem; color: var(--gray-500); font-size: var(--fs-sm); font-weight: 600; }
.metrics__note { margin-top: .8rem; text-align: center; color: var(--gray-500); font-size: var(--fs-xs); }

/* ==========================================================================
   19. FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem, 1.4rem + 2vw, 3rem); align-items: start; }
.faq__head { text-align: left; }
.faq__head .section__title { margin-bottom: .8rem; }
.faq__head .btn { margin-top: 1.3rem; }

.accordion {
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.accordion__item + .accordion__item { border-top: 1px solid var(--gray-200); }
.accordion__item h3 { margin: 0; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--graphite);
  text-align: left;
  line-height: 1.4;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.accordion__trigger:hover { color: var(--red); background: rgba(230,0,35,.03); }
.accordion__chev {
  width: 22px; height: 22px;
  flex: none;
  color: var(--red);
  transition: transform .3s var(--ease);
}
.accordion__trigger[aria-expanded="true"] { color: var(--red); }
.accordion__trigger[aria-expanded="true"] .accordion__chev { transform: rotate(180deg); }

.accordion__panel { overflow: hidden; }
.accordion__panel[hidden] { display: none; }
.accordion__panel p {
  margin: 0;
  padding: 0 1.4rem 1.35rem;
  color: var(--gray-500);
  font-size: var(--fs-sm);
  line-height: 1.68;
}
.accordion__panel.is-animating { transition: height .3s var(--ease); }

/* ==========================================================================
   20. CTA FINAL
   ========================================================================== */
.final-cta {
  position: relative;
  padding-block: clamp(3.6rem, 2.6rem + 4vw, 6.4rem);
  background: var(--grad-dark);
  color: rgba(255,255,255,.76);
  overflow: hidden;
  text-align: center;
}
.final-cta__deco { position: absolute; inset: 0; pointer-events: none; }
.fc-circle { position: absolute; border-radius: 50%; }
.fc-circle--1 {
  width: 520px; height: 520px;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(230,0,35,.24) 0%, rgba(230,0,35,0) 68%);
}
.fc-circle--2 {
  width: 300px; height: 300px;
  bottom: -160px; right: -60px;
  border: 2px dashed rgba(255,255,255,.1);
}
/* Textura de fibra por baixo do texto: matéria sem roubar leitura. */
.fc-wave {
  position: absolute;
  inset: 0;
  background: url("../assets/images/textura-de-fibra-otica.webp") center / cover no-repeat;
  opacity: .34;
  mix-blend-mode: screen;
}

.final-cta__inner { position: relative; z-index: 1; max-width: 780px; }
.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.85rem, 1.3rem + 2.6vw, 3.15rem);
  margin-bottom: 1rem;
}
.final-cta__text { color: rgba(255,255,255,.72); font-size: var(--fs-lead); margin-bottom: 2.1rem; }
.final-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.final-cta__actions .btn { flex: 1 1 auto; min-width: 16rem; }

/* ==========================================================================
   21. FOOTER
   ========================================================================== */
.footer { background: #0E0E0E; color: rgba(255,255,255,.62); padding-top: clamp(2.8rem, 2rem + 3vw, 4.4rem); }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  padding-bottom: clamp(2rem, 1.6rem + 2vw, 3rem);
}
.brand--footer .brand__text strong { color: var(--white); }
/* O "TELECOM" do logo é `--red` (#E60023). Sobre o branco do cabeçalho dá 4,78 e PASSA; sobre o
   #0E0E0E do rodapé dá 4,03 e reprova. Por isso o ajuste é só na variante do rodapé — mexer no
   `--red` global mudaria a marca em toda a página para resolver um caso.
   #FF3355 é o tom mais próximo do vermelho de marca que alcança AA aqui: 5,38. */
.brand--footer .brand__text span { color: #FF3355; }
.footer__desc { margin: 1.1rem 0 1.3rem; font-size: var(--fs-sm); max-width: 30ch; }
.footer__contacts { display: grid; gap: .6rem; }
.footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-block: .3rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: rgba(255,255,255,.86);
  transition: color .2s var(--ease);
}
.footer__contacts a:hover { color: var(--red); }
.footer__contacts .icon { width: 18px; height: 18px; color: var(--red); }

.footer__wa { color: var(--whatsapp) !important; }
.footer__wa .icon { color: var(--whatsapp); }
.footer__wa:hover { color: #4BE68A !important; }

.footer__col h3 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer__col ul { display: grid; gap: .35rem; }
.footer__col a,
.footer__col .link-inline {
  display: inline-block;
  padding-block: .3rem;
  font-size: var(--fs-sm);
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer__col a:hover,
.footer__col .link-inline:hover { color: var(--white); padding-left: 4px; }
.footer__col--cta p { font-size: var(--fs-sm); margin-bottom: 1.1rem; }

.footer__legal {
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.09);
}
/* Contraste sobre o fundo #0E0E0E do rodapé — medido, não estimado (WCAG AA pede 4,5 para texto normal):
     .40 -> 3,79  REPROVAVA no Lighthouse (era a causa dos 4 elementos de rodapé acusados)
     .45 -> 4,50  exatamente no limite; um arredondamento e volta a reprovar
     .50 -> 5,30  margem confortável, e a diferença visual é imperceptível
   O `.footer__disclaimer` (.46 -> 4,65) passava por pouco e subiu junto: mesmo defeito, um
   arredondamento de distância. */
.footer__disclaimer { font-size: var(--fs-xs); line-height: 1.65; color: rgba(255,255,255,.55); margin-bottom: .7rem; }
.footer__copy { font-size: var(--fs-xs); color: rgba(255,255,255,.5); margin: 0; }

/* Assinatura de quem fez o site. Discreta, mas clicável. */
.footer__autor { display: block; margin-top: .35rem; }
.footer__autor a {
  color: rgba(255,255,255,.62);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.24);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer__autor a:hover { color: var(--white); border-color: var(--white); }

@media (min-width: 1024px) {
  .footer__autor { display: inline; margin-top: 0; margin-left: .5rem; }
  .footer__autor::before { content: "·"; margin-right: .5rem; opacity: .5; }
}

/* ==========================================================================
   22. FLUTUANTES
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 180;
  transition: transform .25s var(--ease), background-color .25s var(--ease), bottom .3s var(--ease);
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #073B22;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              bottom .3s var(--ease), opacity .25s var(--ease), visibility .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); background: var(--whatsapp-dark); }

/* No telemóvel a barra inferior já tem o botão de WhatsApp. Ter os dois
   ao mesmo tempo é o mesmo botão duas vezes, um por cima do outro.
   O flutuante só aparece quando a barra se esconde. */
@media (max-width: 767px) {
  .wa-float { opacity: 0; visibility: hidden; }
  body.bar-hidden .wa-float {
    opacity: 1;
    visibility: visible;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.65);
  animation: pulseOut 3s ease-out infinite;
}

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 190;
  display: flex;
  gap: .55rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -6px 24px rgba(23,23,23,.1);
  transform: translateY(0);
  transition: transform .3s var(--ease);
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mobile-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 50px;
  border-radius: var(--r-pill);
  font-size: .92rem;
  font-weight: 700;
}
.mobile-bar__btn .icon { width: 18px; height: 18px; }
.mobile-bar__btn--ghost { background: var(--gray-100); color: var(--graphite); border: 2px solid var(--gray-200); }
.mobile-bar__btn--wa { background: var(--whatsapp); color: #073B22; box-shadow: 0 8px 18px rgba(37,211,102,.3); }
.mobile-bar__btn--primary { background: var(--grad-red); color: var(--white); box-shadow: var(--sh-red-sm); }

body { padding-bottom: 74px; }

/* ==========================================================================
   23. COOKIES E MODAIS
   ========================================================================== */
.cookie {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 250;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--gray-200);
  animation: cookieIn .4s var(--ease);
}
.cookie[hidden] { display: none; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Compacto no telemóvel: o aviso não pode tapar o CTA do hero. */
.cookie__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem .8rem;
  padding: .9rem 1rem;
  align-items: start;
}
.cookie__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--grad-red-soft);
  color: var(--red);
}
.cookie__icon .icon { width: 19px; height: 19px; }
.cookie__text strong { display: block; color: var(--graphite); font-size: .88rem; margin-bottom: .15rem; }
.cookie__text p { margin: 0; font-size: .74rem; color: var(--gray-500); line-height: 1.45; }
/* Três botões numa linha só: cada linha extra aqui empurra o CTA do hero
   para fora do primeiro ecrã do telemóvel. */
.cookie__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: .4rem;
}
.cookie__actions .btn { --btn-py: .55rem; --btn-px: .7rem; font-size: .78rem; }

/* Modais */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,14,14,.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .25s var(--ease);
}
.modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(86vh, 780px);
  overflow-y: auto;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-lg);
  animation: modalIn .3s var(--ease);
  -webkit-overflow-scrolling: touch;
}
.modal__dialog--doc { width: min(100%, 720px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--red); color: var(--white); }
.modal__close .icon { width: 20px; height: 20px; }

.modal h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin-bottom: 1.2rem; padding-right: 3rem; }
.modal__body { display: grid; gap: 1rem; }
.modal__body--doc { display: block; }
.modal__body--doc h3 {
  margin: 1.4rem 0 .4rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--graphite);
}
.modal__body--doc p { font-size: var(--fs-sm); color: var(--gray-600); line-height: 1.68; }
.modal__body--doc a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* Campo legal ainda por preencher: fica marcado a vermelho para não
   passar despercebido a quem revê o documento. */
[data-por-preencher] {
  color: var(--red-2);
  font-weight: 700;
  background: rgba(230, 0, 35, .08);
  padding: 0 .3rem;
  border-radius: 4px;
}

.doc-flag[hidden] { display: none; }
.doc-flag {
  padding: .75rem .95rem;
  border-radius: var(--r-xs);
  background: rgba(230,0,35,.06);
  border: 1px dashed rgba(230,0,35,.3);
  color: var(--red-2) !important;
  font-size: var(--fs-xs) !important;
  font-weight: 700;
}

.modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--gray-200);
}
.modal__foot .btn { flex: 1 1 auto; }

.pref {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.pref strong { display: block; color: var(--graphite); font-size: .95rem; margin-bottom: .2rem; }
.pref p { margin: 0; font-size: var(--fs-xs); color: var(--gray-500); line-height: 1.55; }

.switch { position: relative; flex: none; width: 50px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track {
  display: block;
  width: 100%; height: 100%;
  border-radius: var(--r-pill);
  background: var(--gray-300);
  transition: background-color .22s var(--ease);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--sh-xs);
  transition: transform .22s var(--ease);
}
.switch input:checked + .switch__track { background: var(--red); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid rgba(230,0,35,.5); outline-offset: 3px; }
.switch.is-locked { opacity: .65; cursor: not-allowed; }
.switch.is-locked input { cursor: not-allowed; }

/* ==========================================================================
   24. Animações de revelação
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .66s var(--ease), transform .66s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.problem-grid .reveal.is-visible,
.solutions .reveal.is-visible,
.benefits .reveal.is-visible,
.testimonials .reveal.is-visible,
.steps .reveal.is-visible { transition-delay: var(--d, 0ms); }

/* ==========================================================================
   25. MEDIA QUERIES
   ========================================================================== */

/* >= 480px */
@media (min-width: 480px) {
  .hero__benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .success__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cookie__actions .btn { --btn-py: .62rem; --btn-px: .9rem; font-size: .82rem; }
}

/* >= 620px */
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner-form { grid-template-columns: 1fr auto; align-items: start; }
  .banner-form .btn { min-height: 54px; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* >= 768px (tablet) */
@media (min-width: 768px) {
  :root { --header-h: 82px; }

  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .wa-float { right: 24px; bottom: 24px; width: 60px; height: 60px; }
  .cookie { left: 24px; right: 24px; bottom: 24px; }
  .cookie__inner { grid-template-columns: auto 1fr auto; align-items: center; padding: 1.1rem 1.2rem; }
  .cookie__actions { grid-column: auto; display: flex; gap: .5rem; }
  .cookie__text strong { font-size: .96rem; }
  .cookie__text p { font-size: var(--fs-xs); }

  .header__cta { display: inline-flex; }

  .hero__actions .btn { flex: 0 1 auto; }
  .final-cta__actions .btn { flex: 0 1 auto; }

  /* auto-fit: 3, 4 ou 5 opções ocupam a linha inteira, sem botão órfão. */
  .quiz-options { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
  .compare { grid-template-columns: 1fr 1fr; }
  .internet { grid-template-columns: 1.05fr .95fr; }
  .faq { grid-template-columns: .82fr 1.18fr; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 24px); }

  .metrics { gap: 1rem; }

  /* Calha vertical de serviços à direita da fotografia. Espalhadas pela
     cena, como ficam no telemóvel, acabam por cair em cima das pessoas. */
  .float-badge {
    left: auto;
    right: -2%;            /* margem curta: a 1280px não sobra espaço lateral */
    bottom: auto;          /* sem isto o badge estica entre top e bottom */
    transform: none;
    min-width: 116px;
    justify-content: flex-start;
    animation-name: floatY;
  }
  .float-badge--internet { top: 2%; animation-delay: 0s; }
  .float-badge--tv { top: 20%; animation-delay: .3s; }
  .float-badge--voz { top: 38%; animation-delay: .6s; }
  .float-badge--movel { top: 56%; animation-delay: .9s; }
  .float-badge--fibra { top: 74%; animation-delay: 1.2s; }

  /* No tablet a cena é uma coluna só: a foto encolhe para a calha caber. */
  .hero-stage { max-width: 620px; }
  .hero-foto { width: 76%; }
}

/* >= 1024px (desktop) */
@media (min-width: 1024px) {
  /* Ritmo de duas colunas: cabeçalho fixo à esquerda, conteúdo a correr à direita */
  .section--split > .container {
    display: grid;
    grid-template-columns: minmax(280px, 350px) 1fr;
    gap: clamp(1.8rem, .8rem + 3vw, 3.2rem);
    align-items: start;
  }
  .section--split .section__head {
    margin: 0;
    text-align: left;
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
  /* Numa coluna de 350px o título tem de descer de escala, senão parte
     palavras longas como "Telecomunicações" e corta. */
  .section--split .section__title {
    font-size: clamp(1.55rem, 1.1rem + 1.1vw, 2.05rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .section--split .section__lead { font-size: .97rem; }

  /* Duas colunas dentro do painel: quatro cartas em 800px ficam ilegíveis. */
  .section--split .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Os passos voltam a ser timeline vertical: é uma sequência, e a linha
     que liga 01 a 04 é informação, não enfeite. */
  .section--split .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .section--split .step { flex-direction: row; gap: 1.1rem; }
  .section--split .step__body { padding-top: .35rem; }
  .section--split .step::before {
    display: block;
    left: 27px; right: auto;
    top: 62px; bottom: -1.5rem;
    width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(230,0,35,.35), rgba(230,0,35,0));
  }
  .section--split .step:last-child::before { display: none; }
  .section--split > .container { grid-template-rows: auto 1fr; }
  .section--split .split-main { grid-column: 2; grid-row: 1 / span 2; }
  .section--split .section__foot {
    grid-column: 1;
    grid-row: 2;
    margin-top: 1.6rem;
    text-align: left;
    align-self: start;
  }
  .section--split .quiz { max-width: none; margin-inline: 0; }
  .section--split .metrics { grid-column: 1 / -1; margin-top: 1.6rem; }
  .section--split .metrics__note { grid-column: 1 / -1; }

  .nav { display: flex; align-items: center; }
  .nav-toggle { display: none; }

  /* Sem painel off-canvas neste tamanho, o filtro já não afeta nada. */
  .header.is-stuck {
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }

  .hero__inner { grid-template-columns: 55% 45%; gap: clamp(1.5rem, .5rem + 2vw, 2.6rem); }
  .hero__content { padding-right: 1rem; }
  /* A cena passa a faixa: os equipamentos ficam inteiros e o cartão do
     formulário encosta por baixo, sobrepondo só a base. */
  .hero-stage {
    max-width: 100%;
    aspect-ratio: auto;
    height: clamp(300px, 24vw, 372px);
  }
  /* A fotografia recua da calha de etiquetas, para nada tapar nada. */
  .hero-foto { width: 86%; justify-self: start; }

  .hero-form { display: block; }

  .form-block { grid-template-columns: .88fr 1.12fr; }
  .form-block__aside { position: sticky; top: calc(var(--header-h) + 24px); }

  /* Grelha de 6 colunas: 3+3 na primeira linha, 2+2+2 na segunda.
     As duas linhas fecham exatamente, não sobra carta órfã. */
  .solutions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .solution-card { grid-column: span 2; }
  .solution-card--wide { grid-column: span 3; }

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

  .benefits { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .benefit { grid-column: span 2; }
  .benefits .benefit:nth-child(4) { grid-column: span 3; }
  .benefit--wide { grid-column: span 3; }

  .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
  .step { flex-direction: column; gap: 1.1rem; }
  .step::before {
    left: 62px;
    right: -1.4rem;
    top: 28px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(230,0,35,.35), rgba(230,0,35,0));
  }
  .step__body { padding-top: 0; }

  .banner__inner { grid-template-columns: 1.05fr .95fr; gap: 2.6rem; }
  .banner-form { align-self: center; }

  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 2.6rem; }
  .footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .footer__disclaimer { max-width: 68ch; margin-bottom: 0; }
}

/* >= 1600px */
@media (min-width: 1600px) {
  :root { --maxw: 1320px; }
}

/* Ecrãs muito estreitos (320px) */
@media (max-width: 359px) {
  :root { --gutter: 1rem; --fs-display: 1.98rem; }
  .btn { --btn-px: 1.15rem; font-size: .9rem; }
  .hero__actions .btn { min-width: 100%; }
  .brand__text strong { font-size: .86rem; }
  .brand__text span { font-size: .62rem; letter-spacing: .2em; }
  .brand__mark { width: 38px; height: 38px; }
  .mobile-bar__btn { font-size: .85rem; }
  .metrics { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* Menu mobile em painel */
@media (max-width: 1023px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 250;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: min(86vw, 380px);
    padding: 2rem 1.8rem;
    background: var(--white);
    box-shadow: -20px 0 60px rgba(23,23,23,.18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .34s var(--ease), visibility .34s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    border-radius: 14px;
    background: var(--gray-100);
    color: var(--graphite);
  }
  .nav__close .icon { width: 22px; height: 22px; }

  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__list a {
    display: block;
    padding: .95rem .2rem;
    font-size: 1.12rem;
    font-weight: 700;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav__list a::after { display: none; }

  .nav__cta { display: block; }
  .nav__cta .btn { width: 100%; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(14,14,14,.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* Preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-stage__ring,
  .device-router__wave,
  .net-hub__pulse,
  .wa-float__pulse { display: none; }
}

/* Impressão */
@media print {
  .header, .mobile-bar, .wa-float, .cookie, .modal, .hero__bg, .final-cta__deco { display: none !important; }
  body { padding: 0; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* ==========================================================================
   ARTIGOS — tipografia de texto longo e cartões do blog
   Criado 29/08 com o blog. Usa só tokens que já existiam (--maxw, --gutter,
   --r-lg/xl, --fs-*, --gray-*, --red): nada de valores inventados, para o dia
   em que a marca mudar não haver dois sítios a discordar.
   ========================================================================== */
.artigo { padding-block: clamp(2rem, 1.4rem + 3vw, 3.6rem); background: var(--white); }
.artigo__wrap {
  width: 100%;
  max-width: 46rem;               /* medida de leitura: ~70 caracteres por linha */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.artigo__migalhas { font-size: var(--fs-xs); color: var(--gray-500); margin-bottom: 1.2rem; }
.artigo__migalhas a { color: var(--gray-600); text-decoration: none; }
.artigo__migalhas a:hover { color: var(--red); text-decoration: underline; }

.artigo__wrap h1 {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  color: var(--graphite); margin: 0 0 1rem;
}
.artigo__resumo {
  font-size: var(--fs-lead); line-height: 1.6; color: var(--gray-600);
  margin: 0 0 1.6rem;
}

.artigo__capa {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg); margin: 0 0 2rem;
}

.artigo__pilar {
  font-size: var(--fs-sm); color: var(--gray-600);
  border-left: 3px solid var(--red); padding: .2rem 0 .2rem .9rem; margin: 0 0 2rem;
}
.artigo__pilar a { color: var(--red); font-weight: 600; }

/* Corpo: o ritmo vertical é o que faz um texto longo ser lido até ao fim. */
.artigo__wrap h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.72rem);
  font-weight: 800; line-height: 1.25; color: var(--graphite);
  margin: 2.6rem 0 .9rem;
}
.artigo__wrap h3 {
  font-size: var(--fs-h3); font-weight: 700; color: var(--graphite);
  margin: 1.8rem 0 .6rem;
}
.artigo__wrap p { font-size: var(--fs-body); line-height: 1.75; color: var(--gray-700); margin: 0 0 1.1rem; }
.artigo__wrap ul, .artigo__wrap ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.artigo__wrap li { font-size: var(--fs-body); line-height: 1.7; color: var(--gray-700); margin-bottom: .55rem; }
.artigo__wrap strong { color: var(--graphite); font-weight: 700; }
/* ATENCAO ao :not(.btn). Esta regra e para os links DENTRO do texto. Sem a excecao, ela tambem
   apanha o <a class="btn"> do CTA e pinta o rotulo de vermelho sobre fundo vermelho — ilegivel.
   `.artigo__wrap a` (0,1,1) ganha de `.btn--primary` (0,1,0) por especificidade, entao a excecao
   tem de viver aqui, e nao no botao. Encontrado em producao, 29/08. */
.artigo__wrap a:not(.btn) { color: var(--red); }

.artigo__nota {
  background: var(--gray-100); border-radius: var(--r-lg);
  padding: 1rem 1.2rem; margin: 1.5rem 0;
  font-size: var(--fs-sm); line-height: 1.65; color: var(--gray-700);
  border-left: 3px solid var(--red);
}

.artigo__faq { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.artigo__faq-item { margin-bottom: 1.4rem; }
.artigo__faq-item h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.artigo__faq-item p { margin: 0; }

.artigo__cta {
  margin-top: 3rem; padding: 1.8rem;
  background: var(--gray-100); border-radius: var(--r-xl); text-align: center;
}
.artigo__cta h2 { margin-top: 0; font-size: 1.3rem; }
.artigo__cta p { margin-bottom: 1.3rem; }

.artigo__relacionados { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--gray-200); }
.artigo__relacionados h2 { margin-top: 0; font-size: 1.1rem; }
.artigo__relacionados ul { list-style: none; padding: 0; }
.artigo__relacionados li { margin-bottom: .6rem; }
.artigo__relacionados a { color: var(--graphite); font-weight: 600; text-decoration: none; }
.artigo__relacionados a:hover { color: var(--red); text-decoration: underline; }

/* Índice do blog */
.artigo-lista { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.artigo-card {
  border: 1px solid var(--gray-200); border-radius: var(--r-xl);
  padding: 1.4rem; background: var(--white); transition: border-color .2s, transform .2s;
}
.artigo-card:hover { border-color: var(--red); transform: translateY(-2px); }
.artigo-card--pilar { border-color: var(--red); background: var(--gray-100); }
.artigo-card__etiqueta {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  color: var(--red); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem;
}
.artigo-card h2 { margin: 0 0 .5rem; font-size: 1.16rem; line-height: 1.3; }
.artigo-card h2 a { color: var(--graphite); text-decoration: none; }
.artigo-card h2 a:hover { color: var(--red); }
.artigo-card p { margin: 0 0 .7rem; font-size: var(--fs-sm); color: var(--gray-600); }
.artigo-card__meta { font-size: var(--fs-xs); color: var(--gray-500); }
.artigo-card__capa {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg); margin-bottom: .9rem;
}

@media (min-width: 768px) {
  .artigo-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artigo-card--pilar { grid-column: 1 / -1; }
}
