/* Notorium — identidade tirada do deck de entrega da agência:
   rótulos nos quatro cantos, tipografia larga e leve sobre preto, sem cards. */

:root {
  --paper:   #121412;
  --panel:   #1b1e1b;
  --panel-2: #232723;
  --ink:     #f2f1ec;
  --ink-mid: #b6bab4;
  --ink-low: #7d827c;
  --rule:    #2b2f2b;
  --mark:    #38cc4d;   /* verde da marca */
  --ok:      #7fb069;
  --bad:     #d4694f;

  --sans: "Public Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);

  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* geometria angular ambiente — ecoa os blocos diagonais do deck */
body::before {
  content: "";
  position: fixed;
  inset: auto -10% -30% auto;
  width: 60vw; height: 70vh;
  background: var(--panel);
  transform: skewX(-14deg);
  opacity: .45;
  pointer-events: none;
  z-index: 0;
}

/* véu: impede o conteúdo de passar por baixo dos rótulos de canto */
html::before, html::after {
  content: "";
  position: fixed; left: 0; right: 0;
  height: calc(var(--gutter) * 1.9);
  pointer-events: none;
  z-index: 2;
}
html::before { top: 0; background: linear-gradient(var(--paper) 55%, transparent); }
html::after  { bottom: 0; background: linear-gradient(transparent, var(--paper) 45%); }

a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- logotipo ---------- */

.logo {
  font-family: var(--sans);
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
  text-transform: none;
}
.logo b { font-weight: 900; font-style: italic; }
.logo i { font-weight: 400; font-style: normal; }

.logo-lg { font-size: clamp(1.8rem, 4.4vw, 2.4rem); }
.logo-sm { font-size: 1.5rem; }
.logo-xs { font-size: 1.15rem; }

/* ---------- marca de canto ---------- */

.marca {
  position: fixed; z-index: 3;
  font-size: .625rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-low);
  pointer-events: none;
  display: flex; align-items: center; gap: .55rem;
}
.marca .logo { color: var(--ink); letter-spacing: -.02em; }
.marca-tl { top: var(--gutter); left: var(--gutter); }
.marca-tr { top: var(--gutter); right: var(--gutter); color: var(--ink-mid); }
.marca-bl { bottom: var(--gutter); left: var(--gutter); }
.marca-br { bottom: var(--gutter); right: var(--gutter); font-variant-numeric: tabular-nums; }
/* o cronômetro é funcional e nunca some; quem cede espaço é o nome da seção */
@media (max-width: 760px), (max-height: 620px) { .marca-tr { display: none; } }

/* ---------- progresso ---------- */

.progresso { position: fixed; inset: 0 0 auto 0; z-index: 4; height: 2px; background: var(--rule); }
.progresso > i {
  display: block; height: 100%; width: 0;
  background: var(--mark);
  transition: width .45s cubic-bezier(.2,.7,.3,1);
}

/* ---------- palco ---------- */

.palco {
  position: relative; z-index: 1;
  min-height: 100%;
  display: grid; align-content: center;
  padding: calc(var(--gutter) * 2.6) var(--gutter) calc(var(--gutter) * 3.2);
}
.cena {
  width: min(760px, 100%); margin: 0 auto;
  animation: entra .45s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cena { animation: none; }
  .progresso > i { transition: none; }
}

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

.eyebrow {
  font-size: .625rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--mark); margin: 0 0 1.4rem;
}

.titulo {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.06; letter-spacing: -.015em;
  text-wrap: balance; margin: 0 0 1rem;
}

.pergunta {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.35rem, 3.1vw, 1.95rem);
  line-height: 1.28; letter-spacing: -.01em;
  text-wrap: pretty; margin: 0 0 .6rem; max-width: 24ch;
}
.pergunta.longa { max-width: 38ch; font-size: clamp(1.15rem, 2.3vw, 1.45rem); }
.pergunta strong { font-weight: 600; }
.pergunta blockquote {
  font-family: var(--sans);
  font-size: .95rem; font-weight: 400; line-height: 1.6;
  color: var(--ink-mid);
  border-left: 2px solid var(--mark);
  margin: 1.1rem 0 0; padding: .2rem 0 .2rem 1.1rem;
  max-width: 60ch;
}

