/* ── Letras servidas por nós (17-09) ──────────────────────────────────────────
   Estas páginas carregavam Archivo e IBM Plex do Google Fonts. Isso punha o
   Google no caminho crítico de cada visita, entregava-lhe o IP de quem nos
   visita (com o RGPD a dizer que isso é dado pessoal), e impedia apertar a
   política de conteúdos. Agora vêm daqui, um ficheiro por peso, só latino.
   `font-display: swap`: o texto aparece logo com a do sistema e troca sem
   bloquear a pintura.
   ───────────────────────────────────────────────────────────────────────── */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/vendor/fonts/archivo-latin-variavel.woff2') format('woff2-variations'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

/* Setmain — páginas públicas. CSS próprio: sem Tailwind, sem build. */

:root {
  --ink: #0E1518;
  --ink-2: #24343A;
  --muted: #5C6F76;
  --line: #DFE7E9;
  --line-2: #EDF2F3;
  --paper: #FFFFFF;
  --paper-2: #F5F8F8;
  --paper-3: #ECF1F2;
  --accent: #1B57C4;
  --accent-ink: #14418F;
  --accent-soft: #E8EFFB;
  --clay: #A24B2A;
  --clay-soft: #FBEDE7;
  --radius: 14px;
  --shadow-lg: 0 24px 60px -32px rgba(14, 21, 24, .45), 0 2px 6px rgba(14, 21, 24, .05);
  --wrap: 1140px;
  --step: clamp(3.5rem, 7vw, 6rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: Archivo, ui-sans-serif, system-ui, sans-serif; margin: 0; text-wrap: balance; letter-spacing: -.022em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.lead { color: var(--muted); font-size: 1.08rem; }

/* ── botões ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; border: 1px solid transparent;
  padding: .82rem 1.35rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap; /* o texto de um botão nunca parte em duas linhas (28-09: "Pedir acesso" partia no telemóvel) */
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }

/* ── cabeçalho ── */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2);
}
/* Revisão 28-09 ("Pedir acesso desenquadrado"): no telemóvel o logótipo de largura fixa + "Entrar" + botão não cabiam
   (o texto do botão partia); no computador o botão ficava colado aos links da navegação, com o "Entrar" a parecer mais
   um link. Agora: a navegação ao centro, o grupo Entrar + Pedir acesso encostado à direita e separado por um filete;
   no telemóvel logótipo e botão encolhem e tudo cabe numa linha até 320 px. */
.site-header .wrap { display: flex; align-items: center; gap: 1rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: Archivo, sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { display: block; }
.site-header .brand img { height: 32px; width: auto; }
.site-nav { display: none; gap: 1.5rem; margin: 0 auto; }
.site-nav a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--accent-ink); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.header-cta .btn { padding: .58rem 1rem; font-size: .9rem; }
.header-cta .entrar { text-decoration: none; font-size: .93rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.header-cta .entrar:hover { color: var(--accent-ink); }
@media (max-width: 29.99rem) {
  .site-header .wrap { gap: .75rem; }
  .site-header .brand img { height: 26px; }
  .header-cta { gap: .7rem; }
  .header-cta .btn { padding: .5rem .8rem; font-size: .85rem; }
  .header-cta .entrar { font-size: .88rem; }
}
@media (max-width: 22.49rem) {
  .site-header .brand img { height: 23px; }
  .header-cta { gap: .6rem; }
  .header-cta .btn { padding: .45rem .7rem; font-size: .82rem; }
}
@media (min-width: 62rem) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; padding-left: 1.5rem; border-left: 1px solid var(--line); }
}

/* ── herói ── */
.hero { padding: var(--step) 0 0; }
.hero-copy { max-width: 44rem; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; line-height: 1.06; margin: .9rem 0 1rem; }
.hero .lead { font-size: clamp(1.05rem, 2.1vw, 1.22rem); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); }

