/* ClientOrbit — homepage pública PT-PT (CO-22)
   Stack de sistema, zero JavaScript, zero fontes externas. */

:root {
  --navy: #102643;
  --navy-soft: #1d324a;
  --teal: #069c99;        /* acentos grandes e iconografia */
  --teal-ink: #0a716f;    /* texto/accent em fundo claro — contraste AA */
  --paper: #ffffff;
  --mist: #f4f8fa;
  --mist-2: #f7fafb;
  --ice: #e6fbf9;
  --line: #d9e6eb;
  --ink: #1c2d43;
  --muted: #42566e;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(16, 38, 67, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

svg { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-ink); }

:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.7rem 1rem;
  background: var(--paper);
  color: var(--navy);
  border: 2px solid var(--navy);
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}
.wordmark .orbit {
  width: 22px;
  height: 22px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.wordmark .orbit::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--navy);
  border-radius: 50%;
}
.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding-block: 0.5rem;
}
.site-nav a:hover {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary {
  background: #102643;
  color: #ffffff;
  border: 1px solid #102643;
}
.btn-secondary {
  background: #ffffff;
  color: #102643;
  border: 1px solid #102643;
}

/* ---------- Secções ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--mist { background: var(--mist); }
.section--ice { background: var(--ice); }
.section--soft { background: var(--mist-2); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 0.9rem;
}
.section-head p,
.section > .container > p.lede {
  font-size: 1.075rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- S1 Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a716f;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.points li { color: #0a716f; font-weight: 650; font-size: 1rem; }
.points .tick { font-weight: 800; margin-right: 0.4rem; }
.hero-figure { margin: 0; }
.hero-figure svg {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Cartões ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 4px 16px rgba(16, 38, 67, 0.04);
}
.section--mist .card,
.section--ice .card { background: var(--paper); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ice);
  color: #0a716f;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.6rem;
}
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- S3 Passos ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0a716f;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.note {
  margin: 1.75rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--teal);
  background: var(--paper);
  color: var(--muted);
  font-size: 1rem;
  border-radius: 0 12px 12px 0;
}

/* ---------- S4 Gratuito vs pago ---------- */
.plan {
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid var(--line);
}
.plan--free { background: var(--ice); }
.plan--paid { background: #e9f4ff; }
.plan h3 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 1rem;
}
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.plan li { color: var(--navy); font-weight: 550; }
.plan li::before { content: "✓"; color: #0a716f; font-weight: 800; margin-right: 0.6rem; }
.microcopy { margin: 1.6rem 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- S6 CTA final ---------- */
.final-cta { text-align: center; }
.final-cta .section-head { margin-inline: auto; }
.final-cta .btn { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #102643; color: #ffffff; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
.site-footer .wordmark { color: #ffffff; }
.site-footer .wordmark .orbit { border-color: var(--teal); }
.site-footer .wordmark .orbit::after { background: #ffffff; }
.site-footer p { color: #dbe7f1; margin: 0.9rem 0 0; max-width: 52ch; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer nav a { color: #ffffff; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* M4 da revisão: anel de foco visível sobre o rodapé navy (branco ≈ 14:1). */
.site-footer :focus-visible { outline-color: #ffffff; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  color: #dbe7f1;
}

/* ---------- Páginas legais / 404 ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem); }
.legal .prose { max-width: 70ch; }
.legal h1,
.error-page h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 1.5rem;
}
.legal p { color: var(--muted); margin: 0 0 1.2rem; }
.legal .updated { font-weight: 650; color: var(--navy); margin-top: 2rem; }
.error-page { padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; }
.error-page p { color: var(--muted); max-width: 52ch; margin: 0 auto 2rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-figure { max-width: 620px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* M1 da revisão: o header cresce para ~179 px neste breakpoint. */
  html { scroll-padding-top: 198px; }
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-block: 0.75rem;
  }
  .site-nav { width: 100%; }
  .site-nav ul {
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
  }
  .site-nav a { display: block; padding-block: 0.45rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .grid--4,
  .grid--2 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .plan { padding: 1.4rem; }
}
