/* OpsPay Institucional — reset + typography + layout primitives */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  color: var(--white);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  font-weight: 600;
}

.display-1 {
  font-size: var(--fs-display-1);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.display-2 {
  font-size: var(--fs-display-2);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  font-weight: 600;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  color: var(--muted);
  line-height: var(--lh-relaxed);
}

p.lead {
  font-size: var(--fs-body-lg);
  color: var(--muted);
  max-width: 60ch;
}

a {
  color: var(--cherry-lt);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

a:hover { color: var(--cherry-hov); }

a:focus-visible {
  outline: 2px solid var(--cherry-lt);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

em.accent {
  color: var(--cherry-lt);
  font-style: normal;
}

strong {
  color: var(--white);
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  color: var(--cherry-lt);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.muted   { color: var(--muted); }
.faint   { color: var(--faint); }
.cherry  { color: var(--cherry-lt); }
.mono    { font-family: var(--mono); }

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

ul, ol { list-style: none; }

/* ── Layout primitives ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.section {
  padding: var(--space-32) 0;
}

.section.tight  { padding: var(--space-20) 0; }
.section.loose  { padding: var(--space-48) 0; }

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  gap: var(--space-4);
}

.flex.col       { flex-direction: column; }
.flex.center    { justify-content: center; align-items: center; }
.flex.between   { justify-content: space-between; align-items: center; }
.flex.wrap      { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.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;
}

/* ── Responsive breakpoints ────────────────────────────────────────── */

@media (max-width: 960px) {
  .section { padding: var(--space-24) 0; }
  .section.loose { padding: var(--space-32) 0; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hide-mobile { display: none !important; }
}

@media (min-width: 961px) {
  .hide-desktop { display: none !important; }
}

@media (max-width: 600px) {
  .section { padding: var(--space-16) 0; }
}

/* ── Selection ─────────────────────────────────────────────────────── */

::selection {
  background: var(--cherry);
  color: var(--white);
}
