/* ───────────────────────────────────────────────────────────────
   Zemar — portal público. HTML/CSS puro, sem build.
   Paleta e tipografia num só sítio (custom properties) para editar fácil.
   ─────────────────────────────────────────────────────────────── */
:root {
  --brand: #2f6df6;
  --brand-dark: #1e4fd0;
  --ink: #101423;
  --ink-soft: #43506b;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e4e9f2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 20, 35, .05), 0 10px 30px rgba(16, 20, 35, .06);
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

a { color: var(--brand); }

/* Acessibilidade: link de salto + foco visível */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.brand-name { font-size: 18px; letter-spacing: -.01em; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.nav a:hover { color: var(--ink); }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}
.nav-cta:hover { background: #000; }

/* ── Hero ── */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(47, 109, 246, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lead {
  margin: 0 0 28px;
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink-soft); }

/* ── Secções ── */
.section { padding: 72px 0; }
.section-title {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -.02em;
}
.section-sub { margin: 0 0 36px; color: var(--ink-soft); }

/* Secção com fundo suave, para separar visualmente (ex.: Sugestões) */
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--border); }

/* Contentor do widget de comentários (Remark42). Reserva altura para não
   "saltar" o layout enquanto o widget carrega. */
.comments { min-height: 220px; }

/* ── Grelha de apps ── */
.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(16, 20, 35, .08), 0 18px 40px rgba(16, 20, 35, .10);
}
.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.app-icon { font-size: 28px; }
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge--available { background: #147a3d; color: #fff; }
.badge--soon    { background: #e9f7ee; color: #147a3d; }
.badge--project { background: #eaf0ff; color: var(--brand-dark); }
.badge--queue   { background: #eef1f6; color: #55617a; }
.app-name { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -.01em; }
.app-desc { margin: 0; color: var(--ink-soft); flex: 1; }

/* Ações do card (ex.: botão Descarregar) */
.app-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-sm { padding: 9px 18px; font-size: .95rem; }

/* Botões de download com logótipo do SO (Windows / Linux) */
.app-actions--dl { gap: 14px; }
.dl-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 12px;
  min-width: 96px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.dl-btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 6px 14px rgba(16, 20, 35, .08), 0 14px 30px rgba(16, 20, 35, .10);
}
.dl-ico { position: relative; width: 34px; height: 34px; }
.dl-ico .os { width: 34px; height: 34px; display: block; }
.dl-arrow {
  position: absolute;
  right: -9px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: var(--brand);
  border: 2px solid var(--white);
  border-radius: 50%;
}
.dl-btn:hover .dl-arrow { background: var(--brand-dark); }
.dl-arrow svg { width: 10px; height: 10px; display: block; }
.dl-label { font-size: .76rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink-soft); }

/* Link para o manual do utilizador, por baixo dos downloads */
.app-manual { margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); }
.app-manual a { font-weight: 600; }

/* Nota/aviso no fundo do card (ex.: SmartScreen no download Windows) */
.app-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  background: #fff8ec;
  border: 1px solid #f0e2c4;
  border-radius: 10px;
}

/* ── Banda encomendas (software à medida) ── */
.encomendas-band {
  background: var(--ink);
  color: #fff;
}
.encomendas-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 48px;
  flex-wrap: wrap;
}
.encomendas-band h2 { margin: 0 0 6px; font-size: 1.6rem; }
.encomendas-band p { margin: 0; color: #c4cbdd; max-width: 560px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-meta { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 560px) {
  .hero { padding-top: 64px; }
  .nav { gap: 14px; }
}

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