@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* Tinta (azul-escuro do logótipo), papel e um único azul de acção. O ciano só aparece sobre a tinta. */
:root {
  --tinta: #0d1f45; --tinta-2: #16306a; --azul: #0870d8; --azul-escuro: #0a5fb8; --claro: #e8f1fd; --ciano: #4cc9f5;
  --texto: #16202f; --suave: #55627a; --linha: #dbe2ec; --papel: #f4f6fa; --verde: #12805c;
  --titulo: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --corpo: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--corpo); font-size: 17px; color: var(--texto); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--azul); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ciano); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titulo); color: var(--tinta); font-weight: 700; letter-spacing: -.025em; }
.cont { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Cabeçalho */
header.topo { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--linha); backdrop-filter: blur(6px); }
header.topo .cont { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
header.topo img { height: 34px; width: auto; display: block; flex: none; }
.acoes { display: flex; align-items: center; gap: 28px; }
.mob { display: none; }
nav.desk { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; color: var(--texto); font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--azul); }
.botao { display: inline-block; background: var(--azul); color: #fff !important; text-decoration: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 16px; border: 0; white-space: nowrap; text-align: center; transition: background .15s, transform .15s; }
.botao:hover { background: var(--azul-escuro); }
.plano .botao { white-space: normal; }
.botao.sec { background: transparent; color: var(--tinta) !important; border: 1.5px solid var(--tinta); padding: 10.5px 22.5px; }
.botao.sec:hover { background: var(--claro); }

/* Topo da página inicial: tinta, texto à esquerda, a factura e o certificado à direita */
.hero { background: var(--tinta); color: #fff; padding: 72px 0 88px; overflow: hidden; position: relative; }
/* Fotografia como fundo do topo; a camada azul por cima mantém o texto e os documentos legíveis */
.hero .foto-fundo { position: absolute; inset: 0; z-index: 0; }
/* A fotografia fica à direita, na altura do topo e sem ampliar mais do que isso (assim mantém a qualidade e os braços aparecem); o lado esquerdo desvanece-se no azul */
.hero .foto-fundo img { position: absolute; top: 0; right: 0; display: block; height: 100%; width: auto; max-width: none;
                        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%); }
.hero .foto-fundo::after { content: ""; position: absolute; inset: 0; background: rgba(13,31,69,.2); }
.hero .cont { position: relative; z-index: 1; }
.hero .cont > div:first-child { max-width: 30rem; }
.hero .cont { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 470px; }
.hero h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.06; margin: 0 0 22px; color: #fff; font-weight: 800; letter-spacing: -.035em; }
.hero p { font-size: 19px; color: #c7d3ea; margin: 0 0 32px; max-width: 28em; }
.hero .botoes { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .botao.sec { color: #fff !important; border-color: rgba(255,255,255,.55); }
.hero .botao.sec:hover { background: rgba(255,255,255,.1); }
.hero .nota { margin: 22px 0 0; font-size: 14.5px; color: #93a6cb; }

section { padding: 88px 0; }
section.cinza { background: var(--papel); }
h2 { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.12; margin: 0 0 14px; }
.sub { color: var(--suave); margin: 0 0 36px; max-width: 38em; }

/* Duas colunas: título à esquerda, lista pautada à direita */
.dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 64px; align-items: start; }
.dupla > div:first-child { position: sticky; top: 100px; }
.dupla .sub { margin: 0; }
.linhas > div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--linha); }
.linhas > div:last-child { border-bottom: 1px solid var(--linha); }
.linhas strong { font-family: var(--titulo); color: var(--tinta); font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.linhas p { margin: 0; color: var(--suave); }
.linhas .n { color: var(--azul); font-variant-numeric: tabular-nums; margin-right: 10px; }

.planos { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plano { background: #fff; border-top: 4px solid var(--tinta); padding: 36px 4px 4px; display: flex; flex-direction: column; position: relative; }
.plano.destaque { border-top-color: var(--azul); }
.plano .etiqueta { position: absolute; top: 12px; left: 4px; color: var(--azul-escuro); font-size: 14px; font-weight: 600; }
.plano h3 { margin: 0; font-size: 24px; }
.plano .para { color: var(--suave); font-size: 15px; margin: 2px 0 16px; }
.plano .preco { font-family: var(--titulo); font-size: 40px; font-weight: 700; color: var(--tinta); font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.1; }
.plano .preco small { font-family: var(--corpo); font-size: 15px; font-weight: 400; color: var(--suave); letter-spacing: 0; }
.plano .anual { color: var(--suave); font-size: 14.5px; margin: 4px 0 18px; }
.plano ul { list-style: none; padding: 0; margin: 0 0 22px; font-size: 15.5px; flex: 1; }
.plano li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--linha); }
.plano li::before { content: "\2713"; position: absolute; left: 0; color: var(--verde); font-weight: 700; }
.plano li.nao { color: #7d8794; } .plano li.nao::before { content: "\2013"; color: #7d8794; }
table.comp { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; font-variant-numeric: tabular-nums; }
table.comp th, table.comp td { border-bottom: 1px solid var(--linha); padding: 12px 14px; text-align: center; }
table.comp th:first-child, table.comp td:first-child { text-align: left; }
table.comp thead th { background: var(--papel); color: var(--tinta); font-family: var(--titulo); font-size: 17px; }
.faq details { border-top: 1px solid var(--linha); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary { cursor: pointer; font-family: var(--titulo); font-weight: 600; font-size: 19px; color: var(--tinta); letter-spacing: -.01em; }
.faq p { margin: 12px 0 0; color: var(--suave); max-width: 44em; }

.cta { background: var(--tinta); color: #fff; padding: 64px 0; }
.cta .cont { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta h2 { color: #fff; margin: 0 0 6px; } .cta p { margin: 0; color: #c7d3ea; }
/* Rodapé no estilo do OctoShield: fundo noite, títulos curtos em branco, ligações discretas */
footer.rodape { background: #070d22; color: #94a3b8; font-size: 14px; line-height: 1.6; }
footer.rodape a { color: #94a3b8; text-decoration: none; transition: color .15s; }
footer.rodape a:hover { color: #fff; }
footer.rodape nav a { font-size: 14px; font-weight: 400; color: #94a3b8; }
footer.rodape nav a:hover { color: #fff; }
footer.rodape .grelha { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 640px) { footer.rodape .grelha { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { footer.rodape .grelha { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
footer.rodape img { display: block; height: 30px; width: auto; }
footer.rodape p { margin: 16px 0 0; max-width: 20rem; }
footer.rodape h2 { margin: 0; font-family: var(--corpo); font-size: 14px; font-weight: 600; letter-spacing: 0; color: #fff; }
footer.rodape ul { list-style: none; margin: 16px 0 0; padding: 0; }
footer.rodape li + li { margin-top: 10px; }
footer.rodape .redes { display: flex; gap: 16px; padding-top: 8px; }
footer.rodape .redes a { display: inline-flex; }
footer.rodape .base { border-top: 1px solid rgba(255, 255, 255, .1); }
footer.rodape .base .cont { padding-top: 24px; padding-bottom: 24px; padding-right: 96px; }
.legal { padding: 48px 0 72px; max-width: 780px; }
.legal h1 { margin: 0 0 4px; font-size: clamp(30px, 4.5vw, 42px); }
.legal .data { color: var(--suave); margin: 0 0 30px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal li { margin-bottom: 6px; }
@media (max-width: 900px) {
  .hero .cont, .dupla { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .foto-fundo::after { background: rgba(13,31,69,.62); }
  .dupla > div:first-child { position: static; }
  .linhas > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .desk { display: none !important; }
  .acoes { gap: 10px; }
  header.topo img { height: 28px; }
  header.topo .cont { height: 62px; }
  .mob { display: block; }
  .mob summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid var(--linha); border-radius: 8px; display: grid; place-items: center; }
  .mob summary::-webkit-details-marker { display: none; }
  .mob summary span, .mob summary span::before, .mob summary span::after { display: block; width: 18px; height: 2px; background: var(--tinta); content: ""; position: relative; }
  .mob summary span::before { position: absolute; top: -6px; } .mob summary span::after { position: absolute; top: 6px; }
  .mob[open] summary span { background: transparent; }
  .mob[open] summary span::before { top: 0; transform: rotate(45deg); } .mob[open] summary span::after { top: 0; transform: rotate(-45deg); }
  .mob .painel { position: absolute; left: 0; right: 0; top: 62px; background: #fff; border-bottom: 1px solid var(--linha); box-shadow: 0 8px 16px rgba(16,24,40,.08); padding: 8px 24px 18px; }
  .mob .painel a:not(.botao) { display: block; padding: 14px 0; border-bottom: 1px solid var(--linha); color: var(--tinta); text-decoration: none; font-size: 17px; }
  .mob .painel a:not(.botao):last-of-type { border-bottom: 0; }
  .mob .painel .botao { display: block; margin-top: 14px; padding: 13px; font-size: 16px; }
  .hero { padding: 44px 0 56px; }
  .hero p { font-size: 17.5px; }
  section { padding: 56px 0; }
  table.comp { font-size: 13px; } table.comp th, table.comp td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .botao { transition: none; } }

/* Movimento ao rolar (ligado por movimento.js; sem ele tudo fica visível) */
@media (prefers-reduced-motion: no-preference) {
  .mov .rev { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out var(--atraso, 0ms), transform .6s ease-out var(--atraso, 0ms); }
  .mov .rev.vis { opacity: 1; transform: none; }
}


/* Octávia, a assistente do site */
.oct { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.oct-botoes { display: flex; align-items: center; gap: 12px; }
.oct-balao { background: var(--azul); color: #fff; border: 0; border-radius: 99px; padding: 12px 20px; font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; box-shadow: 0 6px 16px rgba(16,38,83,.3); }
.oct-balao:hover { background: #0a5fb8; }
.oct-balao[hidden] { display: none; }
.oct-avatar { position: relative; width: 64px; height: 64px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--escuro); cursor: pointer; box-shadow: 0 6px 16px rgba(16,38,83,.3); transition: transform .15s; }
.oct-avatar:hover { transform: scale(1.05); }
.oct-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.oct-marca { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: #dc2626; color: #fff; font: 700 10px/18px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }
.oct-marca[hidden] { display: none; }
.oct-painel { padding: 0; display: flex; flex-direction: column; width: min(23rem, calc(100vw - 40px)); height: min(34rem, calc(100dvh - 104px)); background: #fff; border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px rgba(16,38,83,.25); }
.oct-painel[hidden] { display: none; }
.oct-cab { display: flex; align-items: center; gap: 12px; background: var(--escuro); color: #fff; padding: 12px 16px; }
.oct-av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); object-fit: cover; }
.oct-nomes { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.oct-nomes strong { font-size: 15px; } .oct-nomes span { font-size: 12px; opacity: .65; }
.oct-fechar { background: transparent; border: 0; color: #fff; opacity: .75; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; }
.oct-fechar:hover { opacity: 1; }
.oct-conversa { flex: 1; overflow-y: auto; background: var(--fundo); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.oct-msg { margin: 0; max-width: 85%; padding: 10px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; white-space: pre-line; border: 1px solid var(--linha); background: #fff; color: var(--texto); }
.oct-msg.eu { align-self: flex-end; background: var(--azul); color: #fff; border-color: var(--azul); }
.oct-pontos { width: 56px; letter-spacing: 2px; color: var(--suave); }
.oct-sug { display: flex; flex-wrap: wrap; gap: 8px; }
.oct-sug button { border: 1px solid rgba(8,112,216,.35); background: #fff; color: #0a5fb8; border-radius: 6px; padding: 7px 12px; font-size: 13px; line-height: 1.3; font-family: inherit; cursor: pointer; text-align: left; }
.oct-sug button:hover { border-color: var(--azul); }
.oct-wa { display: block; text-align: center; background: #075e54; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 6px; padding: 11px 16px; }
.oct-form { border-top: 1px solid var(--linha); padding: 12px; }
.oct-linha { display: flex; gap: 8px; }
.oct-campo { flex: 1; min-width: 0; border: 1px solid var(--linha); border-radius: 6px; padding: 10px 12px; font-size: 16px; font-family: inherit; }
.oct-campo:focus { outline: 0; border-color: var(--azul); }
.oct-enviar { width: 44px; border: 0; border-radius: 6px; background: var(--azul); color: #fff; font-size: 16px; cursor: pointer; }
.oct-enviar:disabled { opacity: .4; cursor: default; }
.oct-nota { margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: var(--suave); }
@media (max-width: 720px) { .oct-balao { display: none; } .oct { right: 14px; bottom: 14px; } }

/* Secção do certificado */
.hero .ver-cert { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dados { list-style: none; margin: 18px 0 0; padding: 0; }
.dados li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 11px 0; border-top: 1px solid var(--linha); }
.dados li:last-child { border-bottom: 1px solid var(--linha); }
.dados span { color: var(--suave); }
.cert-grande { margin: 0; }
.cert-grande img { display: block; width: 100%; height: auto; border: 1px solid #c9d2e0; box-shadow: 0 18px 40px -16px rgba(16,24,40,.35); background: #fff; }
