/* SVR Lab — base: variaveis, reset, tipografia, grao, utilitarios */

:root {
  --bg: #0b0c10;
  --bg2: #101218;
  --panel: #14161d;
  --line: #23262f;
  --org: #f15a22;
  --org2: #ff7a45;
  --txt: #ececf1;
  --mut: #9aa0ae;
  --ok: #3ecf8e;
  --alerta: #f5a524;
  --erro: #ef4444;

  --r: 5px;
  --r-lg: 6px;
  --toque: 48px;
  --largura: 560px;

  --t-rapido: 150ms cubic-bezier(.2, .7, .3, 1);
  --t-medio: 220ms cubic-bezier(.2, .7, .3, 1);

  --fonte-titulo: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --fonte-corpo: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fonte-dado: "Space Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --rodape-seguro: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--fonte-corpo);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* grao sutil herdado do site da marca */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23g)'/></svg>");
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
  margin: 0;
}

h1 { font-size: clamp(34px, 11vw, 52px); }
h2 { font-size: clamp(24px, 7vw, 32px); }
h3 { font-size: 19px; letter-spacing: .02em; }

p { margin: 0 0 12px; }
a { color: var(--org2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.pular-para {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--org);
  color: #0b0c10;
  padding: 10px 16px;
  font-weight: 800;
}
.pular-para:focus { left: 8px; top: 8px; }

.sem-script {
  padding: 24px;
  color: var(--alerta);
  font-family: var(--fonte-dado);
}

/* ---------- barra superior ---------- */

.barra-topo {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 12px 0 4px;
  background: rgba(11, 12, 16, .92);
  border-bottom: 1px solid var(--line);
}

.barra-topo[hidden] { display: none; }

.barra-topo__voltar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--mut);
  cursor: pointer;
  border-radius: var(--r);
  transition: color var(--t-rapido);
}
.barra-topo__voltar:hover { color: var(--txt); }
.barra-topo__voltar[hidden] { visibility: hidden; display: grid; }

.barra-topo__marca {
  display: flex;
  align-items: baseline;
  gap: 6px;
  justify-self: start;
}

.marca-svr {
  font-family: var(--fonte-titulo);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--txt);
  line-height: 1;
}
.marca-svr::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  background: var(--org);
  vertical-align: 3px;
}
.marca-sufixo {
  font-family: var(--fonte-dado);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--mut);
  text-transform: uppercase;
}

.barra-topo__contexto {
  font-family: var(--fonte-dado);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: right;
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- estrutura ---------- */

.conteudo { display: block; }
.conteudo:focus { outline: none; }

.app {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 20px 16px calc(40px + var(--rodape-seguro));
}

.app--largo { max-width: 780px; }

.pilha { display: flex; flex-direction: column; gap: 12px; }
.pilha--g { gap: 20px; }
.pilha--p { gap: 6px; }

.linha {
  display: flex;
  align-items: center;
  gap: 10px;
}
.linha--entre { justify-content: space-between; }
.linha--quebra { flex-wrap: wrap; }

/* ---------- tipografia utilitaria ---------- */

.rotulo {
  font-family: var(--fonte-dado);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rotulo::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--org);
  flex: none;
}
.rotulo--limpo::before { display: none; }

.dado {
  font-family: var(--fonte-dado);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt);
}
.dado--mut { color: var(--mut); }
.dado--org { color: var(--org2); }
.dado--g { font-size: 15px; }

.texto-mut { color: var(--mut); }
.texto-p { font-size: 13px; }
.texto-erro { color: var(--erro); }
.texto-ok { color: var(--ok); }

.numeral {
  font-family: var(--fonte-titulo);
  font-weight: 900;
  line-height: .85;
  font-size: 46px;
  letter-spacing: -.01em;
}

.regua {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 4px 0;
}

.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