/* ── moldura de captura ── */
figure.shot { margin: 0; }
figure.shot .frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow-lg);
}
figure.shot .bar {
  display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem;
  background: var(--paper-3); border-bottom: 1px solid var(--line);
}
figure.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD6D9; display: block; }
figure.shot .bar span {
  margin-left: .6rem; font-family: "IBM Plex Mono", monospace; font-size: .7rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
figure.shot figcaption { margin-top: .8rem; font-size: .88rem; color: var(--muted); }
.hero-shot { margin-top: 3rem; }

/* ── secções ── */
section { padding: var(--step) 0; }
section.tint { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); font-weight: 700; line-height: 1.14; margin: .7rem 0 .8rem; }

/* ── linhas alternadas de prova ── */
.proof { display: grid; gap: 3.5rem; }
.proof-row { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 60rem) {
  .proof-row { grid-template-columns: 1fr 1.25fr; gap: 3.5rem; }
  .proof-row.flip .proof-text { order: 2; }
}
.proof-text h3 { font-size: 1.32rem; font-weight: 700; margin-bottom: .6rem; }
.proof-text p { color: var(--muted); }
.proof-text ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .95rem; }
.proof-text li { padding-left: 1.35rem; position: relative; color: var(--ink-2); }
.proof-text li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem;
  border-radius: 2px; background: var(--accent);
}

/* ── verticais ── */
.verticals { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .verticals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .verticals { grid-template-columns: repeat(4, 1fr); } }
.vcard {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 1.4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.vcard:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.vcard img { border-radius: 8px; border: 1px solid var(--line); margin-bottom: .35rem; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.vcard h3 { font-size: 1.08rem; font-weight: 700; }
.vcard p { font-size: .92rem; color: var(--muted); }
.vcard .go { margin-top: auto; padding-top: .8rem; font-size: .86rem; font-weight: 600; color: var(--accent-ink); }
.vcard.feature { background: var(--ink); border-color: var(--ink); color: #fff; }
.vcard.feature p { color: #B7C6CB; }
.vcard.feature .go { color: #fff; }
.vcard .tag {
  font-family: "IBM Plex Mono", monospace; font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; background: var(--accent); align-self: flex-start;
  padding: .16rem .42rem; border-radius: 4px;
}

/* ── antes / depois ── */
.compare { display: grid; gap: 1.25rem; }
@media (min-width: 54rem) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { padding: 1.6rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); }
.compare .antes { background: var(--clay-soft); border-color: #F0DCD3; }
.compare .depois { background: var(--paper); }
.compare h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.compare .antes h3 { color: var(--clay); }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; font-size: .96rem; }
.compare li { padding-left: 1.5rem; position: relative; }
.compare .antes li::before { content: "×"; position: absolute; left: 0; color: var(--clay); font-weight: 700; }
.compare .depois li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ── passos ── */
.steps { display: grid; gap: 1.6rem; counter-reset: passo; }
@media (min-width: 54rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; } }
.step { border-top: 2px solid var(--ink); padding-top: 1rem; }
.step .n { font-family: "IBM Plex Mono", monospace; font-size: .74rem; color: var(--muted); letter-spacing: .1em; }
.step h3 { font-size: 1.08rem; font-weight: 700; margin: .35rem 0 .4rem; }
.step p { font-size: .95rem; color: var(--muted); }

/* ── FAQ ── */
.faq { display: grid; gap: 0; max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none;
  display: flex; align-items: flex-start; gap: .8rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; line-height: 1.4; }
.faq details[open] summary::before { content: "–"; }
.faq details p { margin-top: .7rem; padding-left: 1.6rem; color: var(--muted); font-size: .98rem; }

/* ── CTA final ── */
.cta-final { background: var(--ink); color: #fff; border-radius: 18px; padding: clamp(2.2rem, 5vw, 3.4rem); }
.cta-final h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; margin-bottom: .8rem; }
.cta-final p { color: #B7C6CB; max-width: 34rem; }
.cta-final .btn-primary { background: #fff; color: var(--ink); margin-top: 1.6rem; }
.cta-final .btn-primary:hover { background: #E9EFF0; }

/* ── rodapé ── */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; margin-top: var(--step); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 54rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: "IBM Plex Sans", sans-serif; font-weight: 600; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; font-size: .93rem; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent-ink); }
.footer-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
