/* IAJUS.ao: folha única das páginas de Angola (início, registo de interesse, 404).
   Mesmo sistema visual da superfície portuguesa (saas/landing/pt/index.html): nanquim
   navy, acento dourado, Public Sans + Lora itálico + Fira Code. A identidade angolana
   vem do traço contínuo à volta de pontos (desenho de areia lusona) e das cores da
   bandeira usadas só como acento decorativo. Superfície só escura, como a portuguesa.
   CSS externo de propósito: o CSP do vhost AO é `style-src 'self'`, sem 'unsafe-inline'. */
:root {
  color-scheme: dark;
  --bg: #161b28;
  --bg-2: #1a1f2e;
  --ink: #f8f9fa;
  --text-primary: #e9e7dd;
  --text-secondary: #b4b1a5;
  --text-tertiary: #9c9a8e;
  --gold: #b89244;
  --gold-bright: #d8b86a;
  --hair: rgba(255, 255, 255, 0.09);
  --rule: rgba(184, 146, 68, 0.28);
  --field-bg: rgba(255, 255, 255, 0.04);
  --field-border: rgba(255, 255, 255, 0.34); /* >= 3:1 sobre o fundo do campo (1.4.11) */
  --ok: #5fb88a;
  --err: #e8958a;
  /* Bandeira de Angola: só decoração, nunca texto (o vermelho sobre navy não tem contraste de leitura). */
  --ao-red: #cc092f;
  --ao-yellow: #ffcb00;
  --mono: 'Fira Code', ui-monospace, monospace;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Lora', Georgia, serif;
  --text-xs: 0.8rem;
  --gutter: clamp(16px, 5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection { background: rgba(201, 162, 39, 0.28); color: #fff; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Ligação em texto corrido distingue-se por mais do que a cor (1.4.1). */
p a, li a.em-linha { border-bottom: 1px solid var(--gold); }
p a:hover { text-decoration: none; border-bottom-color: var(--gold-bright); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 8px;
}

.saltar {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--gold); color: #1c1917; font-weight: 600;
  padding: 10px 18px; border-radius: 0 0 10px 0;
}
.saltar:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Atmosfera: aurora quente (vermelho e ouro), irmã da aurora índigo de Portugal. */
.bg-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-layer::before, .bg-layer::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.5;
}
.bg-layer::before {
  width: 720px; height: 720px; top: -320px; right: -220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ao-red) 30%, transparent), transparent 70%);
}
.bg-layer::after {
  width: 680px; height: 680px; bottom: -320px; left: -200px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.26), transparent 70%);
}

/* ---- Cabeçalho ---- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand .wm { display: inline-flex; align-items: baseline; line-height: 1; font-size: 1.5rem; }
.brand .wm .ia { font-weight: 700; color: var(--ink); }
.brand .wm .jus { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold); }
.brand .wm .tld { margin-left: 5px; font-family: var(--mono); font-size: max(0.58em, var(--text-xs)); font-weight: 500; color: var(--gold); }
.flag-ao { width: 19px; height: 13px; border-radius: 2.5px; flex: 0 0 auto; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.brand .flag-ao { margin-left: 9px; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 32px; font-size: 0.92rem; color: var(--text-secondary); }
.site-nav a:hover { color: var(--gold-bright); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--gold-bright); }
.site-nav .nav-cta {
  font-size: 0.84rem; font-weight: 600; color: var(--text-primary);
  border: 1px solid var(--rule); border-radius: 999px; padding: 6px 15px;
}
.site-nav .nav-cta:hover { border-color: var(--gold); }
@media (max-width: 560px) {
  .site-nav { gap: 4px 14px; }
  .site-nav .nav-secundaria { display: none; } /* no telemóvel ficam só Início e o registo */
}

main { flex: 1 0 auto; width: 100%; overflow-x: clip; }

