/* =========================================================
   Logon Sistemas  /  base.css
   Tokens, reset, tipografia e utilitarios
   ========================================================= */

:root {
  /* Azul marinho da marca (#01439E amostrado do logo) */
  --navy-950: #030814;
  --navy-900: #061127;
  --navy-850: #081936;
  --navy-800: #0a2148;
  --navy-700: #0d2b5e;
  --navy-600: #0f3577;

  --brand-800: #012558;
  --brand-700: #012f72;
  --brand-600: #01439e;
  --brand-500: #0b57c9;
  --brand-400: #2c7bf2;
  --brand-300: #61a0ff;
  --brand-200: #a9c9ff;
  --brand-100: #d8e6ff;
  --brand-50:  #eef4ff;

  --ink-900: #0a1224;
  --ink-800: #16233c;
  --ink-700: #2b3b57;
  --ink-600: #44567a;
  --ink-500: #5a6c88;
  --ink-400: #7a8aa5;
  --ink-300: #9aa9c0;

  --line: #e3eaf6;
  --line-strong: #cddaef;
  --surface: #ffffff;
  --surface-2: #f5f8fe;
  --surface-3: #eaf1fd;

  --success: #12a45c;
  --warn: #e8a317;

  /* Tipografia */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3:  clamp(1.65rem, 1.38rem + 1.3vw, 2.45rem);
  --step-4:  clamp(2rem, 1.55rem + 2.2vw, 3.35rem);
  --step-5:  clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);

  /* Espaco e forma */
  --wrap: 1200px;
  --wrap-narrow: 880px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(4.5rem, 8vw, 8rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(6, 17, 39, 0.06);
  --shadow-sm: 0 4px 14px rgba(6, 17, 39, 0.07);
  --shadow-md: 0 14px 38px rgba(6, 17, 39, 0.1);
  --shadow-lg: 0 30px 70px rgba(6, 17, 39, 0.14);
  --shadow-brand: 0 18px 40px rgba(1, 67, 158, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --topbar-h: 0px;
  --nav-h: 78px;
  --header-h: var(--nav-h);

  /* Tamanho das caixas de icone. Ficavam fixos e por isso o mesmo selo de
     54px que respira num cartao de 370px sufocava um de 340px numa tela de
     390px. Os tres degraus abaixo encolhem tudo de uma vez no celular. */
  --ico-g: 54px;   /* selo principal de cartao */
  --ico-m: 44px;   /* selo secundario */
  --ico-p: 38px;   /* item de lista */
  --ico-xp: 30px;  /* marcador inline */
}

@media (max-width: 680px) {
  :root {
    --ico-g: 44px;
    --ico-m: 38px;
    --ico-p: 32px;
    --ico-xp: 26px;
  }
}

body.has-topbar {
  --topbar-h: 38px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
picture,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img, picture, svg, video { height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

a { color: var(--brand-600); text-decoration: none; }

ul, ol { padding: 0; list-style: none; }

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

::selection { background: var(--brand-600); color: #fff; }

/* -------------------------------------------------- tipografia */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); letter-spacing: -0.032em; }
h2 { font-size: var(--step-4); letter-spacing: -0.028em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

strong { font-weight: 650; color: var(--ink-900); }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-500);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-300));
}

.grad-text {
  background: linear-gradient(96deg, var(--brand-500) 0%, var(--brand-300) 60%, #7fc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section {
  position: relative;
  padding-block: var(--sec-y);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow { justify-content: center; }

.section-head h2 { margin-block: 0.9rem 1.1rem; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Superficies escuras */
.dark {
  background: var(--navy-900);
  color: #c6d5ee;
  position: relative;
  isolation: isolate;
}

.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead { color: #a7bdda; }
.dark strong { color: #fff; }
.dark .eyebrow { color: var(--brand-300); }
.dark .eyebrow::before { background: linear-gradient(90deg, var(--brand-300), transparent); }

.tint { background: var(--surface-2); }

/* -------------------------------------------------- utilitarios */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--brand-600);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}

.skip:focus { top: 1rem; }

/* -------------------------------------------------- responsivo */
@media (max-width: 980px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 2; }
}

@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
