/* iaJus.pt · sistema visual partilhado pelas páginas de conteúdo ("como vai ser").
   Herdado da página "em breve" (index.html): nanquim quente navy + acento dourado
   ("Asterisco de Origem", #c9a227). O index continua self-contained; estas páginas
   estáticas (sem JS, sem GTM, sem cookies) usam esta folha. */
:root {
  --bg: #161b28;
  --bg-2: #1a1f2e;
  --ink: #f8f9fa;
  --text-primary: #e9e7dd;   /* warm stone */
  --text-secondary: #b4b1a5;
  --text-tertiary: #9c9a8e;
  --gold: #c9a227;
  --gold-bright: #e0b73a;
  --gold-soft: #b8902f;
  --indigo: #8d89f5;
  --hair: rgba(255, 255, 255, 0.09);
  --rule: rgba(201, 162, 39, 0.28);
  --card-bg: rgba(255, 255, 255, 0.025);
  --field-bg: rgba(255, 255, 255, 0.04);
  /* Identidade portuguesa: verde/vermelho da bandeira (acento contido, só na bandeira) */
  --pt-green: #1f6e43;
  --pt-red: #c8102e;
  --pt-flag-gold: #f0c23a;
}

*, *::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: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  hyphens: none; -webkit-hyphens: none;
  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; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 8px; }

/* ---- Atmosfera: aurora (indigo + ouro), igual ao index ---- */
.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.45; }
.bg-layer::before { width: 720px; height: 720px; top: -320px; left: -220px; background: radial-gradient(circle, rgba(141, 137, 245, 0.40), transparent 70%); }
.bg-layer::after { width: 640px; height: 640px; bottom: -340px; right: -200px; background: radial-gradient(circle, rgba(201, 162, 39, 0.28), transparent 70%); }

/* ---- Cabeçalho / navegação ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(18px, 5vw, 44px);
  background: rgba(22, 27, 40, 0.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.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-family: 'Public Sans', Arial, sans-serif; font-weight: 700; color: var(--ink); }
.brand .wm .jus { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 600; color: var(--gold); }
.brand .wm .pt { margin-left: 5px; font-family: 'Fira Code', ui-monospace, monospace; font-size: 0.58em; font-weight: 500; color: var(--gold-soft); transform: translateY(-0.16em); }
/* Bandeira de Portugal: marcador discreto de identidade ao lado do logótipo (verde/vermelho só aqui) */
.brand .flag-pt { width: 19px; height: 13px; border-radius: 2.5px; margin-left: 9px; flex: 0 0 auto; box-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { 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-family: 'Fira Code', ui-monospace, monospace; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-primary); border: 1px solid var(--hair); border-radius: 999px; padding: 7px 15px;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav .nav-cta:hover { color: var(--gold-bright); border-color: var(--rule); }

/* ---- Tronco da página ---- */
.page { flex: 1 0 auto; width: 100%; max-width: 920px; margin: 0 auto; padding: clamp(36px, 7vh, 76px) clamp(22px, 6vw, 48px); }

/* ---- Cabeçalho de conteúdo ---- */
.phero { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 6vh, 58px); }
.kicker { font-family: 'Fira Code', ui-monospace, monospace; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }
.phero h1 { margin-top: 14px; font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2.8vw, 2.7rem); line-height: 1.14; letter-spacing: -0.01em; color: var(--ink); }
.phero h1 em { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 600; color: var(--gold); }
.phero .lead { margin-top: clamp(14px, 2.6vh, 22px); font-size: clamp(1.02rem, 0.97rem + 0.45vw, 1.22rem); color: var(--text-primary); max-width: 56ch; margin-inline: auto; }

.section-rule { width: 64px; height: 2px; margin: clamp(26px, 4vh, 38px) auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; }

/* ---- Prosa ---- */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); font-weight: 700; color: var(--ink); margin-top: clamp(30px, 5vh, 46px); }
.prose h2:first-child { margin-top: 0; }
.prose h2 em { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 600; color: var(--gold); }
.prose p { margin-top: 14px; color: var(--text-secondary); }
.prose p strong { color: var(--text-primary); font-weight: 600; }

/* ---- Passos numerados (como funciona) ---- */
.steps { display: grid; gap: 16px; margin-top: clamp(20px, 3.5vh, 30px); }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  border: 1px solid var(--hair); border-radius: 16px; padding: clamp(18px, 3.5vw, 24px);
  background: linear-gradient(180deg, var(--card-bg), rgba(255,255,255,0));
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto;
  font-family: 'Fira Code', ui-monospace, monospace; font-weight: 600; font-size: 1rem; color: var(--gold-bright);
  border: 1px solid var(--rule); border-radius: 50%; background: rgba(201, 162, 39, 0.06);
}
.step h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.step p { margin-top: 6px; font-size: 0.97rem; color: var(--text-secondary); }

/* ---- Grelha de cartões (cobertura / para quem) ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; margin-top: clamp(22px, 4vh, 32px); }
.card {
  border: 1px solid var(--hair); border-radius: 16px; padding: clamp(20px, 3.5vw, 26px);
  background: linear-gradient(180deg, var(--card-bg), rgba(255,255,255,0));
}
.card .ico { font-size: 1.5rem; line-height: 1; }
.card h3 { margin-top: 12px; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.card h3 em { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 600; color: var(--gold); }
.card p { margin-top: 8px; font-size: 0.95rem; color: var(--text-secondary); }
.card ul { margin-top: 12px; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.card li { position: relative; padding-left: 20px; font-size: 0.92rem; color: var(--text-secondary); }
.card li::before { content: "–"; position: absolute; left: 4px; color: var(--gold-soft); }

/* ---- Faixa "sem números" (transparência) ---- */
.note {
  margin-top: clamp(26px, 4.5vh, 40px); border: 1px solid var(--hair); border-radius: 14px;
  padding: clamp(16px, 3vw, 22px); background: rgba(255,255,255,0.02); max-width: 680px; margin-inline: auto;
}
.note p { font-size: 0.92rem; color: var(--text-tertiary); }
.note p strong { color: var(--text-secondary); }

/* ---- Faixa CTA (interesse no beta) ---- */
.cta-band {
  margin-top: clamp(40px, 7vh, 68px); text-align: center;
  border: 1px solid var(--rule); border-radius: 20px; padding: clamp(28px, 5vw, 44px);
  background: linear-gradient(180deg, rgba(201,162,39,0.06), rgba(255,255,255,0));
}
.cta-band h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; color: var(--ink); }
.cta-band p { margin-top: 10px; color: var(--text-secondary); max-width: 48ch; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Public Sans', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 13px 26px; 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); transform: translateY(-1px); text-decoration: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { margin-top: clamp(20px, 3.5vh, 28px); display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn-ghost:hover { border-color: var(--rule); background: transparent; }

/* ---- Rodapé ---- */
footer {
  flex-shrink: 0; text-align: center; padding: 28px 22px 36px; border-top: 1px solid var(--hair);
  font-family: 'Fira Code', ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--text-tertiary);
}
footer nav { margin-bottom: 10px; }
footer nav a { color: var(--text-secondary); margin: 0 8px; }
footer .sep { color: var(--gold-soft); margin: 0 8px; }

/* Em ecrãs estreitos a marca fica em cima e a navegação centrada por baixo,
   em vez de a nav fazer wrap desalinhado ao lado da marca. */
@media (max-width: 560px) {
  .site-header { flex-direction: column; gap: 10px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
  .site-nav { justify-content: center; gap: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .arrow { transition: none; }
}