/* ---- Herói: texto à esquerda, desenho de areia à direita (Portugal centra; Angola não) ---- */
.hero {
  max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; /* mesma borda do texto das secções */
  padding: clamp(36px, 7vh, 84px) var(--gutter) clamp(28px, 5vh, 56px);
  display: grid; gap: clamp(24px, 4vw, 56px); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--text-xs); font-weight: 600; color: var(--gold-bright);
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 15px;
}
.badge .flag-ao { width: 21px; height: 14px; }
h1 {
  margin-top: clamp(18px, 3vh, 26px);
  font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.05rem); line-height: 1.12;
  letter-spacing: -0.01em; color: var(--ink); max-width: 18ch;
}
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold); }
.lead { margin-top: clamp(16px, 2.6vh, 24px); font-size: clamp(1.04rem, 0.98rem + 0.45vw, 1.24rem); color: var(--text-primary); max-width: 52ch; }
.nota-honesta {
  margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--rule);
  font-size: 0.92rem; color: var(--text-secondary); max-width: 52ch;
}
.cta-row { margin-top: clamp(22px, 3.5vh, 32px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.sona { margin: 0; justify-self: center; width: min(100%, 440px); }
.sona svg { display: block; width: 100%; height: auto; }
.sona .linha { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sona .ponto { fill: var(--text-secondary); }
.sona .ponto--acento { fill: var(--ao-red); }
.sona .moldura { fill: rgba(255, 255, 255, 0.02); stroke: var(--hair); }
@media (max-width: 899px) { .sona { width: min(72%, 300px); order: -1; } }

/* ---- Botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 12px 24px; border-radius: 12px; border: 1px solid var(--gold);
  background: var(--gold); color: #1c1917; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); text-decoration: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { background: transparent; border-color: var(--rule); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- Secções ---- */
.secao { width: 100%; padding: clamp(40px, 6.5vh, 76px) var(--gutter); border-top: 1px solid var(--hair); }
.faixa { max-width: 1080px; margin: 0 auto; }
.kicker { font-size: var(--text-xs); font-weight: 600; color: var(--gold); }
.sec-cab { max-width: 62ch; }
.sec-cab h2 { margin-top: 10px; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
.sec-cab .intro { margin-top: 12px; font-size: 1.02rem; color: var(--text-secondary); }

.paises { margin-top: 26px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .paises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cartao {
  display: flex; flex-direction: column;
  border: 1px solid var(--hair); border-radius: 15px; padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0));
}
.cartao h3 { margin-top: 8px; font-size: 1.08rem; color: var(--ink); }
.cartao p { margin-top: 8px; font-size: 0.95rem; color: var(--text-secondary); flex: 1 1 auto; }
.cartao .pais { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 600; color: var(--gold); }
.cartao .ligacao { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; min-height: 32px; font-weight: 600; font-size: 0.92rem; }

.prioridades { margin-top: 26px; list-style: none; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .prioridades { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prioridades li { border-top: 2px solid var(--rule); padding-top: 14px; }
.prioridades .idx { font-family: var(--mono); font-size: var(--text-xs); color: var(--gold); }
.prioridades h3 { margin-top: 4px; font-size: 1.04rem; color: var(--ink); }
.prioridades p { margin-top: 6px; font-size: 0.94rem; color: var(--text-secondary); }

.cta-faixa {
  margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
  border: 1px solid var(--rule); border-radius: 18px; padding: clamp(20px, 4vw, 30px);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.07), rgba(255, 255, 255, 0));
}
.cta-faixa p { flex: 1 1 320px; font-size: 1.02rem; color: var(--text-primary); max-width: 58ch; }

/* ---- Registo de interesse ---- */
.pagina-cab { max-width: 1080px; margin: 0 auto; padding: clamp(32px, 6vh, 64px) var(--gutter) 8px; }
.pagina-cab h1 { max-width: 24ch; }
.form-layout {
  max-width: 1080px; margin: 0 auto; padding: 24px var(--gutter) clamp(40px, 6vh, 72px);
  display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); align-items: start;
}
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.cartao-form {
  border: 1px solid var(--rule); border-radius: 18px; padding: clamp(18px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.05), rgba(255, 255, 255, 0));
}
.legenda-geral { margin-bottom: 18px; font-size: 0.9rem; color: var(--text-secondary); }
fieldset { border: 0; min-width: 0; }
fieldset + fieldset { margin-top: 34px; }
legend { font-size: 1.06rem; font-weight: 700; color: var(--ink); padding: 0; }
.campo { margin-top: 18px; }
.campo label, .rotulo { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.opcional { font-weight: 400; color: var(--text-tertiary); }
.dica { margin-top: 3px; font-size: 0.86rem; color: var(--text-tertiary); }
.duas-colunas { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .duas-colunas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
input[type="text"], input[type="email"], select, textarea {
  margin-top: 7px; display: block; width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 10px;
  padding: 11px 13px; min-height: 48px;
  transition: border-color .15s ease, background .15s ease;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: var(--bg-2); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); background-color: rgba(255, 255, 255, 0.06); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.contador { margin-top: 4px; font-family: var(--mono); font-size: var(--text-xs); color: var(--text-tertiary); text-align: right; }
.erro-campo { margin-top: 6px; font-size: 0.9rem; font-weight: 600; color: var(--err); }
.erro-campo::before { content: "! " / ""; }
.consentimento { margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.consentimento input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.consentimento label { font-size: 0.95rem; font-weight: 400; color: var(--text-primary); cursor: pointer; }
.consentimento .dica, .consentimento .erro-campo { grid-column: 2; margin-top: 0; }
.enviar { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Armadilha para robôs: fora do ecrã, fora do tabulador e fora da árvore de acessibilidade. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.caixa { border-radius: 14px; padding: 16px 18px; }
.caixa h2 { font-size: 1.08rem; color: var(--ink); }
.caixa p { margin-top: 6px; font-size: 0.95rem; color: var(--text-primary); }
.caixa--erro { border: 1px solid var(--err); background: color-mix(in srgb, var(--err) 7%, transparent); margin-bottom: 18px; }
.caixa--erro ul { margin-top: 8px; padding-left: 20px; }
.caixa--erro li { margin-top: 4px; }
.caixa--erro li a { color: var(--err); font-weight: 600; border-bottom: 1px solid var(--err); }
.caixa--aviso { border: 1px solid var(--rule); background: rgba(201, 162, 39, 0.06); margin-bottom: 18px; }
.caixa--ok { border: 1px solid var(--ok); background: rgba(95, 184, 138, 0.07); padding: clamp(20px, 4vw, 30px); }
.caixa--ok h2 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); }
.caixa--ok p { font-size: 1rem; }
.caixa--ok .btn { margin-top: 18px; }

.lateral { display: grid; gap: 16px; }
.lateral .bloco { border: 1px solid var(--hair); border-radius: 15px; padding: 18px 20px; }
.lateral h2 { font-size: 1.02rem; color: var(--ink); }
.lateral ol, .lateral ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; }
.lateral li, .lateral p { font-size: 0.92rem; color: var(--text-secondary); }
.lateral p + p { margin-top: 8px; }
.lateral strong { color: var(--text-primary); }

/* ---- Rodapé ---- */
footer {
  flex-shrink: 0; text-align: center; padding: 26px var(--gutter) 34px; border-top: 1px solid var(--hair);
  font-size: var(--text-xs); color: var(--text-tertiary);
}
footer nav { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 4px; }
footer nav a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; color: var(--text-secondary); }
footer .sep { color: var(--gold); }

/* ---- Página 404 ---- */
.erro-404 { max-width: 640px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--gutter); }
.erro-404 .codigo { font-family: var(--mono); font-size: var(--text-xs); color: var(--text-tertiary); }
.erro-404 h1 { margin-top: 10px; }
.erro-404 .lead { margin-bottom: 26px; }

@media (pointer: coarse) {
  .site-nav a, footer nav a, .cartao .ligacao { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}

/* Hover lift (#15092 P7): motion only where a pointer can hover and motion is welcome; the
   color cue of .btn:hover stays on every device. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