.ajuda { color: var(--ink-low); font-size: .92rem; max-width: 56ch; margin: 0 0 1.6rem; }
.corpo { color: var(--ink-mid); max-width: 62ch; }
.corpo p { margin: 0 0 1rem; }
.obrig { color: var(--mark); }

/* ---------- campos ---------- */

.campo {
  width: 100%;
  font: 400 1.05rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 1rem 1.1rem;
  transition: border-color .16s, background .16s;
}
.campo::placeholder { color: var(--ink-low); }
.campo:hover { border-color: var(--panel-2); }
.campo:focus { outline: none; border-color: var(--mark); background: var(--panel-2); }
textarea.campo { min-height: 170px; resize: vertical; display: block; }

/* ---------- opções ---------- */

.opcoes { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 2px; }
.opcao {
  display: flex; align-items: center; gap: .9rem;
  padding: .95rem 1.1rem; cursor: pointer;
  background: var(--panel);
  transition: background .14s;
  position: relative;
}
.opcao:hover { background: var(--panel-2); }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao .caixa {
  flex: none; width: 15px; height: 15px;
  border: 1px solid var(--ink-low); border-radius: 50%;
  position: relative; transition: border-color .14s;
}
.opcao[data-multi="1"] .caixa { border-radius: 2px; }
.opcao.sel { background: var(--panel-2); }
.opcao.sel .caixa { border-color: var(--mark); }
.opcao.sel .caixa::after { content: ""; position: absolute; inset: 3px; background: var(--mark); border-radius: inherit; }
.opcao:focus-within { outline: 2px solid var(--mark); outline-offset: -2px; }

/* ---------- ações ---------- */

.acoes { display: flex; align-items: center; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.acoes .vao { flex: 1; }

.acao {
  font: 500 .82rem/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: none; border: 0;
  padding: .5rem 0; cursor: pointer;
  border-bottom: 1px solid var(--mark);
  transition: color .16s, border-color .16s, gap .16s;
  display: inline-flex; align-items: center; gap: .6rem;
}
.acao:hover { gap: .95rem; }
.acao:disabled { color: var(--ink-low); border-color: var(--rule); cursor: not-allowed; }
.acao-fraca { color: var(--ink-low); border-bottom-color: transparent; }
.acao-fraca:hover { color: var(--ink); border-bottom-color: var(--rule); }
.acao:focus-visible { outline: 2px solid var(--mark); outline-offset: 6px; }

.dica { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-low); margin: 1.5rem 0 0; }
.erro { color: var(--bad); font-size: .88rem; margin: .9rem 0 0; }

/* ---------- lista de vagas ---------- */

.vagas { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); margin-top: 2.5rem; }
.vaga {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1.6rem .2rem; background: var(--paper);
  text-decoration: none; color: inherit;
  transition: background .16s, padding-left .16s;
}
.vaga:hover { background: var(--panel); padding-left: 1.2rem; }
.vaga h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em;
  margin: 0; flex: 1;
}
.vaga .tempo { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-low); white-space: nowrap; }

.selo { font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }

/* =========================================================
   PAINEL — tratamento utilitário
   ========================================================= */

.admin { padding: 78px var(--gutter) 60px; position: relative; z-index: 1; }
.admin-topo {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.rotulo { font-size: .625rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-low); display: flex; align-items: center; gap: .55rem; }
.rotulo .logo { color: var(--ink); }

select.campo { padding: .5rem .7rem; font-size: .85rem; width: auto; }

.colunas { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
@media (max-width: 940px) { .colunas { grid-template-columns: 1fr; } }

.fila { position: sticky; top: 78px; max-height: calc(100vh - 104px); overflow-y: auto; border: 1px solid var(--rule); }
.linha {
  display: block; width: 100%; text-align: left;
  padding: .85rem 1rem; cursor: pointer;
  background: none; border: 0; border-left: 2px solid transparent;
  color: inherit; font: inherit;
  transition: background .14s, border-color .14s;
}
.linha + .linha { border-top: 1px solid var(--rule); }
.linha:hover { background: var(--panel); }
.linha.ativa { background: var(--panel); border-left-color: var(--mark); }
.linha b { display: block; font-weight: 500; font-size: .94rem; }
.linha .sub { display: flex; align-items: center; gap: .6rem; margin-top: .25rem; font-size: .74rem; color: var(--ink-low); }

.selo-est {
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .15rem .45rem; border: 1px solid var(--rule); border-radius: 2px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.selo-ok  { color: var(--ok);  border-color: color-mix(in srgb, var(--ok) 45%, var(--rule)); }
.selo-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--rule)); }

.placar {
  position: sticky; top: 78px; z-index: 4;
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  padding: 1rem 1.2rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 2px;
}
.placar .num { font-family: var(--display); font-weight: 300; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }

.ficha { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.ficha h2 { font-family: var(--display); font-weight: 300; font-size: 1.8rem; margin: 0 0 .3rem; }

.bloco { border-top: 1px solid var(--rule); padding: 1.6rem 0; }
.bloco h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin: 0 0 .8rem; max-width: 62ch; }
.bloco h3 blockquote { font-size: .9rem; font-weight: 400; color: var(--ink-mid); border-left: 2px solid var(--rule); margin: .7rem 0 0; padding-left: 1rem; }

.dita {
  background: var(--panel); border-left: 2px solid var(--rule);
  padding: 1rem 1.2rem; white-space: pre-wrap;
  font-size: .95rem; color: var(--ink-mid); max-width: 72ch;
}
.dita.vazia { color: var(--ink-low); font-style: italic; }

.rubrica { margin-top: 1rem; padding-left: 1.2rem; border-left: 2px solid var(--mark); }
.rubrica h5 { font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mark); margin: 0 0 .7rem; }
.criterio { display: flex; gap: .8rem; padding: .3rem 0; font-size: .87rem; color: var(--ink-mid); max-width: 68ch; }
.criterio b { color: var(--ink-low); font-variant-numeric: tabular-nums; flex: none; }

.aviso {
  margin-top: .8rem; padding: .7rem 1rem; max-width: 68ch;
  background: color-mix(in srgb, var(--mark) 10%, transparent);
  border-left: 2px solid var(--mark);
  font-size: .85rem; color: var(--ink-mid);
}

.notas { display: flex; gap: 1px; margin-top: 1.1rem; background: var(--rule); width: fit-content; border: 1px solid var(--rule); }
.nota-btn {
  font: 500 .85rem/1 var(--sans); font-variant-numeric: tabular-nums;
  min-width: 46px; padding: .65rem 0;
  background: var(--paper); color: var(--ink-low);
  border: 0; cursor: pointer; transition: background .14s, color .14s;
}
.nota-btn:hover { background: var(--panel-2); color: var(--ink); }
.nota-btn.sel { background: var(--mark); color: #08180f; font-weight: 600; }

.peso2 {
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mark); border: 1px solid currentColor;
  padding: .1rem .4rem; margin-left: .6rem; vertical-align: middle;
}

.vazio { color: var(--ink-low); padding: 5rem 0; }


/* ---------- cronômetro ---------- */

.relogio {
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  transition: color .3s;
}
.relogio.pouco { color: var(--mark); }
.relogio.zerado { color: var(--bad); }

/* ---------- intervalo: quem é a agência ---------- */

.intervalo .titulo em {
  font-style: normal;
  color: var(--mark);
}

.numeros {
  display: grid; gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin: 2rem 0 0;
}
@media (min-width: 720px) { .numeros { grid-template-columns: repeat(3, 1fr); } }
.numero { background: var(--paper); padding: 1.6rem 1.4rem 1.6rem 0; }
@media (min-width: 720px) { .numero { padding-left: 1.4rem; } .numero:first-child { padding-left: 0; } }
.numero .v {
  display: block;
  font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 300;
  line-height: 1; letter-spacing: -.02em;
  color: var(--mark);
  font-variant-numeric: tabular-nums;
}
.numero .r { display: block; margin-top: .5rem; font-size: .82rem; color: var(--ink-low); max-width: 22ch; }

.marcas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.marcas span {
  font-size: .8rem; letter-spacing: .04em;
  color: var(--ink-mid);
  padding: .45rem .85rem;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--panel);
}

/* ---------- valores da casa ---------- */

.valores { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.valores span {
  font-size: .85rem; font-weight: 500;
  color: var(--ink);
  padding: .5rem .95rem;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--panel);
}
.valores span:nth-child(3n+1) { border-color: color-mix(in srgb, var(--mark) 40%, var(--rule)); }

.rodape-int {
  margin-top: 1.8rem; font-size: .85rem; color: var(--ink-low);
  padding-top: 1.2rem; border-top: 1px solid var(--rule);
}
